Programming Elegoo Smart Robot Car v4.0 | Part 1
Вставка
- Опубліковано 17 січ 2025
- 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/bot...
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.
Very useful. Thanks a lot
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?
Did you set the Partition Scheme to "Huge APP" in the Arduino IDE settings?
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
Great video. I just assembled one with my son and it appears to be a secure network now. However, the book does not provide the WiFi network password. Have you seen or heard of a specific password that must be used?
Trying to understand how to edit and turn off the heartbeat feature. If I have a few minutes of inactivity the phone can't connect to the video anymore and I need to reset the car and the wifi. Looked like disabling the heartbeat might do it but the video was hard to follow on that detail.
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.
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
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 ?
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
Very useful! ❤️
Thank you!
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
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?
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 ua-cam.com/video/knxe3zkd6rA/v-deo.html
@@bots4all I found the solution. Needed to install version 1.0.6 for esp32 board library.
Love your videos
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?
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.
i like your video
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.
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.
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.
could you please help?
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?
@@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
@@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.
Failed uploading: uploading error : exit status 2
Please help me
what a programming language is it? I've heard one can use the scratch?
Arduino uses its own programming language, which is similar to C++.
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😂