Thread: Range Finder?
View Single Post
  #11   Spotlight this post!  
Unread 01-09-2014, 02:33
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Range Finder?

Quote:
Originally Posted by timytamy View Post
Are the unpredictable results consistent with:



Our software team had similar spikes, and think that it is due to noise on the analogue signal.

Could those of you who used the Maxbotics sensors successfully provide some more info on how you did so? Which signal did you use (analogue/PWM/UART)? If you did anything non-trivial in reading the input (such as filtering), could you also provide some sample code?

We are also at a loss on how to read in the PWM signal (to get over the analogue noise above) directly into the cRIO (and probably roboRIO), if anyone has experience with reading in PWM signals it would be great to hear.
We used a Maxbotix ultrasonic sensor this year. We wired it directly to our cRIO's analog breakout and it worked well for detecting how far away the goals were. What language are you programming in and how many other devices are plugged into your analog breakout?
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)