Botroniks Arduino codes for everyone = PCC1031A: Programmable temperature & humidity regulator (DHT22) with two temperature and humidity thresholds (Hi & Lo) and 2 outputs - FreeHex!


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

Nano
Uno
Mega

- DHT22: 1 - 2 - 3
- RelayModule 2way: 1 - 2 - 3
 
 
misc: Wires: (link) 1--2--3
 
Arduinos
connections (click to enlarge)
- Need additional accessories:

PCC1031A: Programmable temperature & humidity regulator (DHT22) with two temperature and humidity thresholds (Hi & Lo) and 2 outputs - FreeHex!
The offered code enables: Control of outputs state depends of settings and measured values...
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:
It can be powered only from pc usb but it is recommended to use an external voltage source 9V/1A (on dc plug or on VIN pin).
Output 1 operation code (temperature): PV01<SV01 OUT1=ON - PV01>SV02 OUT1=OFF
Output 2 operation code (humidity): PV02<SV03 OUT2=ON - PV02>SV04 OUT2=OFF
The setpoints remain stored (eeprom) even after a power failure!
On outputs can connect some other type of 5V Loads up to 20 mA (for each output) like SSR's: Link1--Link2
 
Some notes:
When using it for the first time, it is good to do a Default Reset (see below)
Download the FreeHEX 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...) - PCC1031A-M328
2. uc AtMega2560 (Mega (ATMEGA2560)....) - PCC1031A-M2560
 
You can test the uploaded code using some free serial communication software such as Termite
AT command (ASCII characters) - 9600 Baud ,8 Data bits,None Parity,1 Stop Bit - AT commands must be uppercase letters!
AT - attention command (returns OK)
AT+INF - software code info (returns ucAppName)
AT+PV? = Returns proces values (PVxx): PV01=Temp. PV02=Humidity PV03=Out1 state PV04=Out2 state (1=ON)
AT+SV? - Returns set values (SVxx): SV01 to SV04
Set-Preset commands: Some or all commands use internal Uc EEPROM for memorized when power loss!
AT+SV01=X - X=Temperature Set Lower threshold (Lo) (one decimal digit form - range: -40.0 to 125.0C
AT+SV02=X - X=Temperature Set Upper threshold (Hi) (one decimal digit form)- range: -40.0 to 125.0C
AT+SV03=X - X=Humidity Set Lower threshold (Lo) (one decimal digit form - range: 0.0 to 100.0 %RH
AT+SV04=X - X=Humidity Set Upper threshold (Hi) (one decimal digit form - range: 0.0 to 100.0 %RH
AT+DRESET - Default Reset ( SV01=20.1 SV02=35.2 SV03=10.1 SV04=99.9)
 
ArduinoIDE source code (avaliable): see ProjCode
 

PC Application(s):
PC Application(s) (for WINDOWS): In order for the offered PC applications to work, it is necessary to download and install (only first time): VB6RunTimePlus2.2
Download the PC application, unpack and start (allow windows to start applications - see HOW) enter the COM port number where the Arduino is connected and use that.
PcApp: PCC1031A-PcApp1try - Time limited version (2h - then need restart) for try! For no-limit version see ProjCode !
 
Botroniks Arduino
 

Project codes: Do some donation (HOME) and copy bottom line in Your Email to us. After successful donation You will receive ProjCode on your email soon as possible.
Need of project code: ProjCode-PCC1031A
The content of ProjCode:
1. Project: ArduinoIDE source code
2. Project: PcApp(s) no limit version (in zipped exe version)