Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/QuirkyCort/micropython-gy33
UART and I2C driver for GY33 module
https://github.com/QuirkyCort/micropython-gy33
Last synced: 3 months ago
JSON representation
UART and I2C driver for GY33 module
- Host: GitHub
- URL: https://github.com/QuirkyCort/micropython-gy33
- Owner: QuirkyCort
- License: gpl-3.0
- Created: 2023-08-27T10:52:27.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-24T08:58:48.000Z (11 months ago)
- Last Synced: 2024-05-13T03:33:30.749Z (6 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - micropython-gy33 - UART and I2C drivers for GY-33 module (TCS3472 color sensor). (Libraries / Sensors)
README
# Micropython GY-33 Driver
The GY-33 module uses a TCS3472 sensor, but does not expose the TCS3472 by default.
Instead, it contains a STM32F030F4 micro-controller which provides UART and I2C interface for the TCS3472 and the onboard LED.A driver written for the TCS3472 will not normally work with this module, as the onboard micro-controller uses a different I2C address and registers.
I couldn't find any english documentation for the GY-33, so the below info are extracted from the chinese documentation found here https://pan.baidu.com/s/1kVq51dl
# Pinout
| Pin | Label | Description |
| --- | --- | --- |
| 1 | VCC | Power supply. 3v to 5v |
| 2 | CT | UART TX or I2C SCL |
| 3 | DR | UART RX or I2C SDA |
| 4 | GND | Ground |
| 5 | NC | Reserved, do not connect |
| 6 | INT | Interrupt for the TCS3472 (S1 must be grounded) |
| 7 | SDA | SDA for the TCS3472 (S1 must be grounded) |
| 8 | SCL | SCL for the TCS3472 (S1 must be grounded) |
| A | SO | Selection for UART / I2C mode |
| B | S1 | Disable MCU, enable TCS3472 when grounded |## Pin S0
When grounded, the micro-controller will be I2C mode via pins 2 and 3 (CT and DR).
When unconnected or high, the micro-controller will be in UART mode via pins 2 and 3 (CT and DR).## Pin S1
When grounded, the built-in micro-controller will be disabled, and you will be able to access the TCS3472 via pins 7 and 8 (SDA and SCL).
When unconnected or high, the TCS3472 will not be directly accessible, and pins 7 and 8 (SDA and SCL) should not be connected.## UART and I2C mode
See their respective folders for more details.