Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 6959

PWM is a form of signal modulation that allows digital output to approximate an analog signal. Use this for questions about using the PWM pins (marked with ~).

7 votes
Accepted

Can I connect a PWM pin on one Arduino to an analog input on another?

This works because the PWM period is about 1 mS so delaying for a period of multiple cycles but not an exact multiple means you sample semi randomly. … You could instead use PWM out (analogWrite) and a digitalRead. …
Russell McMahon's user avatar
4 votes

Increase PWM bit resolution

With some calibration you could sum the outputs of two PWM channels with differing weighting resistors. … much better chance of achieving extra PWM resolution. …
Russell McMahon's user avatar
1 vote

Issue with PWM output pin

You appear to have connected to pin 9 (as you intended to) Pin 9 has PWM capability, as required. It seems that your code should work. … Try another pin with PWM capability to see if it changes. ARDUINO UNO R3 from UNO home page The connector pinouts vary widely between models of UNO. …
Russell McMahon's user avatar
1 vote

Supplying near perfect DC signals from Arduino UNO

You can even do ALL signal setting this way if required with NO PWM (or you are effectively implementing adaptive PWM without formally doing so). …
Russell McMahon's user avatar
4 votes
Accepted

Why does a Piezo Buzzer not require a PWM digital pin (Gallileo Gen2)?

Why does a Piezo Buzzer not require a PWM digital pin? Tone() uses the microcontroller's hardware timers to control the related code function but do not use the hardware PWM features. … Filtering the PWM produces DC at the average DC level. PWM range is 0 to 255 (8 bits) …
Russell McMahon's user avatar
2 votes
Accepted

MOSFET to dim LED backlight

Summary: It looks as though you can just drive BL directly with the PWM-output. What happens when you do? … To use the BS170, connect the source to ground, connect drain via a say 1k resistor to +3.3V, connect drain to BL, drive gate with PWM. BUT why does not just driving BL with PWM do what you want? …
Russell McMahon's user avatar