TCS3200 colour sensor (GY-31) con ESP32
Alimentazione 3.3-5 V
Bus GPIO
Misura colore
Pin e collegamento all’ESP32
| Pin | Ruolo | Pin ESP32 | Note |
|---|---|---|---|
| S0 | Ingresso (lo pilota l’ESP32) | D25 | Output frequency scaling bit 0 |
| S1 | Ingresso (lo pilota l’ESP32) | D26 | Output frequency scaling bit 1 (S0 HIGH, S1 LOW = 20 %) |
| S2 | Ingresso (lo pilota l’ESP32) | D27 | Colour filter select bit 0 |
| S3 | Ingresso (lo pilota l’ESP32) | D32 | Colour filter select bit 1 |
| OUT | Uscita (la pilota il componente) | D33 | Square wave: its frequency follows the light level. Level = VCC: power from 3V3 |
| OE | Ingresso (lo pilota l’ESP32) | D23 | Output enable, active LOW. Can be tied to GND |
| VCC | Alimentazione | 3V3 | Use 3V3 so OUT stays at 3.3 V |
| GND | Massa | GND |
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.
Fonti
- TAOS TCS3200 datasheet, S0/S1 frequency scaling, S2/S3 photodiode type, OE active LOW; supply 2.7 to 5.5 V
- TAOS TCS3200 datasheet, Output is a frequency, not I2C; header order varies between boards
Provalo in 3D in BoardPilot
Componenti simili
A02YYUW waterproof ultrasonic distance (UART)A3144 hall effect switchAM312 mini PIR motion sensorATGM336H GPS/BeiDou moduleBeitian BN-220 GPS moduleBenewake TF-Luna LiDAR (UART mode)
Dati dei componenti: CC BY 4.0, riutilizzabili citando BoardPilot.