Powering IR sensors

Hi.

i have a lot of these 5V ir sensors module for Arduino from aliexpress.

My goal is to use 15 of these sensors for inputs to do various things..some will switch on lights, others will triggers a sound effect etc..however if i connect s few of them to the arduino, everything works fine..but with all 15 nothings works....I am pretty sure that the current draw is too high with that many sensors for the arduino to handle..but what would be a good alternative of powering them and how should they be connected to arduino if powered externally?

Connect the Vcc of each module to an external 5V source. Connect the ground of the external source to GND of each module and Arduino's ground. Connect each out from the modules to an Arduino input pin.

It's that simple? Thank you very much will do

Link corrected: https://www.aliexpress.com/item/32321307168.html


The resting current draw of the LM393 should be less than one milliamp, so there should he no trouble "powering" 15 from the Arduino. That said, an Arduino is not in any way a "power supply" and you should not be powering it from "Vin" ("Raw") or the "Barrel Jack" as the on-board regulator is completely inadequate for serious applications.

You are of course, connecting the outputs to separate input pins of the Arduino?

The schematics for devices like those show 100 as the current limit resistor for the IR LED. With the 2 indicator LEDs about 40mA each module.

did some testing and the by powering it with a lm7805 with 1.5 amp peak current there is plenty of power for all the components :smiley:

xcg584:
did some testing and the by powering it with a lm7805 with 1.5 amp peak current there is plenty of power for all the components :smiley:

An LM7805 is specified as 1A max. It also needs an excellent heatsink at that level, especially if it is getting more than about 7V up its chuff.

I was refering to only powering the all the sensors with the lm7805...in the finished project i will buy a 4 A ,5V usb charger and power the arduino and sensors with that..it should work ok?

That sounds much more sensible. I stand corrected by groundFungus who actually found the circuit for the module. 15 times 40 mA is indeed, 600 mA. A 1 Amp "USB Phone Charger" would be OK until you add all sorts of other stuff. :grinning:

thank you all for the advice..helped a lot!