Log in

View Full Version : How to attach Ultrasonic Sensor


Krestent
07-10-2011, 15:56
Hi,
I can find no information on how the ultrasonic sensor is to be connected to the Cortex controller. I did find info suggesting that the Input cable is supposed to go to analog and the output cable is supposed to go to Digital, but no dice there. Is there something I'm missing?

DonRotolo
08-10-2011, 10:35
Does this help?
http://www.vexrobotics.com/products/accessories/sensors/276-2155.html

Krestent
10-10-2011, 16:34
That was the first place I looked. All info on thatpage shows how to connect the sensor to the old PIC controller. The confusion is that the Cortex does not have any ports labeled "Interrupt".

Joe Ross
10-10-2011, 16:57
On the cortex, all digital ports may be used as interrupts. It's possible that your programming environment may have restrictions on what ports can be used with the ultrasonic sensor.

Krestent
13-10-2011, 16:04
So I hooked up the sensor to Digital 6 and 7, hooked it up, and found that any time I program the sensor into a program using EasyC, the Cortex refuses to execute anything. Do I have a bad sensor?