I am quite new in the microcontroller / programming field. I researched and did a lot of "basics" in ESP32 and Micropython.
Now I want to have a more stable WOL (Wake on LAN) replacement as a generic solution to power cylce a generic PC mainboard with an ESP32.
I hope this is the right category to get some feedback especially when it comes to the electronic / components part. Excuse my component drawing - not professional - but I hope understandable I currently have the following:
1) Power Cycle PC
That works, I can send a short signal from Pin13 for power on and a long signal for a "forceful shutdown". Question is the circuit good, anything missing or overkill?
Original idea was to connect Pin32 to the "RESET" pin on the mainboard. But somehow this always outputs high/1 even when power is off.
My workaround is to use the Power LED. This works so far. Output is "1" when PC is running and "0" when I turned it off. Is the circuit below safe? Do I need the GND connection to the ESP32? Do I need any additional resistors or something?
Well, if you think that connector is safe enough (no extra voltage/current) you're ok, but dealing with other "externally" powered devices I better consider using optocouples to make sure the two sides are electrically isolated.
Yes, in theory you can do it, but when you connect an external signal you should test it before to see the compatibility of its voltage and current levels. In this case I suppose that LED signal works at TTL level 5V, so as ESP32 works with 3.3V signals natively you better put a level shifter to protect your ESP32 GPIOs.
A voltage divider could be the simpler solution.
The transistor is opened by the voltage difference between the base and emitter. If it is connected to the controller with one wire, you cannot create any voltage difference. This means the scheme cannot work.
If something turns on and off for you according to this scheme, itβs an accident, just interference. Change anything in the circuit or just move the board to another location - it can stop working
@b707 FETs are highly sensitive devices. You can turn them on with a tiny ESD. So it is possible to turn a FET on without source connected to GND. Note that using ESD on a FET, as well as operating one w/o GND is not recommended, at all.
Hi, It seems this topic is related to the project that I am about to do. I am asking permission if I could make your project as a reference for my project?