Auto calibrate hx711 scale with known weight.

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 44

  • @MilanNedic94
    @MilanNedic94 Год назад +1

    Great work! Unfortunatelly, I can't open the link in description. Could you please paste it here once again? Thanks

    • @talofer99
      @talofer99  Год назад

      Hi, thank you very much.
      At first I did not understand what link can be broken. until I check the one to the Arduino Creator Hub .... they have upgraded there system, and wiped out all the old data - I'm actually pretty shocked they did it.
      Thanks for letting me know, I have another post I think on another site will try to look for it later and will send it to you.

    • @talofer99
      @talofer99  Год назад

      There you go .. lucky I got it all on this site as well
      www.electromaker.io/project/view/auto-calibrate-hx711-scale-with-known-weight

    • @MilanNedic94
      @MilanNedic94 Год назад +1

      @@talofer99 Very useful! Thanks a lot! I am building a scale for bee hive, same construct as yours, 4 cells, each rated to 50kg. However, I am worried that constant load (hive + honey + bees) without occasional force release would damage these cells in short time even though sum mass should never exceed 50-80 kg. What do you think and do you have some other, more durable, cells to recommend this? Thanks

    • @talofer99
      @talofer99  Год назад

      @@MilanNedic94 I never got to test them for a long time. only short tests for creating the prototype.
      But as far as I know they should not have any issue with it. I know there are a lot of products that do what you plan to do for other stuff, like beer kegs.
      Would love to see photos of the end product :)

  • @marosmartin7762
    @marosmartin7762 2 года назад +1

    Please one question :) I would measure in grams also calibration with known 100 g weight, what to change in code? thanks :)

    • @talofer99
      @talofer99  2 года назад +1

      The calculation is driven from the return value of X, when its known what X will be at 3KG, then its easy to do the math.
      And on top of that it goes into a diving to know "scale units"
      // set new factor
      calibration_factor += direction * dirScale;
      scale.set_scale(calibration_factor / LB2KG);
      you can find the code here
      create.arduino.cc/projecthub/talofer99/auto-calibrate-hx711-scale-with-known-weight-7ae97d
      And you can change the accepted value to be of smaller scale and then you can work in grams
      DO NOTE: You will not be able to be accurate in grams when it comes to loadcells of 3K and above.
      You will have to use a 1K load cell to get any accuracy out of it.

    • @marosmartin7762
      @marosmartin7762 2 года назад +1

      @@talofer99 ok, thanks 🙂

  • @kontetore461
    @kontetore461 Год назад +1

    can be work for tonnes measurement sir,,?

    • @talofer99
      @talofer99  Год назад

      There are load cells for tons, very expensive .... I never worked with one
      www.vetek.com/en/article/load-cell-1ton-compression-ip-68-stainless

  • @kevinpezzi6777
    @kevinpezzi6777 2 года назад +1

    What source did you use for printf.h? I tried using LibPrintf.h; according to Arduino's site, it adds "support for the printf family of functions to the Arduino SDK. This library provides support for printf() and other printf-like functions ..." But the compiler said:
    compilation terminated.
    exit status 1
    printf.h: No such file or directory

    • @talofer99
      @talofer99  2 года назад

      I got this code as a project, and it had a printf.h file in it - this is the content of it :
      /*
      Copyright (C) 2011 J. Coliz
      This program is free software; you can redistribute it and/or
      modify it under the terms of the GNU General Public License
      version 2 as published by the Free Software Foundation.
      */
      /**
      * @file printf.h
      *
      * Setup necessary to direct stdout to the Arduino Serial library, which
      * enables 'printf'
      */
      #ifndef __PRINTF_H__
      #define __PRINTF_H__
      #ifdef ARDUINO
      int serial_putc( char c, FILE * )
      {
      Serial.write( c );
      return c;
      }
      void printf_begin(void)
      {
      fdevopen( &serial_putc, 0 );
      }
      #else
      #error This example is only for use on Arduino.
      #endif // ARDUINO
      #endif // __PRINTF_H__

  • @sergiufaragau3818
    @sergiufaragau3818 2 года назад +1

    Hi, I have a question: is that still working if while the Arduino is switched off you put 1 more kg on sensors? Will the arduino know to calculate 4 kg of weight when it will be turned on? I mean if it is able to measure a difference of weight that is coming while arduino is off.

    • @talofer99
      @talofer99  2 года назад +1

      If you calibrate the scale correctly, no matter what you do, when you turn it off and on it should show the right weight on it.

  • @Davipputra
    @Davipputra 3 года назад +1

    awesome video, could you tell how to doit in STM32f401CCU6?
    Thank.

    • @talofer99
      @talofer99  3 года назад

      Thank you.
      I never done any project on ST.
      Have you tried to google it ?
      If you get a basic example, I'm sure you can copy the logic and make it work on ST, at the end of the day its's C :)

  • @lotte3255
    @lotte3255 2 года назад +1

    Hello Sir, is there any possibility to reset the calibration process? I was trying to reset with the reset button on arduino, but still not working.

    • @talofer99
      @talofer99  2 года назад

      Yes its possible, hold the button (on my code its connected to A0) down when you reset the board. this restarts the calibration process

    • @lotte3255
      @lotte3255 2 года назад +1

      @@talofer99 Thanks a lot!

  • @juanr3strepo
    @juanr3strepo 2 года назад +1

    Hi, do you know how is the base for HX711 called?

    • @talofer99
      @talofer99  2 года назад

      Hi,
      sorry what do you mean by base ?

    • @juanr3strepo
      @juanr3strepo 2 года назад

      @@talofer99 Hi
      I mean the base that's connected to the HX711 module, the base that's got the button for calibration

    • @talofer99
      @talofer99  2 года назад

      @@juanr3strepo simple uno proroboard shield

    • @juanr3strepo
      @juanr3strepo 2 года назад +1

      @@talofer99 Thank you so much. Your tutorial helped me a lot with my project

    • @talofer99
      @talofer99  2 года назад

      @@juanr3strepo great to hear,
      this is the best feedback I can get thank you so much :)

  • @technkit2017
    @technkit2017 3 года назад +1

    Thanks for helpfull video

  • @marosmartin7762
    @marosmartin7762 2 года назад +1

    great thanks :)

  • @lufunomphahlele2352
    @lufunomphahlele2352 2 года назад

    how did you connect the button on the arduino ?

    • @talofer99
      @talofer99  2 года назад +1

      Using pin A0, when the other side of the button connected to GND.

    • @lufunomphahlele2352
      @lufunomphahlele2352 2 года назад

      @@talofer99 okay thank you

    • @lufunomphahlele2352
      @lufunomphahlele2352 2 года назад

      I'm using a 20x4 LCD is there anywhere in the code where I have yo change?

    • @talofer99
      @talofer99  2 года назад

      Sorry it took me so long to reply - your comments went to "possible spam" for some reason.
      There is a line for it
      LiquidCrystal_I2C lcd(0x3F, 16, 2); //0x27

  • @SusanAmberBruce
    @SusanAmberBruce 3 года назад +1

    Thanks for the interesting video, I am currently trying to hack my Epsom inkjet printer because the ink cartridges are expensive and I think it's a bit of a racket going on there, if it all works out I will do a video.

    • @talofer99
      @talofer99  3 года назад +1

      thanks :)
      what do you plan to do to the cartridges ?

    • @SusanAmberBruce
      @SusanAmberBruce 3 года назад

      @@talofer99 find a way to refill them from bottled ink which is much less expensive to buy

    • @talofer99
      @talofer99  3 года назад +1

      @@SusanAmberBruce lived in Thailand for many years, and there they sell the ink printers pre-hacked with external refillable ink tank :)

    • @SusanAmberBruce
      @SusanAmberBruce 3 года назад +1

      @@talofer99 cool sounds like a place I would like then.

  • @ridvanmelihsahin9479
    @ridvanmelihsahin9479 3 года назад +1

    Hi, Thanks for video, this code is same like a transmitter code, could you please share a receiver part code? And I have any request, most HX711 source code and NRF24 source code are different and same times is doesnt work. So could you please share a your HX711 libraries and RF24 libraries. Thank you sir. Best Regards

    • @talofer99
      @talofer99  3 года назад +1

      This is the hx711
      github.com/bogde/HX711
      NRF
      github.com/nRF24/RF24
      The receiver code
      #include
      #include
      #include
      #define number_of_digits 1
      RF24 radio (4,5);
      const byte addresses[][6] = {"00001", "00002"};
      double data[2];
      void printDataJson(double *_data)
      {
      String jsonData="{\"id\":" + String((int)_data[0]) + ",";
      jsonData+="\"w\":" + String(_data[1],number_of_digits) + "}
      ";
      Serial.print(jsonData);
      }
      void setup() {
      Serial.begin(115200);
      //Serial.println("Reciver started");
      radio.begin();
      radio.openWritingPipe(addresses[0]);
      radio.openReadingPipe(1, addresses[1]);
      radio.setPALevel(RF24_PA_MIN);
      radio.setDataRate(RF24_250KBPS);
      radio.setChannel(100);
      }
      void loop() {
      radio.startListening();
      if (radio.available())
      {
      radio.read(&data, sizeof(data));
      printDataJson(data);
      }
      }

    • @ridvanmelihsahin9479
      @ridvanmelihsahin9479 3 года назад

      Thank you sir I will try and I will say result, but I didn't see the receiver part

  • @andersonmalimpensa9398
    @andersonmalimpensa9398 3 года назад +1

    The content was instructional. I've been trying to research for a video like yours that really educates everything in this RUclips vid! 👍Your content is like the content of Dr Ethan. Ethan's videos are for sure educational and I really learned a lot for exams. He is the most knowledgable medical student on RUclips and he talks about diseases and health.
    You should watch his YT out and give the health enthusiast a subscribe over here! ➡️ #DoctorEthanOnRUclips

    • @talofer99
      @talofer99  3 года назад

      Thank you very much :)