In this step the OLED SPI display is added to the Arduino. Therefore, it is not safe to connect USB when the Arduino receives power from the power supply.Īlways disconnect 230VAC mains before using the Arduino USB connection. ![]() The Arduino is powered directly from the stable +5V power supply instead of using the Arduino internal power regulator. Solder one side to the A2 connection on the BACKSIDE of the Arduino, and connect the other side to the CH1 connection of the solid-state mount screw terminal block. Cut a wire of approximately 40mm lenght and strip 4mm of isolation of both ends.Note that the wires for GND and +5V need to cross to connect correctly to the relay screw terminal block.This isolates the wires up to the connection with the mount screw terminal block DC+ and DC- of the solid-state relay. Cut two heat-shrink tubes of 20mm length and mount them over the 25mm stripped part.Solder the side with 30mm stripped isolation to the Arduino +5V and GND, with the wire sticking through.Strip 30mm of isolation on one side, and 4mm on the other side. Cut two wires of approximately 70mm length.In this step, the Arduino Nano is connected to the power supply and solid-state relay. Step 2: Prepare OLED Display and Real Time Clock It is always advised to take proper care and precaution while working with AC Mains. I assume no responsibility for any loss or damage arising directly out of or as a consequence of following this project. This circuit works on 230v AC and if you are not accustomed to working with mains voltage or do not have ample experience in working with 230v AC Mains Voltage please stay away from this project. Screw terminal block (to connect neutral wires).Solid-state relay 5V - Active low - 2A 230VAC.Arduino Nano V3 (compatible) without headers.Total parts costs (excluding 3d print) approximately €30,. The code provided with this project included a daylight saving changes implementation based on European daylight saving system. My goal was to have an independant solution, that does not depend on WIFI (or other) connectivity. Instead of a stand-alone timer, there are many solutions where a smart home automation system steers the lights. My thanks to all the contributors that are not explicitly mentioned.įor readability partial diagrams are shown in the steps where needed, instead of a complete circuit diagram. In the creation of this timer I got inspiration from many designs and circuits on the internet. ![]() The Arduino code for this project can be found on GitHub. The enclosure for this timer is 3D printed and can be found on Thingiverse. ![]() It uses a real time clock and the Dusk2Dawn library to determine the time at which the lights must be switched on or off. To switch on around dusk therefore requires regularly adjusting the timer program setting.Īs a nice challenge, I decided to build a custom Arduino based stand alone timer instead. The regular available clock timers switch on at a specific time. The location of the lights does not allow the use of a light sensor. Some of the lights in my house are automatically switched on at dusk, until either a pre-set time or until dawn (all night). This Arduino based timer can switch one 220V light at dusk, dawn or specified time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |