-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No readings from HX711 Configuration. #93
Comments
try reversing pin A0 and A1... |
Hi tk5ep, thank you for the advice. |
Even without any cell connected, you should see some datas coming out,
probably close to 0.00
Being a newcomer, are you sure your sketch is correctly loaded in the
Arduino ? have you tried other sketches ? What do you see on your terminal
screen ?
On your picture, there is a wire going to Vcc of the HX711 board. Is it
connected to the 5V or 3.3V source of the Arduino ?
2018-01-09 15:33 GMT+01:00 armaldro <[email protected]>:
… Hi tk5ep,
thank you for the advice.
tried reversing, still doesn't work. on my side, I've thought that it was
the connection from the load cell to the hx711 being loose so i've bought
the terminal and ratchet them on.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#93 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABlBhdQJIeTnUD45pZJUheg25PnomKROks5tI3jBgaJpZM4RWB6T>
.
--
Patrick Egloff
email : [email protected]
Web page : http://www.egloff.eu
|
Hi tk5ep, There are readings coming out, but all are 0.00 Will update the next reply with the terminal screen |
Well, the only wrong thing i saw is that you physically inverted the DOUT and PD_SCK pins. DOUT is declared on pin A1 and according your diagram, you wired it on A0. Have you another HX711 board ? |
try remove tare function, or check above my issue. What color are wires on your load cell? I had one, with blue, black, red, white, and pinout is different. Black connect to A+, blue to A-, white to E-, red to E+. |
Thank you @tk5ep and everyone! Thank you very much for giving me assistance and guidance over my project :) |
Great if you solved your problem. |
Hi everyone |
Do you have your connection diagram? -> Ensure all pins are properly soldered and connected. |
I did it thanks, but now it shows meaningless numbers on screen.
What can be problem?
I copied ur code to my arduino
…On Wed, 9 May 2018, 10:38 armaldro, ***@***.***> wrote:
Do you have your connection diagram?
Some of the troubleshooting guides I follower.
-> Ensure all pins are properly soldered and connected.
-> Ensure that VCC is supplied with the appropriate voltage. (5V in my
project which I set up with a pull-up resistor.
-> Ensure that the load cell is mounted properly.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#93 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AiJQ5tgLceGLiXX0qQgoyRkAXzDHUFTYks5twpz4gaJpZM4RWB6T>
.
|
If it is displaying weird characters. `#include "HX711.h" // HX711.DOUT - pin #A1 HX711 scale(A1, A0); // parameter "gain" is ommited; the default value 128 is used by the library void setup() { Serial.println("Before setting up the scale:"); Serial.print("read average: \t\t"); Serial.print("get value: \t\t"); Serial.print("get units: \t\t"); scale.set_scale(2280.f); // this value is obtained by calibrating the scale with known weights; see the README for details Serial.println("After setting up the scale:"); Serial.print("read: \t\t"); Serial.print("read average: \t\t"); Serial.print("get value: \t\t"); Serial.print("get units: \t\t"); Serial.println("Readings:"); void loop() { scale.power_down(); // put the ADC in sleep mode |
thank you very much
I think I did it, :) surely with your valuable comments...
I should connect the loadcell, arduino to wifi module ( ESP 8862), Have you
had any experience with the case?
…On Wed, May 9, 2018 at 7:39 PM, armaldro ***@***.***> wrote:
If it is displaying weird characters.
You may need to change the baud rate displayed on your serial monitor.
Alternatively, you can try to use this code.
`#include "HX711.h"
// HX711.DOUT - pin #A1
// HX711.PD_SCK - pin #A0
HX711 scale(A1, A0); // parameter "gain" is ommited; the default value 128
is used by the library
void setup() {
Serial.begin(9600);
Serial.println("HX711 Demo");
Serial.println("Before setting up the scale:");
Serial.print("read: \t\t");
Serial.println(scale.read()); // print a raw reading from the ADC
Serial.print("read average: \t\t");
Serial.println(scale.read_average(20)); // print the average of 20
readings from the ADC
Serial.print("get value: \t\t");
Serial.println(scale.get_value(5)); // print the average of 5 readings
from the ADC minus the tare weight (not set yet)
Serial.print("get units: \t\t");
Serial.println(scale.get_units(5), 1); // print the average of 5 readings
from the ADC minus tare weight (not set) divided
// by the SCALE parameter (not set yet)
scale.set_scale(2280.f); // this value is obtained by calibrating the
scale with known weights; see the README for details
scale.tare(); // reset the scale to 0
Serial.println("After setting up the scale:");
Serial.print("read: \t\t");
Serial.println(scale.read()); // print a raw reading from the ADC
Serial.print("read average: \t\t");
Serial.println(scale.read_average(20)); // print the average of 20
readings from the ADC
Serial.print("get value: \t\t");
Serial.println(scale.get_value(5)); // print the average of 5 readings
from the ADC minus the tare weight, set with tare()
Serial.print("get units: \t\t");
Serial.println(scale.get_units(5), 1); // print the average of 5 readings
from the ADC minus tare weight, divided
// by the SCALE parameter set with set_scale
Serial.println("Readings:");
}
void loop() {
Serial.print("one reading:\t");
Serial.print(scale.get_units(), 1);
Serial.print("\t| average:\t");
Serial.println(scale.get_units(10), 1);
scale.power_down(); // put the ADC in sleep mode
delay(5000);
scale.power_up();
}`
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#93 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AiJQ5nbXnPjd2ha395G3P5Dfmq4Eqjpiks5twwacgaJpZM4RWB6T>
.
--
*Best Regards*
*SEVDA ALIPARAST*
|
In my case I had to introduce a delay after scale is powered up, otherwise scale was not ready and returned zeroes:
|
Dear Github Members,
I am new to using Arduino and have reach an issue that I couldn't resolve despite looking through the forum and attempting solutions for similar issues that others have succeeded .
I'm currently attempting to get a reading from HX711 amplifier connected to a TAL220 (10KG bar type load cell) using Arduino.
Would be great if I could get some advice as to why I'm not getting any results and do let me know if I can provide more information to get assistance. Thank you for taking your time to assist me in my journey.
The text was updated successfully, but these errors were encountered: