Got a hold of a simulator and plugged in the circuit. Actually just drew out the same circuit you had, but I had the input pin at 10K and I have a diode on the 5 V supply line to prevent any back flow if the circuit is ever turned off. With my diode in place and using the 22k resistor, I came out to:
Switch OFF : Vout = 2.18 V
Switch 12V : Vout = 4.01 V
Switch GND: Vout = 1.77 V
Thank you so much for your help.
Bookmarks