Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!
Eric's Sainsmart 4WD Arduino Robot Code
by EricWilliam, published
Use This Project
Give a Shout Out
If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.Print Thing Tag
Here is the current code, information and files for my Sainsmart 4WD robot build. The code is not optimized whatsoever but functions well enough at this point. So many people have asked for the code due to troubles- I decided to post it here.
You will need to modify the code to suit your setup and connections but this should provide a baseline for anyone struggling with their robot.
Good luck in your build. If this helped you please consider leaving a comment or thumbs up on my YouTube videos. There are several covering much of this robot build. For future updates please consider subscribing.
I ask 2 things of anyone who uses this:
- Give credit when possible to those who help you
- Improve and share code to better the experience for everyone
Updated code an instructions:
This robot build and my other Arduino videos:
Most recent Video:
If you are here due to a high level of frustration with the programming, hardware and/or components- fear not. You are not alone. Check out the below vid (no link so as to not say bad things about anyone's products). I just about went crazy when I first built this thing- It DOES get easier. Hence me sharing the code ;)
Update V9 Code:
Updated to better deal with corners and direction change
Simply edit the code to suit your pin configuration and comment out any items you don't want to include. From there you should have a decent base to develop your robot from!
Mount for distance sensor servo and sensor itself can be found on Thingiverse- links to be updated.
If you get your robot working using this code or any mods/info found here- please share with me via YouTube. I would be truly excited to see your creation.
Upgrade this Thing with Thingiverse AppsCustomization
Edit, personalize, or revise this ThingPrint Fulfilment
Order a print of this ThingTools and Utilities
Repair, slice, or enhance this Thing
Eric's Sainsmart 4WD Arduino Robot Code by EricWilliam is licensed under the Creative Commons - Attribution license.
What does this mean?
- You must attribute (give credit) to the creator of this Thing.
- Remixing or Changing this Thing is allowed.
- Commercial use is allowed.
Show Some Love
Say thanks by giving EricWilliam a tip and help them continue to share amazing Things with the Thingiverse community.Tip Designer
We're sure EricWilliam would love to see what you've printed. Please document your print and share a Make with the community.
To post a Make simply visit this Thing again and click I Made One to start uploading your photo. It’s even easier to post a Make via the Thingiverse Mobile app (available via Google Play and Apple App Store).