Questions tagged [pwm]

Pulse-width modulation, is varying the duty cycle of a rectangle wave, usually with a constant frequency.

PWM is often used to control continuously varying power. Because the switching device (often a MOSFET) switches between fully off and fully on it dissipates little power (in the off-state the current is near-zero, in the on-state voltage is near-zero). If the switching frequency is high enough the load will only see the average level, which can be varied between minimum and maximum by changing the duty cycle from 0 % to 100 %.

PWM can also be used to create an analog voltage from a digital device, like a microcontroller. In that case the PWM output must be filtered by a low-pass filter to remove the switching frequency, and only retain the DC component.

Further reading
Filtering PWM Signals

2710 questions
51
votes
6 answers

Does pulsing an LED at higher current yield greater apparent brightness?

This question implies two assumptions: The frequency of a switched LED driver is high enough that average power, not instantaneous power, should be used to determine maximum drive current. The limiting factor which determines maximum current at…
Kevin Vermeer
  • 19,989
  • 8
  • 57
  • 102
44
votes
5 answers

Is there an ideal PWM frequency for DC brush motors?

I'll be using a microcontroller to create a PWM signal for motor control. I understand how PWM and duty cycle works, however I am unsure about an ideal frequency. I do not have my motor in yet, so I can't just test it and find out. The picture…
Nate San
  • 485
  • 1
  • 5
  • 9
39
votes
2 answers

Why do some pins have `~` signs next to their numbers?

I was looking at my Arduino Uno and I noticed that symbol by digital pins 11, 10, 9, 6, 5, and 3. What do these mean? Does this affect the way it works? Can I not use these pins for certain situations?
Anonymous Penguin
  • 3,750
  • 8
  • 35
  • 57
38
votes
12 answers

Correcting for non-linear brightness in LEDs when using PWM

When driving an LED with PWM, the brightness (as I perceive it) does not scale linearly with duty cycle. The brightness is slow to ramp up, then increases exponentially with duty cycle. Can anyone suggest a rule of thumb to use as a correction…
Toby Jaffey
  • 28,796
  • 19
  • 96
  • 150
27
votes
5 answers

How to interpret the output of a 3-pin computer fan speed sensor?

I have a 3-pin 12 V computer fan and I want to interpret its speed sensor output. At the yellow wire I get something that looks like pulse-with modulation. How would I interpret the output without actually connecting the fan to a computer?
AndrejaKo
  • 23,261
  • 25
  • 110
  • 186
27
votes
6 answers

How to choose right PWM frequency for LED?

I want to control LED's brightness with PWM (via BJT transistor). What frequency of PWM should I choose?
user54579
26
votes
2 answers

Criteria behind selecting pwm frequency for speed control of a dc motor?

I'm working on a speed control circuit for a brushed dc motor (24v, 500rpm, 2A, 4kgcm). The main components that I plan to use are PIC16f873, 4n25 optocoupler, IRFZ44N MOSFET, BY 500 - 800 diode(for free wheeling). What is the criteria behind…
raforanz
  • 803
  • 2
  • 16
  • 28
26
votes
4 answers

Does (and when how) the lifetime of a LED depend on the PWM frequency

Let's assume two options for driving a standard LED at its rated current. PWM set to 50% duty cycle at 10 kHz PWM set to 50% duty cycle at 50 kHz Technically both LEDs would produce the same amount of light and the 'blinking' won't be visible to…
Gilad
  • 2,087
  • 1
  • 21
  • 25
26
votes
6 answers

Why doesn't my 5050 led strip draw as much power as I expect?

I've been playing with a 5m long RGB LED strip, with 300x surface mount 5050 RGB LEDs, but can't understand why the strip isn't as bright or drawing as much power as I was expecting. I've had a look at Arduino and 5A 12Volt driver, which appears to…
Mark Booth
  • 1,635
  • 3
  • 24
  • 45
25
votes
5 answers

Help learning from a mistake connecting an oscilloscope

I have built this circuit to dim a lamp with a PWM signal. It had an issue where the MOSFET was getting really hot. So I wanted to know what was happening on the gate of the MOSFET. I turned the PWM signal off and with my multimeter I measured…
cyrili101
  • 409
  • 5
  • 6
22
votes
4 answers

How to clean up a noisy signal?

I'm controlling a 4-pin PWM PC fan from a PIC16F684 with the fan speed driven from an ADC reading of a proximity sensor. This all works ok. I wasn't originally planning to use the tachometer output from the fan, but as it's available I been…
Roger Rowland
  • 2,002
  • 4
  • 18
  • 36
19
votes
3 answers

Why is PWM used to control DC motor speed instead of using a variable resistance?

My question is at the end (to change the speed) we are controlling the input voltage of a DC motor in both PWM (pulse width modulation) and variable resistance cases. Is the only reason for choosing PWM to obtain a better precision or not consuming…
user16307
  • 11,802
  • 51
  • 173
  • 312
19
votes
5 answers

What is the simplest way to generate PWM without a Microcontroller?

What is the fast and elegant way to generate PWM without a Microcontroller to control a servo motor? With potentiometer or other ways to control the duty cycle with fix period. sorry about the mess, I want to control a hobby servo.
pstan
  • 911
  • 2
  • 10
  • 18
18
votes
5 answers

What is a popular cheap and robust substitute for 2n7000 MOSFET for use with 3.3 Volt designs?

What are the popular equivalents to the 2n7000, for 3.3 Volt MCU circuits to switch higher voltage devices? Background: For 5 Volt microcontroller based prototypes and experiments, my go-to solution for low frequency, low side switching of 50-200 mA…
Anindo Ghosh
  • 50,188
  • 8
  • 103
  • 200
17
votes
2 answers

Calculate DC motor frequency

I am driving a DC motor with H-Bridge Mosfet using PWM. The problem is I don't know exactly which frequency should I use. 1- Do the DC Motors have a very specific frequency for their best performance at all or they have a range of the frequencies…
Mehrdad Kamelzadeh
  • 959
  • 4
  • 11
  • 22
1
2 3
99 100