Log in

View Full Version : Using an Andymark Arduino on a robot.


klink135
20-12-2015, 20:46
Hi! Our team for a practice project has been making a prototype garbage robot. We want Leds on it that change with controller input of the driver station. I have two questions
1. What are the options we have to make this system work.
2. If possible could we use the Roborio to give the Arduino the inputs.

KohKohPuffs
20-12-2015, 21:12
I think roboRio has serial ports, and so does Arduino, so you can send data from the roboRio to the Arduino, and the Arduino can translate the data into something that can be run through a logic gate. RoboRio definitely has PWM outputs, and the Arduino can read that using analogRead() or something like that.

NOTE: I'm a CADer, not a coder nor electrical guy. So if I'm wrong... well... uh... ::ouch::

EricH
20-12-2015, 21:15
Arduino has USB (USB-B, I think). RoboRIO has USB. You should be able to use that to your advantage.

GeeTwo
20-12-2015, 21:46
Unless you need a larger number of ports, there isn't much you can do on the Arduino that you can't do with just the 'RIO. We controlled some RGB LEDs on our robot last year using a couple of relay ports and spikes, though we could have used 12V relay modules given the small current draw of the LED strips. If you do need an Arduino, I agree that USB is most likely your comms path of choice, because it is supported by hardware buffering and canned software classes on both sides of the connection.

Ari423
20-12-2015, 21:49
Arduino has USB (USB-B, I think). RoboRIO has USB. You should be able to use that to your advantage.

It has both USB-A (2x) and USB-B. I would imagine since most Arduinos use a mini- or micro- USB port (I can never remember which is which) you will have more luck finding a cable for the USB-A ports than the USB-B port. That being said, both have built-in libraries for Serial communication, so interfacing the two shouldn't be too difficult as long as you make sure they are encrypting and decrypting the Serial the same way. (Disclaimer: I haven't done this exactly before, but I did something similar using a PC instead of a RoboRIO)

Joe Ross
20-12-2015, 23:26
Unless you need a larger number of ports, there isn't much you can do on the Arduino that you can't do with just the 'RIO. We controlled some RGB LEDs on our robot last year using a couple of relay ports and spikes, though we could have used 12V relay modules given the small current draw of the LED strips.

The roboRIO can't control neopixel LEDs, which can do much more then the LED strips you used.

If you do need an Arduino, I agree that USB is most likely your comms path of choice, because it is supported by hardware buffering and canned software classes on both sides of the connection.


What USB library do you suggest for the roboRIO?

DrWaSaBi
23-12-2015, 15:18
Unless it's the number of ports you need, or your loading some LED library. I would think you could drive them right from the RoboRio. Most LED strips I've seen just take some sort of pwm. I would think you could drive them direct.

Dr. W

techhelpbb
23-12-2015, 15:50
This may help:
http://www.chiefdelphi.com/forums/showthread.php?threadid=131776

Greg Needel
26-12-2015, 12:39
I think you should check out the RIOdunio. It is a custom arduino designed to talk to the roborio through the mxp port. You mention controlling LEd's we have a special breakout for neopixle strips on every RIOduino. They are also available from AndyMark.

http://www.andymark.com/product-p/am-2996.htm