I have my robotics class working to implement an ultrasonic sensor on their respective EZ-Robots. Each group uses a different type of robot - JD, Six, & Roli. I'm trying to help out the student with JD, but some of the problems extend to the other robots.
First of all on JD, there is no easy way to mount the ultrasonic sensor onto it. I tried removing JD head, but this seems to cause disconnection problems when using the ultrasonic sensor. So, for now, I have JD's head back on and loosely mount the ultrasonic sensor onto JD's body.
I have the sensor connected as described in the Ultrasonic Distance tutorial (using ports D21 & D22). Using this configuration along with the Ultrasonic Distance control, I am only able to get a value of 255 displayed wherever the sensor is pointed. The value never changes. There is a red LED on the black/red leads that always remains red. I get the same results using the Collision Detection and Radar controls, too. Any ideas on what I might be doing wrong?
Also, is there a way to obtain the actual distance reading that can be used as a trigger in a script?