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 - Наука та технологія
This video is so well produced. Great breakdown of the content along with high quality video. Also, the breadboard is so well organized. Fun!
Much appreciated! Thanks for the visit.
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.
I realize I'm pretty randomly asking but does anybody know a good place to stream newly released movies online ?
@Callan Rafael Try FlixZone. Just search on google for it :)
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
Welcome to the channel. Glad it was helpful.
The Sparkfun board is a nice board, and you can use both channels on it (I did for my project).
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?
Yes .. you are correct. Initial transients are filtered out in software and then the steady state value is used after a time delay.
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?
Just replace the beeper with a relay.
why it keep bounce 1-2 gm ...? what can i do to eliminate such noise or drafting in value of the adc?
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.
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.
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
beautiful work sir, now you have to convert and read these 3 registers and display them as human readable number 👍😄🙄
Sorry .. went over my 10 minute max video length. To read the three registers do a "double-word" read to get your weight values.
@@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 👍✔☺😄
Hi is there any way where I can find applied voltage and output voltage from HX711 on loading with different loads in python programming.
Hi, very useful video indeed. Is it possible to get the code which uses the load cell to turn the led light on
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 ;
So with no load cell unloaded the output voltage is 0, when flexed one way its positive and the other is negative ?
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.
The code is giving me this error :- no matching function for call to 'HX711::HX711(const uint8_t&, const uint8_t&)'
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.
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.
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!
Check out my channel, there are many examples of direct register programming.
ua-cam.com/video/mAM7s9bKEVs/v-deo.html
@@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!
Good job, usefull video, can you help me?
can we use this code to Arduino UNO ?
Yes .. the Nano and UNO use the same microcontroller.
hello,can i get the arduino code? thank you
There is a link in the description box.
Please help
Program code please
Code starts at 9:55.
Hi