Hi,
I am attempting to drive an n channel mosfet by providing voltage to the mosfet gate via a digital pin. Once gate voltage is received the drain and source are connected to complete ground to an led. The issue is that once I set the digital pin to high any further attempt to set it to low doesn't work and the pin stays high.
I've disconnected everything and connected my ohm meter to arduino ground and digital pjn. The test proved conclusively that the pin wouldn't go low after being set high. I tested on a second arduino nano and get the same results.
I not a newbie to the arduino and in the process of modifying an existing program that leverages digital output high and low operations to drive a relay, leds and inputs so this is a bit odd to me.
I just recently downloaded the latest arduino developer version and am not sure if this could be causing an issue. For some reason I had to revert back to the old atmega328 bootloader because the new version failed. I was still able to compile and upload via old bootloader though.
Any advice? Could the new release be affecting the arduino nano digital functions?
Thanks