|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Using an Andymark Arduino on a robot.
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... ![]() |
|
#2
|
|||||
|
|||||
|
Re: Using an Andymark Arduino on a robot.
Arduino has USB (USB-B, I think). RoboRIO has USB. You should be able to use that to your advantage.
|
|
#3
|
|||||
|
|||||
|
Re: Using an Andymark Arduino on a robot.
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.
|
|
#4
|
||||
|
||||
|
Re: Using an Andymark Arduino on a robot.
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)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|