Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Arduino Input to Java Code (http://www.chiefdelphi.com/forums/showthread.php?t=141919)

RamTech 59 16-01-2016 20:49

Arduino Input to Java Code
 
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

Re: Arduino Input to Java Code
 
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

Re: Arduino Input to Java Code
 
Thank you, I'll look into it.


All times are GMT -5. The time now is 10:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi