Skip to the content
2 layersTarjeta universal pcb, the printed circuit board in 3D

subgraph Driver["Driver SSD1306 (lógica de comandos)"] CMD["SSD1306cmd.c\n(Set, Activate/DeactivateScroll,\nSetPageStart..., etc.)"] BUF["Ensamble de buffer TWI\n(0x80 cmd-cont, 0x00 cmd-last,\n0xC0 data-cont, 0x40…

Copper layers
2
Thickness
1.6 mm
Parts
7
Nets
41
Pads
64
Tracks, vias
13, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
25 Jun 2025
Updated
19 Sep 2025

Overview

Tarjeta universal pcb is an open-source printed circuit board by joseheriberto17, from the joseheriberto17/Tarjeta_universal repository on GitHub. It is a 2-layer board with 7 parts on 41 nets, routed with 13 tracks and 0 vias.

Its parts include 3 connectors, 2 diodes and 1 IC. It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

Readme.md

SSD1306 – UML del flujo actual (Mermaid)

Autor: jose heriberto
Fecha: 2025-09-14
Propósito: Documentar el flujo real del proyecto (init, armado de buffers, envío I²C, texto/figuras y scroll).
Ámbito: App (main.c), Driver SSD1306 (cmd/ensamble), HAL/ASF (TWI0, PIO, PMC, SysTick).
Refs: SSD1306_cmd.c, SSD1306.h, main.c


1) Vista de componentes (capas y dependencias)

mermaid
flowchart TB
  subgraph App["App (main.c)"]
    Minit["sysclk_init/board_init\nconfigure_systick()\nconfigure_pins()"]
    Mdraw["Secuencia de dibujo:\nInicialize_SSD1306_default()\nNew_page()/frase_*/form_hearts()/vaciados()\nscroll() -> ssd1306_write()"]
    UART["UART_Handler (ISR)\n- lee RHR, limpia errores\n- eco debug"]
  end

  subgraph Driver["Driver SSD1306 (lógica de comandos)"]
    CMD["SSD1306_cmd.c\n(Set_*, Activate/Deactivate_Scroll,\nSet_Page_Start_..., etc.)"]
    BUF["Ensamble de buffer TWI\n(0x80 cmd-cont, 0x00 cmd-last,\n0xC0 data-cont, 0x40 data-last)"]
  end

  subgraph HAL["HAL / ASF (ATSAM3X8E)"]
    TWI["TWI0 (twi_master_init/twi_master_write)\nconfigure_pins_TWI_SSD1306()"]
    PIO["PIO (LEDs, mapeo pines)"]
    PMC["PMC clocks"]
    SysTick["SysTick (millis)"]
  end

  App --> Driver
  Driver --> HAL
  UART --> App
  Mdraw --> CMD
  CMD --> BUF

2) Secuencia – Arranque e inicialización

mermaid
sequenceDiagram
  autonumber
  participant Main as main.c
  participant HAL as HAL/ASF (PMC/PIO/SysTick)
  participant TWIc as configure_pins_TWI_SSD1306()
  participant CMD as Inicialize_SSD1306_default()
  participant BUF as Armado de buffer (0x80/0x00)
  participant I2C as ssd1306_write() / TWI0

  Main->>HAL: sysclk_init(), board_init()
  Main->>HAL: configure_systick()
  Main->>HAL: configure_pins() (LEDs)
  Main->>TWIc: configurar TWI0 (100 kHz) + pines PA17/PA18
  Main->>CMD: Inicialize_SSD1306_default(buffer_TWI, &len)
  activate CMD
  CMD->>BUF: Set_* cmds (AE, A8, D3, 40, A1, C8, DA, 81, A4/A5, A6/A7, D5, 8D, AF)
  BUF-->>CMD: buffer_TWI con parejas [0x80|0x00, cmd]
  deactivate CMD
  Main->>I2C: ssd1306_write(buffer_TWI, len*2)
  I2C-->>Main: status

3) Secuencia – Renderizado por páginas (texto/figuras/limpios y scroll)

mermaid
sequenceDiagram
  autonumber
  participant Main as main.c
  participant CMD as New_page()/frase_A/B/C()/form_hearts()/vaciados()/scroll()
  participant BUF as Armado de buffer (0x80 cmd / 0xC0 data)
  participant I2C as ssd1306_write()/TWI0

  Main->>CMD: New_page(..., PAGE_0)
  CMD->>BUF: [0x80, B0|page] ... ultimo con 0x00
  BUF-->>Main: buffer_TWI, len
  Main->>I2C: ssd1306_write()
  end

  Main->>CMD: form_hearts()
  CMD->>BUF: datos con 0xC0 (cont.) y 0x40 (ultimo)
  BUF-->>Main: buffer_TWI (len=256)
  Main->>I2C: ssd1306_write(buffer_TWI, len)


  Note over Main: Vaciar paginas 1,2,6
  loop por cada pagina {1,2,6}
    Main->>CMD: New_page(PAGE_n)
    CMD->>BUF: comando B0|page (0x80...0x00)
    Main->>I2C: ssd1306_write(cmd)

4) Máquina de estados – Driver/flujo SSD1306

mermaid
stateDiagram-v2
  [*] --> Reset

  state Reset {
    note right: HW/SW reset
  }

  Reset --> InitSequence: Inicialize_SSD1306_default()
  InitSequence --> Ready: AF (Display ON) OK
  InitSequence --> Error: NAK / timeout

  Ready --> Updating: New_page()/frase_*/form_hearts()/vaciados()\n-> ssd1306_write(data)
  Updating --> Ready: última página/último byte (0x40) OK
  Updating --> Error: NAK / write fail

  Ready --> Scrolling: scroll() -> (0x26/0x27 ... 0x2F)
  Scrolling --> Ready: Deactivate_Scroll (0x2E) o redraw
  Scrolling --> Error: NAK

  Error --> Reset: política de reintento (max N)

5) Actividad – Ensamblado de buffer TWI (comandos y datos)

mermaid
flowchart LR
  A[Iniciar buffer_TWI] --> B{¿Tipo?}
  B -- Comando --> C[Escribir 0x80 (continuación)\npara todos menos el último]
  C --> D[Escribir CMD]
  D --> E{¿Último comando del bloque?}
  E -- Sí --> F[Usar 0x00 en el último CMD]
  E -- No --> B

  B -- Datos --> G[Escribir 0xC0 (continuación)\npara todos menos el último]
  G --> H[Escribir DATA]
  H --> I{¿Último dato del bloque?}
  I -- Sí --> J[Usar 0x40 en el último DATA]
  I -- No --> B

Parts

7
QtyValueFootprintReferences
2LEDLED_THT:LED_D3.0mmD1, D2
1Arduino_Nano_v3.xModule:Arduino_NanoA1
1DVR8833Custom_Motor:DIP-16_400_ELLU1
1motor_AConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1motor_BConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1
1power_motorConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3

Similar boards

  • 2 layersEncoder, the printed circuit board in 3D

    Encoder

    byrantech/laptop

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

    7 parts4.3kMIT
  • 2 layers40 × 20 mmSensor smd, the printed circuit board in 3D

    Sensor smd

    scottbez1/splitflap

    DIY split-flap display

    7 parts4.2k
  • 2 layers19.8 × 30 mmZ limit, the printed circuit board in 3D

    Z limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    7 parts3.7k
  • 2 layers35.6 × 58.2 mmDisplay Carrier, the printed circuit board in 3D

    Display Carrier

    AxxAxx/AxxSolder

    STM32 Based soldering station for JBC cartridges, 9-24 VDC and USB-PD power

    7 parts1.7kGPL-3.0
  • 2 layers20.3 × 16.3 mmMap MPX, the printed circuit board in 3D

    Map MPX

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    7 parts1.2k
  • 2 layers26 × 44 mmCompact carrier board, the printed circuit board in 3D

    Compact carrier board

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    7 parts1.1k
  • 2 layers26.4 × 53.8 mmAtari pickup, the printed circuit board in 3D

    Atari pickup

    hoglet67/RGBtoHDMI

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

    7 parts1kGPL-3.0
  • 2 layersRj45 breakout, the printed circuit board in 3D

    Rj45 breakout

    rene-dev/stmbl

    AC Servo Driver for STM32F4

    7 parts990GPL-3.0

Questions

What parts does the Tarjeta universal pcb use?

7 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.

Where can I download the Tarjeta universal pcb KiCad files?

From the joseheriberto17/Tarjeta_universal repository on GitHub, at the commit this page was made from: the board is Tarjeta_universal_pcb/Tarjeta_universal_pcb.kicad_pcb and its schematic Tarjeta_universal_pcb/Tarjeta_universal_pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Tarjeta universal pcb design in my own project?

Its repository states no licence, so its author keeps all rights: ask joseheriberto17 before reusing the design.