[Photo] Using LED to design LED rocker

The LED rocker utilizes the visual persistence characteristics of the human eye to refresh the LED light-emitting diodes, and when rocking, an image is generated in the shaking area. This article is a simple and interesting LED rocker, based on single-chip control, with buttons to switch screens and eliminate ghosting, etc., to see how this LED rocker is designed!

The rocker is a development kit, all with in-line components. The displayed LED uses a 5mm super bright 30 degree concentrating LED, a total of 32. The control chip adopts the macro-chip STC11F03E, which has 3K program storage space inside, 256 bytes of data storage space, and 2K EEPROM space inside. The design can download the downloaded picture data to the internal EEPROM through the serial port, and it will not be lost after power off.

This paper designs and produces a digital display device that uses 16 pre-programmed programs to control 16 LED light-emitting diodes and display the characters and simple graphics with the shaking of the left and right hands (referred to as “shake stick”). The graphic LED shows the stick. This device uses the AT89C51 microcontroller to control the LED array. The ball switch is used to detect the current shaking state, and the single-chip microcomputer controls 16 LEDs to perform refreshing and refreshing of different frequencies, and the information such as the output text and the pattern can be displayed by shaking, thereby achieving the function of conveying information on the visual plane.

1, the composition of the LED rocker hardware system

This design is a simple and interesting LED rocker, which is an electronic device based on single-chip control. With buttons for screen switching and ghosting, the screen is clearly displayed. It is mainly composed of the control part of the single chip, the LED driving part and the LED display part. The hardware composition block diagram is shown in Fig. 1.

1.1LED rocker button module

In this design, the displayed content is switched by a screen change switch. In the design, the ball switch can be used to control the rocker to display information when it is shaken to one side. Otherwise, a mirror image or mirror image will appear, which is a phenomenon of ghosting. The optional rocking control switches are available in both mercury and ball switches. Mercury switches have higher stability but are less secure. Although the ball switch is slightly less stable, it is not easily broken and has a high degree of safety. Considering the actual application environment, the ball switch is selected as the shaking control of the system, and the instability caused by the ball switch can be compensated by software. The function of the manual reset switch is to control the start and stop of the system.


1.2LED rocker control part

As the control core of the whole system, the minimum system of the single chip microcomputer is mainly responsible for controlling the brightness and display of the diode. The display effect of the rocker is controlled by software programming and external interruption of the microcontroller.

1.3 LED display module

In this design, the display portion is designed according to the display principle of the LED dot matrix. The display of the dot matrix is ​​divided into two types: row scanning and column scanning. The column scanning is to input the font array through the row driving of the dot matrix screen, and then scan each row through the column, when the column is low (high) level. When the behavior is high (low) level, it means that the point is a part of the pattern, and it is read and displayed. The LED display stick data transmission principle of this design is similar to that of the LED dot matrix screen. Think of the LED display stick as a column in the LED dot matrix screen. In order to make the displayed pattern clear, 16 high-brightness LED tubes are used in the design to arrange them in a row, and the entire screen is equivalent to 16 rows × 1 column when it is stationary. Data transmission and column scanning are also used for data transmission. In the swinging process, applying the principle of visual persistence of the human eye, the illuminated column does not disappear quickly, but continues to move forward with the direction of the swing, as long as the moving speed is higher than the shortest time of the visual persistence. The display content will not go out, so that a pattern can be "swinged" out like this.

According to the system analysis, the specific hardware circuit is connected as shown in Figure 2. In the specific hardware production, 16 3mm high-brightness red LEDs are arranged in a neat row.


In the simulation debugging under proteus, the given Power Supply VCC is 5V, and the actual use of 3 dry batteries in series with 4.5V can be.

APM Ac Dc Variable Power Supply is high-performance and high-efficiency Lab Power Supply with RS232C, RS485, USB,LAN, GPIB(optional) interface based on SCPI protocol .

Combination of full features of market , Ac Power Supply provides versatile solutions for your design and test requirement in the industrial fields, R&D institute center and education field.

It also provides built-in standard automobile electrical testing curves,users can select any built-in curve to do the DUT performance test directly according to their demand.

Some features of the DC Power Supply as below:


  • Ultrafast respond time
  • Accurate voltage and current measurement capability
  • Constant Power and wide range of voltage and current output
  • Equips with LIST waveform editing function
  • Master/Slave parallel and series operation mode for up to 10 units
  • Full protection: OVP/OCP/OPP/OTP/SCP
  • Voltage drop compensation by remote sense line.
  • Have obtained CE,UL,CSA,FCC.ROHS


150V Dc Power Supply

150V Dc Power Supply,Laboratory Dc Power Supply,Dc Power Source,Dual Output Power Supply

APM Technologies (Dongguan) Co., Ltd , https://www.apmpowersupply.com