Uploaded code to the code area - http://www.rebeldroids.net/gallery/thumb...p?album=21
This is an example holonomic drive for an HO15 - it "just" adds the appropriate inputs together to get values to drive the wheels.
![[Image: thumb_Sentry_Brain.jpg]](http://www.rebeldroids.net/gallery/albums/userpics/10017/thumb_Sentry_Brain.jpg)
Arduino code for 4-wheel holonomic drive and 5 LED WS2811 lights
Additionally, I added a little bit of debug stuff:
* Set debug=false to turn the test debug stuff off.
* On start it rotates each wheel in turn for 1/4 second
* Then does it the opposite direction
* Then repeats (you may want to make the loop do it fewer times if you leave the test in)
* Turns on or off the onboard LED if the rotate R/C input is moved right or left.
This is an example holonomic drive for an HO15 - it "just" adds the appropriate inputs together to get values to drive the wheels.
![[Image: thumb_Sentry_Brain.jpg]](http://www.rebeldroids.net/gallery/albums/userpics/10017/thumb_Sentry_Brain.jpg)
Arduino code for 4-wheel holonomic drive and 5 LED WS2811 lights
Additionally, I added a little bit of debug stuff:
* Set debug=false to turn the test debug stuff off.
* On start it rotates each wheel in turn for 1/4 second
* Then does it the opposite direction
* Then repeats (you may want to make the loop do it fewer times if you leave the test in)
* Turns on or off the onboard LED if the rotate R/C input is moved right or left.
I build in Lego! Blogs at:
http://L3-G0.blogspot.com (or http://L3-G0.com for short)
http://MCK-Y.blogspot.com and
http://BB-8.blogspot.com
http://L3-G0.blogspot.com (or http://L3-G0.com for short)
http://MCK-Y.blogspot.com and
http://BB-8.blogspot.com