Bright LED electronic recording clock produced

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/YYGY731793898/article/details/91495040

Bright LED electronic timepiece production notes

      2.3 inch previously done in the electronic digital clock, the display colors are fixed red or blue. PCB manufacturers recently because a large proofing bled within five 10 * 10 long as 5 yuan also shipping, online streaming snow lamp, lamp beads using a single kind of bus driving IC built RGB lamp beads, no problem cascade thousands . Recently because relatively busy, try to make a kind, made out looks very hyun, color brightness as you set. Like this:

So I think the electronic clock also look to upgrade, arranged in four words plus 8 points this lamp beads, imitation pen-segment tube. Within board 10 * 10CM, 2 8 characters plus points. Schematic:

The PCB looks like this:

 

After the two plates are put together like this:

After welding element is such that:

Gotta bigger way now, then add Frame:

Of course, the program was to get a hold, through the power:

8:51 am

12:16 noon

Of course, what color would like to set up their own, free.

Part of a program must pay attention to:

 

 

DMA buffer head and tail is sure to set aside to 0, so as to ensure that each lamp beads color display correctly.

 

STM32F030F4P6 memory resources tight, DMA buffer bytes define it, do not learn from others to engage in half-word, otherwise they could not handle.

Data pin GPIO initialization, remember to open the clock, set the corresponding multiplexing function, make no mistake. IO multiplexing function as shown below:

 

Set the timer channel to Romania. Used herein is the timer channel 3 4 i.e. PB1. PWM mode, the frequency of 800K.

 

 

 

DMA_InitStruct.DMA_MemoryDataSize = DMA_MemoryDataSize_Byte; provided here to byte.

Different timer channel corresponding to a different DMA channel.

Here also leave God.

 

 

 

 

 

Display section:

 

 

As to engage in what cool effect out, the rest is a play on their own.

Guess you like

Origin blog.csdn.net/YYGY731793898/article/details/91495040