background image

 

VMA425 

V. 01 – 13/04/2018 

©Velleman nv 

5.

 

Overview 

VMA425

 

With this 4-digit, seven-segment display module, you can easily add a 4-number LED readout to your 
projects. Useful for making a clock, timer, temperature readout, etc. 
 
 

operating voltage: 3.3-5 V 

 

LED colour: red 

 

driver chipset: TM1637 

 

 

6.

 

Example 

Connection. 

Vcc======5V 

Gnd======Gnd 

CLK======pin 2 
DIO======pin 3 

 

 

 

*** CODE BEGIN CLOCKDISPLAY ***

 

//  Author:Frankie.Chu 
//  Date:9 April,2012 
// 
//  This library is free software; you can redistribute it and/or 
//  modify it under the terms of the GNU Lesser General Public 
//  License as published by the Free Software Foundation; either 
//  version 2.1 of the License, or (at your option) any later version. 
// 
//  This library is distributed in the hope that it will be useful, 
//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
//  Lesser General Public License for more details. 
// 
//  You should have received a copy of the GNU Lesser General Public 
//  License along with this library; if not, write to the Free Software 
//  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
// 
//  Modified record: 
// 
/*******************************************************************************/ 
#include <TimerOne.h> 
#include "TM1637.h" 
#define ON 1 
#define OFF 0 
 
int8_t TimeDisp[] = {0x00,0x00,0x00,0x00}; 
unsigned char ClockPoint = 1; 
unsigned char Update; 
unsigned char halfsecond = 0; 
unsigned char second; 
unsigned char minute = 0; 
unsigned char hour = 12; 

Summary of Contents for VMA425

Page 1: ...VMA425 4 DIGIT DISPLAY WITH DRIVER MODULE TM1637 DRIVER USER MANUAL ...

Page 2: ...tions 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 the device for its intended purpose Using the device in an unauthorised way will void the warranty Damage caused by disregard of certain guidelines in this manual is not covered by the warranty and th...

Page 3: ...dation either version 2 1 of the License or at your option any later version This library is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE See the GNU Lesser General Public License for more details You should have received a copy of the GNU Lesser General Public License along with thi...

Page 4: ...nterrupt serve routine TimingISR void loop if Update ON TimeUpdate tm1637 display TimeDisp void TimingISR halfsecond Update ON if halfsecond 2 second if second 60 minute if minute 60 hour if hour 24 hour 0 minute 0 second 0 halfsecond 0 Serial println second ClockPoint ClockPoint 0x01 void TimeUpdate void if ClockPoint tm1637 point POINT_ON else tm1637 point POINT_OFF TimeDisp 0 hour 10 TimeDisp 1...

Page 5: ...ect 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 No part of this manual may be copied reproduced translated or reduced to any electronic...

Page 6: ...n 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 during normal use such as batteries rechargeable non rechargeable built in or replaceable lamps rubber parts drive belts unlimited list flaws resulting from fire water damage lightning accident natural...

Reviews: