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

Nano
Uno
Mega

- DHT22: 1 - 2 - 3
- or AM2302: 1 - 2 - 3
- or AM2305: 1 - 2 - 3
 
 
misc: Wires: (link) 1--2--3
 
Arduinos
connections (click to enlarge)
- Need additional accessories:

Free Hex & Exe code! Arduino source code available on email request only (copy end send next text): PCH104-ARDSC: Price=10 Euro

PCH104: Measurement (4xDHT22) and display on PC temperature (C) and humidity (%RH)
After updating the offered Arduino code and PC Application, it is possible to read and show on PC 4 temperatures and RH(%)
For Arduino boards: NANO - UNO - MEGA
Arduino pins are used: see connections - (used Sensor(s)=DHT22 - Lnk1 - Lnk2 )
 
Electrical & other notes: (Recommendation:Use the following accessories for testing as well as for later use: Lnk1 - Lnk2 )
Used pins are connected to 5V via resistors (R1-R4: 3K3-4K7 (if the sensor does not have a built-in resistor))...
Only power from the computer's USB port can be used (an external power source (9V) is not required but is recommended)
Temperature and humidity are shown in one decimal digit form. For long-distance to sensors can use shielded cable.
If some sensor(s) are not connected, the measured values are 0 & 0.
 
Download the HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader)
1. uc ATmega328-16MHz (MINI,NANO,UNO..): PCH104-m328
2. uc AtMega2560 (Mega(ATMEGA2560)......): PCH104-M2560
 
Description of HexCode commands ( You can test the uploaded code using some free serial communication software such as Termite (select: Append CR)):
AT command (ASCII characters + ENTER) - Baud 9600,8 Data bits, None Parity,1 Stop Bit
AT - attention command (returns OK)
I? - software code info (return ucAppName)
RVA - reading all values (return Vxx=X (xx=01-08 X=C & %RH)
RVxx - reading single value xx (xx=01-08) (xx=01/03/05/07=Temp1-4 xx=02/04/06/08=Humidity1-4)
 

PC Application(s) for offered Hex code (for WINDOWS):
In order for the offered PC applications to work, it is necessary to download and install (one time only) 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 test it...

Download: PcApp1
Some features:
- PcApp makes a PcApp1Log folder (in application path) with stored measured values.
- Log files named in format (yy mm dd - Year Month Day).
- This data later can be analyzed from some other software to create graphs (eg Excel)
- Log File format - comma delimited
DATA in Log FILE(S): 1=TIME 2=Temp.1 3=Hum.1 4=Temp.2 5=Hum.2 6=Temp.3 7=Hum.3 8=Temp.4 9=Hum.4