void setup() {
pinMode(5, OUTPUT);
}
void loop() {
analogWrite(5, 0);
// or
//digitalWrite(5, LOW);
}
Output is 0.003V and the tiny voltage causes the circuit to draw 20uA.
Is there anyway to get absolute 0V from Arduino PWM pin?
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityIt doesn't output 0v because it's near impossible. 0.003v is in fact very low. The LOW output, according to the datasheet, can be as high as 0.8v (when powered by 5v) and still be considered valid.
LOW does not mean 0v. It means "below the voltage threshold that is considered a LOW".
analogWrite(pin,0)
. Please show us your circuit. – chrisl Sep 21 '19 at 19:45