Hello Eric,
I'm sure he knows to connect an earth & yes the diode is in reverse its a picture I throw together in paintbrush in 20 seconds.
Hello Eric,
I'm sure he knows to connect an earth & yes the diode is in reverse its a picture I throw together in paintbrush in 20 seconds.
The P channel Mosfet used can take +-20 Volts through the gate & can be used as a switch via this method.The MOSFET shown in your second picture is a P channel MOSFET which usually is used to switch the high side. You have it on the low side. It also must be a logic level MOSFET as the Arduino GPIO can only provide 5V (at most). Just because you can power the Arduino with 12V doesn’t mean you can connect 12V devices to it (without driver circuitry). The 12V input goes through an onboard voltage regulator, bringing the MCU voltage down to 5V. Your diagram is missing a lot of information and likely won’t work.
But the MCU is still a 5V device. It’s pins can only output (or input) 5V max. Unless it’s a model based on a 3.3V MCU. Then the max is lower (3.3V)The P channel Mosfet used can take +-20 Volts through the gate & can be used as a switch via this method.
An Arduino if powered through certain pins can entirerly bypass the 5V regulator.
And if you applied 12V to those pins, the AtMega chip (MCU) would blow up.Hello Eric,
I don't take it as criticism.
I enjoy the feedback
An Arduino if powered through certain pins can entirerly bypass the 5V regulator.
The Arduino itself would still need an external power source.
It's not powering the ATmega328. . . . . it is using the onboard lm358 in reverse avalanche mode.But the MCU is still a 5V device. It’s pins can only output (or input) 5V max. Unless it’s a model based on a 3.3V MCU. Then the max is lower (3.3V)
Bypassing the regulator with 12V would blow up the MCU.
I’m not arguing with you anymore... Where are you applying 12V to the Arduino, bypassing the 5V regulator to use with an onboard LM358?It's not powering the ATmega328. . . . . it is using the onboard lm358 in reverse avalanche mode.

hi PRASS,I hope we all remember what this thread was actually about.
I didn't think of it like that.learning why