
Switch
byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

Where I keep all my pcb projects for fun
Stm32f407 tft 2.4inch hat is an open-source printed circuit board by dchithinh, from the dchithinh/pcb-lab repository on GitHub. It is a 2-layer board of 66.3 × 90.2 mm with 6 parts on 88 nets, routed with 208 tracks and 36 vias.
It belongs with the STM32 boards of this library.
KiCad project: a plug-on HAT for the STM32F407 Discovery.
Schematic and PCB only — no firmware in this repo.


Renders and photos live under doc/ (PCB.jpg, PCB_3D.png).
One board you can solder and plug onto the Discovery:
| Block | On the HAT |
|---|---|
| SPI display | 2.4" ILI9341: SCK, MOSI, MISO, CS, D/C, RST, LED |
| I2C | Shared bus, pull-ups, extra connector (Grove / 2.54" / Qwiic) for sensors (e.g. HDC1080) |
| USART A | Debug console header (USB–UART) |
| USART B | ESP32 TX/RX (plus RST, BOOT) — unstuffed on first spin is fine |
| Power | 3.3 V / GND from Discovery; ESP32 uses a 5 V → 3.3 V LDO on the HAT |
| Use on schematic | PCB net | Notes |
|---|---|---|
GND | /GND | |
3V | /3V | 3.3 V on 1×4 headers |
5V | /5V | Discovery 5 V |
VDD | /VDD | Discovery 3.3 V pins (tie to 3V on the schematic if one rail) |
DBG_UART2_TX, DBG_UART2_RX | same | USART2 on PA2 / PA3 (not USART1) |
I2C2_SCL, I2C2_SDA | same | PB10 / PB11 — not I2C_SCL / I2C_SDA |
LCD_* | same | Display, touch, SD, SPI2 (see signal table below) |
DBG_UART1 (1×4): 1 3V, 2 DBG_UART2_RX, 3 DBG_UART2_TX, 4 GNDI2C-Sensor1 / I2C-RealTime1 (1×4): 1 I2C2_SCL, 2 I2C2_SDA, 3 3V, 4 GND| Function | Connector | Pad | MCU | Net |
|---|---|---|---|---|
| USART2 debug | P2 | 13 | PA2 | DBG_UART2_TX |
| USART2 debug | P2 | 14 | PA3 | DBG_UART2_RX |
| I2C2 sensor bus | P2 | 33 | PB10 | I2C2_SCL |
| I2C2 sensor bus | P2 | 36 | PB11 | I2C2_SDA |
| SPI2 display | P2 | 38 | PB13 | LCD_SCK |
| SPI2 display | P2 | 40 | PB15 | LCD_MOSI |
| SPI2 display | P2 | 9 | PC2 | LCD_MISO |
| LCD control | P2 | 41 | PD10 | LCD_RESET |
| LCD control | P2 | 42 | PD9 | LCD_DC |
| LCD chip select | P1 | 19 | PB9 | LCD_CS |
| SPI3 SD / touch (shared CLK/MOSI/MISO) | P1 | 38 | PC10 | LCD_SD_CLK |
| SPI3 SD / touch | P1 | 37 | PC11 | LCD_SD_MISO |
| SPI3 SD / touch | P1 | 36 | PC12 | LCD_SD_MOSI |
| Touch / SD chip selects | P1 | 15 | PE3 | LCD_T_CS |
| Touch / SD chip selects | P1 | 14 | PE4 | LCD_SD_CS |
| Touch IRQ | P1 | 12 | PE5 | LCD_T_IRQ |
On the ILI9341 module, touch and SD share SPI lines; the schematic uses LCD_SD_* / LCD_T_* aliases on the same nets where noted in KiCad.
| File | Role |
|---|---|
stm32f407_tft_2.4inch_hat.kicad_pro | Project |
stm32f407_tft_2.4inch_hat.kicad_sch | Schematic |
stm32f407_tft_2.4inch_hat.kicad_pcb | Board |
stm32f407_tft_2.7inch_hat_gerber_v1/ | Gerber release + schematic_v1.pdf |
doc/PCB.jpg | Assembled HAT with 2.4" LCD (see preview above) |
doc/PCB_3D.png | KiCad 3D board render (see preview above) |
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | I2C, I2C, UART1 |
| 1 | STM32F407-DISC P1 | Connector_PinHeader_2.54mm:PinHeader_2x25_P2.54mm_Vertical | P1 |
| 1 | STM32F407-DISC P2 | Connector_PinHeader_2.54mm:PinHeader_2x25_P2.54mm_Vertical | P2 |
| 1 | TFT SPI 240x320 | Display:CR2013-MI2120 | LCD_Panel1 |
It measures 66.3 × 90.2 mm and has 2 copper layers, 1.6 mm thick.
6 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the dchithinh/pcb-lab repository on GitHub, at the commit this page was made from: the board is stm32f407_tft_2.4inch_hat/stm32f407_tft_2.4inch_hat.kicad_pcb and its schematic stm32f407_tft_2.4inch_hat/stm32f407_tft_2.4inch_hat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask dchithinh before reusing the design.

byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.


Jcparkyn/dpoint
Open-source digital stylus using camera tracking and inertial measurements

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.
