So we have an Arduino Mega 2560 connected to a breakout board, which is inverted onto a veroboard. The board with the ICs and leds is the control panel removed from the DNC65.
The inputs and outputs are as follows:
- ESP8266-01 for emailing alerts
- DHT22 Humidity and Temperature sensor
- DS3231 Real time clock module
- 4 channel relay board
- 2 Buck converters (3.3v & 5v)
- 2 buttons for software assignable roles
- An RGB status led (connected to PWM pins)
- HX711 load cell amplifier connected to cheap set of digital bathroom scales
- Micro SD card adapter
The DNC65 has 5 distinct program modes and 3 timer modes.
The basic operation of the software:
Arduino startup > start sensors and wifi > flash the RGB led to indicate that the water bottle can be placed on the scales.
Select the program I want to run using the on the DNC65 control panel and then press the latching green topped button. Monitoring and controlling the DNC65 will follow using the program it was running at that point. If the unit switches off or someone comes along and selects a different program it will immediately switch it back to what it was doing (including powering on).
Actuating the switches on the DNC65 is done by momentarily setting the specific channel relay on and off - to simulate the button press.
To get the status of DNC65, the leds on the DNC65 board are read using Arduino analogue pins.
The red momentary button is used to send a status report, including today's log file (stored on the micro sd card)
For the software I used Visual Studio 2015 and the VisualMicro Arduino extension. I'll publish the software on Github if anyone's interested.
I also have the same dehumidifier. And one of the things I don't like at all about it, it's when the power fails, he doesn't start automatically after when it returns. So, a remote controlled plug isn't the answer to me. So I saw your project I start wondering on how to hack it. I though using an ESP, but for home automation I recently discovered a Shelly Uni device. This device brings a webserver and also enables it to talk to your MQTT broker. Currently I'm trying to understand how both work (the dehumidifier and the shelly device) to properly control it. Since I'm out of warranty, I started thinker it. The shelly device only supports two channels, so I will use it to control the on and off and use the ADC channel to monitor the error LED (like reservoir full or out).
On the power supply board (the one that has the Relays) there you will find different voltages. You will have 220V, 14V, 5V. The push buttons board holds the 5V. I powered the device to 14V, since it accepts voltages between 12V-36V and I can remotely control the On/Off switch.
Currently I'm still trying to figure out how it works in order to have the device properly controlled.