Andrey
Employer

[no-member:pro]Andrey[/no-member:pro]Andrey

1 projects
Closed
Project parameters
Type of cooperationOne-time project
Prepaymentwithout prepayment
Payment methodsCash, Bank transfer
Acceptance of requestsclosed
Project description
Good afternoon, I need to write a sketch for Arduino nano.
An example algorithm of work is described below.
Iron:
Arduino nano V3.0
relay block 8 pc, (5v)
Timer RTC DS1307
I'm waiting for your suggestions.

The controller is required to turn on lighting in several rooms and must work independently of each other.
7 outputs are required, let us call them L1, L2...L7.
10 entrances (if you want to pay 11) we will call them A1, A2...A10

The algorithm of the work:
A1 - turns on/off (by long press) L1
switches on/off (short press) L1 for 5 minutes and 10 seconds after pressing turns on L3

A2 - turns on/off (by long press) L1
switches on/off (short press) L1 for 5 minutes and 10 seconds after pressing turns on L2

A3 - switches L2 on/off

A4 - turns on/off L4 (If on). more than 1 minute, then off L4, on L5

A5 turns on/off L5

A6 - turns on/off L6 (If on). more than 1 minute, then off L4, on L7

A7 turns on/off L7

A8 includes L2 for 5 minutes from 17:00 to 6:00

A9 includes L3 for 5 minutes from 17:00 to 6:00

A10 turns on/off all outputs with state reset before switching off.
Project author: Andrey