Teach you to play with you: remote control of LED ceiling lights

The system is closely integrated with network communication technology, using hot mobile devices such as mobile phones, Ipad as the control terminal, not only can realize remote switch control of indoor LED ceiling lamps, but also can realize color temperature, brightness infinite adjustment, turn off timing, etc. Features. At the same time, combined with the cloud computing platform, real-time monitoring of the situation at home can be realized. In any place with network coverage, whether it is wired network, WIFI network, GPRS network or 3G network, the system can be controlled by the mobile phone login application software.

LED light source is called the most promising green lighting source in the 21st century because of its low energy consumption, high color rendering, long life, non-toxicity, and recyclability. The indoor ceiling lamp adopts LED lamp beads , which can achieve a good color rendering index, and can realize the color temperature adjustment of the lamp by utilizing the color temperature characteristics of the LED to meet the visual requirements of the person.


The widespread use of the Internet and the rapid development of communication technologies have brought digital and informational changes to society, and various household appliances have become more intelligent. The popularization of smart phones provides people with a smart terminal that can access the Internet anytime and anywhere. Using mobile phones, IPAD, etc. to control the lamps eliminates the trouble of finding a remote control, which is convenient and quick. At the same time, when the home monitoring function is enabled, the real-time monitoring video can be saved on the cloud storage platform with large storage capacity, and the user who is on a business trip can log in to the cloud platform through the mobile phone to know the situation at home and not occupy the memory of the mobile phone. The design system uses the Internet and WIFI wireless network communication technology and cloud computing platform to design an intelligent lighting control technology, through the mobile terminal to achieve remote switching, brightness and color temperature adjustment of LED lights, while using the cloud service platform to achieve the situation at home real time monitoring.


Overall structural design


The lighting control system of high-end LED ceiling lamps based on cloud computing is divided into three modules, namely mobile control terminal, cloud service platform and control center. The overall structure is shown in Figure 1. The control center is the control hub of the whole system. It establishes a connection between the control end and the control object, and coordinates the coordination of each part. The LED ceiling lamp has a built-in WIFI module. The mobile phone can be directly connected to the wireless LAN it sends out to control it. Of course, the luminaire and the mobile phone can be connected to the Internet at the same time to remotely control the luminaire.


After the introduction of the cloud computing platform, we use remote monitoring technology to facilitate people on business trips to understand the opening of the lamps in the home through the webcam, to facilitate the corresponding operation of the lamps in time, to realize the opening of the lamps without entering the house and to solve the trouble of forgetting to turn off the lights when going out. . The combination of lighting control technology and cloud computing enables cloud servers to connect to thousands of luminaire subsystems for coordinated control.


hardware design


2.1 Control Center


The control center is the core module of the entire lighting control system, as shown in Figure 2. It establishes a connection between the control end and the control object, coordinating the coordination of the various parts. The main tasks of the control center include communication with the mobile terminal, information exchange with the cloud server, and adjustment control of the luminaire. The most important part is the WIFI communication part. Its working principle is to receive the instructions sent by the mobile phone, convert the received network signal into serial port data, input to the single-chip microcomputer, decode and decode through the lamp control module, and the two-way PWM signal. Adjust to output different duty cycles, change the output current of the dimming power supply, and adjust the brightness and color temperature of the lamp.



The design realizes the conversion between the network signal and the serial port signal through the USR-WIFI232-SUART interface WIFI data transmission module, thereby realizing the control of the luminaire by the mobile control terminal such as the mobile phone through the wireless network. This system uses Taiwan's Hongjing's STC12C5620AD microcontroller as the main control chip. As shown in Figure 3, it is the interface circuit design of USR-WIFI232-S module and single chip STC12C5620AD. The USR-WIFI232-S module is connected to the STC12C5620AD through the serial port to complete data interaction.


The USR-WIFI232-S module has three working modes, including AP mode, STA mode and STA+AP mode.


This design system uses the STA+AP mode. As shown in FIG. 4, in the STA+AP mode, the user equipment can be monitored by using a handheld device such as a mobile phone without changing its original network setting.


The networking application can collect data on the user equipment and send it to the server for processing and storage, and the server can also send commands to control the user equipment. The user can use the mobile phone or PC to control the device through the local area network, and can communicate with the server remotely through the mobile phone or PC to realize remote data acquisition or remote device control.


2.2 Cloud Service Platform Architecture


The cloud service platform architecture includes a cloud computing platform layer, a service layer, and a mobile application layer. As shown in Figure 5.


The cloud computing platform aims to build a cloud environment on the existing hardware and software infrastructure, and provides cloud computing related basic services for the upper control layer, including data storage, data processing services, and distributed database technology.


The control service layer not only provides communication interface with the cloud computing platform layer, but also interacts with the mobile terminal application to process requests from the user client, such as monitoring the home surveillance video. The mobile application layer directly faces the user, interacts with the user interface, and controls the status of the lamp and feedback information.


The cloud computing platform layer is a server cluster that provides cloud services and provides the following functions:


(1) Receiving commands from the control center through the Internet, storing the recording data of the home network camera and storing the data, and transmitting the data to the mobile phone according to the instruction of the control terminal.


(2) Connect to the console through the Internet and accept commands from the console.


(3) Built-in a lot of knowledge about light color, glare and other related light health, for users to download and view.


2.3 mobile control terminal


The mobile console is a human interface device that is the medium through which the user uses the system. The system utilizes the current mainstream Android and IOS systems as a platform to develop a control terminal APP to operate the system. Communication between the interface and the luminaire is accomplished by network communication. There are various network communication modes, such as HTTP communication mode, Socket communication, and WebService mode. The system uses Socket communication to establish a connection with the server and transfer data.


To establish a Socket connection, you need at least one pair of sockets, one is the Client Socket running on the client, and the other is the Server Socket running on the server. The connection process between sockets can be divided into three steps: server listening, client request, and connection confirmation. The Java.net.Socket interface provides a complete API for implementing Socket communication.


Software Implementation


The software design work is mainly divided into three parts. First, the MCU receives the WIFI signal for dimming and color control, the second is the software part of the cloud computing platform, and the third is the mobile control part, including the application side APP of Android and IOS system.


3.1 LED dimming control


Figure 6 shows the flow chart of the LED dimming control program. At the beginning of program execution, the PCA register of the microcontroller is initialized first. Then continue to wait for the signal transmitted by the WIFI module. When the MCU receives the data, it accepts the flag bit 1 and reads it into the receive buffer. Then the MCU decodes and decodes the received code, and then performs the corresponding operation.


3.2 Cloud Computing Platform Software Structure



The software structure level of the cloud computing platform is shown in Figure 7.


The implementation of the cloud computing platform can either build the private cloud of the server cluster by itself or directly rent the services provided by the large cloud computing company, such as the cloud computing industry giant Google and the cloud service launched by Amazon.


On the cloud computing platform, we provide a basic service layer to provide the system with some of the necessary functions, such as user authentication, data storage, networking and programming interfaces with control centers and smart terminals. This provides some standard services for the more advanced application layer. We can use these services to maintain our software systems, further develop system software applications, and achieve timely data updates.


3.3 Mobile Control Software Development


According to the design requirements of the intelligent LED ceiling lamp system, the control terminal system should include the following functions:


(1), through the mobile phone to achieve a key switch of the LED ceiling lamp, a sound bright, warm white, white setting.


(2) The brightness of the LED ceiling lamp is infinitely adjusted (5%-100%) and the color temperature is infinitely adjusted (2700K-6500K).


(3), to achieve the timing function of the LED ceiling lamp, respectively: "no timing", "10 minutes", "20 minutes", "30 minutes".


(4) Turn on and off the button indicator sound of the LED ceiling lamp and the third-level brightness adjustment of the night light (30%, 60%, 100%) through the mobile phone.



The overall design of the mobile terminal APP is shown in Figure 8. Enter the IP and port number on the login interface to connect to the network. Then enter the main interface, you can control the luminaire.


The white button in the upper right corner of the main interface is the Favorites button. The favorites include the user's account management, adding a light group, subscribing, and exiting.


in conclusion


The system test results show that the system can log in to the application APP through the mobile phone or Ipad in any place with network coverage, and control the brightness, color temperature of the LED ceiling lamp. The system can be applied to home lighting, especially suitable for villas with large home area and more houses, which can conveniently control the lighting of the home lighting. In addition, if the design is slightly modified, it can be extended to similar projects, such as remote smart home management, remote camera control management system and many other similar projects.

DC cable connector diameter (d) is 2.1mm, diameter (D) is 5.5mm, thickness (B) is 10mm. 

15V Power Adapter features: 1, product size: 74 * 30 * 42mm, small size, streamlined, completely sealed, easy to carry.cost-effective, high reliability, ultrasonic pressure shell. built-in over voltage, overcurrent and short circuit protection.Products with strong anti-interference, to ensure the use of long life products, through the EMC test, ripple ≤ 50MV.Widely used in Monitor,router and other products.Output conventional voltage 5V 12V 24V 36V 48V, the other can be produced according to customer requirements.

15V AC DC Switching Power Adapter

15 Volt DC Power Adapter,15 Volt Power Adapter,15 Volt AC Adapter,15V AC Power Adapter

Shenzhen Juyuanhai Electronic Co., Ltd. , https://www.powersupplycn.com

Posted on