LED Time Clock Module For Arduino 0.36" TM1637 Driver โมดูลแสดงผลแบบนาฬิกา ตัวเลข 4 หลัก
โมดูลแสดงผลตัวเลข 4 หลัก แบบมีจุดนาฬิกาคั่น หน้าจอ 0.36" ใช้ไฟ 3.3-5 โวลต์ ใช้ IC TM1637 เป็นตัวขับ การเชื่อมต่อแบบอินเตอร์เฟส I2C ใช้สายสัญญาณพียง 2 เส้น ใช้ง่าย มีไลบารีมาให้พร้อมใช้งาน สำหรับงานแสดงผลตัวเลขที่มีเวลาเช่น นาฬิกา , แสดงผลการจับเวลา และอื่น ๆ
- The module is a 12 foot with a clock point four common anode tube (0.36 in.) display module for driver IC TM1637, only two signal lines can make the MCU control 4 8 digital tube.
Module Features:
- Display common anode for the four red LED
- Digital tube 8 gray adjustable
- Level control interface for 5V or 3.3V
- 4 M2 screws positioning holes for easy installation
- Size:42X24X12mm
Interface 4 digital display module: (the last picture show)
- Control Interface : A total of four pins (GND, VCC, DIO, CLK), GND to ground , VCC is the power supply , DIO of data input and output pin , CLK is the clock signal pin ;
- Digital tube: 4 common anode score points with 0.36 inches LED, red highlights ;
- Positioning holes : 4 M2 screws positioning hole diameter is 2.2mm, the positioning of the module is easy to install , to achieve inter- module combination
วิธีการต่ออุปกรณ์ สอนใช้งาน Arduino LED Time Clock Module For Arduino0.36"TM1637Driverโมดูลแสดงผลแบบนาฬิกา ตัวเลข 4 หลัก
1.เชื่อมต่ออุปกรณ์ตามด้านล่าง
Arduino UNO R3 -> 1 HT16K33 4Bit Segment Display Module
• 5V-> VCC
• GND-> GND
• 6-> CLK
• 7-> DIO
2. เมื่อเชื่อมต่ออุปกรณ์เรียบร้อยแล้ว ให้ทำการดาวน์โหลดLibrary ข้างล่าง แล้วแยกโฟลเดอร์ออกไปใส่ไว้ที่C:\Users\.....\Documents\Arduino\libraries
โหลด library ลิ้งค์ด้านล่างลง Arduino IDE
3.จากนั้นทำการcopy โค๊ดด้านล่างไปใส่ไว้ในโปรแกรมArduino IDE
4
TM1637 Display1(CLK, DIO);
9
Display1.set(BRIGHT_DARKEST); // กำหนดความสว่าง 0-7 หรือกำหนดผ่านค่าคง
10
} // BRIGHT_TYPICAL = 2 , BRIGHT_DARKEST = 0 , BRIGHTEST = 7
13
Display1.display(0, 1); // แสดงเลข 1 ที่หลัก 0
14
delay(1000); // *** หลัก (0,1,2,3) นับจากซ้ายตามลำดับ
16
Display1.display(1, 2); // แสดงเลข 2 ที่หลัก 1
19
Display1.display(2, 5); // แสดงเลข 5 ที่หลัก 2
22
Display1.display(3, 8); // แสดงเลข 8 ที่หลัก 3
25
Display1.display(0, CHAR_BLANK); // แสดง ' ' (ช่องว่าง) ที่หลัก 0
28
Display1.display(1, CHAR_BLANK); // แสดง ' ' (ช่องว่าง) ที่หลัก 1
31
Display1.display(2, CHAR_BLANK); // แสดง ' ' (ช่องว่าง)ที่หลัก 2
34
Display1.display(3, CHAR_BLANK); // แสดง ' ' (ช่องว่าง) ที่หลัก 3