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

CO2: Counter (count DOWN from SV1 to 0) with auto reset function and 2 outputs...

connections (click to enlarge)

Use accessories:  
DisplayTube TM1637 4digit
RelayShield1-4Rel
PushButtons
 
 
 
Trial codes here! Make donations and send your email request for the final (no limit) HEX codes!
 
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...): 4digit: CO2Code1try-m328 - Trial code - limited SV1 to 1-50!
2. AtMega2560 (Mega(ATMEGA2560)........): 4digit: CO2Code1try-m2560 - Trial code - limited SV1 to 1-50!
 

User guide manual:
SV1: Set required number SV2: Set time duration of Auto Reset function (x0,1sec.)
After applying the power (or a reset), the display shows (----) for about 3 sec. During that time:
Do action1: 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 action2: PRESET 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 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 on START and deactivate when the counter status is 0
Out2: Active while Auto Reset time is active.