BotronikS - Final code for all types of Arduino and PC users: -- HOME -- CONTACT

Nano
Uno
Mega

- 7 Segment TM1637 display: (link) 1--2--3
 
- Push Button: (link) 1--2--3
- RelayModule 2way: (link) 1--2--3
- PS9V/1A Power supply unit: (links) 1--2--3
misc: Wires: (link) 1--2--3 -- Resistors: (link) 1--2--3
 
Arduinos
connections (click to enlarge)
- Need additional accessories:

LDP211210: Timer with settings Time1 & Time2 (0,1-999,9sec.) started on S1 and 2 outputs - TryHex
The offered code enables: Start the Timer by pushing and releasing S1. Out1 active for set Time1 and Out2 for set Time2
For Arduino boards:: NANO -- UNO -- MEGA
 
Electrical and practical notes:
Uses 9V/1A external power supply (VIN/GND) on DC plug (or external 5V/1A on 5V/GND pin).
For stable working use: R1-R3 = 3,3K - 4,7K
Display of the measured value is in the form of one decimal digit.
Use specified type of 7 segments display with decimal points only (not clock dots).
Each output can also drive other type of loads (instead relay module as show on connections) up to 5V/20mA (small or medium power SSR or similar)
 
Download TryHEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader)
1. uc ATmega328-16MHz-5V (NANO,UNO...): LDP211210try-m328 - Try version! Time1 & Time2 limited settings up to 0-10,0sec.
2. uc AtMega2560 (Mega(ATMEGA2560).....): LDP211210try-M2560 - Try version! Time1 & Time2 limited settings up to 0-10,0sec.
 
Final (no limit) Hex Code: Make a Donation and then send us an Email with next content: LDP211210 (FHC=FinalHexCode)
 

User guide manual:
After applying to the power (or reset), the display shows (----) about 3 sec. During that time:
DEFAULT reset settings: Press both buttons (PB1+PB2) and when the screen turns off release. Be sure to do it (only once) after uploading the hex code in Arduino! Default values: P10=5 P12=1
PRESET values settings: Press the PB1 button and when the screen turns off release:
P10: Display brightness intensity (0-7)
P12: no function yet
 
SETtings (during normal operating - all changes stay memorized):
SET Time1 (SV1): Press the PB1(+) button (until the display goes off then release). The value that can be changed on the buttons (PB1/PB2=+/-) is displayed. After 2 seconds of inactivity, the value on the display is stored.
SET Time2 (SV2): Press the PB2(-) button (until the display goes off then release). The value that can be changed on the buttons (+/-) is displayed. After 2 seconds of inactivity, the value is stored.
Status of outputs:
Out1: Active whan push & release PB3(S1) button (for the set Time1).
Out2: Active after the set Time1 has elapsed (for the set Time2 (if>0)).