A "poor mans version" of awning control
-
I wanted to fix an automatic/manual control for a couple of awnings. Most of such projects are based on 220 volts motors and quite expensive parts so I decided to try to make a "poor mans version". This is the first test version based on:
12V power supply.
An Arduino Nano with MySensors stuff.
One "Genuine Chinese" 12V DC motor with gearbox.
A L298N Dual H Bridge for motor control.
An ACS712ELC-5A to measure the current.
A couple of door/window reed type switches.
A few 3D printed boxes, one magnet holder etc.
Buttons etc.The function desired is quite simple:
Manual control from Openhab or buttons on the control box.
Auto control based on light level reported from a Z-wave based light sensor.
The buttons can control the motor directly or via commands to Openhab .
Basic movements are "down to the down endstop" and "up to the up endstop".
The movement can also be manually stopped anywhere from Openhab or the buttons.
To avoid motor overload the current is measured.Here is the original, always working solution:
And here is the dc-motor version (a test installation):
The control box, a bit crowded but everything works:
The Openhab page (won't translate it, sure you get the idea):
The basic idea is working, control logic works but auto mode and stop due to current overload are not implemented yet. Also this motor will not be sufficient for everyday use but a more powerful unit is ordered. As 12V motor vinches are available up to sizes for 4 wheel trucks this should not be any limiting factor. Question is just to find something of smaller size but still working.
As such a project involves several unique parts a 3D printer is of great help. To be able to design something, print it, make a test and modify whatever needed is a lot of fun in addition to fixing the electronic parts and the programming.
All is hopefully installed and working before spring is here.
Suggested Topics
-
Problem with connecting serial gateway to openhab2
OpenHAB • 7 Jan 2020, 19:52 • Marcin Szyda 8 Jan 2020, 18:01 -
MQTT gateway - Openhab & Mosquitto
OpenHAB • 25 Feb 2015, 01:48 • alexeinz 25 Feb 2015, 07:52 -
SmartSleep a feature of the Gateway
Feature Requests • 18 Jun 2017, 21:05 • strangeoptics 19 Jun 2017, 10:43 -
OpenHAB MySensors binding 2.5: V_VAR1 and String values
OpenHAB • 3 Jun 2020, 19:09 • syntacrsc 7 Jun 2020, 18:01 -
SmartSleep and multiple messages on HVAC sensor
OpenHAB • 28 Apr 2018, 14:08 • ogghst 8 May 2018, 19:36 -
Sending serial commands to sensors
Controllers • 11 May 2015, 16:58 • Tango2 11 Jun 2015, 10:42