Smart Counter with TM1637 CloudX

  • img
Project Details

The TM1637 seven segment module makes it easy to interface multiplexed segments displays with the microcontroller with just two wire including the VCC and GND, making four  terminals in total. The TM1637 seven segment module consists of CLK, DIO, VCC and GND. 

CloudX provides full libraries that supports this module. The two libraries includes:

SegmentTM1637_setting and SegmentTM1637_write

Please check the CloudX documentation for more details on how to use the TM1637 seven segment library.

In this project, I have connected the CLK pin to pin1  and DIO to pin2 of cloudx, then the VCC to 5V and GND to GND

 

Code

#include <CloudX\Priscilla_2620.h>
#include <CloudX\SegmentTM1637.h>

int i=0;
setup(){
pinMode(1,OUTPUT);
SegmentTM1637_setting(1,2,6); //DIO, CLK, brightness

loop(){
SegmentTM1637_write(i++);
if(i>9999) i=0;
delay(300);

}
}

Share this with friends