ESP32 #71: Arduino Bluetooth (BLE) Robot Buggy with L298 (Android example)

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 46

  • @chanovandrei
    @chanovandrei 5 лет назад

    Thank you! Very interesting. I will try repeat soon.

  • @johananhershtik2768
    @johananhershtik2768 6 лет назад

    You make it look so easy.,

  • @cad3175
    @cad3175 6 лет назад

    Cool stuff thank you

  • @jacobendure262
    @jacobendure262 5 лет назад

    Thanks for the video, it is very informative. I tried it with just a couple of LEDs, just to see if the
    BLE end-to-end works and it does light up the LEDs as expected. I just wanted to made a note that one should enter the commands "up", "down", etc. in addition to the symbol "", etc. when editing the control. One more thing, the motors (in my case the LEDs) stay ON only for 500 ms (or whatever it's set to) but stops even when you continue to press the button, so you have to repeatedly tap it to make the motors run continuously ... Have you thought of a way to make it run for as long as the button is pressed? Thanks.

  • @PHCareli
    @PHCareli 6 лет назад

    Does BTLE use some ports? I cant seem to make it work while in my board =/

  • @fishyrider3528
    @fishyrider3528 6 лет назад

    Greate. Thank you

  • @ParthBhat
    @ParthBhat 6 лет назад

    Hi,
    First off, thank you very much for always sharing everything about esp32
    Thanks a ton.. I would be soon uploading some tutorial videos too on my new youtube channel and i never forgot to thank you for teaching me about esp32. Keep up the best work sir.
    Cheers

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      Thank you, and please mention that most of the work is done by espressif (github.com/espressif/esp-idf/graphs/contributors and github.com/espressif/arduino-esp32/graphs/contributors) and for the BLE Library the tribute goes to Neil Kolban (and the member of his crew github.com/nkolban/esp32-snippets/graphs/contributors)!

    • @ParthBhat
      @ParthBhat 6 лет назад

      pcbreflux okay ill add that too.. Thank you

  • @ZacDoesCoolStuff
    @ZacDoesCoolStuff 6 лет назад

    Hi, from the diagram and demo it would appear that you have no problem powering the motors over USB. Is this true?

    • @pcbreflux
      @pcbreflux  6 лет назад

      Hi, my Kit include a Batteryholder for 3x AA-Batteries so the design is made for

  • @VegasStreets
    @VegasStreets 6 лет назад

    The aliexpress link doesn't seem to bring up an exact item?

    • @pcbreflux
      @pcbreflux  6 лет назад

      Sorry but the items on aliexpress are rapidly changing so just give you my search term. Maybe filter for you price range like $17- $20 (today my Kit is about $17.28 free shipping).

  • @denysvainilovych8179
    @denysvainilovych8179 6 лет назад

    Pcbreflux, thanks for interesting video and channel. Can you make video about power consumption when ESP32 using as bluetooth client (interesting how long it works as sensor on battary)? I will be very appritiated to you.

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      Mr. Denis Sure, working on this topic ... involving beacons and deep sleep.

  • @mahmoudgattuzo6984
    @mahmoudgattuzo6984 6 лет назад

    great work sir,
    can you make a tutorial same as this that uses linux and eclipse editor

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      If you are looking for a tutorial that covers the Nordic UART Service using linux and eclipse watch ESP32 Video #39 (Bluetooth Server Tutorial and Code Walk) ruclips.net/video/FvIywveUVZw/видео.html (you can copy the code for the motors to the eclipse example if you like).

    • @mahmoudgattuzo6984
      @mahmoudgattuzo6984 6 лет назад

      that what i'm looking for thank sir

  • @michael12nonan
    @michael12nonan 6 лет назад

    I got this one to work. I can't believe how easy it was after I watched this video. I used a Tamiya track and wheel set. Now my problem is batteries. I already have 18650 battery and I attached it to the 3v3 pin as I have seen on your other video, bluetooth is working but the motor is not. Any insights?

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      If your board have a voltage regulator like the ams1117 (3.3V) then you can use the 18650 on the input (5v but with the 18650 this could be up to 4.2V) for the esp32 and the motors. max rating for the Vss on the L298 is 7V so dont use two 18650 in series. Better is maybe a powerbank with a 5V boost circuit on a USB port or a small cheap 5V boost module like this m.aliexpress.com/item/32836773353.html

    • @michael12nonan
      @michael12nonan 6 лет назад

      Let me see if i get this correctly, I'll use one 18650 connected to a 5v boost circuit board. So I got a 5v power supply. Should I connect that connect that to the pin you describe on the 1:00 minute mark of this video?

    • @pcbreflux
      @pcbreflux  6 лет назад

      Michael Nonan On my boards this 5V is connected to the USB micro connector and also to the input to the voltage regulator. So in my case yes this is how I would wire this but not 100% sure about your board. And don't use the USB plug at the same time. Don't know if your 18650 have a protection circuit? So maybe using battery below a voltage could decrease the lifetime and also the voltage regulator have a min input voltage to provide the 3.3V for the ESP32. So it may not work below a certain voltage, could be even 4.2V is not enough. Actually I don't find the cutoff voltage in the datasheet for the ams1117 3.3V.

    • @pcbreflux
      @pcbreflux  6 лет назад

      Found the reading for the AMS1117: "Operates Down to 1V Dropout" ... so with just 4.2V on your 18650 is not enough with this regulator to power up the ESP32 on 3.3V. You need more voltage or a different regulator like a "low dropout regulator" or LDO.

  • @DotaAvailable
    @DotaAvailable 5 лет назад

    this is my first time to see the Vs and the 5v connected together can you tell me why did you do this ??? because i can't understand it , thank you :D

    • @pcbreflux
      @pcbreflux  5 лет назад

      Vs is used as the power supply (can be used up to 50V but we need only ~5V for the small DC motors) and Vss as Logic Supply Voltage (Up to 7V) just connected to 5V (or use 4.5V from three or 6V from four AA Batteries). Sure the ESP32 have a logic level at 3.3V but the high/low thresholds are enough for the L298.

    • @DotaAvailable
      @DotaAvailable 5 лет назад

      I'm really thanks for reply But you connected. Both of them to Vin of esp32 and Vin working as input not as output then where the volt come from

    • @pcbreflux
      @pcbreflux  5 лет назад

      Yes, you are right: The Supply Voltage powers the ESP32 (Vin to the AMS1117 3.3V Regulator and then to the ESP32) and also the L298/Motors + L298/Logic.

    • @pcbreflux
      @pcbreflux  5 лет назад +1

      After rethinking your question I hope to understand the confusion: If you use the USB Port as the 5V source the 5V are connected to Vin, so in this case Vin acts as an "output" and can be used to power Vs and Vss.

    • @DotaAvailable
      @DotaAvailable 5 лет назад

      @@pcbreflux thank you so much :D ...Another Question Please . and i'm really sorry :D , i knew that the maximum current can that esp32s can pinout provide is 40 ma and the dc motor you're using it is consume 150 ma current how could it be possible as a noobie question :D

  • @PrathameshJakka
    @PrathameshJakka 6 лет назад

    can you make more tutorials on ble using Arduino IDE

    • @pcbreflux
      @pcbreflux  6 лет назад +1

      Sure, next video could be (can not promise) to include BLE in the Li-Ion Battery Monitor project with Arduino. Thanks and have a great day

  • @orinmcdonogh
    @orinmcdonogh 6 лет назад

    Hi i am getting this error please help: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

    • @orinmcdonogh
      @orinmcdonogh 6 лет назад

      btw when I plug in the esp-32 the second motor starts spinning. stopping, spinning stopping and so on

    • @pcbreflux
      @pcbreflux  6 лет назад

      On the first glance it seams a port problem with arduino and the ESP32. Can you check and set the Tools->Port menu?

    • @pcbreflux
      @pcbreflux  6 лет назад

      The motors should not spinning and stopping, just do nothing without a bluetooth connection. Maybe (just a guess) this is the blink sketch?

  • @slawomirkustra9397
    @slawomirkustra9397 5 лет назад

  • @recepmehmet5247
    @recepmehmet5247 6 лет назад

    Hi guys,
    Thank you sir for your very effective video,
    But i have very little problem:When i connect to esp32 and nrf-toolbox gives error connection state change(133).
    can you help me this problem
    thank you

  • @aymanmoussaoui1221
    @aymanmoussaoui1221 6 лет назад

    Hi PCBreflux, I sent you a message in RUclips where I suggest some Important Electronics Projects, so you can check the received messages in your channel on RUclips, Thank You.

    • @pcbreflux
      @pcbreflux  6 лет назад

      Hi, can you send me an email (see canal description) messages are not supported on mobile and I am not a my desk now Thanks.

    • @aymanmoussaoui1221
      @aymanmoussaoui1221 6 лет назад

      Hi I can't find your Email Address, and this is my Email :
      moussaoui.ayman@gmail.com

    • @aymanmoussaoui1221
      @aymanmoussaoui1221 6 лет назад

      Hi I cant find your Email Adresse, so this is my Email: moussaoui.ayman@gmail.com

  • @eberle1966
    @eberle1966 4 года назад

    ещё 1 клоун с машинкой под названием робот ))