Behind the C128 Home Computer

Guest Post: The Real Story Of Hacking Together The Commodore C128

The most popular computer ever sold to-date, the Commodore C-64, sold 27 Million units total back in the 1980’s.  Little is left to show of those times, the 8-bit “retro” years when a young long-haired self-taught engineer could, through sheer chance and a fair amount of determination, sit down and design a computer from scratch using a mechanical pencil, a pile of data books, and a lot of paper.

Before Apple there was Commodore
Behind the C-128 from a 1985 Ad

My name is Bil Herd and I was that long-haired, self-educated kid who lived and dreamed electronics and, with the passion of youth, found himself designing the Commodore C-128, the last of the 8-bit computers which somehow was able to include many firsts for home computing. The team I worked with had an opportunity to slam out one last 8 bit computer, providing we accepted the fact that whatever we did had to be completed in 5 months… in time for the 1985 Consumer Electronics Show (CES) in Las Vegas.

We (Commodore) could do what no other computer company of the day could easily do; we made our own Integrated Circuits (ICs) and we owned the two powerhouse ICs of the day; the 6502 microprocessor and the VIC Video Display IC.  This strength would result in a powerful computer but at a cost; the custom IC’s for the C-128 would not be ready for at least 3 of the 5 months, and in the case of one IC, it would actually be tricked into working in spite of itself.

Continue reading “Guest Post: The Real Story Of Hacking Together The Commodore C128”

Hacking A Mac Magsafe Jack Into A PC Ultrabook

zenbookAir

Something’s fishy about the above-pictured ultrabook: it’s an Asus Zenbook that [WarriorRocker] hacked to use a MagSafe power connector typically found on Macbooks. Most of us probably consider it standard procedure to poke around inside our desktop’s tower, but it takes some guts to radically alter such a shiny new ultrabook. It seems, however, that the Zenbook’s tiny power plug causes serious frustrations, and [WarriorRocker] was tired of dealing with them.

Using information he found from an article we featured earlier this summer on a MagSafe teardown, [WarriorRocker] hit up the parts drawer for some connectors and got to work. He had to modify the MagSafe’s housing to fit his Zenbook while still holding on to the magnets, but he managed to avoid modifying the ultrabook’s case—the connector is approximately the same size as a USB port. Deciding he could live with just one USB connection, [WarriorRocker] took to the board with a pair of side cutters and neatly carved out space for the MagSafe next to the audio jack. He then soldered it in place and ran wires from the VCC and Ground pins along a the channel where the WiFi antenna is routed, connecting them to the original power jack’s input pins.

[WarriorRocker] regrets that he fell short of his original goal of getting the MagSafe’s protocol working: he instead had to hack on his own adapter. We’re still rather impressed with how well his hack turned out, and it did manage to solve the charging problems. Hit us up in the comments if you can provide some insight into the MagSafe’s otherwise obscure innerworkings.

Primer Tutorials For Arduino IR Remote Cloning And Keyboard Simulation

We’ve featured loads of IR Arduino projects and they are all exciting and unique. The projects spring from a specific need or problem where a custom infrared remote control is the solution. [Rick’s] double feature we’re sharing in this article is no exception, but what is interesting and different about [Rick’s] projects is his careful and deliberate tutorial delivery on how to copy infrared remote codes, store the codes with a flavor of Arduino and then either transmit or receive the codes to control devices.

In the case of his space heater an Arduino was used to record and later retransmit the “power on” IR code to the heater before he awakes on a cold morning. This way his room is toasty warm before he has to climb out from under the covers, which has the added benefit of saving the cost of running the heater all night. Brilliant idea if you don’t have a programmable heating system. Maybe he will add a temperature sensor someday so it doesn’t have to run on strictly time.

A more complicated problem was controlling DVD playback software on his computer remotely. [Rick] says he sits at a distance when watching DVDs on his computer but his computer doesn’t have a remote control like a normal TV. Arduino to the rescue again! But this time he pulls out a Teensyduino because of its added feature of being able to emulate a keyboard and of course the computer DVD playback software accepts keyboard commands. Once again he used the “IRremote.h” library to record certain button codes from an old remote control before adding the retrieved codes to a Teensyduino setup and programmed to receive and decode the remote’s IR signals. The Teensyduino then maps the IR codes to known keyboard shortcuts and transmits the simulated keyboard shortcut commands to the computer via its USB cable where the DVD playback software recognizes the key commands.

As always [Rick] shares all his libraries and sketches on his blog so follow the above links to download the files. You will not miss a single step if you follow his excellent videos below. Plus, here are some other ways and other tools for using an IR remote with your Arduino and cloning an infrared remote.

Continue reading “Primer Tutorials For Arduino IR Remote Cloning And Keyboard Simulation”

Interview: Mill CPU For Humans Parts 3 And 4

Welcome back to the conclusion of our interview on Mill CPU architecture with [Ivan Godard]. If you missed yesterday’s offering you can watch the preview video or go back and read the original article. Above is the third part, with the final installment found after the break.

We’d like to address some concerns from the comments of yesterday’s post. Several readers noted that Mill is only in the simulation phase. [Ivan] is very up-front about that… there is no silicon. But that doesn’t mean we should disregard a company that looks to build on successes from the current generation of processors while avoiding their drawbacks. It is incredibly costly to design silicon from scratch. This is why we don’t see new architectures sprouting up on a monthly basis.

We simply think it’s exciting to see what kinds of changes may be coming and how designers plan to accomplish advances in processing power while reducing power consumption at the same time.

Continue reading “Interview: Mill CPU For Humans Parts 3 And 4”

Interview: New Mill CPU Architecture Explanation For Humans

Hackaday had an amazing opportunity to sit down with [Ivan Godard] who discussed the Mill CPU development which his company — Out of the Box Computing —  has been working on for about a decade. The driving force behind Mill development is that optimizations to existing architectures can only get you so far. At some point you need to come up with a new processor that builds on success and failure of its predecessors.

Ivan’s team has put out several lecture videos linked from their site that dig really deep into the inner workings that give Mill an advantage over currently available chips. We covered one of them recently which prompted [Ivan] to reach out to us. But what if you aren’t working on your advanced degree in semiconductor design? Our interview certainly isn’t for the laymen, but any engineering enthusiast should find this a refreshing and delightful conversation. After the jump you can see the first two installments of the four part interview.

Continue reading “Interview: New Mill CPU Architecture Explanation For Humans”

Battery Backup For RasPi Keeps Your Data Safe

We’ve all raised a clench fist in anger over lost data, and it’s usually the result of unjustified optimism and lack of planning. [George] shared his solution that prepares for the worst: a circuit that provides backup power to a RasPi and its hard drives. [George’s] Pi setup runs as both an Apple Time Machine server and a website backup server, and a power outage could corrupt the data stored on the Pi’s attached hard drives.

Rather than turn to commercial solutions, however, [George] wanted to take advantage of the Pi’s low power consumption and create an inexpensive custom circuit that would safely and automatically power down the devices upon loss of power. To detect a power failure, the build connects one of the Pi’s GPIOs to an opto-isolator, which—through a zener diode—connects to the 12V wall adapter: though [George] welcomes suggestions for alternative methods of safely identifying a mains power loss. The rest of the circuit serves as a trickle charger for the two attached 9V batteries and as a regulator to supply the correct voltage to the RasPi. Power MOSFETs connected to a GPIO handle the delayed power off.

You can view (and edit!) the circuit online here and find the relevant source code on [George’s] website. If you want to build your own RasPi file server, try cramming all the parts into an old optical drive enclosure.

Real-Life Raspi-Controlled Redstone Lamp

redstone-lamp

Minecraft fanatics keep finding impressive ways to bring 8-bit components into the real world, and [Chris Tompson’s] Redstone Lamp Replica is no exception. [Chris] wanted to extend his connection to the game world by not only replicating this block, but also by controlling its light-up effect when an in-game cube is lit.

The lamp is a product of the gang at Hive76, who worked together to develop a quick prototype using the Minecraft Python client pyCraft, an Arduino, a transistor and a temporary papercraft lamp mockup. Hive76 member [Kyle] pitched in to write the plugin for pyCraft, which listens for an on/off message and sets one of the RasPi’s GPIO pins accordingly. The hardware for the actual lamp was designed to smooth out the 8-bit quality into something a bit more precise. The result are laser-cut pieces of MDF with a zebra wood veneer laminated on top. The interior was finished off with amber cathedral glass and then the cube’s sides were glued together. The RasPi, PCB and LEDs fit inside, all snugly affixed together.

Swing over to the Hive76 project page for more details and links to the plugin, and see the video demonstration below. For another Minecraft-inspired real-life project, check out [Bill’s] take on the BatBox.

Continue reading “Real-Life Raspi-Controlled Redstone Lamp”