- This topic has 2 replies, 3 voices, and was last updated 8 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › How to interface MOC7811 sensor with 8051 Microcntroller
Hello Everybody,
I am new in this field kindly help me regarding "How to interface MOC7811 sensor with 8051 Microcntroller"?
I have made following connection but before making connection with Microcontroller I am able to see the sensor output (+5V) pulse, but once I connect the sensor output to controller no +5V pulse is obtained and not sense by controller. Please correct me in this case.
Thanks,
Vishal
Hi Vishal
Make connections in the following manner: Short both these pins, anode of RX (emmiter) and cathode of TX, and then connect them to the GND pin of microcontroller. Also give +5 V to TX's anode using a current limiting resistor(1K would be fine) in series. Pull-up the RX's cathode (collector) using a 10K. This cathode-10K junction would now give you the analog voltage that you'll need to work with. This is so because the RX part behaves like a 3 pin NPN transistor with its emmiter and collector pins as told above while the base pin is the IR light it receives from the TX part.
Hope this helps
Good luck
how you connect sensor with micro controller?