Botroniks Arduino code LDP0201A: LED Timer1 (0,1-999,9sec.) + 2 Outputs - TryHex

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:

LDP0201A: LED Timer1 (0,1-999,9sec.) + 2 Outputs - TryHex
The offered code enables: Timer (Time1 Out1=ON) + (Time2 Out2=ON)
Required accessories: - see above
For Arduino boards: NANO or UNO or MEGA
Arduino pins are used:
uc ATmega328p (NANO, UNO, ...): see connections
uc AtMega2560 (MEGA,.............): see connections
 
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...): LDP0201Atry-M328 - Version for try: Limited range of Time1 and Time2 up to 10.0sec.!
2. uc AtMega2560 (Mega(ATMEGA2560).....): LDP0201Atry-M2560 - Version for try: Limited range of Time1 and Time2 up to 10.0sec.!
 
Final HexCode: Settings Range for: Time1=0,1-999,9sec. Time2=0-999,9sec.
For Final (no-limit) HexCode : Do some donation (HOME) and copy bottom line in Your Email to us (CONTACT). After successful donation You will receive ProjCode on your email soon as possible.
Need of project code: ProjCode-LDP0201A (Final HexCode)
 

User guide manual:
Default settings: Switch off power supply (or press Arduino RESET button), press the both buttons (PB1(+) and PB2(-)), apply power (or release RESET) and after 5 seconds release both buttons (Recomended to do this before first use - after updating the hex code in the Arduino)
Default values: P10=5 P12=0
SETtings (during normal operating - all changes stay memorized):
SET Time1 (SV1): Press the PB1(+) button (until the display goes off then release). The set 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 (5 sec.) then release). The set value 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 time 1 has elapsed (for the set time 2 (if>0)).
PRESET values settings: Switch off the power supply (or press Arsuino RESET button), press the button PB1(+), switch on power (or release Arduino RESET button) and after 5 seconds release button. Then shows preset values which you can modifite on both buttons (all changes stay stored until next change):
P10: Display brightness intensity (0-7)
Additional preset values (P12-P14) has no function in this project!