No resistor! Ouch!Will check thread. I didn't add resistors as it functions normally when connected directly to VCC and ground. View attachment 13156
Pin 2 of the IR module is the IR LED feedback resistor connection - the resistor you did not fit.i just want power at pin 2 to see if the IR is being powered
Okay, bear with me, the diagram in post #11 is the schematic, here is an image of it on breadboard.
The sharp data sheet shows the detailed schematic of the IR. As far as I can see I have 3 wires coming out of the IR and 8 pins on the 08M2, I assume that the IR circuit has the necessary resistors and caps on board for it to function with an IC. Does this help or do you need more info?
Time wasting i think, where a little better information could have saved several of us much effort, and resulted in far better advice.I'm not sure if Westy and SABorn realise you are using a PCB with some gubbins already on it.
Photo and program please.My apologies, IR came as one unit didn't realize that the serial number didn't cover the accompanying circuit board. I have tried this on the AXE091 board which I believe has the necessary caps and resistors built in to run the PIC. I have run an led off of the PIC to make sure it is putting 2 high, no problem led lights up. The IR sensor (sharp and pololu) will not come on though.
So if you have the output connected to say PICAXE pin1 (physical leg 6) then using program line(s) such asAs I said previously 2 is set high and will power an LED but the IR won't turn on.
The two transistor approach is more universal and easily adapted to those times when the "load" requires a voltage higher than the PICAXE supply. For heavier load current just change the PNP transistor (eg BC328 for 800 mA) and recalc a resistor or two.Is there a reason you prefer the transistor pair over a single transistor?