Search Results
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 |
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 ~).
0
votes
How to make sure Arduino's PWM pulses are phase shifted?
Then you can use unmodified PWM and don't have to mess with the timers on your Arduino (which affects other things besides PWM.) …
5
votes
Accepted
Output voltage range between 0-5v
Arduino Unos and Megas have PWM (Pulse Width Modulation) output, which rapidly turn the output on and off with a varying "duty cycle" (The ratio of on time to off time.) … If you have a constant load you can build a low pass filter that will smooth the output to a slightly dirty DC output based on the PWM output. …
3
votes
Accepted
Using Arduino to control a 12v car light system?
You can't use PWM to lower 12 volts to 6 volts without some additional circuitry. PWM rapidly pulses the output from all the way on to all the way off. … If you feed a PWM pin into a transistor, it can be used to create a higher voltage and/or current pulsed signal. However, pulsed DC is not the same thing as a lower DC voltage. …
2
votes
Outputting 400 mV using Arduino Nano PWM pin
PWM pins don't output analog voltages. They output pulses of 5V. You then need to average the output in order to get an actual analog voltage out of it. … You should be able to use a capacitor and resistor to average out the voltage of the PWM pin, making a low-pass filter. You won't get exactly to 400mV. …
0
votes
Is it possible to output a variable clock using Fast PWM?
PWM doesn't vary frequency. It holds the frequency steady and varies the duty cycle of the output. (Percent of on-time to total time.) … So unless fast Arduino PWM does something very unconventional, the answer to the question you asked is no. …
1
vote
Does the square-wave nature of PWM dictate how much resistance you need?
Note that PWM does not actually drop the output voltage. It generates variable length pulses of 5V at different "duty cycles" (percent on vs percent off). … For an LED you might get away with using PWM to vary the power that passes through the LED since it can probably tolerate over-current for brief intervals. …
0
votes
Is it possible to have long wire connections from an NodeMCU to a servo motor or button?
I don't think 6 meters of 22 gauge wire will be a problem for a 5V PWM signal either. …
1
vote
DC motor makes noise but does not rotate
analogWrite uses PWM. Is the motor you are using designed for pulsed operation? Try using
digitalWrite(motorPin, HIGH); …
1
vote
Accepted
3.3V to 5V PWM level shift
That should work, but it's overkill. Those devices are made for bidirectional signaling. You should be able to use a single transistor that is driven to saturation at 3.3V. A Suitable "logic level" MO …
2
votes
Dimming this ~30V led with PWM, what do I need?
You could control the MOSFET with a PWM signal from an Arduino and use that to vary the brightness of your light. …
3
votes
PWM Control, How to stop LED from Flickering?
Your code doesn't make much sense.
You set the LED to 2 different brightness values that don't have anything to do with each other: The pot brightness and the button-based brightness. You only adjus …