jumanji
Newbie level 6
I need help. I have a board with a MCU that has an input coming from off the board from a number of possible sources so the incoming signal will vary. Here is what I am trying to accomplish:
1) The input signal will be a DC voltage ranging from 0V up to 15V.
2) Any signal above about 3V should 'turn on' a 3.3V signal going to the MCU AND turn on a LED
3) The MCU runs at 3.3V so the connection to the MCU itself cannot exceed that.
I thought that a simple circuit using a 2n7002 Mosfet with the drain tied to Vdd (3.3V) and the source tied to the MCU pin and the LED (with current limiting resistor) would work but the voltage on the source pin is only about 1.7V (which is the voltage drop across the mosfet) but it seems like even with a small current limiting resistor the LED does not have enough voltage to turn on.
Any ideas?
1) The input signal will be a DC voltage ranging from 0V up to 15V.
2) Any signal above about 3V should 'turn on' a 3.3V signal going to the MCU AND turn on a LED
3) The MCU runs at 3.3V so the connection to the MCU itself cannot exceed that.
I thought that a simple circuit using a 2n7002 Mosfet with the drain tied to Vdd (3.3V) and the source tied to the MCU pin and the LED (with current limiting resistor) would work but the voltage on the source pin is only about 1.7V (which is the voltage drop across the mosfet) but it seems like even with a small current limiting resistor the LED does not have enough voltage to turn on.
Any ideas?