STM32F103C8T6-Based Spectral Sensor with ST7735S Display and Pushbutton Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an STM32F103C8T6 microcontroller, a China ST7735S 160x128 display, an Adafruit AS7262 Visible Spectral Sensor, an AS7261 sensor, and two pushbuttons. The document includes a component list, wiring details, and documented code for the microcontrollers.
Component List
STM32F103C8T6
- Description: A 32-bit ARM Cortex-M3 microcontroller.
- Pins: GND, 3.3V, reset, B11, B10, B1, B0, A7, A6, A5, A4, A3, A2, A1, A0, C15, C14, C13, VBT, 3.3, 5V, B12, B13, b14, B15, A8, A9, A10, A11, A12, A15, B3, B4, B5, B6, B7, B8, B9, SWIO, SWCLK
China ST7735S 160x128
- Description: A 160x128 pixel color display.
- Pins: GND, VCC, SCL, SDA, RES, DC, CS, BL
Adafruit AS7262 Visible Spectral Sensor
- Description: A sensor for visible spectral analysis.
- Pins: VIN, GND, 3.3V, RX/SCL, TX/SDA, RESET, INT, LED
AS7261
- Description: A sensor for spectral analysis.
- Pins: Int, RST, GND, Tx, Rx, SCL, SDA, 3V3
Pushbutton (1)
- Description: A simple pushbutton.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Pushbutton (2)
- Description: A simple pushbutton.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Wiring Details
STM32F103C8T6
GND is connected to:
- Pushbutton (2) Pin 4 (out)
- AS7261 GND
- Adafruit AS7262 Visible Spectral Sensor GND
- China ST7735S 160x128 GND
3.3V is connected to:
- AS7261 3V3
- Adafruit AS7262 Visible Spectral Sensor 3.3V
B1 is connected to:
- China ST7735S 160x128 RES
B0 is connected to:
- China ST7735S 160x128 DC
A7 is connected to:
- China ST7735S 160x128 SDA
A6 is connected to:
- Pushbutton (2) Pin 1 (in)
A5 is connected to:
- China ST7735S 160x128 SCL
A4 is connected to:
- China ST7735S 160x128 CS
A3 is connected to:
- AS7261 Tx
A2 is connected to:
- AS7261 Rx
3.3 is connected to:
- China ST7735S 160x128 VCC
5V is connected to:
- China ST7735S 160x128 BL
A9 is connected to:
- Adafruit AS7262 Visible Spectral Sensor RX/SCL
A10 is connected to:
- Adafruit AS7262 Visible Spectral Sensor TX/SDA
China ST7735S 160x128
GND is connected to:
- STM32F103C8T6 GND
VCC is connected to:
- STM32F103C8T6 3.3
SCL is connected to:
- STM32F103C8T6 A5
SDA is connected to:
- STM32F103C8T6 A7
RES is connected to:
- STM32F103C8T6 B1
DC is connected to:
- STM32F103C8T6 B0
CS is connected to:
- STM32F103C8T6 A4
BL is connected to:
- STM32F103C8T6 5V
Adafruit AS7262 Visible Spectral Sensor
GND is connected to:
- STM32F103C8T6 GND
3.3V is connected to:
- STM32F103C8T6 3.3V
RX/SCL is connected to:
- STM32F103C8T6 A9
TX/SDA is connected to:
- STM32F103C8T6 A10
AS7261
GND is connected to:
- STM32F103C8T6 GND
3V3 is connected to:
- STM32F103C8T6 3.3V
Tx is connected to:
- STM32F103C8T6 A3
Rx is connected to:
- STM32F103C8T6 A2
Pushbutton (1)
- Pin 4 (out) is connected to:
- STM32F103C8T6 GND
Pushbutton (2)
- Pin 1 (in) is connected to:
- STM32F103C8T6 A6
Documented Code
STM32F103C8T6
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
China ST7735S 160x128
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt