![background image](http://html1.mh-extra.com/html/velleman/vma502/vma502_user-manual_862036009.webp)
VMA502
V. 02 – 05/04/2019
9
©Velleman nv
In this code, we are using the analogWrite (PWM interface, analogue value) function. We will read the analogue
value of the potentiometer and assign the value to PWM port, so there will be corresponding change to the
brightness of the LED. One final part will be displaying the analogue value on the screen. You can consider this
as the
analogue value reading
project adding the PWM analogue value assigning part.
Result
After programming, rotate the potentiometer knob to see changes of the displaying value. Also, note the
obvious change of brightness on the breadboard.
7.4
The Active Buzzer
An active buzzer is widely used on computers, printers, alarms, etc. as a sound-making element. It has an
inner vibration source. Simply connect it with a 5 V power supply to make it buzz constantly.
Required Hardware
1 x buzzer
1 x key
1 x breadboard
jumper wires as needed
Connection