The last of the off-duty guys are in the habit of turning off the office air conditioner, but tend to neglect the bathroom air conditioner, hence the creation of this device.
Its main function is to use the Wio Terminal to detect bathroom usage in real time and automatically turn off the air conditioner when no one is using it, as well as displaying the number of hours the air conditioner is in use each day of the week on a screen.
There are two TCL air conditioning control panels on the wall at the entrance to the bathroom, controlling the air conditioning in the men's and women's bathrooms respectively.
There is an infrared receiver embedded in the panel, which receives the infrared remote control signal.
The control signal is transmitted via the IR transmitter on the back of the Wio Terminal, which can be used to turn the air conditioner on and off.
The production process is divided into 3 main parts:
1.Electronic part: make full use of Wio Terminal's hardware resources, infrared emission, WiFi, etc., with the corresponding power supply and body-sensing module.
2. Software section: Coding for the needed hardware
3. Structural part: acrylic cutting and mounting bracket
The first thing that needs to be addressed is how to power the hardware, observing that the air conditioning control panel itself needs to be powered, you can take it apart and see what's inside!
I was lucky to find a 12V inside that could be used, so I soldered the power cord and put the control panel back together, leaving the power cord exposed for later use.
The rest of the electronics used a Wio Terminal engineering prototype and a Grove-PIR Motion Sensor.
Software Part- Navigate to Wio Terminal's get started Wiki, LCD, Network, and Infrared Emitter sections.
- Download the dependent libraries:
2. RTClib
- Implement your own control logic
You can find the entire code in the attachments.
UI interfaceTime and date are obtained through NTP server timing, so you can get accurate time without setting in the network state.
The right-hand dot shows whether the air conditioner is on or off, and the little man shows that the air conditioner is turned on when it detects someone's movement
A progress bar in the middle shows the countdown time and turns off the air conditioning when all the green disappears.
The bottom section shows statistics on the number of hours the air conditioner is on each day of the week.
Structural partThe structure needs to be considered stable to support the Wio Terminal so that its IR emitter is pointed at the air conditioning control panel.
You may modify this project to adapt your own AC controller and suitable for your office/work :D
Comments