I have a RIODuino for controlling an individually addressable LED strip. I am able to control the strip from the RIODuino fairly easily, however I would like it to be able to set different modes from the RIO’s main program. To do this, I would like to use SPI communications. However, I can’t get my head wrapped around how the communication works. All communication I’ve done in the past has been very simple, event based communication.
I would like examples for the RIODuino (using arduino) and Java (preferably command based).
Thank You!
That page says “The program didn’t work reliably with an Arduino Uno”.
The RIODuino is based on the Arduino Uno…
However, I am willing to try it out.
Our team is doing this over the serial port connection to the RioDuino from Java using a “Bling” subsystem and commands. We are controlling the Adafruit addressable LED strips that are available at Andymark.
The driver code on our Rioduino can be found here:
Our robot code is here:
Have a look at the Bling subsystem class written by one of our students.
Thank you so much, that is exactly what I was looking for – and exactly what I was doing too (though I’m using the FastLED library for control).
This will be a huge help in getting our robot to shine!
Glad to help!
This code has been 3 years in the making - we’ve had the LED strips installed on practice robots and on lab benches, but never had time or opportunity to install it on our competition robot. This year we made it a priority and we finally made it in. Our controls team students are thrilled.
Please let me know if you encounter any issues or enhancements!