How to Reverse the Output of a Reed Switch Circuit to HIGH?

I'm using a circuit that gives a LOW output on D when a magnet passes by the reed switch. Is there a way to make it output HIGH instead? (HIGH being 3.3V, which is the voltage I'm powering the circuit with).
attachment 0
3 Replies
JeremyCook
JeremyCook•2w ago
So this might be a silly/obvious answer, and you might have good reasons for not doing so, but would it be possible to run the reed switch directly from VCC to 1? I see you already have a pullup on that line though, so wouldn't it output high at 1 normally? There are also NC/NO reed switches, so switching that out for where you have one type of reed switch currently might be a good solution. Again, depending on needs/circuit considerations.
aymen ammari
aymen ammari•2w ago
That would be the greatest thing to do for someone lazy like me 😂... sometimes I overcomplicat things where the solution is obvious.... It would be a good idea because I will use it for ESP32 digital input.... So thank you Jeremy!
JeremyCook
JeremyCook•2w ago
Ha, well glad I could help! It's amazing how many times we (I) miss the obvious stuff - e.g. is it plugged in?
Want results from more Discord servers?
Add your server