HX711 and weight cell load problem


hello,

i have problem project weight cell loads.

i have :


i want know weighton sensor.

so setup (but connect vcc 5v , vdd 3.3v due genuino zero, correct ?):

with code calibrate , have raw data (from sparkfun's site):
code: [select]
#include "hx711.h"

#define dout  3
#define clk  2

hx711 scale(dout, clk);

float calibration_factor = -7050; //-7050 worked 440lb max scale setup

void setup() {
  serial.begin(9600);
  serial.println("hx711 calibration sketch");
  serial.println("remove weight scale");
  serial.println("after readings begin, place known weight on scale");
  serial.println("press + or increase calibration factor");
  serial.println("press - or z decrease calibration factor");

  scale.set_scale();
  scale.tare(); //reset scale 0

  long zero_factor = scale.read_average(); //get baseline reading
  serial.print("zero factor: "); //this can used remove need tare scale. useful in permanent scale projects.
  serial.println(zero_factor);
}

void loop() {

  scale.set_scale(calibration_factor); //adjust calibration factor

  serial.print("reading: ");
  serial.print(scale.get_units(), 1);
  serial.print(" lbs"); //change kg , re-adjust calibration factor if follow si units sane person
  serial.print(" calibration_factor: ");
  serial.print(calibration_factor);
  serial.println();

  if(serial.available())
  {
    char temp = serial.read();
    if(temp == '+' || temp == 'a')
      calibration_factor += 10;
    else if(temp == '-' || temp == 'z')
      calibration_factor -= 10;
  }
}


my problem in console nothing appears, genuino blocked. when disconnect 3.3v or data pin, text appears 0  :smiley-confuse:
code: [select]
reading: 0 lbs


when disconnect 3.3v, next data not 0, same numbers, not correspond weight on sensors.
code: [select]
reading:0 lbs
reading:0 lbs
one reading: -1839.6 -> disconnect @ moment
reading:0 lbs
reading:0 lbs


so have got ideas resolve problem ? comes genuino 0 ?
my cell load connected.
i try connect vcc , vdd 5v : same problem.

thank ! :)

quote
i try connect vcc , vdd 5v : same problem.
bad idea, might have destroyed arduino ports.

check @ least pin connected dout if it's still working.


Arduino Forum > Using Arduino > Sensors > HX711 and weight cell load problem


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts