Difference between revisions of "Lesson 23--Microduino Digital Tube Clock"
(Created page with "{{Language|第二十三课--Microduino 数码管时钟}} {| style="width: 800px;" |- | ==Objective== This tutorial will teach you use the Microduino RTC module to dispaly time...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
| | | | ||
==Objective== | ==Objective== | ||
− | This tutorial will teach you use the Microduino RTC module to | + | This tutorial will teach you use the Microduino RTC module to display time on 4 digit tubes. |
==Equipment== | ==Equipment== | ||
*'''[[Microduino-Core]]''' | *'''[[Microduino-Core]]''' | ||
− | *'''[[Microduino- | + | *'''[[Microduino-USBTTL]]''' |
*'''[[Microduino-RTC]]''' | *'''[[Microduino-RTC]]''' | ||
*Other equipments | *Other equipments | ||
**USB cable one | **USB cable one | ||
[[File:RTCTime_0.jpg|600px|center|RTCTime]] | [[File:RTCTime_0.jpg|600px|center|RTCTime]] | ||
+ | |||
==Program== | ==Program== | ||
Digit tube program download: | Digit tube program download: | ||
==Debug== | ==Debug== | ||
− | *Step | + | *Step 1: |
− | Measure the four digital tube clock pin. Digital tube has different specification | + | Measure the four digital tube clock pin. Digital tube has different specification. |
+ | |||
− | |||
− | *Step | + | *Step 2: |
− | Insert the digital tube to Microduino core. Installation method is top row connect to D0 - D6, | + | Insert the digital tube to Microduino core. Installation method is top row connect to D0 - D6, button row connect to D7 - D13. |
[[File:RTCTime_1.jpg|600px|center|RTCTime]] | [[File:RTCTime_1.jpg|600px|center|RTCTime]] | ||
− | *Step | + | *Step 3: |
− | Stack the Microduino | + | Stack the Microduino-USBTTL, Microduino Core and Microduino RTC together. |
[[File:RTCTime_2.jpg|600px|center|RTCTime]] | [[File:RTCTime_2.jpg|600px|center|RTCTime]] | ||
− | *Step | + | *Step 4: Download program |
− | Before download program, can't overlay digital tube. | + | Before download program, can't overlay digital tube. Because if the digital tube connect to the serial port pin, keep the serial port pin voltage as low level, will be about 0.7 V, which will cause the program download fail. |
Because digital tube pin may be different, so you may need to change the program. | Because digital tube pin may be different, so you may need to change the program. | ||
**Program uses common anode clock digital tube, if want to light the common cathode digital tube, need to change the LOW to HIGH and HIGH to LOW in function duanma(). And in the daytime() function, add a "~" before the data, such as leddisplay(data[timehours]), it need to be changed to leddisplay(~ data[timehours]); | **Program uses common anode clock digital tube, if want to light the common cathode digital tube, need to change the LOW to HIGH and HIGH to LOW in function duanma(). And in the daytime() function, add a "~" before the data, such as leddisplay(data[timehours]), it need to be changed to leddisplay(~ data[timehours]); | ||
Line 40: | Line 41: | ||
==Result== | ==Result== | ||
− | After download program, the digit tube will | + | After download program, the digit tube will display time. |
[[File:RTCTime_3.jpg|600px|center|RTCTime]] | [[File:RTCTime_3.jpg|600px|center|RTCTime]] | ||
[[File:RTCTime_4.jpg|600px|center|RTCTime]] | [[File:RTCTime_4.jpg|600px|center|RTCTime]] | ||
Line 46: | Line 47: | ||
==Video== | ==Video== | ||
− | |||
|} | |} |
Latest revision as of 08:29, 12 September 2016
Language: | English • 中文 |
---|
ContentsObjectiveThis tutorial will teach you use the Microduino RTC module to display time on 4 digit tubes. Equipment
ProgramDigit tube program download: Debug
Measure the four digital tube clock pin. Digital tube has different specification.
Insert the digital tube to Microduino core. Installation method is top row connect to D0 - D6, button row connect to D7 - D13.
Stack the Microduino-USBTTL, Microduino Core and Microduino RTC together.
Before download program, can't overlay digital tube. Because if the digital tube connect to the serial port pin, keep the serial port pin voltage as low level, will be about 0.7 V, which will cause the program download fail. Because digital tube pin may be different, so you may need to change the program.
ResultAfter download program, the digit tube will display time. Video |