03-09-2018, 11:07 PM
Code has been updated - http://www.rebeldroids.net/gallery/thumb...p?album=21
I'd been using a Leonardo with Serial1 to talk to the motor controllers and Serial for debug to the computer. That won't work with Uno's though, so I've added a folder with an Uno version.
![[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'd been using a Leonardo with Serial1 to talk to the motor controllers and Serial for debug to the computer. That won't work with Uno's though, so I've added a folder with an Uno version.
![[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.