| Sensor | MCU ADC Pin | Reference voltage | |--------|-------------|-------------------| | Hotend | PA2 (ADC2) | 3.3V (via 4.7k pullup to 3.3V) | | Bed | PA3 (ADC3) | 3.3V (via 4.7k pullup to 3.3V) |
(V422 refers to V4.2.2 board)
┌─────────────────────────────────────────────────┐ │ 24V DC IN (J1/J2) │ └─────────────────┬───────────────┬───────────────┘ │ │ ┌───────▼───────┐ ┌───▼────┐ │ 24V → 5V Buck │ │ Heated │ │ (MP1584) │ │ Bed │ └───────┬───────┘ │ MOSFET │ │ └───┬────┘ ▼ │ ┌────────────┐ │ │ 5V LDO (3.3V)│ │ └──────┬──────┘ │ │ │ ▼ ▼ ┌──────────┐ USB ┌─────► 3.3V ◄──────────────────┘ │ PC ├──┬───────►│STM32F103 │ └──────────┘ │ │RET6 ├──► Endstops (X,Y,Z) │ │ ├──► Thermistors (ADC) │ │ ├──► BLTouch (servo + probe) │ │ ├──► Filament runout │ └────┬────────┘ │ SPI1/I2C1 │ ┌────▼────┐ │ │ microSD │ │ └─────────┘ │ │ (GPIO + PWM) ┌──────────┐ ┌───────┼───────┐ ┌──────────┐ │ X Driver ├───┤ │ ├───┤ Hotend │ │ TMC2208 │ │ │ │ │ MOSFET │ └──────────┘ │ │ │ └──────────┘ ┌──────────┐ │ │ │ ┌──────────┐ │ Y Driver ├───┤ 4x │ ├───┤ Part │ └──────────┘ │ Step/ │ │ │ Fan MOSFET│ ┌──────────┐ │ Dir │ │ └──────────┘ │ Z Driver ├───┤ lines │ │ ┌──────────┐ └──────────┘ │ │ ├───┤ Hotend │ ┌──────────┐ │ │ │ │ Fan (24V)│ │ E0 Driver├───┘ │ │ └──────────┘ └──────────┘ │ │ │ │ ┌───────▼───────┐│ │ LCD EXP1 ├┘ │ (ST7920 SPI) │ └───────────────┘ Creality V2 2 Board Diagram
When compiling your own firmware, the V2.2 diagram provides the pins_CREALITY_V4_2_2.h file (found in Marlin/src/pins/stm32f1). | Sensor | MCU ADC Pin | Reference
As Alex studied the diagram, they began to imagine the electrons flowing through the board like a river, navigating through the twists and turns of the circuitry. The USB port was like a gateway, welcoming in new instructions and designs from the outside world. The stepper motor drivers were like the workhorses, converting those instructions into precise movements of the printer's hotend and bed. The stepper motor drivers were like the workhorses,