EEVblog Electronics Community Forum

Electronics => Microcontrollers & FPGAs => Topic started by: muthukural001 on April 23, 2018, 05:24:41 pm

Title: Can anyone share HX711 c driver code
Post by: muthukural001 on April 23, 2018, 05:24:41 pm
Hello All,

I am using HX711 as part of the project. For I know, it is not based on neither I2C nor SPI. All the sample codes are available in Arduino. If anyone had worked with HX711, can you share the sample code ?



Thanks,
Muthu
Title: Re: Can anyone share HX711 c driver code
Post by: agehall on April 23, 2018, 06:05:55 pm
For what platform? If Arduino is not good enough, you need to specify what you want.

Most people would simply read the Arduino code to understand how to use it if the datasheet doesn't tell you and then adopt the code to whatever platform you are using. Arduino code is no magic, it is pretty much standard C/C++ code.
Title: Re: Can anyone share HX711 c driver code
Post by: muthukural001 on April 23, 2018, 07:02:55 pm
Sorry for not Mentioning. I need it in C language. Well, Arduino code for HX711 looks standard library and I don't know and can't find what is inside.
Title: Re: Can anyone share HX711 c driver code
Post by: daveshah on April 23, 2018, 07:11:46 pm
There seems to be reference C code in the datasheet on page 8.

https://www.mouser.com/ds/2/813/hx711_english-1022875.pdf (https://www.mouser.com/ds/2/813/hx711_english-1022875.pdf)
Title: Re: Can anyone share HX711 c driver code
Post by: westfw on April 23, 2018, 07:34:56 pm
You don't find this understandable?


https://github.com/aguegu/ardulibs/blob/master/hx711/hx711.cpp