VMA419
V. 02 – 14/12/2017 5 ©Velleman nv
Do not use the 5 V power from your Arduino
®
or USB power to power the high-brightness DMD 5 V input
terminals directly. Those sources are only capable of 0.5 A at best. Use the 5 VDC connection on the VMA416
instead.
If connecting a separate 5 V power to your DMD terminals while connected to your Arduino
®
board by USB, be
very careful of your external 5 V power source polarity as you may feed damaging reverse voltage to your
computer's USB port, should the wires be reversed or ground offset.
6. Installing the Libraries
The VMA419 board must work together with the TimerOne and DMD419 libraries. We are using the latest
Arduino
®
IDE version, i.e. v1.8.5.
1. Download the TimerOne library from the VMA419 product’s page on www.velleman.eu.
2. Import the library into your IDE via Sketch Include Library Add ZIP Library.
3. Download the DMD419 from the VMA419 product’s page on www.velleman.eu and add it to your Arduino
®
IDE.
4. Once downloaded, import as you did for the TimerOne library.
5. Close all open Arduino
®
IDE windows and restart the IDE.
7. Additional Programming Information
7.1 Pre-Requisite Code to Enable your DMD
To use a DMD, the following code must be inserted into your sketch:
#include "SPI.h"
#include "DMD419.h"
#include "TimerOne.h"
#include "Arial_black_16.h"<arial_black_16.h>
// you can remove the fonts if unused
#include "SystemFont5x7.h"
#define DISPLAYS_ACROSS 1
#define DISPLAYS_DOWN 1
/* change these values if you have more than one DMD connected */
DMD419 dmd(DISPLAYS_ACROSS,DISPLAYS_DOWN);
void ScanDMD()
{
dmd.scanDisplayBySPI();
}
void setup()
{