CATALOG

The most troublesome issues in campus lighting renovation are "ever-lasting lights" and energy consumption management. Thingboot's 8-channel controller supports direct calls through the HTTP interface, and does not require an additional gateway. It is relatively easy to connect. Below I will write it according to the idea of ​​"Hardware selection → Network deployment → Interface docking → Scenario". You can directly use it to communicate with the technical team or customers.

1. Analysis: Why do campus street lights need "8 channels" to control?

Before talking about how to connect, let’s first outline the pain points of campus lighting. Anyone who has been to the Logistics Office knows that the campus is too big. From teaching buildings, libraries to dormitories and tree-lined avenues, there are hundreds of public lighting equipment.

Although the traditional time-controlled switch can set the time, if it is cloudy or the library is closed late on holidays and needs to be brightened, the security guard has to run to the distribution box in the middle of the night to manually push the switch. Not only is it inefficient, but there is also a waste of "turning on the lights in broad daylight" or "full power consumption during holidays".

What we have to do is useThingboot’s 8-channel intelligent remote centralized control module, "pull" these circuits scattered in the corners of the campus to a central control room or even a mobile APP.

2. Hardware selection: Why choose this 8-way module?

In Thingboot's product line, for lighting control, we mainly focus on universal controllers. For the complex load environment on campus, here is a selection tip:

Application scenario examplesLoad typeRecommended models and key reasons
Classrooms, street lights, landscape lightsLED lights, energy-saving lampsselectAC AC power supply version. Most of them are LED lights, which are inductive loads and can be controlled within 350W per channel. No additional power supply is required. It is more convenient to directly connect to 220V mains power..
Sculpture and model sand table12V/24V low voltage light stripselectDC version. Safe voltage, suitable for humid or outdoor easily accessible areas, used with switching power supplies.

Core advantages: The biggest benefit of this module isComes with WiFi and open HTTP interface. There is no need to buy a gateway. As long as there is a WiFi signal, it can be connected. When connecting, just send a request directly with the code. There is no need to mess with the complicated PLC protocol..

3. Technology docking process (core steps)

This part is for developers to see how to "plug" this hardware into our existing smart campus platform.

Step 1: Device network configuration and initialization

After getting the module, first connect the device to the 2.4G WiFi band of the campus network through the Thingboot App or configuration tool.Notice: Most IoT modules do not support 5G frequency band, please pay attention when setting..

Give each device a recognizable name, such as "Main teaching building-main gate"or"East District Boulevard-Street Light".

Step 2: Understand the open interface (HTTP API)

After the network is configured, the device will have an IP address (cloud ID). Core step usesrequest-responseThe mechanism is very simple. What we need to call is the device control interface.

  • Request addresshttp(s)://api.thingboot.com/{AppID}/device/control/

  • Core input

    • device: The unique ID of the device (the string affixed to the box).

    • order: This is the core of control, such as{"power1":1}.

There is a very crucial point here: Since it is called "8-channel module", the parameters inside it arepower1, power2 ... power8.

  • Want the street light on Route 1 to turn on: Pass{"power1": 1}

  • Want to close Route 3: Pass{"power3": 0}

  • Want to open it all at once: pass{"power1":1, "power2":1, ... "power8":1}.

Step 3: Code implementation example (pseudocode logic)

Suppose you are using Python to write a background service that turns off lights regularly. The code logic may look like this:

Step 4: Handling "Feedback"

It is worth noting that returning 200 only means that the cloud has received the instruction, but does not mean that the light is actually on (for example, the network is disconnected and the device is offline). If you need to confirm the status, you can use Thingboot'sMessage push mechanism, subscribe to the status reported by the device, or make a "refresh status" button on the interface to pull the latest device information.

4. Practical deployment in campus scenarios

With the interface, how do we use this 8-way module in actual projects? Here are a few wiring and strategy tips.

Scenario 1: Renovation of street lights in old teaching buildings (high-power contactor solution)

If the original street light has a large power (for example, more than 2200W), the relay contact capacity inside the 8-way module may not be enough to carry the load directly. At this time, the 8-way module needs to be regarded ascerebellum, external AC contactor thismuscle. The module supplies power to the coil of the contactor, which in turn controls the high-power light bulb. This small current controls large current, which is safe and stable..

The second scenario: Timing and strategy of landscape light strips

Nowadays, universities pay great attention to night scenes, but landscape light strips consume very much power. Using the module's 8 independent channels, you can plan it like this:

  • Weekday mode: Only turn on the 1st channel (contour light).

  • holiday mode: Issue instructions through the platform interface to turn on channels 2 and 3 (internal light + floodlight).

  • late night energy saving: After 12 o'clock in the morning, call the interface to close all channels, leaving only channel 8 (security lighting).

The third scenario: Linking with the educational administration system (advanced gameplay)

This is where the technological sense of the project is enhanced. Since the interface is open, why not let it be linked to the educational administration system?

  • Evening self-study linkage: Obtain the list of self-study rooms with classes tonight from the academic administration system, and the API automatically controls channels 1 and 2 of the corresponding teaching building area to remain fully lit; in areas without classes, adjust the brightness to 50% or turn it off.

  • vacation mode: During the holidays, one-click call interface will switch the whole school lighting to "minimum security mode", turn off 99% of the landscape lights, and retain only necessary security lighting.

5. Tips: Guide to avoid pitfalls in project implementation

In actual construction, there are a few things that can save a lot of trouble:

  1. WiFi signal coverage is the lifeblood: This module uses WiFi, and the distribution box is usually in a weak current well or corner. If the signal is not good and the connection is often dropped, no matter how good the function is, it will be in vain. Use a high-end version of the controller with "one WiFi relay for each distribution box" or "switch to a wired + wireless hybrid network".

  2. Inductive loads need to be derated: LED lights used in large numbers on campus are inductive loads (mostly capacitive) and have large starting currents. When calculating load,Reserve a margin of 3-5 times the rated power, or directly refer to the limit value of the inductive load in the manual (such as 350W), otherwise the module contacts will easily burn out..

  3. Distinguish between "normally open" and "normally closed": In areas involving fire protection linkage (such as evacuation passages), it is best to "turn off the power and turn on the lights". At this time, the wiring cannot simply be connected to the normally open end, but to the normally closed end to ensure that the emergency lighting can automatically light up even if the equipment crashes or loses power.

6. Summary

Through Thingboot’s 8-channel intelligent remote centralized control module, campus lighting docking actually only involves three steps:Connect online, connect to the Internet, and adjust the interface.

Its advantage is8-way independent controlfine-grained enough,HTTP interfaceGeneral enough. Whether you have an Android APP, a WeChat applet, or an old PC-side BS architecture system, as long as it supports HTTP requests, you can easily pull this "hardware wild horse" into your project vehicle and truly realize intelligent and digital management of campus lighting.