App note: Using the AVR’s High-speed PWM

Atmel’s app note on using the AVR’s High-speed PWM (PDF!): This application note is an introduction to the use of the high-speed Pulse Width Modulator (PWM) available in some AVR microcontrollers. The assembly code example provided shows how to use the fast PWM in the ATtiny26. The ATtiny15 also features a high-speed PWM timer. The fast PWM […]

Fast PWM and electromagnetic interference

Marios Andreopoulos writes: A few days ago I wrote a blog post about Arduino and EMI. By using fast PWM and a plain breadboard wire, I was able to detect electromagnetic interference using a usb TV tuner, with its antenna near my circuit. Not only that, but by manipulating duty cycle to create a primitive […]

App note: Fan health monitoring and the MIC502

An application note from Micrel:  Fan health monitoring and the MIC502 (PDF!) This section presents a fan monitoring circuit that can be used in conventional MIC502-based circuits employing pulse-width modulation (PWM) fan speed control. The circuit relies on detecting motor commutation to indicate fan operation and does not require a three wire fan with a tachometer output.

An isolated DAC using PWM output

Kerry Wong writes: Arduino‘s (ATmega328P) PWM outputs via analogWrite can be conveniently turned into analog voltage levels through the use of simple RC filters. Since the PWM outputs are not isolated, using them to drive other devices directly could be potentially dangerous. This is especially true if the target circuit uses a higher supply voltage. […]

App note: PWM Margining with the MAX34451

This application note outlines the performance of PWM margining when the MAX34451 is connected to the MAX15041 evaluation (EV) kit: Pulse-width modulation (PWM) margining is a simple technique to adjust the output voltage of power supplies. This application note discusses the effect of PWM on the power-supply output-voltage noise, the enabling and disabling of PWM, […]

Spindicator clone with pulse and trail effect

In this video Viktor demonstrates his Spindicator clone with pulse and trail effect project: Although my “original” Spindicator itself was just a clone of this one, mine was well received by the geeks around the world! :) A fellow diy tinkerer made an even better one with PWM control (very cool, indeed!). Recently, I was asked […]

AVR microcontroller based PWM fan controllers

Zak Kemble posted his AVR based PWM fan controller build: So this is a bit of a continuation on my 555 timer based PWM controllers, but now using microcontrollers and MOSFETs instead of 555 ICs and transistors. I made 2 versions, one with switches for speeding up and down and the other with a potentiometer […]

Digitally adjustable precision reference driven via PWM

This simple circuit that converts a 5V PWM signal into a variable precision reference voltage with a rang of -2.5V to +2.5V.  Many designs, like a digitally controlled power supply, programmable dummy load, etc, require a Digital to Analog Converter to supply a stable reference votlage. This circuit is cheaper and requires less pins from […]

ATmega168A pulse width modulation (PWM)

ProtoStack shows how to dim a LED using pulse width modulation and an ATmega168A: Dimming an incandescent bulb is easy. Simply adjust the current down using a potentiometer and you are done. Dimming an LED is another story entirely. When you reduce current through an LED there are unintended consequences like color shifts and dropouts. […]

Convert the Chumby serial port into two PWM outputs

Osman Eralp of Ozbots writes: When I was building my latest Chumby-based robot, I didn’t need the serial port, but I did want PWM signals to control the robot’s wheel motors. Fortunately, the processor pins that are used for the serial (UART) TX and RX pins are multiplexed with PWM outputs. With the proper commands, […]

Arduino varies LCD contrast using PWM

We’ve seen a number of tutorials explaining the use of LCD displays with Arduino. In most the display contrast is varied by use of a potentionmeter. Here’s a tutorial from Hobbytronics which varies the contrast using PWM. A 100uF capacitor is connected between the PWM output and ground to smooth the signal. Using this technique […]

USB IR Toy: Calculate transmitter carrier frequency

See the latest version in the documentation wiki. The USB IR Toy raw IO mode samples and replays infrared waveforms.  IRIO mode starts with a default 36kHz infrared transmit modulation frequency. The rate can be changed with the setup modulation command (0×02), followed by a byte that sets the pulse-width modulator match value (PR2), and […]

USB IR Toy transmit frequency

Most infrared remote controls emit modulated light pulses to activate an infrared receiver. Using modulated IR light helps prevent stray light from messing with reception. Pulses at around 38kHz and 56kHz are common, but many values are used. The USB IR Toy’s transmitting LED is driven by a pulse-width modulator (PWM) that can be adjusted […]