Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Please help with reading Modulated IR OUTPUT

Status
Not open for further replies.

Picman99

New Member
Hi I'm using a 16F84A (when I'm not using a 16F628A) but thats beside the point. I am building a Hexapod and am trying to control direction using modulated (38khz) ir signal. Transmitter -->works FINE. Receiver should be high output shifting to low in IR presence. I was going to read its output with a PIC (PortB.4) and if high go to one routing if low goto another. The problem is that the low signal is around 1.8V so the pic is not registering a low and therefore not switching. Do I have to use the PORTA as comparator function??????????? Please help. By the way I am programming in high level basic and am not too up on assembly code!!!!!!!!!!!!!!!!!! Find Attached the IR Test Code.
 

Attachments

  • irtester.txt
    241 bytes · Views: 304
Picman99 said:
Hi I'm using a 16F84A (when I'm not using a 16F628A) but thats beside the point. I am building a Hexapod and am trying to control direction using modulated (38khz) ir signal. Transmitter -->works FINE. Receiver should be high output shifting to low in IR presence. I was going to read its output with a PIC (PortB.4) and if high go to one routing if low goto another. The problem is that the low signal is around 1.8V so the pic is not registering a low and therefore not switching. Do I have to use the PORTA as comparator function??????????? Please help. By the way I am programming in high level basic and am not too up on assembly code!!!!!!!!!!!!!!!!!! Find Attached the IR Test Code.

Try checking the IR circuit in the hardware section of my PIC tutorials, it's ABSOLUTELY VITAL! that you include the decoupling components shown, this could be your problem - I also like to use a pull-up resistor on the output, again this is shown on my circuit.

I presume you're running the transmitter LED at very low power?, and shielding it from the receiver?.
 
Ir Receiver

Thanks Nigel. Sorry I took so long to get back. I had decoupled but only with 1000 pics. Replaced with 47 micros and all seems well. I'm building up hard wired boards now. Fingers Crossed. Thanks again :D
 
Re: Ir Receiver

Picman99 said:
Thanks Nigel. Sorry I took so long to get back. I had decoupled but only with 1000 pics. Replaced with 47 micros and all seems well. I'm building up hard wired boards now. Fingers Crossed. Thanks again :D

Don't forget the 47 ohm series resistors as well!.
 
Status
Not open for further replies.

Latest threads

Back
Top