VMA209
MULTI-FUNCTION SHIELD EXPANSION BOARD FOR ARDUINO
®
USER MANUAL
Page 1: ...VMA209 MULTI FUNCTION SHIELD EXPANSION BOARD FOR ARDUINO USER MANUAL...
Page 2: ...ions of the device before actually using it All modifications of the device are forbidden for safety reasons Damage caused by user modifications to the device is not covered by the warranty Only use t...
Page 3: ...pins PWM 7 Examples 7 1 Blinking LEDs Flashing LEDS on the Velleman VMA209 Programmed by Arduino IDE Compatible with Arduino Leonardo Arduino UNO MEGA char ledPin 10 digital pin 10 LED1 D4 char ledPin...
Page 4: ...ush Button and LED Test VMA209 Push button and LED test written by Patrick De Coninck Velleman NV VMA209 contains 3 Push buttons they are connected to the Arduino Analog inputs A1 A2 A3 in this exampl...
Page 5: ...Y PUSH BUTTON EXAMPLE function press S1 LED D1 will light press S1 again LED D1 will switch off programmed on Arduino IDE compatible with Arduino UNO MEGA define LED 13 LED is on digital 13 another va...
Page 6: ...e Analog line 0 as Pot int PotBuffer 0 initialize variable PotBuffer as integer void setup Serial begin 9600 Set serial port to 9600 Baud void loop PotBuffer analogRead Pot Read the value of Pot A0 an...
Page 7: ...communications baudrate to 9600 Baud void loop val analogRead potpin Read the sensor s analog value and assign it to val Serial println val Print this value to the serial monitor analogWrite ledpin1 v...
Page 8: ...nter VMA209 UP DOWN counter example int latchPin 4 int clockPin 7 int dataPin 8 Define latch clock and data pins for the display int KEY_ADD A1 Define Switch 1 as count UP int KEY_DEC A2 Define Switch...
Page 9: ...ext display please try another value for example 100 to see how the multiplexing works unsigned char ScanKey Scan push button 1 S1 if Flag_up digitalRead KEY_ADD LOW Flag_up 0 display display if digit...
Page 10: ...one value if SUM 0 Value is zero than remain at 0 SUM 0 disbuff 0 SUM 1000 Fill the 4 display buffers with the new value disbuff 1 SUM 1000 100 disbuff 2 SUM 100 10 disbuff 3 SUM 10 7 9 Temperature T...
Page 11: ...00 all segments ON FF all segments OFF 0x7F is used for the decimal point unsigned char Dis_buf 0xF1 0xF2 0xF4 0xF8 this table sets a selector for what digit is selected unsigned char disbuff 0 0 0 0...
Page 12: ...ct 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 p...
Page 13: ...shocks falls dust dirt humidity and by the article as well as its contents e g data loss compensation for loss of profits consumable goods parts or accessories that are subject to an aging process du...