Log in

View Full Version : Arduino Input to Java Code


RamTech 59
16-01-2016, 20:49
Is there any way to read Arduino usb input through Java code and passing it to the RoboRIO with the 2016 software?

AndyB871
16-01-2016, 21:44
Sure, You can use the MXP serial port, onboard serial port, USB-Serial, I2C, SPI,

The list goes on. Since you said USB input, I'm assuming you mean usb-serial. We're having issues with the roborio code crashing when we do _anything_ with usbserial, but it should be relatively simple for you to try using the onboard RS232 port on arduino channel 0

Take a look at the SerialPort class in the wpilib

RamTech 59
17-01-2016, 16:08
Thank you, I'll look into it.