View Single Post
  #4   Spotlight this post!  
Unread 30-01-2014, 23:32
wadehas wadehas is offline
Registered User
FRC #1258
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2004
Location: Seattle
Posts: 7
wadehas is an unknown quantity at this point
Re: Programming MaxSonar EZ1 Ultrasonic Rangefinder in Simple Robot Template

We have been having a similar issue with the Sonar sensor. Using this sensor is not complicated and appears that you have it right.

We had this working a couple years ago, but never really had a need for it until this year.

We have ours wired with red (+5v) from analog port to +5v on the sensor, ground from the analog port to ground on the sensor, and signal from analog port to "An" pin on the sensor.

We confirmed with a multimeter that the sensor was getting +5v, so it was getting the appropriate power.

We then checked the signal voltage directly on the sensor, and it never read about .066v (66 mv) and matched what the software was reading from the analog port, and this was with the sensor pointed at the tile floor at about 3' above the floor, which should have resulted 0.3v, and pointing at it a whiteboard about 10-15' away still resulted in 0.066v...

We have concluded that the issue is with the sensor itself, and are going to be replacing the sensor.


------
Wade Hasbrouck
Team 1258
Seattle Lutheran HS
Programming Mentor
Reply With Quote