- Home >> Solution >> Appliances >> convenient tools
LED Controller Hardware Solution
With the rapid development of technology and the continuous improvement of people's living standards, the concept of smart home has gradually entered the public's field of vision, allowing people to view and control the home in real time through external devices such as mobile phones and tablets, creating a more comfortable and convenient living environment. . Smart home is an important part and manifestation of social informatization development, leading the home furnishing industry to develop in the direction of intelligence, green and standardization. This system is designed for smart home lighting system. From the perspective of energy saving and environmental protection, LED lamps with low energy consumption, long life cycle and environmentally friendly materials are selected; for information transmission, Bluetooth, a short-distance wireless communication technology, is used to realize data, commands, etc. through wireless networks. Two-way transmission; combined with the development reality, in order to realize the internal program design of the smart home lighting system, the C51 single-chip microcomputer with simple operation, relatively low cost and strong practicability is selected. These applications can not only bring better user experience, but also save energy, reduce costs, and protect the environment.
1. The principle of intelligent control of LED lights
This system adopts STC89C51RC single-chip microcomputer to make a bluetooth switch LED light system, connects with the Android smart phone through the bluetooth communication module, and then uses the developed App to control the switch of the three LED lights, so as to realize the intelligent switch control of the light without going to the The manual operation of turning on and off the lights is carried out at the fixed switch. The smart phone can control three LED lights at the same time, and the switches of these three lights do not affect each other and are independent of each other. Its communication diagram is shown in Fig. 1.
2. Scheme design of intelligent control system
2.1 Hardware design of intelligent control system
The hardware design is divided into three parts: single-chip microcomputer selection design, bluetooth module selection design, and other components selection design. The specific description is as follows:
(1) The choice of single-chip microcomputer is STC89C51RC single-chip microcomputer. STC89C51RC is an in-system programmable chip (In System Programming, ISP) with 8051 core, and the maximum operating clock frequency is 80 MHz. The power supply system adopts the integrated voltage regulator module LM7805. This module has the characteristics of low cost and high conversion rate. It is suitable for the production of small projects. 3 s lithium battery module for power supply, strong portability. If you need an external 5 V high-power electrical appliance, you can use the LM2596S module.
(2) The choice of Bluetooth module is HC-06 Bluetooth module, its working voltage is 3.3 V, the wireless receiving and transmitting frequency is 2.4 GHz, the volume is 27 mm×13 mm×2 mm, and the module has built-in 8 M Flash, which is powerful and convenient for users Customizable software, suitable for various bluetooth devices, bluetooth module technology can refer to literature.
(3) Other component selection control system components include 10μF electrolytic capacitor, 10 kΩ color ring resistor, 1 kΩ color ring resistor, DIP40 microcontroller socket, 22 pF ceramic chip capacitor, 11.059 2 MHz crystal oscillator, 7 cm×9 cm multi-hole plate , 2.5 mm pin header, self-reset button, DC 5 V power socket, DC 5 V USB power cord, LED power indicator, 3 LED light-emitting diodes, welding jumper, 4.7 kΩ exclusion, DuPont line, wire, 1 kΩ color ring resistor, solder wire.
The hardware circuit of the control system includes a crystal oscillator module and a reset module. The reset module is composed of a 4-pin button plus a 1μF electrolytic capacitor and a 10 kΩ pull-up resistor. When the switch is pressed, the module will give a high level to the reset pin of the single-chip microcomputer for a long period of time, so that the internal program of the single-chip microcomputer Restart to prevent the program from running away and ensure the safety and stability of the system. The crystal oscillator module is composed of a 11.059 2 MHz crystal oscillator tube and two oscillating capacitors. The value range of the capacitor is generally 22 pF to 30 pF. The purpose is to give the system a continuous and stable clock frequency. This module needs to be connected to a specific pin of the MCU, for example, the reset module needs to be connected to the RST pin of the MCU, otherwise it is useless. In addition, the crystal oscillator circuit needs to be connected to specific crystal oscillator pins.
2.2 Software design and implementation of intelligent control system
The system consists of a single-chip microcomputer control part and an Android system App. The user can wirelessly control the LED lights through the App of the Android system, and the single-chip microcomputer control part executes the instruction. The flow chart of the control system is shown in Figure 3.
The user opens the program interface of the Android mobile phone. Turn on the bluetooth of the mobile phone, connect to the bluetooth module of the single-chip microcomputer, control the switch of the LED light through the mobile phone interface, and complete the test of the control system. The realization of the intelligent control of the system is programmed in C language, the compilation and debugging of the program are completed in the Keil C51 environment, and the program is burned into the single-chip microcomputer through the burning software.
Summarize
The Android-based intelligent LED switch remote control system has the characteristics of good stability, low cost, and simple operation, bringing users a more convenient and comfortable life experience, greatly enriching people's lives, and improving people's quality of life. At present, the system is in the stage where LED lights can be controlled within a certain range, but the remote control of the switch of LED lights has not yet been realized, and further research is needed.
The above are the details of the LED controller hardware solution introduced by Shenzhen Zuchuang Microelectronics Co., Ltd. for you. If you have the development and design needs of LED controllers, you can trust us. We have rich experience in custom development of electronic products, and can evaluate the development cycle and IC price as soon as possible, and can also calculate the PCBA quotation. We are a number of chip agents at home and abroad: Songhan, Yingguang, Jieli, Ankai, Quanzhi, realtek, with MCU, voice IC, Bluetooth IC and module, wifi module. Our development capabilities cover PCB design, single-chip microcomputer development, Bluetooth technology development, software customization development, APP customization development, WeChat official account development and other hardware and software design. It can also undertake the research and development of smart electronic products, the design of household appliances, the development of beauty equipment, the development of Internet of Things applications, the design of smart home solutions, the development of TWS earphones, the development of Bluetooth earphone speakers, the development of children's toys, and the development of electronic education products.
- TOP