How does Arduino analogWrite() work, and why does my multimeter read varying DC voltages on PWM pins?
TechCrate editorial answer
Bench Answer
Arduino microcontroller pins do not produce a true smooth analog voltage from analogWrite(). Instead, they produce Pulse Width Modulation (PWM)—a fast 490Hz square wave switching rapidly between 0V and 5V. By varying the Duty Cycle (the ratio of HIGH time to total period), the average power delivered changes. A multimeter averages these rapid 5V pulses, making it appear as a variable DC voltage.
Unlock the full bench walkthrough
Members get the complete diagnostic workflow, every measurement to take and the verification checklist.
Unlock Digital VIP · $4.99/mo →