Programming Elegoo Smart Robot Car v4.0 | Part 1

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2022
  • This is part 1 of programming the Elegoo robot car v4.0. In this part, I will describe how to set up the Arduino IDE and make the necessary changes in the car software to
    - make its WiFi network secure
    - reduce frequent WiFi disconnections
    - enable the communication of the MPU data through WiFi
    In Part 2, I will describe how to get the car's sensor data and the camera images into Python and control the car movements based on that data in real time with a Python code through WiFi. My final goal is to add a neural network in Python to be able to recognize objects in the car's camera view. The current code can be found here:
    github.com/bots4a11/ElegooRob...

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

  • @digitarum1014
    @digitarum1014 7 месяцев назад +3

    Useful video! I'm working on a class assignment and I needed to program this bot to ping a Telegram bot when it turns on, but the main board has no Wifi so I had to modify the camera code, and your instructions on that part were pretty useful.

  • @martianvenusian6894
    @martianvenusian6894 4 месяца назад

    Very useful. Thanks a lot

  • @melissafabian7878
    @melissafabian7878 Год назад

    Love your videos

  • @taj7283
    @taj7283 Год назад

    Very useful! ❤️

  • @cheikhkallaseck6503
    @cheikhkallaseck6503 Год назад

    i like your video

  • @fredboekhorst5817
    @fredboekhorst5817 7 месяцев назад +1

    Hi Michael, great work you did with your smart robotcar! I downloaded your final files from github, but got an error that the main sketch was too big for the Uno. Any ideas?

    • @digitarum1014
      @digitarum1014 7 месяцев назад

      Did you set the Partition Scheme to "Huge APP" in the Arduino IDE settings?

    • @fredboekhorst5817
      @fredboekhorst5817 7 месяцев назад

      Thanks very much for your reaction! I did set the partition scheme to 'Huge APP' for the ESP32 program, but not for the Arduino program. Will try that to see if it makes a difference! @@digitarum1014

  • @pperez1224
    @pperez1224 5 месяцев назад

    Thank you. If i where to control the robot from my PC over Wifi , what would be the port & ip to send UDP packets which contains the JSON protocol? Its not in the documentation which however is about Wifi?Said otherwise , do you have any clue on how the Android app controls the robot. Thanks

  • @makeascenestudios
    @makeascenestudios 2 месяца назад

    What third party battery did you end up using? I'm having an issue with the provided battery providing enough power when trying to control the robot car via its WiFi with the Elegoo app. The WiFi module keeps shutting down as soon as the motors engage. I'm assuming not enough power from the battery.

  • @melissafabian7878
    @melissafabian7878 Год назад +1

    Hello, I follow all the steps but when downloading program into the camera I get this error "failed to connect to ESP32: timed out waiting for packet headed. Any suggestions ?

    • @bots4all
      @bots4all  Год назад +1

      I never saw that error message. I searched on internet and found some recommendations from people who had this issue:
      1. Some people say that pressing the reset button helps. The "Camera module FAQ.pdf" document, which came with the Elegoo kit, shows that pressing this button is part the camera debugging steps (page 4).
      2. Others say that the issue is due to your PC, its USB port, or the USB cable. Apparently, using a USB3 port instead of a USB2 port with a USB3 cable can fix this issue.
      For more info, this may help: github.com/espressif/arduino-esp32/issues/1497

  • @stemmunity
    @stemmunity Год назад

    Good instructions, but wouldn't compile. In app_httpd.cpp have following error messages "Line 22 - #include "fd_forward.h" : no such file or directory. Same for line 23 - #include "fr_forward.h". Then Line 65 - 'mtmn_config_t' does not name a type; did you mean 'wifi_config_t'?
    Did you come up with these error messages?

    • @bots4all
      @bots4all  Год назад

      I didn't have these problems. Did you do the step of copying and pasting the link dl.espressif.com/dl/package_esp32_index.json to the
      “Additional Boards Manager URLs” as described in Camera module FAQ.pdf? If you did and still got that error about not finding fd_forward.h and fr_forward.h, then you have to manually install Espressif Systems version 1.0.6 as shown in this video ruclips.net/video/knxe3zkd6rA/видео.html

    • @stemmunity
      @stemmunity Год назад +1

      @@bots4all I found the solution. Needed to install version 1.0.6 for esp32 board library.

  • @ezrakoper
    @ezrakoper 2 месяца назад

    Hello.
    Q1 - why you messed with the ESP32 from the beginning? For testing HTTP is OK no one cares if it is HTTPS or specific password. From the comments below I see that it may damage the car

  • @umang321
    @umang321 4 месяца назад

    Mine says #include "fd_forward.h"
    compilation terminated.
    exit status 1
    Compilation error: fd_forward.h: No such file or directory Even though I did the same steps, do you know why?

    • @bots4all
      @bots4all  2 месяца назад

      Please check if you have the esp32 library version 1.0.4 installed as shown at 3 minutes 50 seconds into the video. The video shows that it's already installed in my Arduino environment because I installed it prior to recording the video. In your case, it may show a different version of the esp32 library installed. If this is case, use the pull down menu with version numbers right below "more info" on the left side, select 1.0.4 and click install. That should take care of the error. If not, please let me know. Another poster here reported the same error and fixed it by installing version 1.0.6 for esp32 library. It is hard to predict which version would work because the maker of this car may change the chips and software versions over time.

  • @viacheslavgurov4371
    @viacheslavgurov4371 4 месяца назад

    Hello, nice job. Can you write a simple manual on how to change the bot's speed, please? And you will speak slower and more distinguishably non-native speakers can be your followers too.

    • @bots4all
      @bots4all  4 месяца назад

      I apologize for speaking too fast. I will take that into consideration for my next video. For now, please reduce youtube's playback speed to 0.75 or 0.5. For the manual on how to change speed, I need a bit more time to produce it.

  • @leoeli9260
    @leoeli9260 Год назад

    hey, thanks for the video. I have had a problem with my robot, i followed your steps but it is now irresponsive after the upload.

    • @leoeli9260
      @leoeli9260 Год назад

      could you please help?

    • @bots4all
      @bots4all  Год назад +1

      Sorry to hear about that. The good thing is that you can always restore to the original code. What chipset do you have, TB6612 & MPU6050 or TB6612 & QMI8658C? Could you upload the original code from the corresponding chipset to see if it works? Did you turn the switch next to the USB back to "cam" after the upload? Can you see the network? Can you see the camera image on http?

    • @leoeli9260
      @leoeli9260 Год назад

      @@bots4all I have the TB6612 & MPU6050 chipset and after uploading the original code, i can't use my phone to control it even after linking the two. The network is established perfectly and the camera works. i lost the control functionality

    • @bots4all
      @bots4all  Год назад +1

      @@leoeli9260 If you can connect to the car's WiFi, start the app and see camera images but you can't move it, that seems to indicate that your upload-cam switch is in the upload position. It happened to me several times. Please, check the switch and move it to the cam position.

  • @DeltaFichier
    @DeltaFichier 6 месяцев назад

    Failed uploading: uploading error : exit status 2
    Please help me

  • @thomas2004ch
    @thomas2004ch Год назад

    what a programming language is it? I've heard one can use the scratch?

    • @bots4all
      @bots4all  Год назад

      Arduino uses its own programming language, which is similar to C++.

  • @dronefilmsgermany
    @dronefilmsgermany Год назад

    Bro did you learn python in school. Can you please recommend some courses for me and my son to learn. I’m 41 and be is 11😂