LarryD,
I too am relatively new to programing the Arduino. I have a question about the pulldown resistor in this circuit. I work on equipment that is ground switched and the low condition is almost always 0.7VDC, never 0 volts. Is the pulldown resistor in this circuit there to reduce the input pin to 0? I built this circuit and measured ~1.9VDC at PWM pin 2 and 3 when the resistor is not in the circuit. I do not understand why the PWM input pin has a voltage, is that a design feature of the Arduino?
Thank you for any insight you may have, Hunter
LarryD
March 26, 2023, 4:33pm
2
A switch can be wired in one of two different ways.
The switch can be between the pin and GND with a pull up resistor to 5v.
OR
The switch can be between the pin and 5V with a pull down resistor to GND.
Sounds like you are talking about the first.
When you are talking about a PWM pin, it sounds like you are referring to an output , not an input.
A PWM output pin actually has a rectangular wave on it, it outputs pulses of voltage.
A voltmeter will measure the average voltage of these pulses.
For a 5v Arduino, for a logic 0 (LOW), voltages less than 1.5v are LOW,
VIL.
For a 5v Arduino, for a logic 1 (HIGH), voltages greater than 3v are HIGH,
VIH.
1 Like
LarryD,
That's a lot of great info! Thanks!!
@idontwantapickle ,
Topic split from another topic. Please do not add your own questions to the end of other people's topics.
Could you take a few moments to Learn How To Use The Forum
See also FAQ - Arduino Forum for general rules on forum behaviour and etiquette.
Hello,
Welcome to the Arduino Forum.
This guide explains how to get the best out of this forum. Please read and follow the instructions below.
Being new here you might think this is having rules for the sake of rules, but that is not the case. If you don’t follow the guidelines all that happens is there is a long exchange of posts while we try to get you to tell us what we need in order to help you, which is fru…
It will help you get the best out of the forum in the future.
Thank you.
system
Closed
September 22, 2023, 8:32pm
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.