Two-way Bluetooth with Raspberry Pi Pico W and MicroPython (Re-upload)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • In this video we'll demonstrate how to setup Two-way Bluetooth with Raspberry Pi Pico W and MicroPython.
    💁‍♂️ For more information on Kevs Robots, tutorials and more visit: www.kevsrobots...​
    🎖To join the membership at 🥉bronze, 🥈silver or 🥇gold levels, head over to
    www.smarsfan.c...
    Join me on Discord - www.kevsrobots...
    Join the list - www.kevsrobots...
    ☕️ Enjoy this video? Buy me a coffee! www.buymeacoff...
    📸 Follow me on Instagram - @kevinmcaleer / kevinmcaleer
    🐦 Follow me on X - @kevsmac x.com/kevsmac
    🙂📘 Join the Facebook group - Small Robots / smallrobots
    👩‍💻 My Code on GitHub: www.github.com...
    🎵 Music by Epidemic Sounds www.epidemicso...
    #Pico​ #MicroPython​ #Robotics

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

  • @JeronimoAvelarFilho
    @JeronimoAvelarFilho 19 วันที่ผ่านมา +3

    Excelent work Kevin. I have been strugling to make ble to work on MicroPython and this vídeo is the first one to put me in the right path . Thanks a lot.

  • @tristanilich1199
    @tristanilich1199 2 วันที่ผ่านมา

    Thanks for the tutorial Kevin. I have been struggling to get BLE working on my Pico W for some time and this has helped a lot. I have a project where I want the peripheral to stop advertising for say 5min until the next piece of sensor data is available. The client should keep scanning. What is the best way to stop the peripheral from advertising until data is available to send? Cheers Tristan

  • @sebastiaanmaas
    @sebastiaanmaas 17 วันที่ผ่านมา

    Very interesting. I would like to use this for a battery powered temperature sensor connected to my central heating water supply pipe. It needs to log once every 10 to 15 minutes. However, can I use BLE and WiFi at the same time? How could I push my sensor readings to my InfluxDB over MQTT while still reading BLE data?

  • @RalphFreeman-ok5of
    @RalphFreeman-ok5of 20 วันที่ผ่านมา +1

    Hi Kevin enjoyed this. I'm a believer in distributed processing so inter board Comms is always of interest.
    I have a suggestion. How about doing a bridge device based on a ESP32 Stamp sized board that would look like a UART on one side ESPNow or BLE on the other. That way just about any board could be linked even UNOs. I use PiPico but they don't support my favourite inter board communication ESPNow. Keep up the good work 👍

  • @Stridfish
    @Stridfish 18 วันที่ผ่านมา

    Can you make a Pico communicate with another throw there’s own WiFi, without the wifi in the house. Would be great if I can make a rc-car with controller that can drive outside.

  • @bennguyen1313
    @bennguyen1313 17 วันที่ผ่านมา

    I have a Pico that takes data from a DMM via uart... I'd love to have my PC communicate to the Pico wirelessly to see that data. I have a couple USB Bluetooth dongles for the PC ( Feasycom BP102, HC-05/HC-06/CP2102 master modules)
    Any thoughts what would be involved in writing an Pico application, that takes the uart data and passes it wirelessly either via bluetooth** (SPP) or via Wifi?
    For Wifi, I imagine the Pico could act as a web server (TCP) and display the RS232 data, but maybe there's also a UDP way of having the Pico send the data to a PC on the same network?

  • @JeronimoAvelarFilho
    @JeronimoAvelarFilho 19 วันที่ผ่านมา +1

    Can I have an ESP-32 talking to a pico w using this exemple ?

    • @kevinmcaleer28
      @kevinmcaleer28  19 วันที่ผ่านมา +1

      Yes I've tested this with an ESP32, I did have to install the aioble library for that to work (using Thonny's package manager in the Tools menu -> search for aioble and click install)

    • @JeronimoAvelarFilho
      @JeronimoAvelarFilho 19 วันที่ผ่านมา

      @@kevinmcaleer28 Thanks

  • @LordHog
    @LordHog 20 วันที่ผ่านมา +1

    Good job on this project. Which editor are you using if you don’t mind me asking?

    • @kevinmcaleer28
      @kevinmcaleer28  20 วันที่ผ่านมา +1

      You mean to edit the code or edit the video? For the Code I use Microsoft Visual Code (I used Thonny on the stream to show the code). For editing video - this was all done live; I use Ecamm Live to switch between cameras and scenes, Keynote for the presentation and a combination of Omnigraffle and Canva for graphic design. I edited this video with Final Cut Pro (macOS) as the live stream stopped after 8 minutes and I needed to stitch both parts together and reupload

    • @LordHog
      @LordHog 20 วันที่ผ่านมา

      @@kevinmcaleer28 thanks for sharing. I was wondering what editor you were using to show the code during the video.

  • @Clawdelle58
    @Clawdelle58 18 วันที่ผ่านมา

    Hi Kevin, I'm thinking about steering Lego trains with bluetooth. I don't want to use ESP-now that would be somehow closed technic, or MQTT via the WLAN. Would it be possible to setup a bluetooth Mesh or a bluetooth hub , could be work off grid?

    • @Clawdelle58
      @Clawdelle58 18 วันที่ผ่านมา

      ... or ble

    • @Clawdelle58
      @Clawdelle58 18 วันที่ผ่านมา

      sorry, or better a ble hub (one to many relation)

    • @kevinmcaleer28
      @kevinmcaleer28  18 วันที่ผ่านมา

      Great question - how many separate trains would you look to control? Is the control via a single track controller (i.e. all the track controls is done via a single device). Bluetooth on microcontrollers is only device to device at this point, however one pico could control all the tracks paired with another pico that is the wireless remote; no mqtt or wifi required.

  • @JeronimoAvelarFilho
    @JeronimoAvelarFilho 19 วันที่ผ่านมา

    I tried the code and noticed that when I stop one of the picos the other continues to receive messages that it itself has sent, in a continuous loop. I thought it was some kind of bufferized messages on a queue being treated but it is not. When I restart the stopped pico all the communications restarts without problem

    • @kevinmcaleer28
      @kevinmcaleer28  19 วันที่ผ่านมา

      @@JeronimoAvelarFilho the other Pico will try and send messages while it can, but should stop ones the other disconnects.

    • @JeronimoAvelarFilho
      @JeronimoAvelarFilho 19 วันที่ผ่านมา

      @@kevinmcaleer28 I will verify and test again when I return home.