Load Cell Interface / HX711 / Arduino

Поділитися
Вставка
  • Опубліковано 21 лип 2024
  • This video will describe how to interface a 1 kg load cell to an Arduino Nano. Data is extracted from a 24 bit ADC on-board the HX-711 IC.
    HX-711 Arduino Library under Documents.
    www.sparkfun.com/products/13879
  • Наука та технологія

КОМЕНТАРІ • 41

  • @dopecactus
    @dopecactus 2 роки тому +1

    This video is so well produced. Great breakdown of the content along with high quality video. Also, the breadboard is so well organized. Fun!

    • @0033mer
      @0033mer  2 роки тому

      Much appreciated! Thanks for the visit.

  • @noweare1
    @noweare1 4 роки тому

    Gosh, I haven't had to use 2 complement since my assembly language class in college a very long time ago. This would be a good refresher. Excellent video btw.

    • @callanrafael1658
      @callanrafael1658 3 роки тому

      I realize I'm pretty randomly asking but does anybody know a good place to stream newly released movies online ?

    • @loganmauricio8832
      @loganmauricio8832 3 роки тому

      @Callan Rafael Try FlixZone. Just search on google for it :)

  • @RCWalletVacuum
    @RCWalletVacuum Рік тому

    Great video and channel content! I've been programming PIC'S in assembly and PBP for years but have decided to jump on the Arduino's for their quick development times and vast array of projects. Your channel looks like it will be very helpful. Thanks

    • @0033mer
      @0033mer  Рік тому +1

      Welcome to the channel. Glad it was helpful.

  • @MrWaalkman
    @MrWaalkman 4 роки тому +1

    The Sparkfun board is a nice board, and you can use both channels on it (I did for my project).

  • @Ramius117
    @Ramius117 4 роки тому +1

    That's a really great idea. I'm anticipating an initial 'spike' in the load that will exceed your weight limit (given it's a motor application that won't 'ease' into the obstruction, so to speak). If so, would you use a time delay or buffer it some other way?

    • @0033mer
      @0033mer  4 роки тому +1

      Yes .. you are correct. Initial transients are filtered out in software and then the steady state value is used after a time delay.

  • @superargo4701
    @superargo4701 4 роки тому +2

    Thankfully not just another load cell/ balance video.
    Have you made a video where the load cell activates a relay, when the scale reaches a selectable target weight?

    • @0033mer
      @0033mer  4 роки тому +3

      Just replace the beeper with a relay.

  • @aofddofa6661
    @aofddofa6661 4 роки тому +1

    why it keep bounce 1-2 gm ...? what can i do to eliminate such noise or drafting in value of the adc?

  • @larrywatts4585
    @larrywatts4585 4 роки тому

    I appreciate your videos especially the use of Forth for the Nano. I have been trying to get up to speed using flashforth but I am having difficulty in understanding the use of the 24 bit register. I am a forth newb but have had a long (35 year) interest in it. I know that some of the words used like pin7 and low?,etc are easily defined but the 24.reg use confuses me. I can define it as a value and store data to it using' to' but that only gives me a 16 bit register. Could you please point me in the right direction. I understand the need to keep videos short but it would be a real service to those who just getting up to speed if all the words and code were available to examine via a web site for download and inspection. Thanks again I really appreciate your approach and knowledge especially explaining the electronics.

    • @0033mer
      @0033mer  4 роки тому

      Forth is an extendable language so I can see the confusion it can cause. I am using two 16 bit registers to shift in the data and converting them to a double word which will display the proper decimal signed value. 24.reg is smart and lshift has been redefined to make the code more understandable to people not familiar with Forth. I try to keep my videos under 10 min and reluctant to get into Forth too deep as everybody is expecting Arduino code. I am currently spending more time teaching Forth to students and using my videos as teaching aids which works out well.

  • @diogoabreu1054
    @diogoabreu1054 4 роки тому

    hello sir, i am portuguese and follow your work and i would like to know what code you used to make the buzzer beep depending on the pressure, i really need help because it is my final college job, if you could help me i would appreciate it very much

  • @ronen124
    @ronen124 4 роки тому +2

    beautiful work sir, now you have to convert and read these 3 registers and display them as human readable number 👍😄🙄

    • @0033mer
      @0033mer  4 роки тому +1

      Sorry .. went over my 10 minute max video length. To read the three registers do a "double-word" read to get your weight values.

    • @ronen124
      @ronen124 4 роки тому +2

      @@0033mer I am sorry Sir, I expressed myself horribly here.
      You did enough hardcore work for us, by saying 'you' I meant to say me and the other viewers that have to continue this great work or if not, at least it will let us better understand the insides of the build in library made to serve the HX711 👍✔☺😄

  • @sapsan676
    @sapsan676 Рік тому

    Hi is there any way where I can find applied voltage and output voltage from HX711 on loading with different loads in python programming.

  • @matthewruddock9678
    @matthewruddock9678 4 роки тому

    Hi, very useful video indeed. Is it possible to get the code which uses the load cell to turn the led light on

    • @0033mer
      @0033mer  4 роки тому +1

      Read the strain value and if it exceeds your desired trigger value, turn on a GPIO pin connected to a LED. I program in Forth but you can use the language of your choice.
      : hx711
      init
      begin
      strain?
      dup 100 < if 0Led else
      dup 200 500 within if 1Led else
      dup 501 800 within if 2Led else
      dup 801 1100 within if 3Led else
      dup 1101 1400 within if 4Led else
      dup 1700 > if alarm else
      then then then then then then drop key?
      until 0Led ;

  • @noweare1
    @noweare1 3 роки тому

    So with no load cell unloaded the output voltage is 0, when flexed one way its positive and the other is negative ?

    • @0033mer
      @0033mer  3 роки тому +1

      Yes, that's how it works in a perfect world. The strain gauges on either side of the load cell will not be perfectly matched so it has to be calibrated. An error offset will have to be used in the weight calculation.

  • @parthkale6862
    @parthkale6862 4 роки тому

    The code is giving me this error :- no matching function for call to 'HX711::HX711(const uint8_t&, const uint8_t&)'

  • @longphamhai1472
    @longphamhai1472 2 роки тому

    hey man, in 7:25 u said that DOUT pin voltage is high because ADC is doing the conversion, so we have to wait until it goes low. So, can i ask what makes DOUT pin voltage go low?
    btw, your vid is great, thank you for making this.

    • @0033mer
      @0033mer  2 роки тому +1

      After the A/D conversion is complete and a 24 bit value is ready, the DOUT pin goes low.
      Check out the logic diagram in the data sheet.

  • @mihailucian409
    @mihailucian409 3 роки тому

    Congratulations on you awsome videos! Can you helps us please,the ones who want but can't very much to write all the code lines from begin to end for Arduino without using a library? I can't figure out how to write in registry,how to move,etc. It would be very helpful.I also connected to XI pin a 22pF capacitor in order to increase speed ,to read faster but i failed,for the moment. Thank you very much!

    • @0033mer
      @0033mer  3 роки тому

      Check out my channel, there are many examples of direct register programming.
      ua-cam.com/video/mAM7s9bKEVs/v-deo.html

    • @mihailucian409
      @mihailucian409 3 роки тому

      @@0033mer thank you,I still have problems creating the 24 bits numbers from the indicated value. I made something but it's not the way it has to be. I declared a byte array who has 24 elements and set up a function that converts the array of binary values extracted from the cell into a number. But it is a vaste of memory.Happy new year!

  • @STEM_KZ
    @STEM_KZ 4 роки тому

    Good job, usefull video, can you help me?

  • @sohailkhan-dj8cl
    @sohailkhan-dj8cl 3 роки тому

    can we use this code to Arduino UNO ?

    • @0033mer
      @0033mer  3 роки тому

      Yes .. the Nano and UNO use the same microcontroller.

  • @amanetauto9010
    @amanetauto9010 4 роки тому

    hello,can i get the arduino code? thank you

    • @0033mer
      @0033mer  4 роки тому

      There is a link in the description box.

  • @safari2538
    @safari2538 6 місяців тому

    Please help

  • @23studiorecords22
    @23studiorecords22 2 роки тому

    Program code please

    • @0033mer
      @0033mer  2 роки тому

      Code starts at 9:55.

  • @safari2538
    @safari2538 6 місяців тому

    Hi