NAU7802 24-bit load cell ADC (I2C) con ESP32
Alimentazione 3.3 V
Bus I2C
Indirizzo I2C
0x2A
Misura peso
Pin e collegamento all’ESP32
| Pin | Ruolo | Pin ESP32 | Note |
|---|---|---|---|
| 3V3 | Alimentazione | 3V3 | SparkFun Qwiic Scale-style order |
| GND | Massa | GND | |
| SDA | Dati I2C (SDA) | D21 | |
| SCL | Clock I2C (SCL) | D22 | |
| INT | Interrupt | D35 | Data ready, optional |
| AVDD | Non collegato all’ESP32 | — | Analog supply output. Leave unconnected |
| RED | Non collegato all’ESP32 | — | Load cell E+ |
| BLK | Non collegato all’ESP32 | — | Load cell E- |
| WHT | Non collegato all’ESP32 | — | Load cell A- |
| GRN | Non collegato all’ESP32 | — | Load cell A+ |
| YLW | Non collegato all’ESP32 | — | Load cell shield, optional |
Collegamento consigliato per l’ESP32 DevKit a 30 pin, evitando i pin della flash, di sola lettura e di strapping. BoardPilot lo controlla mentre colleghi.
Codice di partenza (Arduino)
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin(21, 22); // SDA = GPIO 21, SCL = GPIO 22
Wire.beginTransmission(0x2A);
bool found = Wire.endTransmission() == 0;
Serial.println(found ? "NAU7802 24-bit load cell ADC (I2C) found at 0x2A" : "Not found: check power, GND and SDA/SCL");
}
void loop() {}
Fonti
- Nuvoton NAU7802 datasheet, Fixed I2C address 0x2A; 24-bit ADC with PGA for bridge sensors
Provalo in 3D in BoardPilot
Componenti simili
ADS1015 12-bit ADCADS1115 16-bit ADCADXL375 high-g accelerometer (±200 g)AHT10 temperature + humidityAHT20 + BMP280 combo moduleAHT20 temperature + humidity
Dati dei componenti: CC BY 4.0, riutilizzabili citando BoardPilot.