Arduino Load Cell Scale PDF
Arduino Load Cell Scale PDF
Table of Contents
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
Author:sspence Arduinotronics
Professionally, I'm an IT Engineer (Executive Level) and Electronics Tech. I'm a Amateur Radio Operator (KK4HFJ). I lived off grid, with Solar (PV), Wind,
and veggie oil fueled diesel generator power for 6 years, and design my own off grid power systems.
Important Update!
Since so many people were having problems with the INA125P, we now have a new and improved version that uses the Hx711 24bit ADC amplifier module.
http://arduinotronics.blogspot.com/2015/06/arduino-hx711-digital-scale.html
My goal was to create a programmable scale for weighing objects, parts counting, even directing product flow on a conveyor system.
Red: Excitation +
White: Signal +
Green: Signal -
Black: Excitation -
http://www.controlweigh.com/loadcell_colors.htm
I disconnected the 4 wires from the control board in the scale, so they would be available for the next step.
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
Step 2: The Amplifier
To increase the output of the load cell so that the Arduino can read it on an analog input, we will need a INA125P amplifier and a 10 ohm resistor. Connect to the Arduino
as indicated on the attached schematic.
// Load cells are linear. So once you have established two data pairs, you can interpolate the rest.
// You need two loads of well know weight. In this example A = 10 kg. B = 30 kg
// Put on load A
// read the analog value showing (this is analogvalA)
// put on load B
// read the analog value B
// Upload the sketch again, and confirm, that the kilo-reading from the serial output now is correct, using your known loads
float analogValueAverage = 0;
void setup() {
Serial.begin(9600);
}
void loop() {
int analogValue = analogRead(0);
// Is it time to print?
if(millis() > time + timeBetweenReadings){
float load = analogToLoad(analogValueAverage);
Serial.print("analogValue: ");Serial.println(analogValueAverage);
Serial.print(" load: ");Serial.println(load,5);
time = millis();
}
}
// using a custom map-function, because the standard arduino map function only uses int
float load = mapfloat(analogval, analogvalA, analogvalB, loadA, loadB);
return load;
}
float mapfloat(float x, float in_min, float in_max, float out_min, float out_max)
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
http://arduinotronics.blogspot.com/2013/01/working-with-sainsmart-5v-relay-board.html
Related Instructables
Make your How to interface Arduino Nano Reprap Load SmartCityZen FluidTrakker
weighing scale with 5kg and Visuino: Cell Z-Probe by Recycle with Intro by
hack using Balance Module Measure Weight palmerr23 HX711 by RajDenver
arduino and or Load Cell by with HX711 rickhank
hx711 by mybotic Load Cell
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
SohamG Amplifier and
ADC by BoianM
Advertisements
Comments
50 comments Add Comment view all 155 comments
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
NaveenI7 says: Sep 2, 2016. 6:46 AM REPLY
I am using channel A.
#include <hx711.h>
void setup() {
Serial.begin(9600);
void loop() {
Serial.print(scale.getGram(), 0);
Serial.println(" g");
delay(200);
http://www.gjimpex.co.in/load-cell-czl-601ac.htm
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
NomatoG says: Aug 17, 2016. 10:20 AM REPLY
i have trouble sir, any idea?
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
sspence says: Jul 7, 2016. 12:00 PM REPLY
The companies that make the parts have no way of knowing how you will use them, but they do provide data sheets. You have to know what you
want to do with it, and how.
mean if value = X then ledpin output hight else low. i try many code but no working ?
full code need be if button1 high ledpin1 high.(run pump) then value == X limit then ledpin2 high else low(alarm stop pump). but i try many time write code and
all style not working ,how thats must made ??????
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
sspence says: Jan 5, 2016. 4:07 AM REPLY
assume red and black are power and ground, and white and green are signal, if scale reads funny, reverse white and green.
http://www.instructables.com/id/Arduino-Load-Cell-Scale/
RazanI says: Nov 1, 2015. 12:48 PM REPLY
can this scale be applied to a travelling bag to show its weight?
http://www.instructables.com/id/Arduino-Load-Cell-Scale/