Botroniks Arduino codes for everyone = PCC1080A: Programmable Scale With Load Cell and HX711 Amplifier - showing weight on PC - FREE!


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

Nano
Uno
Mega

Botroniks Arduino Code
HX711: 1 - 2 - 3
Load cell: 1 - 2 - 3
 
 
 
 
misc: Wires: 1--2--3 - Resistors: 1 - 2- 3
 
Arduinos
connections (click to enlarge)
- Need additional accessories:

PCC1080A: Programmable Scale With Load Cell and HX711 Amplifier - showing weight on PC - FREE!
The offered code shows measuring weight (force) on PC screen.
Used sensor & harware: Link1 -- Link2 -- Link3 --- Useful : Link1 - Link2
For Arduino boards:: NANO -- UNO -- MEGA
Arduino pins are used:
uc ATmega328p (NANO, UNO,...): 2=SCK(HX711) - 3=DT(HX711) - HX711-VCC=5V - HX711-GND=GND
uc AtMega2560 (MEGA,...): 2=SCK(HX711) - 3=DT(HX711) - HX711-VCC=5V - HX711-GND=GND
 
Electrical note: (Recommendation:Use the following accessories for testing as well as for later use: Lnk1 - Lnk2 )
HX711 pcb - rest of connections: VCC=5V GND=GND - LoadCell: E+=RED E-=BLACK A-=WHITE A+=GREEN
Use external power 9-12V for Arduino (VIN). Onlu USB power supplay is not good!
Use load cell type Sensitivity 2mV/V.
 
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..): PCC1080A-M328
2. uc AtMega2560 (Mega (ATMEGA2560)...): PCC1080A-M2560
 
You can test the uploaded code using some free serial communication software such as Termite
Description of HexCode 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+PV01? = Return proces value 01 (weight-force)
Set-Preset commands: Some or all commands use internal Uc EEPROM for memorized when power loss!
AT+TARE=1 - Tare function (measured velue = 0)
AT+SV01=X (Enter used load cell range X (in KG) - examples: SV01=1(1kg) or SV01=10(10kg) or SV01=100(100kg)...
Resolution of showing: X<=1=0,1g(g) - X>1 and <=10=1g(g) - X>10 and <=100=10g(kg) - X>100 and <1000=100g(kg) - X>1000=1kg(T)
Calibration factor of the scale: Apply TARE command (AT + TARE), put the known weight on the scale (A) and read the measured value (B),
divide A/B and enter it as a corrective value (Cor)=Calibration factor.
Example: A=1000 B=1150 A/B=1000/1150=0.8695 Calibration factor=0.8695
AT+SV02=Cor (scale corrective velue - see above)
AT+DRESET - Default Reset ( SV01=10kg SV02=1.000)
Reading Set:
AT+SV0x? - return SV0x=XXX (x=1,2)
Note: Use only a decimal dot (not a comma!)
 
For those familiar with ArduinoIDE programming: PCC1080A - PCC1080Azip
 
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.
PcApp: PCC1080A-PcApp1try - Time limited version (2h - then need restart) for try! For no-limit version see ProjCode
 
The pictures are orientational.

Project codes: Do Donation-Option1 (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: PCC1080A-PcApp1
The content of ProjCode:
1. Project: PcApp(s) no limit version (in zipped exe version)