Thanks to both of you!
I only want to make a simple communication and PIC 16F628A has on board PWM, but I don´t know how it works.
Can you help me?
Thanks to both of you!
I only want to make a simple communication and PIC 16F628A has on board PWM, but I don´t know how it works.
Can you help me?
Hi there,
The mentioned sensor is a three pin IR sensor/demodulator. It receives a modulated stream of 38/36 KHz IR and gives the output via its pulled up open collector port. So the output for a valid 1 is 0 that is inverted. It works best when the duty cycle for the carrier (38KHz nominal depends on the last two digits of the sensor part no.).
Take an AND gate. Feed 1 input with the 38KHz output from your PWM module. You can set up your PWM module in the PIC by the PBP HPWM command. Now feed the data (non-inverted) to the other input of the AND gate. Amplify (a higher current is needed for effective IR transmission over the ranage of 5 to 10 meters) the output of the AND gate and drive some IR LED. That goes for the Tx part.
For the Rx part , just invert the output from the sensor and feed it to the PIC.
for the software you can use the Serial Out and Serial In of PBP. A maximum possible speed is 2400bps.
Regards
Sougata
Sougata,
Could you make some code examples in assembler about the Tx and help me?
Thanks a lot!
Alan
Hold on a second, this has already been done.
I built one myself a few years ago and it worked great.
http://www.fukushima.us/UIRT2/
I have since upgraded to the newest usb version.
http://www.usbuirt.com/
Thanks!
But I want to create my own, so can you send me some code examples in assembly languaje, not an hex file???
Again, thanks!
I can't send you anything, its not my code. You could contact the author and see if he is willing to send it to you.
Bookmarks