Circuit Documentation
Summary
This document provides a detailed overview of a circuit design that includes various microcontrollers, communication modules, and other components. The circuit is designed to facilitate communication between different modules using SPI and CAN protocols. The document includes a component list, wiring details, and documented code for the microcontrollers.
Component List
STM32F103C8T6
- Description: General-purpose 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
MCP2515
- Description: CAN controller with SPI interface
- Pins: INT, SCK, SI, SO, CS, GND, VCC, H, L
Serial to USB
- Description: Serial to USB converter
- Pins: DTR, RX, TX, VCC, TS, GND
Resistor
- Description: Resistor
- Pins: pin1, pin2
- Properties: Resistance: 10000 Ohms
12978-alligator_clip_cable_half-red
- Description: Alligator clip cable (red)
- Pins: Pin, Alligator
12978-alligator_clip_cable_half-blue
- Description: Alligator clip cable (blue)
- Pins: Pin, Alligator
ESP32 (30 pin)
- Description: Wi-Fi and Bluetooth microcontroller
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Raspberry Pi Pico W
- Description: Microcontroller with Wi-Fi
- Pins: pin 1, pin 2, pin 3, pin 4, pin 5, pin 6, pin 7, pin 8, pin 9, pin 10, pin 11, pin 12, pin 13, pin 14, pin 15, pin 16, pin 17, pin 18, pin 19, pin 20, pin 21, pin 22, pin 23, pin 24, pin 25, pin 26, pin 27, pin 28, pin 29, pin 30, pin 31, pin 32, pin 33, pin 34, pin 35, pin 36, pin 37, pin 38, pin 39, pin 40, SWCLK, GND, SWDIO
USB Serial TTL
- Description: USB to TTL serial converter
- Pins: GND, 5V, TX, RX, DTR, 3.3V
Comment
- Description: Comment
- Pins: None
Wiring Details
STM32F103C8T6
- A7 connected to MCP2515 (SI)
- A6 connected to MCP2515 (SO)
- A5 connected to MCP2515 (SCK)
- A4 connected to MCP2515 (CS)
- GND connected to MCP2515 (GND)
- 5V connected to MCP2515 (VCC)
- GND connected to Serial to USB (GND)
- GND connected to MCP2515 (GND) via Resistor (pin1)
- 5V connected to MCP2515 (Vss)
- A9 connected to Serial to USB (RX)
- A10 connected to Serial to USB (TX)
- A11 connected to MCP2515 (RXD)
- A12 connected to MCP2515 (TXD)
MCP2515
- SI connected to STM32F103C8T6 (A7)
- SO connected to STM32F103C8T6 (A6)
- SCK connected to STM32F103C8T6 (A5)
- CS connected to STM32F103C8T6 (A4)
- GND connected to STM32F103C8T6 (GND)
- VCC connected to STM32F103C8T6 (5V)
- H connected to 12978-alligator_clip_cable_half-red (Pin)
- L connected to 12978-alligator_clip_cable_half-blue (Pin)
- SCK connected to ESP32 (D14)
- SO connected to ESP32 (D12)
- SI connected to ESP32 (D13)
- GND connected to ESP32 (GND)
- VCC connected to ESP32 (Vin)
- CS connected to ESP32 (D15)
- H connected to 12978-alligator_clip_cable_half-red (Pin)
- L connected to 12978-alligator_clip_cable_half-blue (Pin)
- SCK connected to Raspberry Pi Pico W (pin 24)
- SI connected to Raspberry Pi Pico W (pin 25)
- SO connected to Raspberry Pi Pico W (pin 21)
- CS connected to Raspberry Pi Pico W (pin 22)
- GND connected to Raspberry Pi Pico W (pin 38)
- VCC connected to Raspberry Pi Pico W (pin 40)
- H connected to 12978-alligator_clip_cable_half-red (Pin)
- L connected to 12978-alligator_clip_cable_half-blue (Pin)
- RXD connected to STM32F103C8T6 (A11)
- TXD connected to STM32F103C8T6 (A12)
- Rs connected to Resistor (pin2)
- CANH connected to 12978-alligator_clip_cable_half-red (Pin)
- CANL connected to 12978-alligator_clip_cable_half-blue (Pin)
ESP32 (30 pin)
- D14 connected to MCP2515 (SCK)
- D12 connected to MCP2515 (SO)
- D13 connected to MCP2515 (SI)
- GND connected to MCP2515 (GND)
- Vin connected to MCP2515 (VCC)
- D15 connected to MCP2515 (CS)
Raspberry Pi Pico W
- pin 24 connected to MCP2515 (SCK)
- pin 25 connected to MCP2515 (SI)
- pin 21 connected to MCP2515 (SO)
- pin 22 connected to MCP2515 (CS)
- pin 38 connected to MCP2515 (GND)
- pin 40 connected to MCP2515 (VCC)
- pin 1 connected to USB Serial TTL (TX)
- pin 2 connected to USB Serial TTL (RX)
- pin 3 connected to USB Serial TTL (GND)
Serial to USB
- GND connected to STM32F103C8T6 (GND)
- RX connected to STM32F103C8T6 (A9)
- TX connected to STM32F103C8T6 (A10)
USB Serial TTL
- TX connected to Raspberry Pi Pico W (pin 1)
- RX connected to Raspberry Pi Pico W (pin 2)
- GND connected to Raspberry Pi Pico W (pin 3)
Resistor
- pin1 connected to STM32F103C8T6 (GND)
- pin2 connected to MCP2515 (Rs)
12978-alligator_clip_cable_half-red
- Pin connected to MCP2515 (H)
12978-alligator_clip_cable_half-blue
- Pin connected to MCP2515 (L)
