Three IR Flashlights
jreile
Posts: 11
in Propeller 2
If I want to modify the two IR set up to use three IR lights and sensors how would I need to hook up the second lead on each IR flashlight? In the two IR setup one is in D/A 0 and the other is in D/A 1, how would I do a third?
Comments
Set D/A0 to the voltage you require, which would be the same as you are doing for the example your posted.
How it works...
Provided each LED has a unique Propeller IO pin connection, you can still decide which one is active, by toggling those one at a time.
Looks like P1 and P11 and the LED anode pins in your example. So maybe you connect a 3rd LED to P21! (Of course, the IO can be any one that you like you choose, and which is spare!)
Just remember to ONLY toggle one at a time and it will work fine. (Ie. only call the freqout or pulseout command at 38KHz one at a time). If you wanted to call multiple LEDs at the same time, you'd need to investigate first if the D/A can handle the amount of current you'd need to sink to drive multiple LEDs simultaneously.
And if you needed the other DA channel later, you could drive all 3 (or more) LED's from the one DA channel. Provided you don't pulse them at the same time- exactly as you said it.