Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what to use for micro switch (relay, transistor, optocoupler)

knu

Newbie
Newbie level 1
Joined
Feb 23, 2023
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
14
Hey,
Im absolutely new to eda, i want to design a very compact battery powered esp32 based pcb, one function of it is to power a micro water pump.
The Pump uses 5V with 160mA, I need the ability to (just) switch it on and off using the esp32.
To my knowledge the options are transistors, optocouplers and relays. I have not found a relay small enough to fit my likings, while using transistors and optocouplers in parts seems overkill (but also not unusual for what i have seen). I would really be thankful for some tips and maybe even suggestions about specific models.
 

KlausST

Super Moderator
Staff member
Advanced Member level 7
Joined
Apr 17, 2014
Messages
23,242
Helped
4,738
Reputation
9,497
Reaction score
5,125
Trophy points
1,393
Activity points
153,951
Hi,

I personally ´d use a digital transistor if I want it small. (SOT-23 3 pin)
Or a low side power switch if I want reliable operation.

also possible: N-Ch MOSFET logic level, NPN with base resistor. Use some protection diode at the motor.

There are many other ways.

Klaus
 

dick_freebird

Advanced Member level 7
Advanced Member level 7
Joined
Mar 4, 2008
Messages
8,216
Helped
2,289
Reputation
4,588
Reaction score
2,326
Trophy points
1,393
Location
USA
Activity points
65,697
Logic-level low side NMOSFET would be fine if your board has 5V output swing. At lower supplies a cheap MOSFET driver w/ "TTL compatible" inputs could work down to maybe 1.8V in (2.5V slam dunk) with 5V supply and skip the FET, as output strength is >1A and the output "catch diodes" may help prevent flyback damage. People used to use bare UC3825 PWM outputs for low power DC-DC as those were good for about 800mA pk.

But it's hard to beat a NPN and a base limiting resistor, for robust and low min working voltage and simplicity.
 
Last edited:

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top