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 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
@@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 :)
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.
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
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__
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.
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 :)
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
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.
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
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
Great work! Unfortunatelly, I can't open the link in description. Could you please paste it here once again? Thanks
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.
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
@@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
@@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 :)
Please one question :) I would measure in grams also calibration with known 100 g weight, what to change in code? thanks :)
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.
@@talofer99 ok, thanks 🙂
can be work for tonnes measurement sir,,?
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
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
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__
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.
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.
awesome video, could you tell how to doit in STM32f401CCU6?
Thank.
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 :)
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.
Yes its possible, hold the button (on my code its connected to A0) down when you reset the board. this restarts the calibration process
@@talofer99 Thanks a lot!
Hi, do you know how is the base for HX711 called?
Hi,
sorry what do you mean by base ?
@@talofer99 Hi
I mean the base that's connected to the HX711 module, the base that's got the button for calibration
@@juanr3strepo simple uno proroboard shield
@@talofer99 Thank you so much. Your tutorial helped me a lot with my project
@@juanr3strepo great to hear,
this is the best feedback I can get thank you so much :)
Thanks for helpfull video
Thank you :)
great thanks :)
Thank you :)
how did you connect the button on the arduino ?
Using pin A0, when the other side of the button connected to GND.
@@talofer99 okay thank you
I'm using a 20x4 LCD is there anywhere in the code where I have yo change?
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
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.
thanks :)
what do you plan to do to the cartridges ?
@@talofer99 find a way to refill them from bottled ink which is much less expensive to buy
@@SusanAmberBruce lived in Thailand for many years, and there they sell the ink printers pre-hacked with external refillable ink tank :)
@@talofer99 cool sounds like a place I would like then.
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
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);
}
}
Thank you sir I will try and I will say result, but I didn't see the receiver part
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
Thank you very much :)