I fully empathize with your note on the code not being approachable for 12 yes old or even high schoolers. I have tried to use cv2 & socket libraries to do the work in Python. I see your sample code, thanks for sharing
. I would love to see more examples, if there is a chance. Thank you in advance!
If you have already downloaded Arduino IDE, you can upload a sketch to an Arduino by:
Opening a sketch, click the check mark for uploading, when it’s done click the arrow button.
I have asked @martinh0110 to provide the code.
Thanks for your reply and interest. I’ve got code for all the hardware working and tested by my students - who learned a lot manipulating it, though some things like actual line following, I left for the “student”.
I’ll get it posted and linked this week, maybe tomorrow!
I just saw this thread and see that you have surmounted all the obstacles. But just a a few comments about the Elegoo kit.
I got version 1 or maybe 2 of this some years ago. From a hardware point of view, everything was basically configurable. Later robot versions they made it so you really can't go wrong wiring it up. This is great when used as a toy but not so good as an educational device.
Even with the latest version you can probably use old version firmware with minimum modification, or throw it all out and start from scratch (I basically did that, but I'm 74 years old, retired after 43 years in industry, and not a teenager)
So I really think you can make what you want with this kit. However I want to point out their Tumbler Self-Balancing robot car kit. With this one, when you download the documentation package, you get virtually a course in how it works. Most thorough documentation I've seen with any kit, and frankly a college level project if you don't want to use it as a toy, but want to understand the physics involved.
They're fantastic, I'm trying to control the motor from a code written in Python. We have an image processing model, that captures the esp32 camera module's picture, classifies it, and has to communicate with the motor accordingly. I've used the communication protocol and socket library but no luck yet. I think it has to be on a given mode.
Hi @martinh0110, thanks a lot for your code examples. I create a workshop for a project week at our high school and your examples are helpful. I share your point of view that the original tutorials are to hard to understand for beginners.
It would be easier for people to find.
The community could help you improve it(with your permission of course.)
There are more reasons too.
No offense but I like to see the content of what I will download before I download it.
I can appreciate that. But it’s simply a zip of arduino code and a few pdfs. Maybe I’m old, but getting stuff from GitHub has always been confusing to me. I’m not sure how the newbies do it!
Thank you for this, Martin! Like @almytom I'm also 74, retired after 40+ years in IT. I bought the V4 version of this car both to stimulate my brain and to refresh my memory of coding for Arduino - and also because I get a kick out of programming! I was REALLY disappointed that it did neither. So it's nice to see that others have the same view as me. I'm hoping, therefore, that your code examples will give me the stimulus that I want!
You’re very welcome! Keeping the brain sharp is important and coding is a great way to work it. It’s one of the reasons in my pending retirement years I wrote and continue to develop my MakerPlot-J software to act as a plotter/data logger/HMI for microcontrollers. I hope to still be improving it when 72 rolls around!
I echo @bup2502 's comments - I'm 72, and bought the car for the same reason. Most of the information I've been able to find is about version 3, which seems to have different connections, so the pin numbers don't work.
Your programs work on my v4, and have given me a jump start in my own programming.
Thanks.
Elegoo has made a large improvement on the V4 (over all the previous)... with a better manual (still in Japanglish, but better pictures and fewer jump-cuts in the build video), better parts (TB6612 over L298N) and a very improved cell phone app. All available on their web site.