Got this from a local store but I'm not sure how to wire it.
The product can be viewed here: http://cgi.ebay.com.sg/Ultrasound-Motion-Sensor-for-Robotic-Basic-Stamp_W0QQitemZ350300122391QQcmdZViewItemQQptZLH_DefaultDomain_0?hash=item518f83ad17
Well, this sonar sensor runs on 6-12VDC, which would fry a regular microcontroller. As for the “J”, I have no idea what that is. The Transistor and Diode is required. I assume the “J” is some sort of light or output device, what it is exactly I don’t know. I believe that this is a digital sensor, when it sees something, the output goes “High”, and when it doesn’t it goes “Low”. You can try and run it on 5VDC and get lucky.
I would connect it to your power source(6v using 4 AA’s or something) and check the voltage on the output pin and confirm what krumlink mentioned. Since we really don’t know if it’s analogue or digital, connecting it to a multimeter would be the route I’d go.
Check to see if the voltage changes vs distance…if it i does, you can read it with an adc…if it’s just high or low, go with digital reading. jut make sure it is in fact 5v.
You could also hook up the output to a led to see if it goes high or if the level varies when something is in front of it if you don’t have a multimeter. make sure to use a resistor just in case.
I don’t think the transistor is necessary though if you can confirm the output voltage(which it says 0v-5v) still to be on the safe side, use 5v on the emmiter side hook up an led and resistor and see what happens.
Have no idea what J is…
EDIT: of course a quick search on google found this
I think J is a relay switch…i too have this sensor. i thought it is equillant to ping sensor. but it is not. i totally disappointed. it is a only proximity sesor.