![]() |
Arduino Communication with Roborio
We have an arduino that runs the lights on our teams robot. We were wondering if there is a way to have the arduino react to commands made from the driver station. Thanks for any help you can provide.
|
Re: Arduino Communication with Roborio
what do you mean by the driver station commands? what you could do you could use a pwm line or dio from the roborio to the ardouino and read it there
|
Re: Arduino Communication with Roborio
You can have the Driver Station talk to the roboRIO, and then have the roboRIO talk to the Arduino using the serial port or I2C.
|
Re: Arduino Communication with Roborio
Quote:
|
Re: Arduino Communication with Roborio
I would do something like this on arduino side, you could also have multiple pwm values for diffrent lights if you wanted it to.
Code:
float PWMsignal;//the signal from the roborio |
Re: Arduino Communication with Roborio
Quote:
|
Re: Arduino Communication with Roborio
Quote:
Code:
int PWMsignal;Another dead simple way would be to use some DIO as outputs. You can have 2^n modes where n is the number of outputs you use. From Easy to Hard (my opinion of course): DIO, UART, TCP/UDP, I2C |
| All times are GMT -5. The time now is 07:10. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi