Newbie so please excuse me if this has been asked before.
I needs to power 5 x IR Leds from a nano.
I do not want to use a 555 timer or use transistors .
I want to know how to run a 38KhZ tone to five pins.
I am using a Nano
Thanks in advance
I suspect what you really mean, is to send the same tone to five pins simultaneously in order to distribute the current load for your five LEDs over those five pins.
You use the one tone output to switch a PNP transistor acting as a top switch. Then connect all the anodes of the LEDs to the collector. The cathodes can then be connected to the current limiting resistor and on to a separate Arduino output. This allows eac diode to be modulated.
However the tone is a bad function to use because it does not allow you to synchronise the modulation to the carrier.
As usual we need more information as to what you are doing.
He said he did not want to use transistors!
Paul__B:
He said he did not want to use transistors!
He might have said that but applying impossible wish conditions is not going to get him anywhere.
There is too much of these stupid conditions these days, .....
I want to live for two months on a mountain side but I don't want to eat any food nor drink anything.
You can want all you want but it is not going to happen is it?
Thanks for you inputs. I would also like to live on a mountainside.
When i said i did not want to use other hardware my problems are my skill and knowledge level.
I have a basic GCSE education and that was over 20 years ago.
My project is to make a IR gate that can sense a object moving though it.
I want to use 5 IRleds on one side and 5 IR sensors ( TSSP4038 ) on the other. I have sorted the sensor side out but am still having problems with the ir side.
I think i might try and run all 5 leds from one pin but am unsure as the range will be lower.
I have looked at using " blink" but this does not seem to trigger my sensors?
When i said i did not want to use other hardware my problems are my skill and knowledge level.
The if that is the case your whole project is outside your current skill level.
I think i might try and run all 5 leds from one pin
Great way of burning out your Arduino. Anything over 40mA can damage the pin.
I have looked at using " blink" but this does not seem to trigger my sensors?
You have not told us what your sensor is. Most sensors of this type will not respond to more than 30 "blinks" or so without a "rest".
So we agree he needs a transistor. The next question is - what voltage has he to from which to operate the IR LEDs? If for example, running from 12 V, then I think they could all go in series - and of course, still using a transistor - using our favourite constant-current driver circuit:
or for the resistor values: