Raspberry Pi Pico - Bluetooth Controlled Car Project

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 84

  • @astudent4187
    @astudent4187 2 роки тому +4

    I started a robotics club in school, and this really expanded my club and my knowledge of robotics! :)

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      That's awesome! I plan in future to cover other motor drivers and how to make a PCB to house everything better.

  • @jimcraig5727
    @jimcraig5727 2 роки тому +6

    Another very well done tutorial in a list of several others on this channel. Slowly becoming my go to channel for raspberry pi pico & micropython. Looking forward to more.

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +2

      Thank you Jim, it really means a lot to me reading comments like this and I am glad the videos are you helping you, if you have any requests for future videos do let me know.

  • @rodrigomarchi9755
    @rodrigomarchi9755 2 роки тому +1

    Great tut! Will give it a try!

  • @TheMlacko
    @TheMlacko Рік тому +1

    Thank You, Love Your teaching!

  • @comical24
    @comical24 Рік тому +1

    bro just saved my after-school club 🥶🥶💀💀
    we're doing a project about building a robot that can take aparta lego structure, and this was VERY, VERY helpful
    thanks, my guy NerdCave

    • @NerdCaveYT
      @NerdCaveYT  Рік тому +1

      That is awesome! Glad it was useful, this project was during my 90 day lockdown in apartment XD

    • @comical24
      @comical24 Рік тому

      hey, thanks for replying! i have a question: can this project be done in circuitpython? i'm wondering because at school, i have to use a chromebook and micropython doesn't support mass storage. if not, i can try to adapt.

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      Yes this can be done in CircuitPython just a little bit of modification needed but the logic stays the same@@comical24

    • @comical24
      @comical24 Рік тому

      ok, nice! thanks

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      if you need help just reach me on discord@@comical24

  • @shashankbhosagi
    @shashankbhosagi 2 роки тому +2

    Great tutorial 😎
    Helped a lot
    Thank you🙂

  • @armand9910
    @armand9910 2 роки тому +1

    Awesome, really cool project! ^_^

  • @RA4FOC
    @RA4FOC 2 роки тому +1

    Thanks bro, very interest project!

  • @ideologic3407
    @ideologic3407 Рік тому +1

    Hii , I loved your work! Can you please capture the latency of that Bluetooth?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      Hi, I will quickly check how to capture latency, not 100% how to capture it

    • @ideologic3407
      @ideologic3407 Рік тому

      @@NerdCaveYT thanks a lot 😀

  • @qzorn4440
    @qzorn4440 Рік тому

    A most interesting Bluetooth Raspberry Pi Pico video. 🥳 Will this code example run on the newer Raspberry Pi Pico W with built in Wi-Fi and Bluetooth? 🤩 Thank you.

    • @NerdCaveYT
      @NerdCaveYT  11 місяців тому +1

      It should, I have not tried to use the Bluetooth on the Pico W the implementation does not seem straightforward, WIFI might be easier

    • @qzorn4440
      @qzorn4440 11 місяців тому

      Thank you.

  • @peterashford7364
    @peterashford7364 2 роки тому +1

    Hi Thanks for an amazing project which nearly works! I have the joystick option working fine, thanks. I am having trouble with the bluetooth option. I've loaded your MIT example and I have a similar example app supplied by the bluetooth company who make the module. My problem is I can't work out the structure of the data you are sending and I don't understand the constuction elif ('E' in data) speed=data.split("|"). Could you please help ? If I simply the if statement into just reading character it works but I would quite like to have speed decoded as your program does.

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      Hi at this moment I do not have my pc, all my things are in containers busy moving. The code as I remember was send a value depending on the slider which will range from 0-100 and if you print the data being received from Bluetooth it needs to be split since it gives a value x 'b' Infront that gets formatted so that I can pass the correct value for when calculating the PWM to control the speed. If possible you can add me on discord and I would be able to help.

    • @peterashford7364
      @peterashford7364 2 роки тому +1

      Thanks, I will do that.

  • @codemaker8301
    @codemaker8301 2 роки тому +1

    Good job u helped me so much thanks

  • @nikos4586
    @nikos4586 3 місяці тому

    Very good video with excellent description. I am using Pico W (it has ble) so I don't use the HC-05. The app you provide us needs the pico to be paired with the phone in order to work (when you are selecting device you can see only devices that are paired to your phone). I have tried many times but pairing fails every time. Do you know why? I am a bit confused. Is there any way to finally pair the pico with my phone (I have checked and my phone supports ble devices)? Because I can not pair the pico with the phone, I don't see it as a choice in the app.

    • @NerdCaveYT
      @NerdCaveYT  3 місяці тому

      What phone are you using, so my phone picked up the HC-05 but I do know that Apple does not work with this protocol used on the HC-05 and you need different protocol. I have not checked with the Pico W yet in terms of BLE I probably have to check it out and make a follow up video on this project

    • @nikos4586
      @nikos4586 3 місяці тому

      @@NerdCaveYT Ahhh, I understand. I have an Android, realme 7, whatever

  • @Nagalta
    @Nagalta 2 роки тому +1

    Hey I am about to try the same project using your guidance and code, but I need 4 wheels, I am guessing that I will be able to work it out isnt it ? they shouldnt be any technical issues doing it using those components ? Thanks !

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      Hello you will be able to connect 4 motors to the one driver if you would like to make it 4wd. So in short two motors to A and two motors to B

  • @catlover1748
    @catlover1748 7 місяців тому +1

    Hey so i made this but it wont move the motors. I have the code working and bluetooth is connecting, jusy when i use the software on your app (or any software for that matter) the motors wont move. Do you know a way I could fix this?

    • @NerdCaveYT
      @NerdCaveYT  7 місяців тому

      what is the PWM or speed set to, if it is to low the motor will make a high buzz sound

  • @vinay-3108
    @vinay-3108 2 роки тому

    Awesome project sir can you please share the 3d model of the board sir it will be helpful to us a lot sir

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому

      Hi, do you mean the body of the car, I just made a simple file and saved as a dxf to laser cut it is in the description

  • @nikos4586
    @nikos4586 5 місяців тому

    I am planning to use the version of pico that has bluetooth (the W version) instead of using the HC-05. Do I have to change the power supply in order to operate succesfully? I am afraid that if I use the same power supply the raspberry will fry because the cable coming out of the L298N moto controller is at 12V. Please help me, i don't know what to do...

    • @NerdCaveYT
      @NerdCaveYT  5 місяців тому +1

      The L298N has a 5V out pin as shown in schematic, just make sure when power the pico from the motor driver 5V out that Pico is not plugged into PC via USB

  • @homalux-y7m
    @homalux-y7m 7 місяців тому

    Really nice video! Are all the jumpers Male-Male?

    • @NerdCaveYT
      @NerdCaveYT  7 місяців тому

      thank you, for the pins connecting to the motor driver female-male so it can connect to the breadboard

    • @homalux-y7m
      @homalux-y7m 7 місяців тому

      @@NerdCaveYT Thank you so much! How many cable (male-male and male-female) do I need in total for the project?

  • @engineermetin
    @engineermetin 2 роки тому

    Hi, great work! Is it possible to control the speed of the wheels? Thank you

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому

      Yes, there is a slider to change the pwm to increase the speed of the motors

  • @ToPProjectsCompilation
    @ToPProjectsCompilation 2 роки тому +1

    Hey, your projects are amazing. We want to feature them on our channel (with proper credits to your channel). If it sounds good then kindly reply.

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      I replied to the email send.

  • @abba2938
    @abba2938 2 роки тому +1

    Good Thing! Everythig works fine, but: left is forward, right is backward, up is right an so on. How do i correct this?

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      In the code where you have the function forward, backward, left and right you set the output high or low, change these to get the correct results or what you can do is rename the functions make right to up etc.

    • @abba2938
      @abba2938 2 роки тому +1

      yeah, i renamed the functions, but also the names in the "while true", that was my mistake. Now it works. Thank you!!! An now i´ll build these one with a Raspberry Zero with a Camera...

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      Awesome glad it is working now, saw a new pico being released recently

  • @Nagalta
    @Nagalta 2 роки тому +1

    Hey thanks a lot for this. Do you mind creating an amazon list with all your components ? If you start affiliation you might make a buck in the process too :)

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      The reason why I don't make amazon is just that I can't verify the suppliers if they are good or not since I can't really buy from Amazon being here in China at the moment here the locals use Taobao which is where I source my things, then I usually just make the AliExpress links or part names

  • @fouzanjaved5441
    @fouzanjaved5441 2 роки тому +1

    Sir, love the awesome Raspberry Pi Pico - Bluetooth Controlled Car Project. Sir, can you make the Arduino Uno Xbox360 controlled 6 dof robotic arm car using the Xbox360 controller? Sir, tell me, is it possible to do this amazing project.

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      Is there like special xbox controllers for microcontrollers that comes with a receiver? I have a ps2 control which I used before never tried xbox controller before

  • @АлександрМаскалевич-и1ж

    Hello. android application constantly loses connection with HC-05 module. Don't know what could be the problem?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      I am not sure I will do a bit research, I have not used it that long to experience anything

    • @АлександрМаскалевич-и1ж
      @АлександрМаскалевич-и1ж Рік тому

      @@NerdCaveYT Hello. I figured out the problem was with the battery. I installed a 9 volt battery.

    • @NerdCaveYT
      @NerdCaveYT  Рік тому +1

      @@АлександрМаскалевич-и1ж great, I should probably make an update video because those motor drivers are really not great found better ones for the same price

  • @jaydenjewett3796
    @jaydenjewett3796 Рік тому

    Is it all right if I use three 3.7 volt batteries, or will that fry something?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      Safe operating voltages are between 1.8V and 5.5V for the raspberry Pi Pico it has a buck-boost converter on board

  • @tataru1298
    @tataru1298 8 місяців тому

    Hello, what app do you use for schematic?

    • @NerdCaveYT
      @NerdCaveYT  7 місяців тому +1

      Hello not sure what schematic did I show but I usually show the schematic from EasyEDA and for circuit diagram I use Fritzing

    • @tataru1298
      @tataru1298 7 місяців тому

      @@NerdCaveYT Thank you!

  • @nikos4586
    @nikos4586 4 місяці тому

    I want to add an additional motot driver to use two more motors to control a trane an the top of this car. Can I connect two motor drivers in one raspberry pi pico?

    • @NerdCaveYT
      @NerdCaveYT  4 місяці тому +1

      yes the gpio pins in the Pico all have PWM so you can add another driver and just setup everything in code for a second motor driver

    • @nikos4586
      @nikos4586 4 місяці тому

      Thank you!, one more final question, the Pico from which motor driver will be powered?
      Thank you again, you are really amazing!

    • @NerdCaveYT
      @NerdCaveYT  4 місяці тому

      What voltage will you use to power everything if you for example use 5V, you can power everything directly from the 5V the pico and two motor drivers because the motor driver uses 3.2V~40Vdc as input and pico 3.2~5.5V. Now if you give more voltage because you want more power from motors it won't matter which motor driver is used. The motor driver has a regulator to regulate the voltage to 5V that can be used to power the pico, just make sure all of them have a common ground

  • @CertufiedTeacher
    @CertufiedTeacher 2 роки тому

    Hello, I found out the HC-05 module will not work for iPhone I wanted to point that out. I found out the hard way

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +1

      I did not know that, I never used an iphone before

  • @windadar211
    @windadar211 Рік тому

    we can't use a usb bluetooth ? we really need the module ? it's the only way ?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому +1

      you can if you want, there is a few videos on the esp32 on it

  • @MrAinz-vv1sx
    @MrAinz-vv1sx Рік тому

    what does mean error unable to write: broken pipe?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      this happens when there is an error while the code is uploading

  • @jaydenjewett3796
    @jaydenjewett3796 Рік тому

    Hey im trying to make a degine similar to this and I was wondering, why isnt their a reciever?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      The Bluetooth device is connected to the pico and receives data from the phone once it is paired.

    • @jaydenjewett3796
      @jaydenjewett3796 Рік тому

      @@NerdCaveYT sorry wrong word i meant resistor

  • @Joemason07
    @Joemason07 Рік тому

    Can you use a raspberry pi 4?

    • @NerdCaveYT
      @NerdCaveYT  Рік тому

      You can use a raspberry pi yes, but this tutorial won't be helpful. If using the raspberry pi probably using wifi to control it would be better.

  • @Max_Bio
    @Max_Bio 5 місяців тому

    how to enable hfp on rpi?

    • @NerdCaveYT
      @NerdCaveYT  5 місяців тому +1

      on the HC-05?

    • @Max_Bio
      @Max_Bio 5 місяців тому

      @@NerdCaveYT Ya, and for RPI?

  • @khairulalamsojib8058
    @khairulalamsojib8058 2 роки тому +1

    Waiting for new Video.

    • @NerdCaveYT
      @NerdCaveYT  2 роки тому +2

      I really want to build new projects at this moment unfortunately the whole "nerd cave" is packed up in the process relocating to different city.

    • @khairulalamsojib8058
      @khairulalamsojib8058 2 роки тому +1

      @@NerdCaveYT Would love to see your next project on Raspberry Pi PIco W.