Botroniks Arduino codes for everyone = PCC1050A: Position display (in percent) up to 2 potentiometers on PC screen - FREE!

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


POT: 1 - 2 - 3
misc: Wires: (link) 1--2--3
connections (click to enlarge)
- Need additional accessories:

PCC1050A: Position display (in percent) up to 2 potentiometers on PC screen - FREE!
Offered Code make Percentage display of potentiometer position (or input measuring voltage from 0 to 5v)
Used accessories: Lnk1 -- Lnk2 --Lnk3
For Arduino boards:: NANO -- UNO -- MEGA
Arduino pins are used: A0=Voltage Input1 A1=Voltage Input2
Electrical note: (Recommendation:Use the following accessories for testing as well as for later use: Lnk1 - Lnk2 )
The end POT contacts are connected to 5V / GND, and the middle to the input pin
Use potentiometer(s) value of 10K. (5K-22K)
If voltage (0-5V) is measured instead of the potentiometer, it is good to add a 100K resistor (input pin to GND).
It can only use PC-USB power. Use an external 9-12V (VIN) power supply for greater accuracy.
Download the HEX codes below, unpack and upload to the proper Arduino board (Use a free net tool for example XLoader)
uc: AtMega328 (NANO/UNO/...): PCC1050A-M328
uc: AtMega2560 (Mega2560/..): PCC1050A-M2560
You can test the uploaded code using some free serial communication software such as Termite
Description of program commands
AT command (ASCII characters) - 9600 Baud ,8 Data bits,None Parity,1 Stop Bit - AT commands must be uppercase, lowercase invalid
AT - attention command (returns OK)
AT+INF - software code info (returns ucAppName)
AT+RV1 - Reading POT1 value (returns V1=x.x (%))
AT+RV2 - Reading POT2 value (returns V2=x.x (%))
For those familiar with Arduino programming: PCC1050A - PCC1050Azip
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 - how) enter the COM port number where the Arduino is connected and use that.
PC App: PCC1050A-PcApp1