i know people like myself have been using opticouplers, and voltage dividers (im not using those tho).
my project is in the automotive field and i was just thinking, rather than optos or resistors, what about just a N mosfet?
gate pulled low via 10k
gate to voltage input (12-16V)
drain to (mcu input (INPUT_PULLUP))
source GND
Any thoughts on if this is possible or not ?
in theory, just like a button, this should be able to pull the mcu pin to GND when activated
my project is in the automotive field and i was just thinking, rather than optos or resistors, what about just a N mosfet?
gate pulled low via 10k
gate to voltage input (12-16V)
drain to (mcu input (INPUT_PULLUP))
source GND
Any thoughts on if this is possible or not ?
in theory, just like a button, this should be able to pull the mcu pin to GND when activated