Skip to main content

Timeline for How to switch 12V with esp32?

Current License: CC BY-SA 4.0

14 events
when toggle format what by license comment
Nov 14, 2022 at 6:27 comment added gbg @user87507 Umm, this is strange. Please, show me some pictures of your device
Nov 13, 2022 at 1:43 comment added user87507 @gbg - When I connect the emitter to the ground rail, the ESP 01S locks up (I'm using GPIO2). Any ideas? I'm using the same components listed here, a 330 ohm resistor and a 2N4401. Thanks.
Aug 16, 2021 at 22:15 comment added gbg Do you know a good N-channel MOSFET which can be fully opened from 3.3 volts? In any case, OP needs the flyback diode if the magnet doesn't have one.
Aug 16, 2021 at 21:16 comment added dandavis This works, but if you're swapping OP's FET, why not just spec a logic-level N-channel FET and decimate the BOM (no flyback, no BJT, no resistors) for the build?
Aug 16, 2021 at 8:03 vote accept Noobie
Aug 14, 2021 at 9:14 comment added gbg @StarCat - Done :)
Aug 14, 2021 at 9:10 history edited gbg CC BY-SA 4.0
edited body
Aug 14, 2021 at 8:56 comment added StarCat Nice answer! One tip: You could make the schematic a bit more “readable” by applying a few standard layout rules: 1) Put the (positive) supply voltage at the top 2) Put Ground (or negative supplies) at the bottom 3) Any input signals to the left and 4) Output signals to the right. You could look at the elaborate answer to this question.
Aug 14, 2021 at 7:54 comment added Noobie Thank you very mutch.Of course I forgot the flyback diode 😀 so I'll add it.
Aug 14, 2021 at 7:51 vote accept Noobie
Aug 16, 2021 at 8:03
Aug 14, 2021 at 7:37 history edited gbg CC BY-SA 4.0
edited body
Aug 14, 2021 at 7:32 comment added gbg Oh, i really forget about that - I've added it on PCB but not in shema. I'll fix it now
Aug 14, 2021 at 7:23 comment added chrisl How is the MOSFET gate going to be charged with Vcc? The transistor switches the path for ground. Isn't at least a pullup resistor at the MOSFET gate needed?
Aug 14, 2021 at 6:14 history answered gbg CC BY-SA 4.0