ober WROTE:kenshih WROTE:
yes. i've tested the sensor with nothing on but the 12v input and the ground directly from the power supply to the sensor and it works like what i've posted earlier. currently, the problem im facing now is regarding the disability of feeding the output from the sensor to my pic that contains the coding for testing the sensor as shown earlier.
Want to makesure we understand each other. You say you test the sensor with 12V and Gnd, and it works. I think what robosang proposed is not only to power it and check the LED indicator, but to measure the voltage changes at the output where you pull up to 5V with resistor. Any voltage changes? It should have changes from 5V to 0V when the sensor detected something.
yes, jus to make it clear, i'll list out what i've tested so far:
1. sensor alone with only 12v pow and ground (results: works by emitting light on the tail of the sensor)
2. sensor attached to the circuit with pic and coding in it (results: there is still light emitting from the tail of the sensor[sensor working] but the LED on the breadboard that is connected to the output of the pic does not show any response)
3. and lastly the circuit alone with "manual switch"(i used jumper wire connected to 5v along with a 10k ohm resistor to represents '1' and connect it to the input pin and pulling out the jumper wire for '0') (results: LED changes state[on/off] as i pull/plug the jumper wire)