
Econopet
DLehenbauer/econopet
Mainboard replacement for Commodore PET/CBM series machines

Mainboard replacement for Commodore PET/CBM series machines
Econopet is an open-source printed circuit board by DLehenbauer, from the DLehenbauer/econopet repository on GitHub, published under the CC0-1.0 licence. It is a 2-layer board of 262.5 × 107.9 mm with 295 parts on 350 nets, routed with 5,460 tracks and 1,804 vias.
It is built around the SN74LS07D, 74LS245SC and SN74LVC4245APWRE4, with the LM317AG-TN3-R, SS54 and SS8050 among its other parts. Its parts include 107 capacitors, 74 resistors, 14 ICs, 13 diodes and 10 connectors. It belongs with the computers and single-board computers and retro computing and games boards of this library.
Open hardware mainboard replacement for Commodore PET/CBM 2001/30xx/40xx/80xx machines. The EconoPET can also run standalone with HDMI display and USB keyboard.

See the project page for user manual and firmware updates.
⚠️ Warning: Rev A is not perfect. Before ordering, review the currently known issues and understand that new issues may be discovered over time.
Rev. A has been released. For manufacturing and assembly instructions, go here.
This project uses a Dev Container for a consistent development environment on Windows, macOS, and Linux.
This project uses CMake to manage the build process for firmware, gateware, ROMs, and SD card package.
# Configure
cmake --preset default # Do this first
# Build
cmake --build --preset all # Build everything
cmake --build --preset boot # Build the EconoPET SD-card bootloader
cmake --build --preset fw # Build firmware only
cmake --build --preset fw-test # Build firmware tests only
cmake --build --preset sys-test # Build system integration tests
cmake --build --preset gw # Build gateware only
cmake --build --preset rom # Build ROMs only
cmake --build --preset sdcard # Build SD card package
# Build and Program
cmake --build --preset prog-boot # Build and program bootloader over SWD
cmake --build --preset prog-fw # Build and program firmware over SWD
cmake --build --preset prog-gw # Build and program gateware over SWD
cmake --build --preset prog # Build and program bootloader, firmware and gateware over SWD
# Test
ctest --preset all --parallel # Run all tests
ctest --preset fw --parallel # Run firmware tests only
ctest --preset sys # Run system integration suite only
ctest --preset gw --parallel # Run gateware unit tests only
ctest --preset gw-boot --parallel # Run full-boot benches (Verilator, minutes)Gateware benches run under both simulators. gw runs both quick suites;
gw-iv and gw-vl run only Icarus or Verilator, respectively. Verilator is
two-state and settles differently, so it catches races Icarus tolerates. Each
suite takes under a minute. ECONOPET_MEDIA_DIR must point at the directory
containing roms/ and disks/; top_tb and the boot bench load real ROMs
from its roms/ subdirectory.
The integration-test author guide covers host, board
and firmware fixtures, checked CPU programs, ROM calls, and cooperative phases.
Use its nested CTest commands to filter individual integration cases or set
inner parallelism. The root sys preset selects the aggregate wrapper.
gw-boot is separate because it simulates seconds of PET time: it boots the
stock BASIC-4 ROMs on the soft 6502 and passes only once the banner, the RAM
sizing result and the READY. prompt are all on screen. That takes ~5 minutes
under Verilator and is impractical under Icarus. It prints the screen at the
end and writes gw/EconoPET/outflow/stock6502_boot_tb.pgm:
|*** COMMODORE BASIC 4.0 *** |
| |
| 31743 BYTES FREE |
| |
|READY. |ctest hides that on success, so use ctest --preset gw-boot --parallel -V to see it, or
run ./verilate.sh stock6502_boot_tb 0 directly. See
docs/dev/verilator.md for the Verilator runner and
docs/dev/testing.md for test seeding and replay.
This project is released under the CC0 1.0 Universal (CC0) license, placing it in the public domain.
Exception: external dependencies are subject to their own licenses as noted in their respective source code and in NOTICE.md.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 48 | 100n | Capacitor_SMD:C_0402_1005Metric | C1, C2, C3, C13, C14, C25, C27, C33, C34, C35, C36, C37, C100, C104, C106, C107 +32 |
| 13 | 4u7 10V | Capacitor_SMD:C_0402_1005Metric | C23, C31, C32, C62, C63, C64, C65, C66, C75, C76, C77, C79, C99 |
| 12 | 10k | Resistor_SMD:R_0402_1005Metric | R14, R16, R18, R19, R20, R25, R32, R33, R39, R62, R66, R70 |
| 9 | 10kx4 | Resistor_SMD:R_Array_Convex_4x0603 | RN1, RN4, RN5, RN8, RN9, RN10, RN14, RN15, RN16 |
| 9 | 270 | Resistor_SMD:R_0603_1608Metric | R53, R54, R55, R56, R57, R58, R59, R60, R61 |
| 8 | 1u | Capacitor_SMD:C_0402_1005Metric | C19, C20, C39, C41, C42, C43, C80, C103 |
| 7 | 1k | Resistor_SMD:R_0402_1005Metric | R27, R29, R41, R42, R43, R65, R74 |
| 7 | 2k2 | Resistor_SMD:R_0402_1005Metric | R44, R45, R48, R49, R50, R51, R52 |
| 7 | 47u 10V | Capacitor_SMD:C_1206_3216Metric | C8, C16, C28, C30, C84, C101, C102 |
| 6 | 10n | Capacitor_SMD:C_0402_1005Metric | C22, C54, C56, C58, C60, C61 |
| 6 | 1k5 | Resistor_SMD:R_0402_1005Metric | R7, R17, R34, R35, R67, R69 |
| 6 | 4k7 | Resistor_SMD:R_0402_1005Metric | R1, R2, R3, R4, R15, R40 |
| 5 | SS54 | Diode_SMD:D_SMA | D1, D2, D3, D5, D12 |
| 4 | 22n | Capacitor_SMD:C_0402_1005Metric | C9, C10, C81, C85 |
| 4 | 22u | Capacitor_SMD:C_0805_2012Metric | C11, C12, C15, C17 |
| 4 | 4k7x4 | Resistor_SMD:R_Array_Convex_4x0603 | RN2, RN3, RN6, RN7 |
| 4 | LED_RED | LED_SMD:LED_0603_1608Metric | D6, D8, D9, D10 |
| 3 | 100k | Resistor_SMD:R_0402_1005Metric | R24, R28, R71 |
| 3 | 2u2 6.3V | Capacitor_SMD:C_0402_1005Metric | C88, C91, C92 |
| 3 | 470 | Resistor_SMD:R_0402_1005Metric | R30, R31, R38 |
| 3 | 470x4 | Resistor_SMD:R_Array_Convex_4x0603 | RN11, RN12, RN13 |
| 3 | 5k6 | Resistor_SMD:R_0402_1005Metric | R21, R22, R23 |
| 3 | DNP | Capacitor_SMD:C_0402_1005Metric | C4, C5, C6 |
| 3 | MountingHole | PET:PET_MountingHole_4mm | H2, H3, H4 |
| 3 | SN74LS07 | Package_SO:SOIC-14_3.9x8.7mm_P1.27mm | U14, U15, U16 |
| 3 | SN74LVC4245APWR | Package_SO:TSSOP-24_4.4x7.8mm_P0.65mm | U7, U8, U9 |
| 3 | SS8050 | Package_TO_SOT_SMD:SOT-23 | Q4, Q5, Q6 |
| 2 | 0 | Resistor_SMD:R_0603_1608Metric | R6, R8 |
| 2 | 1 | Resistor_SMD:R_0603_1608Metric | R72, R73 |
| 2 | 10u | Capacitor_SMD:C_0603_1608Metric | C18, C26 |
| 2 | 12k | Resistor_SMD:R_0402_1005Metric | R26, R36 |
| 2 | 1N4148WS | Diode_SMD:D_SOD-323 | D13, D14 |
| 2 | 27 | Resistor_SMD:R_0603_1608Metric | R46, R47 |
| 2 | 33p | Capacitor_SMD:C_0402_1005Metric | C86, C87 |
| 2 | 56k | Resistor_SMD:R_0402_1005Metric | R63, R64 |
| 2 | 74LS245 | Package_SO:SOIC-20W_7.5x12.8mm_P1.27mm | U17, U18 |
| 2 | AO3401A | EconoPET:SOT-23_L2.9-W1.3-P1.90-LS2.4-BR | Q2, Q3 |
| 2 | LED_GRN | LED_SMD:LED_0603_1608Metric | D7, D11 |
| 2 | LM317AG-TN3-R | Package_TO_SOT_SMD:TO-252-2 | U4, U5 |
| 2 | W65C21N | Package_DIP:DIP-40_W15.24mm_Socket | U11, U12 |
| 1 | 11000u | EconoPET:CP_Radial_D16.0mm_P7.50mm | C7 |
| 1 | 12 MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | 120 | Resistor_SMD:R_0402_1005Metric | R12 |
| 1 | 150p | Capacitor_SMD:C_0402_1005Metric | C21 |
| 1 | 1n | Capacitor_SMD:C_0402_1005Metric | C29 |
| 1 | 220 | Resistor_SMD:R_0402_1005Metric | R13 |
| 1 | 220n 16V | Capacitor_SMD:C_0402_1005Metric | C24 |
| 1 | 22k | Resistor_SMD:R_0402_1005Metric | R37 |
| 1 | 22uH | JLCPCB:IND-SMD_L12.5-W12.5 | L1 |
| 1 | 300 | Resistor_SMD:R_0402_1005Metric | R11 |
| 1 | 330 | Resistor_SMD:R_0603_1608Metric | R10 |
| 1 | 330uF | EconoPET:CP_Radial_D24.0mm_P5.00mm_P7.50mm_P10.00mm_SnapIn | C89 |
| 1 | 42Ω SPK | EconoPET:AT1220TT9R | LS1 |
| 1 | 47n | Capacitor_SMD:C_0603_1608Metric | C105 |
| 1 | 5V PWR | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J10 |
| 1 | 5k1 | Resistor_SMD:R_0402_1005Metric | R9 |
| 1 | 600 200ma | Inductor_SMD:L_0603_1608Metric | FB1 |
| 1 | 68 | Resistor_SMD:R_0805_2012Metric | R5 |
| 1 | 680 | Resistor_SMD:R_0402_1005Metric | R68 |
| 1 | 68n | Capacitor_SMD:C_0603_1608Metric | C82 |
| 1 | 6V POWER | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J27 |
| 1 | 74LS145 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U19 |
| 1 | 9V POWER | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | J11 |
| 1 | 9V POWER JACK | PET:BarrelJack_Horizontal | J13 |
| 1 | AS6C1008 | Package_DIP:DIP-32_W15.24mm_Socket | U2 |
| 1 | AUDIO | EconoPET:CUI_SJ-43504-SMT-TR | J21 |
| 1 | BOOTSEL | EconoPET:SW_PUSH_1P1T_6x3.5mm_H4.3_APEM_MJTP1243 | SW6 |
| 1 | BUS_EXPANSION | Connector_PinHeader_2.54mm:PinHeader_2x25_P2.54mm_Vertical | J4 |
| 1 | CASS A READ | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP3 |
| 1 | CASS A ~{MOTOR} | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP5 |
| 1 | CASS A ~{SWITCH} | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP1 |
| 1 | CASS B READ | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP4 |
| 1 | CASS B ~{MOTOR} | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP6 |
| 1 | CASS B ~{SWITCH} | Jumper:SolderJumper-3_P1.3mm_Open_RoundedPad1.0x1.5mm | JP2 |
| 1 | CASS_A_EDGE | EconoPET:CBM_PET_CASS_EDGE_CON_12P | J3 |
| 1 | CASS_A_HEADER | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J15 |
| 1 | CASS_B_EDGE | EconoPET:CBM_PET_CASS_EDGE_CON_12P | J6 |
| 1 | CASS_B_HEADER | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J16 |
| 1 | CONFIG | EconoPET:SW_DIP_SPSTx02_Slide_6.7x6.64mm_W7.62mm_P2.54mm_LowProfile_or_SolderJumper | SW3 |
| 1 | DVI_CEC | Jumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mm | JP7 |
The 255 most common of 295 parts.

DLehenbauer/econopet
Mainboard replacement for Commodore PET/CBM series machines

DLehenbauer/commodore-pet-clone
Open hardware clone of the Commodore PET 4032

ConnorRigby/GD32-Devboard
Simple GD32F405 Development board with CAN, SD Card, Lora, BLE and GPS

freeDSP/freeDSP-OCTAVIA
8ch Output ADAU1452/1466 DSP Board with Analog/COAX/OPT/USB/Raspberry-Pi Input



snorklerjoe/useful6502
A homebrew 65c02s-based computer and custom operating system, with a handful of modern features.


CDFER/helsinki-live-train-map
A physical, real-time LED map of the Auckland train network, powered by an ESP32-C3 microcontroller. Train movements are displayed using addressable RGB LEDs, with live data fetched over Wi-Fi.
It measures 262.5 × 107.9 mm and has 2 copper layers, 0.57 mm thick.
295 parts, built around the SN74LS07D, 74LS245SC, SN74LVC4245APWRE4 and LM317AG-TN3-R. 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 DLehenbauer/econopet repository on GitHub, at the commit this page was made from: the board is hw/rev-a/mainboard/kicad/Mainboard.kicad_pcb and its schematic hw/rev-a/mainboard/kicad/Audio.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the CC0-1.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).