After updating the offered code shows up to 4 DC voltage meters range 0-50V (one decimal digit) |
For Arduino boards: NANO - UNO - MEGA |
Arduino pins are used: see connections |
|
Electrical note: (Recommendation:Use the following accessories for testing as well as for later use: Lnk1 - Lnk2 ) |
The input DC voltage (U1-U8) must not exceed 50V! |
Connect each input pin to GND via resistor (R1B-R8B=10K/0,5W/1% or 0,1% ). |
Add resistor between input pin and input voltage signal (R1A-R8A=100K/0,5W/1% or 0,1%). |
An 9V external power supply (VIN/GND=DC Plug) is required for accuracy! Not USB power only! |
Measurement accuracy depends on the internal Arduino 5V voltage regulator (must be 5,0V)! If not , can correct with a multiplier in PcApp1. |
|
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..): PCV1082-m328 |
2. uc AtMega2560 (Mega(ATMEGA2560)......): PCV1082-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 status of all values (return Vxx=X (xx=01-08 X=voltage) |
RVxx - reading single status value xx (xx=01-08) (returns Vxx=voltage) |
|