Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Help getting started with Arduino (http://www.chiefdelphi.com/forums/showthread.php?t=123516)

Zaque 22-12-2013 02:07

Help getting started with Arduino
 
Hi,

One of our mentors has several Arduinos he has made available for us to use this year. So far, my ideas for use have been limited to controlling LEDs. Towards this goal, I was wondering what the best way is to get data, specifically the getAllianceColor data, to the Arduino. I have thought about using the serial port, but I am not sure how to implement this in the robot Java code. Any other methods, or any step by step tutorial would be greatly appreciated.

Thanks in advance,
Zach

BigJ 22-12-2013 10:04

Re: Help getting started with Arduino
 
When we did this last year, we wired one of the pins on the Arduino board to one of the DSC Digital I/O signal pins, then had the robot code use that DSC pin as a digital out, outputting the data we wanted to read (in your case, the alliance color).

yelk11 13-01-2014 08:45

Re: Help getting started with Arduino
 
You could have a simple switch, and before the match just switch it depending on your alliance colors.


All times are GMT -5. The time now is 11:41.

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