VMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO ® USER MANUAL
VMA502 USER MANUAL 1. Introduction To all residents of the European Union Important environmental information about this product This symbol on the device or the package indicates that disposal of the device after its lifecycle could harm the environment. Do not dispose of the unit (or batteries) as unsorted municipal waste; it should be taken to a specialized company for recycling. This device should be returned to your distributor or to a local recycling service. Respect the local environmental rules.
VMA502 4. What is Arduino® Arduino® is an open-source prototyping platform based in easy-to-use hardware and software. Arduino® boards are able to read inputs – light-on sensor, a finger on a button or a Twitter message – and turn it into an output – activating of a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board.
VMA502 1 USB interface 7 Atmel mega2560 2 ICSP for 16U2 8 reset button 3 digital I/O 9 digital I/O 4 Atmel mega16U2 10 7-12 VDC power input 5 ICSP for mega2560 11 power and ground pins 6 16 MHz clock 12 analogue input pins microcontroller ................................................................................................ ATmega2560 operating voltage .......................................................................................................
VMA502 Chips have legs that come out of both sides and fit perfectly over the ravine. Since each leg on the IC is unique, we do not want both sides to be connected to each other. That is where the separation in the middle of the board comes in handy. Thus, we can connect components to each side of the IC without interfering with the functionality of the leg on the opposite side. Ravine. 7.2 A Blinking LED Let’s start with a simple experiment.
VMA502 Connection Programming Code Result After programming, you will see the LED connected to pin 10 blinking, with an interval of approximately one second. Congratulations, the experiment is now successfully completed! V.
VMA502 7.3 PWM Gradational LED PWM (Pulse Width Modulation) is a technique used to encode analogue signal levels into digital ones. A computer cannot output analogue voltage but only digital voltage values. So, we will be using a high-resolution counter to encode a specific analogue signal level by modulating the duty cycle of PWM. The PWM signal is also digitalized because in any given moment, fully on DC power is either 5 V (on) of 0 V (off).
VMA502 Required Hardware 1 x variable resistor 1 x red M5 LED 1 x 220 Ω resistor 1 x breadboard jumper wires as needed Connection Programming Code V.
VMA502 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.
VMA502 Programming Code Result After programming, the buzzer should ring. 7.5 The Photosensitive Resistor A photoresistor is a resistor whose resistance varies according to different light strengths. It is based on the photoelectric effect of a semiconductor. If the incident light is intense, the resistance reduces; if the incident light is weak, the resistant increases. A photovaristor is commonly applied in the measurement of light, light control and photovoltaic conversion.
VMA502 Connection Programming Code Result After programming, change the light strength around the photovaristor and observe the LED changing! V.
VMA502 7.6 The Flame Sensor A flame sensor (IR receiving diode) is specifically used on robots to find the fire source. This sensor is highly sensitive to flames. A flame sensor has a specifically designed IR tube to detect fire. The brightness of the flames will then be converted to a fluctuating level signal. The signals are the input into the central processor.
VMA502 Programming Code 7.7 The LM35 Temperature Sensor The LM35 is a common and easy-to-use temperature sensor. It does not require other hardware, you just need an analogue port to make it work. The difficulty lies in compiling the code to convert the analogue value it reads to Celsius temperature. Required Hardware 1 x LM35 sensor 1 x breadboard jumper wires as needed V.
VMA502 Connection Programming Code Result After programming, open the monitoring window to see the current temperature. V.
VMA502 7.8 The Tilt Sensor Switch A tilt sensor will detect orientation and inclination. They are small, low power and easy-to-use. If used properly, they will not wear out. Their simplicity makes them popular for toys, gadgets and other appliances. They are referred to as mercury, tilt or rolling ball switches. The Simple Tilt-Activated LED This is the most basic connection of a tilt switch, but can be a handy while one is learning about them. Simply connect in series with an LED, resistor and battery.
VMA502 Programming Code V.
VMA502 7.9 One-Digit Seven-Segment Display LED segment displays are common for displaying numerical information. They are widely applied on displays of ovens, washing machines, etc. the LED segment display is a semiconductor light-emitting device. Its basic unit is an LED (light-emitting diode). Segment displays can be divided into 7-segment and 8-segment displays. According to the wiring method, LED segment displays can be divided into displays with common anode and displays with common cathode.
VMA502 Programming Code V.
VMA502 Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or injury resulting from (incorrect) use of this device. For more info concerning this product and the latest version of this manual, please visit our website www.velleman.eu. The information in this manual is subject to change without prior notice. © COPYRIGHT NOTICE The copyright to this manual is owned by Velleman nv. All worldwide rights reserved.
Velleman® Service and Quality Warranty Since its foundation in 1972, Velleman® acquired extensive experience in the electronics world and currently distributes its products in over 85 countries. All our products fulfil strict quality requirements and legal stipulations in the EU. In order to ensure the quality, our products regularly go through an extra quality check, both by an internal quality department and by specialized external organisations.