|
Re: How to get data from an Arduino and send it to a Roborio
Last year, I programmed an RGB light strip to go on our robot. It looked really good, but we wanted to be able to change what the lights were doing based on a condition in the match, or simply because we wanted to change them.
In the end, we just used four digital wires from the arduino to the roboRIO for communication, which gave us support for 2^4 = 16 light states. Of course, this is not the same as transmitting actual larger amounts of data, which would certainly require an analog communication. I2C should serve you well, or PWM, but if you don't need that much data to go from the Arduino to the RoboRIO, you could still use digital pins.
On a side note, why are you choosing to use the Arduino to control sensors? If you just wire the sensors to the roboRIO then you could skip this problem entirely.
Good luck!
|