Download Print this page
Velleman VMA502 User Manual
Velleman VMA502 User Manual

Velleman VMA502 User Manual

Basic diy kit with atmega2560 for arduino

Advertisement

Quick Links

VMA502
BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO
®
USER MANUAL

Advertisement

loading
Need help?

Need help?

Do you have a question about the VMA502 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Velleman VMA502

  • Page 1 VMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO ® USER MANUAL...
  • Page 2: Safety Instructions

     Nor Velleman nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) – of any nature (financial, physical…) arising from the possession, use or failure of this product.
  • Page 3 VMA502 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 –...
  • Page 4: Operation

    VMA502 USB interface Atmel mega2560 ICSP for 16U2 reset button digital I/O digital I/O Atmel mega16U2 7-12 VDC power input ICSP for mega2560 power and ground pins 16 MHz clock analogue input pins microcontroller ....................ATmega2560 operating voltage ....................... 5 VDC input voltage (recommended) ................
  • Page 5: Required Hardware

    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.
  • Page 6 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. 02 – 05/04/2019 ©Velleman nv...
  • Page 7 VMA502 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).
  • Page 8 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. 02 – 05/04/2019 ©Velleman nv...
  • Page 9 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.
  • Page 10 VMA502 Programming Code Result After programming, the buzzer should ring. The Phototransistor A phototransistor is a transistor the resistance of which 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.
  • Page 11 VMA502 Connection Programming Code Result After programming, change the light strength around the phototransistor and observe the LED changing! V. 02 – 05/04/2019 ©Velleman nv...
  • Page 12 VMA502 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.
  • Page 13 VMA502 Programming Code 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.
  • Page 14 VMA502 Connection Programming Code Result After programming, open the monitoring window to see the current temperature. V. 02 – 05/04/2019 ©Velleman nv...
  • Page 15 VMA502 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.
  • Page 16 VMA502 Programming Code V. 02 – 05/04/2019 ©Velleman nv...
  • Page 17 VMA502 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.
  • Page 18 VMA502 Programming Code V. 02 – 05/04/2019 ©Velleman nv...
  • Page 19 © COPYRIGHT NOTICE The copyright to this manual is owned by Velleman nv. All worldwide rights reserved. No part of this manual may be copied, reproduced, translated or reduced to any electronic medium or otherwise without the prior written consent of the copyright holder.
  • Page 20 • Velleman® can decide to replace an article with an equivalent article, or to refund the retail value totally or partially when the complaint is valid and a free repair or replacement of the article is impossible, or if the expenses are out of proportion.