MahdaSystem / ADS1220

This is a C library for ADS1220
MIT License
7 stars 4 forks source link

Use library for read load cell #3

Closed Hossein-M98 closed 10 months ago

Hossein-M98 commented 10 months ago

Hi Is it possible to use this library for reading a 500Kg load cell? Can you help me please?

AliMoal commented 10 months ago

Hi, Yes, You just need to use this macro:

#define ADCValueToWeight(x/*ADCvalue*/, mw/*Max Weight*/, s/*Sensitivity*/, g/*gain*/) ((float)x * mw / (float)0x7FFFFF /s /g)
Hossein-M98 commented 10 months ago

Wow, thank you for quick response!!!