I need to control the power (on/off) of several devices (all at a time, not one by one) from the output of an ESP 32.
So, the goal is to turn on/off the 5V power supply for :
- 1 LED (using a 270 ohm resistor) : about 10mA
- 8 "ITR9608" optointerrupter (each using a 270 ohm resistor) : about 8x10mA
- 8 "SG90" 9G mini servo : about 8x100mA max
- 1 "MCP23017" : 8 LED outputs, 8 sensors inputs : about 200mA max
So the total should be 1.1A, maybe should say 1.5A as a security factor ?
Are these calculations correct ?
This circuit will be controlled from an ESP32 dev board : it's a 3.3V outputs, about 40mA max.
I've found this circuit : http://www.instructables.com/id/DIY-Motor-Driver-With-ESP32-Controller/
Which kind of circuit should I use ?
- A switch using a TIP120 like this ? https://hackaday.com/2017/11/23/building-a-skyrim-quest-marker/
- A NPN transistor like this ? http://www.instructables.com/id/DIY-Motor-Driver-With-ESP32-Controller/
- A darlington array like this ? http://www.ti.com/lit/ds/symlink/uln2803a.pdf
I'm a software enginner, but a newbie to electronics, so I'ma little lost in front of all the switching circuit examples that we can found on the internet...