Let the sun wake you up or automatic controller for roller shutters

automatic controller for roller shutters

One of the important elements of sleep hygiene is to fit in with the hours of its duration in the peri-day cycle of the sun – fall asleep when it is dark, wake up with the sunrise. Unfortunately, nowadays artificial lighting is able to strongly disturb this state of equilibrium. The lantern that leads us with all the splendor falling directly into the window of our bedroom makes us forget about the comfortable darkness. Therefore, blinds were invented, which help to restore comfortable conditions conducive to falling asleep. However, they cause (at least for me) a problem with access to the waking rays of the sun in the morning. Hence, in my head, the idea of a device was born that would automate the process of opening and closing blinds at certain times. After a short reaserch, I found a DIY project of such a driver created by James cabuu.com

Its creation requires the composition of a dozen elements:

  • printed elements
printed elements
  • printed circuit board created by James
Pcb
  • D1 Mini microcontroller
D1 Mini microcontroller
  • power module for D1 Mini
power module for D1 Mini
  • L298N – dual channel motor controller
L298N - dual channel motor controller
  • motor with worm gear and DC encoder 12V
motor with worm gear and DC encoder 12V
  • LED WS2812B
LED WS2812B
  • two buttons with overlays
two buttons with overlays
  • two resistors 10k Ohm
two resistors 10k Ohm
  • 9V DC power supply
9V DC power supply

  • additionally, some cable and goldpins
additionally, some cable and goldpins

additionally, some cable and goldpins

After complicating all the necessary elements, you can start the assembly:

  • Solder the slots to the plate in the right places. There should be two 4×2 and 2×8 pin female and 1×6 pin male sockets. At your discretion, you can solder the engine directly to the plate.
There should be two 4x2 and 2x8 pin female and 1x6 pin male sockets
  • Place and solder 2 buttons in the marked places. Then solder the 2x10k Ohm resistors at RUP and RDOWN positions.
solder resistors 2x10k Ohm
  • Carefully solder the 3 cables at the ends of the WS2182B LED input and into the appropriate places on the plate. 5V, signal and GND correspond successively to the L, E and D signatures on the plate.
ws2182B LEDs and to the appropriate locations on the plate
  • Solder the 3 two-pin male sockets to the L298N motor controller at + – IN1 IN2 MOTORA as indicated on the controller plate.
Solder 3 two-pin male sockets to the L298N motor controller
  • Solder the extended pin slots to the D1 Mini microcontroller and power module.
extended sockets with pins for the D1 Mini microcontroller and power module
  • Fold the whole thing, connect the power supply and micro usb cable to the computer. You can now upload the software using the Arduino IDE.
Fold the whole thing, connect the power supply and micro usb cable to the computer

A short video of the project process is shown below:

https://youtu.be/kmIQX48NpTE

Chcesz wiedzieć więcej?

Zapisz się i bądź informowany o nowych postach (zero spamu!). Dodatkowo otrzymasz, moją prywatną listę 15 najbardziej przydatnych narzędzi (wraz z krótkim opisem), których używam przy testach penetracyjnych.

Nigdy nie podam, nie wymienię ani nie sprzedam Twojego adresu e-mail. W każdej chwili możesz zrezygnować z subskrypcji.

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *