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.
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?
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.