as 0 and HIGH as 1, and let the Arduino output five hundred 0 or 1 signals
within 1 second.
If output five hundred 1, that is 5V; if all of which is 1, that is 0V. If output
010101010101 in this way then the output port is 2.5V, which is like
showing movie. The movie we watch are not completely continuous. It
actually outputs 25 pictures per second. In this case, the human can’t tell it,
neither does PWM. If want different voltage, need to control the ratio of 0
and 1. The more 0,1 signals output per unit time, the more accurately
control.
(2) Components Needed: