A weekend project was to use the Donkey platform to control a differential drive car. This car records the same data (angle, throttle, camera image) as other cars but turns uses the steering angle value to apply different power to each wheel. Here is the code to setup the drive script and you can see the mixer to learn more about how the angle + throttle values are converted into the power applied to each wheel.
9 Comments
Sarthak J Shetty
6/9/2017 06:57:43 am
how does the car without a servo?
Reply
Roscoe
6/9/2017 07:20:35 am
I updated the post to answer your question.
Reply
Benjamin Ashbaugh
5/22/2018 11:58:09 am
YEAH! I built one just like this. Thanks for help finding the code!
Reply
jishnu
2/5/2019 09:48:20 pm
can you help to find the code for differentila drive,what motor have you used servo or DC
Reply
Saatwik Mandava
11/21/2018 10:41:12 pm
Can you please tell us the parts you used for this differential drive?
Reply
Will
11/22/2018 01:13:32 am
I just separated the part for this here. It's untested in its current form but close. I'm building a rover like this with my son this break so I'll push fixes if I find bugs. https://github.com/autorope/donkeypart_differential_drive
Reply
Sathyanarayanan
1/9/2019 06:48:20 am
Is it possible to make this entire thing without adafruit HAT,
Reply
Joel
3/29/2019 11:08:57 pm
I was wondering if you could run the motors by using a H-bridge controller like L293D instead of the Motor Hat and the changes that would be required
Reply
johannes
5/8/2021 02:36:58 am
Did you figure it out if to works with simple / cheap L293d, too?
Reply
Leave a Reply. |