Skip to the content
2 layers116 × 74 mmC64-psu, the printed circuit board in 3D

Efficient Commodore 64 power supply with overvoltage + overcurrent protection

Size
116 × 74 mm
Copper layers
2
Thickness
1.6 mm
Parts
50
Nets
27
Pads
159
Tracks, vias
155, 20
Pours
10
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
18 Nov 2018
Updated
14 Feb 2019

Overview

C64-psu is an open-source printed circuit board by jamarju, from the jamarju/c64-psu repository on GitHub. It is a 2-layer board of 116 × 74 mm with 50 parts on 27 nets, routed with 155 tracks and 20 vias.

It is built around the LMR33630ADDA, MAX6399ATA and KBU8B. Its parts include 6 connectors, 5 resistors, 3 fuses, 2 capacitors and 2 ICs. It belongs with the power and retro computing and games boards of this library.

Main components

3

README

README.md

C64 power supply unit

pcb view

This is a compact and efficient 9VAC/5VDC power supply for the Commodore 64 with the following features:

  • 230VAC input (but easy to modify for 115VAC operation).
  • 5 VDC output, adjustable, 1.75A max.
  • 9 VAC output, 1.67A max.
  • 6.5 VDC overvoltage protection (latching).
  • Low VDC output ripple (<25 mVpp @1A).
  • 2A overcurrent protection.
  • Low heat dissipation.
  • Mains overvoltage and noise suppresion.

Building, warnings and recommendations

The kicad-project/gerbers folder contains gerber files ready for production. These are my recommended PCB specifications:

  • 1.6 mm PCB thickness
  • 2 oz copper thickness
  • Min track / clearance: 8 mil

Beware there are three SMD components with thermal pads on the base that can't be easily soldered with a regular iron. You'll need solder paste and an oven or a heat gun for these.

110VAC operation

To work at 110 VAC, do these modifications to the schematic:

  1. Connect the two primaries of TR1 in parallel instead of series:
  2. Replace RV3 (EPCOS 300 Vrms MOV) with EPCOS B72214S0151K101 (150 Vrms MOV).
  3. Replace F3 (160 mA fuse) with 315 mA fuse.

Adjusting 5VDC output

Start adjusting trimpot TP1 to get 5 VDC with no load.

Then check the voltage at the C64 input with the computer on. You should expect a bit less than 5V due to losses depending on the cable gauge and DIN connectors. Ideally you should aim at 5.0V but a bit of undervoltage (4.9V) appears to work okay on my C64 and will lower heat dissipation.

Output voltage can be adjusted in the [4.13V, 5.55V] range.

Enclosure

STLs and Fusion 360 project included in the enclosure/ folder. Sorry FreeCAD, I tried to keep this opensource but bodies in 0.17 are just not mature enough and doing this in 0.16 was too painful.

Printing recommendations

  • The bottom side can be printed bottom side flat on the printer bed without support.
  • The top cover can be printed top side flat on the bed with supports everywhere.
  • Material: I recommend PETG because of its higher melting temperature, great mechanical properties and low warping.
  • I do not recommend PLA because of its low melting temperature.
  • I do not recomment ABS either because of its high contraction ratio (= corner warp).

For the enclosure, in addition to the BOM components, you'll need:

Cable length

I recommend keeping the C64-side cable as short and thick as possible. I recommend 20 AWG, 1 meter long wires.

The expected loss over 1 meter of 20 AWG wire at 5VDC and 1A is 33 mV per leg or 67 mV round trip.

Schematic and protective measures

This PSU uses a 9VAC, 30VA dual secondary (15 VA + 15 VA) transformer that provides up to 1.67 amps on each secondary.

The regulator is a TI LMR33630 switching DC/DC step down converter with a switching frequency ~400 KHz and a peak efficiency of 93%.

To prevent an overvoltage situation due to failure of the swithing regulator or the feedback network, a MAX6399 voltage supervisor is used to control a high side P-channel MOSFET at the input of the switcher. When an overvoltage condition (Vout >6.5V) is detected, the MAX6399 pulls the gate of the MOSFET down and cuts the regulator input until the power is completely removed from the unit.

The MAX6399 also provides undervoltage protection for clean startup of the switcher.

In addition to the over/undervoltage supervisor 3 varistors (MOVs) provide surge protection on the primary and both secondaries and 3 fuses prevent prolonged overcurrent condition on both sides of the transformer. The switcher itself also has an instant overcurrent protection above 3A.

Tests

Output ripple

Test conditions: Vout=5.1V, Iout=1A.

  • Low frequency ripple: <20mVpp

Overvoltage protection

Overvoltage protection voltage threshold set at Vout >= 6.53V via R1/R2 divider.

Test conditions: shorted feedback input of LMR33630 to GND during normal operation at Vout=5.1V, Iout=1A.

@ 100 us per division:

@ 10 us per division:

Startup overshoot

Nominal Vout: 5.10V Overshoot: 5.36V (<10 ms)

Power-ok and Vout ramp-up

Undervoltage protection voltage threshold set at Vin <= 6.81V via R3/R4 divider.

  • Yellow: Vout
  • Cyan: MAX6399 Power OK output (LMR33630 ENABLE input)

TODO

  • Actually test that this doesn't blow anything up. Tests should include at least:
    • Thermal behavior
    • Undervoltage POK (both edges)
    • Secondary-primary noise coupling
    • EMI emissions

License

CC-BY-NC-SA (Attribution-NonCommercial-ShareAlike).

See LICENSE.txt for details.

Please do not mass (?) produce this without my permission.

Parts

50
QtyValueFootprintReferences
6Conn_01x01c64-psu:spade_4.8mmJ1, J2, J3, J4, J5, J6
41uCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderCoutx1, Coutx2, Coutx3, Cvcc1
4MountingHoleMountingHole:MountingHole_3.2mm_M3MH1, MH2, MH3, MH4
3TestPoint_2PoleTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmTP1, TP2, TP3
21.67Ac64-psu:20mm fuseF2, F3
2S10K20Varistor:RV_Disc_D12mm_W4.5mm_P7.5mmRV2, RV3
11.67AFuse:Fuseholder_Cylinder-5x20mm_Schurter_0031_8201_Horizontal_OpenXF3
1100kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderRfbt1
1100nCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderCboot1
110KPotentiometer_THT:Potentiometer_Bourns_3296Y_VerticalTRIM1
110kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderRen1
110nCapacitor_THT:C_Rect_L19.0mm_W5.0mm_P15.00mm_MKS4C1
110uCapacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolderCin1
110uInductor_SMD:L_Bourns_SRR1260L1
1150kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR5
1160 mAFuse:Fuseholder_Cylinder-5x20mm_Schurter_0031_8201_Horizontal_OpenXF1
1160mAc64-psu:20mm fuseF1
1220nCapacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolderCinx1
122KResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderRfbb1
13300uCapacitor_THT:CP_Radial_D18.0mm_P7.50mmC2
14K7Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolderR1
1680kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR3
168kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR4
168uCapacitor_SMD:C_1210_3225Metric_Pad1.42x2.65mm_HandSolderCout1
1820kResistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolderR2
1Fuse HolderFuse:Fuseholder_Cylinder-5x20mm_Schurter_0031_8201_Horizontal_OpenXF2
1KBU8BDiode_THT:Diode_Bridge_Vishay_KBUD1
1LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderD2
1LMR33630APackage_SO:TI_SO-PowerPAD-8_ThermalViasU1
1LOGOc64-psu:linkballoonG***
1MAX6399Package_DFN_QFN:DFN-8-1EP_3x3mm_P0.65mm_EP1.55x2.4mmU2
1Myrra_UI_39_TRFc64-psu:Myrra UI 39 trfTR1
1N-MOSc64-psu:LFPAK33-PSMN7R5-30MLDQ1
1Net-Tie_2NetTie:NetTie-2_THT_Pad1.0mmNT1
1S14K300Varistor:RV_Disc_D15.5mm_W5.2mm_P7.5mmRV1

Similar boards

  • 10 layers224.5 × 160 mmHaasoscope pro adc fpga board, the printed circuit board in 3D

    Haasoscope pro adc fpga board

    drandyhaas/HaasoscopePro

    Affordable 2 GHz 3.2 GS/s 12 bit open-source open-hardware expandable USB real-time oscilloscope

    586 parts485MIT
  • 2 layers175 × 115 mmLaser Controllerv2 only for pcb test, the printed circuit board in 3D

    Laser Controllerv2 only for pcb test

    Andre1Becker/GalvOS

    Open-source ESP32-S3 laser show controller — built to replace proprietary OEM controllers in RGB galvo laser projectors

    122 parts11GPL-3.0
  • 4 layers120.2 × 224.7 mmPipcb, the printed circuit board in 3D

    Pipcb

    Coen-Lab/exp-control-board

    Hardware and firmware for an experimental control board for scientific rigs

    272 parts3AGPL-3.0
  • 4 layers102.8 × 67 mmEntegre fc, the printed circuit board in 3D

    Entegre fc

    ErdemA33/stm32f405-flight-controller

    Open-source ArduPilot-compatible flight controller for fixed-wing UAVs. STM32F405, 4-layer KiCad design, built in 5 modular stages.

    129 parts3
  • 2 layers59.1 × 75.7 mmPS MotorControllerInterfacePCB, the printed circuit board in 3D

    PS MotorControllerInterfacePCB

    lhr-solar/PS-MotorControllerInterfacePCB

    Provides power conversion/protection and fan control for the Prohelion WaveSculptor 22 motor controller

    127 parts3
  • 6 layers46.5 × 47.2 mmNAVCORE SoOP, the printed circuit board in 3D

    NAVCORE SoOP

    kfilipekk/iridium_drone

    STM32H743 flight controller that navigates without GPS from Iridium satellite Doppler

    217 parts2MIT
  • 4 layers40.5 × 37 mm4 LAYER POWER SUPPLY copy, the printed circuit board in 3D

    4 LAYER POWER SUPPLY copy

    KareemOye/USB_POWER_SUPPLY_PCB

    12 V to 5 V USB step-down supply based on the LM2596-ADJ, designed in KiCad

    30 parts1
  • 2 layers53.1 × 81.9 mmPTN PumpControlBoard, the printed circuit board in 3D

    PTN PumpControlBoard

    lhr-solar/PS-PumpController

    Controls speed of liquid cooling pump and fans for the main battery pack. Additionally, interprets data from temperature sensors and flowrate sensors for fan/pump control loop

    115 parts1

Questions

How big is the C64-psu PCB?

It measures 116 × 74 mm and has 2 copper layers, 1.6 mm thick.

What parts does the C64-psu use?

50 parts, built around the LMR33630ADDA, MAX6399ATA and KBU8B. 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 C64-psu KiCad files?

From the jamarju/c64-psu repository on GitHub, at the commit this page was made from: the board is kicad-project/c64-psu.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the C64-psu design in my own project?

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