DIY do it yourself
Master classes, instructions, useful tips, recipes.
» » »Scheduled load on and off
Scheduled load on and off

I propose for assembly another electronic device designed to automate human life. It can be described as follows: at a given time it turns on the load, and at a given time it turns off, and the next day the cycle repeats. Those. if there is a need, for example, to turn on the light every day at 10:00 and turn off at 21:00, this device will perfectly cope with such a task. It can be used, in addition to turning on the light, for example, for watering plants once a day.

Device diagram


Scheduled load on and off

A few words about the scheme. It contains two microcircuits, a clock DS1307 and an Attiny13 microcontroller. Two buttons "1" and "2" allow you to set the time to turn on and off the load.
The SS8050 transistor on the circuit controls the relay, instead of it you can put any low-power NPN transistor, for example, BC547, KT315. Instead of a relay, you can use a transistor switch if the load is supplied with direct current. Between legs 3 and 4 of the DS3107 chip, a 3 volt backup power supply is connected, i.e. regular watch battery. If the main power is turned off, the clock of the circuit will continue to go and you will not have to set the time interval again. However, the circuit can work without a backup power source. A flashing LED L1 indicates that the circuit is operating. The supply voltage is 12 volts.

Manufacture


The board is made by the LUT method on a piece of PCB with a size of 55 x 30 mm. Photo of the board without soldered parts:
Scheduled load on and off

Chips for convenience and the possibility of reuse should be installed in the socket. Before installing the microcontroller on the board, you need to flash it, the firmware is attached to the article. When using the new microcontroller, it is not necessary to change its factory fuses (it must be clocked from the internal 9.6 MHz generator, the 8 divider is on).
Scheduled load on and off

Scheduled load on and off

Setting time intervals


The process of setting the on and off times is best illustrated by an example. Let's say you need to turn on the light at 14:00 and turn off at 16:30. To do this, wait for 14:00 and briefly press the button "1", then wait for 16:30 and press the button "2", this completes the process of setting the time. Now the light will turn on every day at 14:00 and turn off at 16:30. Successful assembly!

Firmware and board files


[10.9 Kb] (downloads: 671)
come back
Comments (6)
  1. Cellar
    #1 Cellar Guests March 18, 2018 03:58
    3
    Buy such a programmer for 300r and do not soar the brains of people !!
    1. serger
      #2 serger Guests March 20, 2018 21:25
      1
      everyone can buy but not everyone can do
    2. Jurbass
      #3 Jurbass Guests March 22, 2018 14:12
      1
      Dear, you made a mistake on the site! This site is called "DO IT YOURSELF", and not an online electronics store !!! Who prefers to buy, he buys, but "does not soar the brains of people" !!!
  2. Victoria Bespalova
    #4 Victoria Bespalova Guests March 18, 2018 20:12
    1
    Well, it really is for those who want to tinker themselves. And so this is a regular timer socket. They are both mechanical and electronic. The price of the device is from 290 rubles. In stores you can find Chinese, those are even cheaper.
  3. Ivan
    #5 Ivan Guests February 21, 2019 07:49 AM
    0
    I collected this device, I did not understand the principles of its work. After the first start, the LED is on. You press the first button, it turns on the load for a minute and turns off. after a while I pressed the second one, he repeated the same thing and now just blinks a light. Will it turn on in a day?
  4. Ivan
    #6 Ivan Guests March 7, 2019 09:33
    0
    In general, I tested the circuit. Works weird, oh works. After flashing the device turns on the load for a minute and waits for the start command. press 1 digger again and for a minute the load turns on and off. This also happens when you press digging 2. The device counts the time by flashing the light 1 time per second. and the second day works on schedule. When you turn off the power, it forgets the program, which is strange. I have to sew and program again. In general, it is very inconvenient. Better to buy a smart outlet.

Read also

Error codes for washing machines