BotronikS - Final code for all types of Arduino and PC users: -- HOME -- email: botronik@gmail.com

TIM21: Timer with settings Time1 & Time2 (0,1-999,9sec.) started on S1 and 2 outputs

connections (click to enlarge)

Use accessories:  
DisplayTube TM1637 4digit
RelayShield1-4Rel
PushButtons
 
 
 
 
FREE HexCode! For price of ArduinoIDE soure code please contact us.
Download the HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader )
1. ATmega328-16MHz (MINI,NANO,UNO...): HexCode-m328 - Free Final!
2. AtMega2560 (Mega(ATMEGA2560)........): HexCode-m2560 - Free Final!
 

User guide manual:
SV1: Set Time1 (x0,1sec.) SV2: Set Time2 (x0,1sec.)
After applying to the power (or a reset), the display shows (----) for about 3 sec. During that time:
Do for DEFAULT 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!
Do for PRESET settings: Press the PB1 button and when the screen turns off release:
P10: Display brightness intensity (0-7)
P12: no function yet
 
SETtings (on working mode):
SET 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 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 when push & release PB3(S1) button (for the set Time1).
Out2: Active after the set Time1 has elapsed (for the set Time2 (if>0)).
Rest of outputs are not in use.