
JamieMotorControl
shareresearchteam/SAMI-Robot
Software and Hardware resources and development of the SAMI humanoid robot

C64 power supplies are ancient, they go bad every day so use protection!
C64-Power Saver is an open-source printed circuit board by tebl, from the tebl/C64-Power-Saver repository on GitHub. It is a 2-layer board of 64.1 × 39.4 mm with 16 parts on 13 nets, routed with 127 tracks and 8 vias.
It is built around the PN2222A and 1N4732A. Its parts include 5 resistors, 4 diodes, 2 transistors, 2 connectors and 1 switch. It belongs with the retro computing and games boards of this library.
This is a project I started a few years back after buying the components to build one from console5.com, but as so many of them I didn't take it past the breadboard and ended up with yet another pile of components that sort of works. Now, with a few rainy days past I've finally found the time to draw it out in KiCAD and make a few boards for this project - the first one I used the wrong pinouts so I made a PCB saver that only connects with bad power supplies, then I made one that melted. Third times the charm and this one is working great, so might have to start looking into building a bunch of them for the rest of my C64s.
Why you'd need one in the first place, you say? Basically, Commodore intended the computer to live a maximum of 5-6 years and so the components chosen reflected this - no thought went into considering what happens past this point. Now that it's 30 years later we know that the 5v regulator has a tendency to short out input and output voltage, meaning that those sensitive 5v chips will intermittenly, or sometimes even permanently, end up getting something like two or three times that... enough to melt that precious silicon! Your options are either to get a brand new power supply or combine your old one with a C64 power saver for as long as that'll still be around, running unprotected is simply foolish these days!
How does it work? The design is based on the one developed by famed C64-tinkerer Ray Carlsen, what it does is monitor the 5v line coming from your power supply and when it starts outputting voltages above 5.6v a relay is slammed shut and the line is cut. You have the option of mounting a buzzer to the board so that you can get annoyed at it until you realize it's time to buy or build a new PSU, or when mounted externally you can look at the nice LEDs to figure out wether your supply is good or not. Once a PSU has started to go bad, put a "Bad PSU" sticker on it and never use it again! For details on where to cut and solder internally on the computer see Ray Carlsens website.

Revision C/D It has come to my attention that some original Commodore 64 power supplies were wired differently, specifically sometimes 5v would be supplied on the opposite pin - this is easily fixed by connecting a small piece of wire across DIN pins 4 and 5. Refer to this image, the board outline is shown from above and the wire you need to add is the green one.
The supplied KiCad files should be sufficient as both a schematic and as a starting point for ordering PCBs (basically you could just zip the contents of the export folder and upload that on a fabrication site), the schematic is also available in PDF-format and this is what you'll need to print and work your way through this things don't work as expected after assembly.
Most parts should be easy to get a hold of from your favourite local electronic component shop though you might have to consider other sources for the older parts such as the CPU and memory. Personally I bought most components with free shipping from China via AliExpress - prices will vary, but I found everything in larger quantities than needed for the cost of a few cups of fancy coffee! Last couple of components listed are for making the cable that goes from the power saver and into your C64, not needed if the module is to be mounted internally in the computer.
| Reference | Item | Count |
|---|---|---|
| PCB | Fabricate using Gerber files (order) | 1 |
| D1 | 1N4732A DO-35 | 1 |
| D2 | 1N4148 DO-35, alternatively 1N914 | 1 |
| D3 | 5mm LED (green) | (1) |
| D4 | 5mm LED (red) | 1 |
| F1 | Fuse holder, with 1A fast acting fuse | 1 |
| J5 | 7pin DIN socket PCB mount | (1) |
| K1 | SRD-5VDC-SL-C 5v relay | 1 |
| Q1, Q2 | 2N2222 TO-92 transistor | 2 |
| R1,R2,R4,R5 | 470 ohm resistor | 4 |
| R3 | 2k2 ohm (2200) resistor | 1 |
| BZ1 | 5v active buzzer, 7.6mm pin spacing | 1 |
| 4-core wire | (1) | |
| 7pin male DIN plug | (1) | |
| 70x45x30mm electronic project box | (1) |
Please use the order link above when signing up to help me support this project, I'll get a small discount on future orders and hopefully that means I can afford to keep developing new and exciting modules in the future. By using the URL you won't have to deal with the rather daunting order forms for PCB fabrication, but if you want to go that route they'll probably want a zipped-up copy of the files in the export-directory!
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 470 | Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1, R2, R4, R5 |
| 2 | PN2222A | TO_SOT_Packages_THT:TO-92_Inline_Wide | Q1, Q2 |
| 1 | 1.5A | Fuse_Holders_and_Fuses:Fuseholder5x20_horiz_SemiClosed_Casing10x25mm | F1 |
| 1 | 1N4148 | Diodes_THT:D_DO-35_SOD27_P10.16mm_Horizontal | D2 |
| 1 | 1N4732A | Diodes_THT:D_T-1_P10.16mm_Horizontal | D1 |
| 1 | 2k2 | Resistors_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R3 |
| 1 | BAD | LEDs:LED_D5.0mm | D4 |
| 1 | Buzzer | Buzzers_Beepers:Buzzer_12x9.5RM7.6 | BZ1 |
| 1 | DIN-7 | C64_PWR:C64_PWR | J5 |
| 1 | OK | LEDs:LED_D5.0mm | D3 |
| 1 | OUTPUT | C64_PWR:OUTPUT_ZIP | J1 |
| 1 | SANYOU_SRD_Form_C | Relays_THT:Relay_SPDT_SANYOU_SRD_Series_Form_C | K1 |
It measures 64.1 × 39.4 mm and has 2 copper layers, 1.6 mm thick.
16 parts, built around the PN2222A and 1N4732A. 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 tebl/C64-Power-Saver repository on GitHub, at the commit this page was made from: the board is C64 Power Saver.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask tebl before reusing the design.

shareresearchteam/SAMI-Robot
Software and Hardware resources and development of the SAMI humanoid robot

codesqueak/SmallElectronicsProjects
A collection of small projects that can be grouped together

SreeniEadara/Hopkins-iGEM-2022-electrical
Schematics and PCB designs for Hopkins iGEM 2022

stephen010x/turbo-regatta
The Turbo Regatta is a collaborative project for engineers at Utah Tech University, which involves designing and building a custom built electric motor, and user interface dashboard, attached to a repurposed pedal boat…


skiselev/micro_8088
Micro 8088 - IBM XT Compatible Processor Board based on Faraday FE2010 chipset

Staacks/there.oughta.be
Projects featured on my blog at https://there.oughta.be
