Instructions

www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
There are many applications for PWM: regulation of lamp brightness, re-
gulation of motor speed, etc. .
These are the three basic parameters of PWM:
Mega2560 board
1x
USB cable
1x
Red M5 LED
1x
220 Ω resistor
1x
Breadboard
1x
Jumper cable
6x
1x
Potentiometer
1. The amplitude of the pulse width
(minimum / maximum)
2. The pulse period
(The mutual pulse rate in one second)
3. The voltage level
(like: 0 - 5 V)
There are 6 PWM interfaces on the Mega2560: digital pins 3, 5, 6, 9, 10 and
11.
In previous experiments we have got to know the key-controlled LED,
where we used a digital signal to generate a digital pin.
Now we will use a potentiometer to control the brightness of the LED. We
need for this:
Height
Width
Cycle