New answers tagged

2 votes
Accepted

PWM on Wemos D1 Mini (esp8266 chip) does not work

At one point analogWrite as it was implemented in the esp8266-core had defaulted to a 10-bit range. This is no longer the case. It defaults to 8-bit range now. In any case analogWrite is implemented ...
user avatar
  • 3,913
2 votes

Perform Volume Control on arduino speaker

The tone() function generates a 50% duty cycle square wave using a timer and interrupts. 50% duty cycle is basically full volume. It's possible to reduce the volume by reducing the duty cycle, but the ...
user avatar
  • 102k

Top 50 recent answers are included