7Semi_NAU7802 is an Arduino-compatible library for the NAU7802 24-bit low-noise ADC, commonly used in load cell and weighing scale applications.
- 24-bit signed ADC reading (high resolution)
- I2C interface (Arduino / ESP compatible)
- Programmable Gain Amplifier (PGA 1–128)
- Internal LDO voltage configuration
- Selectable conversion rates
- Raw ADC read and averaged read
- Tare (zero) functionality
- Scale calibration using known weight
- Weight output in user-defined units
- User-friendly examples with Serial prompts
- ESP32 / ESP8266 custom SDA/SCL support
- Arduino Uno / Nano / Mega
- ESP32
- ESP8266
- Any Arduino-compatible board with I2C support
- Open Arduino IDE
- Go to Sketch → Include Library → Manage Libraries
- Search for 7Semi_NAU7802
- Click Install
- Download this repository as ZIP
- Extract into your Arduino
librariesfolder - Restart Arduino IDE
| NAU7802 Pin | MCU Pin |
|---|---|
| VCC | 3.3V (recommended) |
| GND | GND |
| SDA | SDA |
| SCL | SCL |
⚠️ Some NAU7802 modules support 5V. Always check your module datasheet.
Most common color code:
| Load Cell Wire | NAU7802 Pin |
|---|---|
| Red | E+ (Excitation +) AVDD |
| Black | E- (Excitation -) GND |
| Green | A+ (Signal +) |
| White | A- (Signal -) |
Important Notes:
- Wire colors are common but not universal
- Always verify with the load cell datasheet
- If weight is inverted, swap A+ and A-
- Initialize sensor using
begin() - Configure LDO and PGA
- Tare with empty platform
- Calibrate using known weight
- Read weight continuously