View Single Post
  #7   Spotlight this post!  
Unread 02-03-2017, 11:03 AM
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
no team
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Austin, TX
Posts: 1,134
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Arduino Communication with Roborio

Quote:
Originally Posted by euhlmann View Post
indeed

Code:
int PWMsignal;
// ...
if (PWMsignal == 42)
// ...
I would say that using that method would be highly susceptible to problems. You're relying on some undefined capacitance on the analog pin of the Arduino, cabling, and RoboRIO's PWM pins. You can use I2C, SPI, UART, or UDP/TCP if you get an Ethernet shield.

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
__________________
Controls Mentor
@rnazaretian

Current team:
Team Appreciate, FRC 2468

Previous teams:
Team Fusion, FRC 364 (2003 - 2015)
Garnet Squadron, FRC 4901 (2015-2016)

Last edited by RyanN : 02-03-2017 at 11:08 AM.
Reply With Quote