Raspberry Pi Pico Tutorial - HC-05 Bluetooth module + MIT App Inventor

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มี.ค. 2022
  • Welcome to the - Learn how to use the Raspberry Pi Pico Tutorial Series:
    This tutorial we look at the HC-05 Bluetooth module and how to connect it to the Raspberry Pi Pico.
    In the first example we create a basic app using the MIT App inventor to control an LED.
    The second example we will add expand on the first project by adding multiple LEDs and a relay module.
    Check out my channel for other videos on the Raspberry Pi Pico, as I will regularly upload tutorials and projects related to the Raspberry Pi Pico.
    If you found this tutorial helpful, subscribe to the channel and leave a comment and welcome to the NerdCave.
    Code:
    github.com/Guitarman9119/Rasp...
    If you are new to the Raspberry Pi Pico I have made a Getting started video:
    • Raspberry Pi Pico Tuto...
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 42

  • @NerdCaveYT
    @NerdCaveYT  2 ปีที่แล้ว +7

    Hi, when playing with the HC-05 today I saw there is a tiny mistake on the schematic, the TX and RX pins needs to be swopped. I hope it helps

    • @davyS4v
      @davyS4v ปีที่แล้ว

      on your schematic or on hc-05?

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      @@davyS4v connected to the Pico

    • @gabemorris1231
      @gabemorris1231 ปีที่แล้ว

      @@davyS4v You wouldn't believe the amount of rabbit holes I went down trying to figure this out. This video was the first thing I saw when I was learning about this, and the wiring diagram was what I ultimately used all day trying to figure it out. JUST TO BE 100% CLEAR, tx gets wired to rx, and rx gets wired to tx!

  • @armand9910
    @armand9910 2 ปีที่แล้ว +1

    Well constructed video with lots of information, thank you.

  • @MrBobWareham
    @MrBobWareham ปีที่แล้ว

    Thank you for explaining the code, it makes it easy to understand

  • @rolandtriton
    @rolandtriton ปีที่แล้ว

    You are so talented with this, so clear so informative iam just impressed how you made it so understandable, bug fan here

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      Thank you so much! It is comments like this that motivates me to continue with the channel which some good news is I am coming back with bunch of tutorials and diy videos. Happy new year

  • @randallyoung6715
    @randallyoung6715 3 หลายเดือนก่อน +1

    Thanks, just what I needed!

    • @NerdCaveYT
      @NerdCaveYT  3 หลายเดือนก่อน

      Great to hear!

  • @scott6169
    @scott6169 ปีที่แล้ว

    Great tutorial - especially on the App Maker

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      Thank you, the MIT App inventor probably the easiest way to make an app

  • @ronen124
    @ronen124 2 ปีที่แล้ว

    this is a good channel, good work, if possible make some tutorials for the raspberry pico with c language

    • @NerdCaveYT
      @NerdCaveYT  2 ปีที่แล้ว

      Thank you. It will come in near future(ish), I am trying to make whole series on MicroPython then CircuitPython and then move to C for content not geared to beginners.

  • @VideoNash
    @VideoNash 2 หลายเดือนก่อน +1

    thanks

    • @NerdCaveYT
      @NerdCaveYT  2 หลายเดือนก่อน

      You're welcome!

  • @davyS4v
    @davyS4v ปีที่แล้ว

    Awesome tutorial!
    Detailed and very clear explanation.
    I want to kindly ask you for advice.
    If I want to use an OTG cable to communicate between the smartphone and the raspberry, how can I do it?

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว +1

      it should be possible I know someone connected the pico to a smartphone to use the pico as an oscilloscope really awesome stuff, this might be a great starting point www.tomshardware.com/news/raspberry-pi-pico-oscilloscope

    • @davyS4v
      @davyS4v ปีที่แล้ว

      @@NerdCaveYT thank you so much. Alternatively are there other connection options than Bluetooth, Wi-Fi or OTG cable? 😂

  • @nobodyknows8908
    @nobodyknows8908 6 หลายเดือนก่อน

    Hey NerdCave, I am currently working on a concept to make a controller from a Raspberry Pi Pico I currently have it working via USB but wanted to incorporate bluetooth technology to allow connection wirelessly to the PC for controller functionality. Would the HC-05 work well for this, obviously ill need to write my own code and that should not be an issue. Everything I read about the HC-05 makes it sounds like it can communicate via UART and SPP. So this shouldn't be an impossible feat correct?

    • @NerdCaveYT
      @NerdCaveYT  6 หลายเดือนก่อน

      Yes, this should be doable since the bluetooth will be connected to the COM port on your computer allowing it to receive data, I am not sure about the python script you will need to write to process this data into controller commands, will probably be using an HID library in python to allow this. How is it working through usb now did you use the arcade hid library through the Pico

  • @Johnny-ik4ug
    @Johnny-ik4ug 2 ปีที่แล้ว +1

    Very nice video! I guess if I want to be serious about this and make the Android app in AndroidStudio it will take days to do it, which is sad because I don't have enough time for it

    • @NerdCaveYT
      @NerdCaveYT  2 ปีที่แล้ว

      I have not looked into the AndriodStudio just wanted to keep it simple as possible, but I know Processing is an alternative to make GUI applications that can be ported to Android.

  • @Kattoe
    @Kattoe 8 หลายเดือนก่อน +1

    What if i don't want the led to turn on if 'led_on' is in it but only if it is that? (I dont want it to turn on if the message is 'turn the led_on')

    • @NerdCaveYT
      @NerdCaveYT  7 หลายเดือนก่อน +1

      I am not exactly sure what you want to do can you send me a message on discord

  • @davyS4v
    @davyS4v ปีที่แล้ว

    How to change a variable into the rpi script from app?
    (Example: if i click a button, this button should modify a variable "counter=0" in "counter=1")

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      Well from the MIT app I would probably make a function and button to control the counter like up and down and send it. This might help to start out with: th-cam.com/video/t6BioDDKJXQ/w-d-xo.html

  • @conifer9879
    @conifer9879 5 หลายเดือนก่อน

    Doesn't the Pi Pico have on-board bluetooth now? so we no longer need the HC-05?

    • @NerdCaveYT
      @NerdCaveYT  5 หลายเดือนก่อน

      The Pico W has on board-bluetooth, this video was made with the non Wi-Fi Bluetooth chip module

  • @davyS4v
    @davyS4v ปีที่แล้ว +2

    i'm trying since 3 weeks but it doesnt work :(
    do you have miss some steps?

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      All the steps are shown in this video along with the other bluetooth remote control car. What problems are you having?

    • @davyS4v
      @davyS4v ปีที่แล้ว +1

      @@NerdCaveYT led doesn't switch on/off but hc05 is connected. I follow every steps but it doesnt work

    • @ramprasath27
      @ramprasath27 7 หลายเดือนก่อน

      Did you find any solution@@davyS4v

  • @TechHouseVids
    @TechHouseVids 5 หลายเดือนก่อน

    it doesnt work for me. i dont know what the problem is. i think its an upload problem for uploading the code could you help please? edit: it works now i had to export my app to an apk and manualy give it acces to bleutooth awesome video

    • @NerdCaveYT
      @NerdCaveYT  5 หลายเดือนก่อน

      Great, thank you. I also struggled a bit since my phone does not have google playstore making testing really difficult.

  • @davyS4v
    @davyS4v ปีที่แล้ว

    How to change a variable from app to script?

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      which variable do you want to change from the andriod app, I have included the file to the app so changes could be made

    • @davyS4v
      @davyS4v ปีที่แล้ว

      @@NerdCaveYT I want to take the value entered into a textbox from mit app and replace a variable in the script in MicroPython

  • @godgajet6763
    @godgajet6763 ปีที่แล้ว

    how to add more leds

    • @NerdCaveYT
      @NerdCaveYT  ปีที่แล้ว

      at 12:31 I showed more LED's you can use other GPIO pins available to add more