|
Re: Sonar Sensors legal
Treat it as an analog device. The value that the sensor puts out is higher the closer the target is. You'll need to do some minor testing: Put the sensor on the robot. Put the ball 5" away. Take a reading. Move the ball 6" away, take a reading. Move the ball, read, repeat.
From the data points collected you should be able to create a formula that will convert the value into distance. (like .1 volt ~ 1"). The formula will depend on the IR sensor that you use. If you buy the ones from the Robodyssey.com IR sensors page they come with a little BasicX program that shows the distance formula.
Good luck!
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
|