PDA

View Full Version : Infrared x PIC



ewandeur
- 28th December 2009, 15:57
Hi there,

I'm almost a newbie, so be patiente with me, ok?
I'm working on an infrared device to avoid my 'bot' colision. I'm using a Vishay TSOP1240 as a receiver, and a LM556 to generate 40Khz pulses.
The project has a size constraint and I was wondering if it is feasible to use a PIC12F675 with INTOSC to generate pulses of 40 Khz and perhaps increment some protocol to distinguish between external noise and my pulse.

dhouston
- 28th December 2009, 18:32
The 12F683 might be a better choice as it has PWM Mode.

dhouston
- 28th December 2009, 20:50
On second thought, search for RoboSapien_IR.bas. Bruce wrote it for a 12F683 using the internal oscillator at 4MHz and using ASM to generate 40kHz IR. You can probably adapt it for the 12F675.

ewandeur
- 29th December 2009, 18:30
Many thanks David