I have what I think should be (and, no doubt, is) a very simple problem to solve.
Using an ESP-01 with 3.3v logic, I want to be able to switch a 24v load (500mA max) on and off. The ESP-01 pin has a 10K pull-up resistor on it (it won't boot without the pin being held high) and I need to use this pin to turn the load on when the pin output is programmed low. The 'switch' needs to be on the high side of the load (this is to reduce cabling - I only want one wire to the load which will use a common ground elsewhere in the circuit, some distance away).
I've got as far as knowing I need to use a MOSFET and while I have no problem using an N-Channel MOSFET on the low side and turned on with a positive voltage - if the ESP pin was pulled to ground, I wouldn't have torn all my hair out (!). I am having a real problem trying to understand what I need for this specific problem.
Don't get me wrong, I'm not asking somebody to solve this for me. The problem I have is not knowing where to start looking. I am getting bogged down with holes, electrons and channels which, to be frank, I couldn't care less about. I can't seem to find a definitive "This is the type of device you need" guide. I find what I think is right and then the next page I find says something else or directly contradicts the first page.
So, I would be very grateful if somebody could please point me in the right direction.


