ESP8266 Garage Door Opener Standalone Web Server

Difficulty: Star LitStar LitStar LitStar LitStar Unlit (4/5)

ESP8266 WiFi Garage Door Opener - Render

 

This is a bit different then my other “Smart Home” projects since it uses an ESP8266-12F to host a standalone web server. That means you don’t need to install any of that fancy stuff like HAP-NodeJS or a MQTT Broker. Using the HC-SR04 Sonar Range Finder it can detect how far away your garage door is, or if it doesn’t detect it at all to determine whether it is open or closed. There is a Thermistor connected with a Resistor to make a voltage divider to calculate the temperature. During startup the ESP connects to your network and will get your local time if your network has internet and you set the proper timezone in the Arduino Sketch.

ESP8266 WiFi Garage Door Opener - FrontTo power it there are a couple of options. If you are using a 5V Power Supply then all you will be needing is the LM1117 3.3V Linear Voltage Regulator to step down the voltage for the ESP8266, this is the most efficient option in this build. If you don’t have a 5V Power Supply you can use anything from about 6V to 12V with the addition of the LM7805 5V Linear Regulator, my design allows for both options with a jumper to disable the 5V Regulator if required.

ESP8266 WiFi Garage Door Opener - TopESP8266 WiFi Garage Door Opener - BottomYou will need to use 5V Relay Board or something similar to connect two wires from the unit to almost any garage door opener’s wall mounted switch, or directly to the motor itself. Then simply enter the address that can be configured in the Arduino Sketch, mine was garage-home.local and the web page with the controller will show up. Solder everything up with some good solder and some 22 AWG Hook-up Wirehook up wires. You will also need a variety of Electrolytic Capacitors, Ceramic Capacitors, LEDS, Resistors, Header Pins, Transistors, etc. that some people might have already on hand or salvaged from some old electronics. You can download my model from Thingiverse and I may design a board in Eagle if there is enough interest for those who either etch your own boards, or would like to just send it away to a board shop to get made by there preferred board manufacturer.

ESP8266 Garage Door Opener Web Server PageNow if everything went well you should be able to open up any web browser on your network and enter the address that was set up during programming, by default it is set to garage-home.local. A controller should show up on a webpage displaying things like run time, temperature, and door status. Here is where you also setup the threshold distance for the HC-SR04 Sonar Range Finder to calibrate the distances. Once everything is tuned all you have to do is push the large open / close button on the remote and your door should operate over WiFi.

Parts List

If you’d like to see more please drop a comment below, email me directly using admin@triplemike.com or hit me up at any of my social links with your comments and suggestions.

Cheapest Digital Constant Current Power Supply 50V 5A

Difficulty: Star LitStar LitStar LitStar LitStar Unlit (4/5)

New CC PSU v18 My latest model is a Constant Current Power Supply that can handle 50 volts at 5 amps. The model in the picture was rendered in Autodesk Fusion 360 and can be easily printed on almost any 3D printer, I used a PrintrBot Simple 100mm x 100mm. This model has enough space to fit a DC-DC Boost Converter that takes a 12 volt input and boosts it to 35 volts. The 35V signal is then fed into the DPS5005 Constant Current Power Supply (PSU.) The manufacturer offers this unit in a range of different voltages and amp ratings and this model fits almost all of them. Mine can handle up to 50V at 5A allowing me to upgrade the 35V Boost Converter in the future.

Cheapest Digital Constant Current PSU 50V 5AIn this picture you will see my working unit that utilizes an Arduino Pro Mini Micro Controller (MCU) with two thermistors to monitor temperature and  controls a small 40mm X 40mm x 10mm 12V Computer Fan with one of its Pulse Width Modulation (PWM) pins. I have also allowed for enough room in the case for the Power Supply Unit (PSU) that comes with a Bluetooth Module used for serial communications. The add-on allows you to control it by turning it off, on, and change various settings wirelessly as well as a program for your PC. I haven’t used this feature yet but imagine it could come in quite handy.

Cheapest Digital Constant Current PSU 50V 5A - Standby
Standby – Fan Off
Cheapest Digital Constant Current PSU 50V 5A - Cool
Cool – Fan Slow
Cheapest Digital Constant Current PSU 50V 5A - Hot
Hot – Fan Faster

 

 

 

 

 

I added a pair of the WS8212B RGB LED‘s which shine white when the temp is below 30ºC on either of the two heat sinks. Two 10K thermistors are used to sense if the temperature hits 31ºC. When it does the light changes blue and gradually to red as it reaches the max of 70ºC. The fan also speeds up using the same scale. I took the above photos while testing my unit with a car headlight as the dummy load.

Constant Current Arduino Pro Mini Hat v2I designed a Printed Circuit Board (PCB) in Autodesk Eagle that lines up perfectly on top of the Arduino Pro Mini. Keep in mind this part is completely optional, and might be for the slightly more advance maker. I combined all of the components required to connect the two temperature sensors, all the LED’s, and control the 12V cooling fan. You print the layout on a laser printer or any professional photo copier that uses toner and transfer it to a copper clad board using the Iron. I may create a separate post for the Ferric Chloride etching process that I use if there is any demand.

Parts List

If you’d like to see more please drop a comment below, email me directly using admin@triplemike.com or hit me up at any of my social links with your comments and suggestions.