Visual pin assignments, peripheral wiring, and power routing for the sound-reactive Peltier & vibration project.
Hover over any pin tag to highlight peripheral assignments.
Pins PD2, PD3, and PC3 are logic-level control lines only. They trigger external power drivers and must never directly drive motor or Peltier currents.
| MCU Pin | Target Connection | Function / Hardware Role |
|---|---|---|
| PC4 | MAX4466 Microphone OUT | ADC Channel 2 (8 kHz audio sampling) |
| PD2 | MOSFET Module PWM Input | TIM1_CH1 (Peltier PWM duty control) |
| PD3 | Mini L298N Channel A IN1 |
TIM2_CH2 (Vibration motor PWM) |
| PC3 | Mini L298N Channel A IN2 |
GPIO Output (Held LOW for direction) |
| PD1 | WCH-LinkE Programmer | 1-Wire SWIO Single-Pin Debugger |
| V | USB 5V Rail / Module VCC | Board & Sensor Logic Power |
| G | Common Ground Rail | System-wide shared ground reference |
Never connect the WCH-LinkE target-power pin (3V3/5V) while the CH32V003 board is plugged into USB-C. Connect only SWIO (PD1) and GND when using USB power!
* Must run continuously to prevent Peltier hot-side destruction.