View Single Post
  #1   Spotlight this post!  
Unread 23-01-2012, 19:15
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Ultrasonic sensor help needed

Hey guys
Been playing around with the ultrasonic sensor for a few days now. We have it set up plugged into the analog port 1. I initially used the labview example to test it, but the number given never changed. Today, I worked with new code that I found online. Attached is this code. It correctly gets the voltage like it is programmed and displays it to the dashboard, but in lays a tougher problem. Once again the number never changes. The voltage shown sticks at something like 4.56 for the sensor and never changes if I move it around.

Any ideas?
Attached Thumbnails
Click image for larger version

Name:	Ultrasonic code picture.jpg
Views:	69
Size:	15.2 KB
ID:	11535  
Reply With Quote