ultrasonic sensor

hi im using easy c not v2 but the first one and i need a quick code that i can work off of for my ultra oh and which ports do i plug the input and output into i know the interuppts but which numbers thanx

open the ULTRASONICTEST project in the “Test Code” folder in your vex install directory and follow the instructions that are commented out of the code which are:
Connect Input Wire to Digital Output 11
Connect Output wire to Interrupt 1
then load the program onto the vex microcontroller
Near = 2, Far = 100

I’ve tried following the directions exactly, and can’t get anything to happen. The test code isn’t functioning at all. Is there anything else that can be done to test the sensor?

This is one possibility:
Double click the I/O icon at the top of your program flow. This will open a picture of the Controller. Look at the Digital/Analog schematic on the right. Make sure that wherever you plugged the plug labeled “Input” from your Ultrasonic sensor (I am assuming port 11 since you are following the instructions) is showing the arrow pointing to the right (away from the little circle that represents the pin). That means that port is set as OUTPUT as it should.You could inadvertently have set it as INPUT simply by left-clicking on it (try it to see how it flips), or even worst if you right-click the port turns into Analog and you won’t get any reading as well.
Hope it helps, good luck

I can not respond to your other posts because they are in the Experts Area…

Try this link, Trying to use two Ultrasonic Sensors

The sensor was set incorrectly, and now when I run the test program it registers a “0”, once. I can’t get it to register more than once, and only when I compile and download it from my PC. Any further advice?

Thanks.