Remote Reboot - remote power management control systems

With this device can remotely control the load through a local network or through the Internet.

The device consists of five blocks.

1. Block of the control the load from the mains 220V.

2. Block of the control the load from the mains 5V and 12V.

3. Power supply on 3.3V (700mA) and 5V (3A).

4. Controller — the brain of the device.

5. LCD-screen connected through the Shift-register by three wires.

For load control in the device is provided:
  • 8 outlets ~220V (two of which are connected via a relay for an as open);
  • 6 sockets for power supply from 12V
  • 2 sockets for power supply from 5V
  • 3 pins to connect the RGB strips (possibility of using the PWM)
  • 1 output for connecting single-color strip (possibility of using the PWM)

The device is controlled via the HTTP protocol:[PIN]/[CMD]

Pin assignments (PIN):
0-5 - power supply from 12V
6-7 - power supply from 5V
8-15 - power supply from ~220V (14 and 15 - relays)
16-18 - RGB strips (PWM)
19 - single-color strip (PWM)
20 - backlight LCD and LEDs
21 - relay1 (out +12V)
22 - relay2 (out +12V)
100 - view the status of all pins
220 - get actual current

Command values (CMD) for usual outputs are HIGH (turn on) or LOW (turn off). For PWM (brightness adjustment) — the range of values 0-255.

The values ​​of pins 0-15 stored in nonvolatile memory. I.e. after turning on the device, the output state are restored to the values ​​that were before shutdown.

Also in this device added a Hall effect sensor ACS712-30A for current measurement and power of the connected load and then output to the LCD-display.
For a more stable and accurate output information, it was decided to read in one execution of a subprogram, 50 values from the sensor ​​and their location in the array. After that the array is sorted in ascending order (method bubble). Cut out 10 values ​​from the beginning of the array and the 10 values ​​from the end array. With the remaining 30 values ​​is finding average value.

1. Enabling device connected to the second output:

2. Control of the PWM channel, set the brightness to half:

3. For check the state of the second output:

4. Turn on the backlight LCD and LEDs:

5. Turn off the backlight LCD and LEDs:

6. View the status of all pins:

The basis is taken a sketch from RESTduino.

Files with schematics was drawn in sPlan 7.0: Graphs.rar
Sketch with libraries: RemoteRebootV2.1.rar

Photos of the finished device.

LCD Display


Only registered users can comment.