Programmable Computer Controlled Holiday Lights

This project was the seasonal extension of the earlier Programmable Computer Controlled Remote Control Car project (PCCRCC). The interface with game port was already built in that project, but it is the addition of the external TRAIC circuits that allows the Apple IIe to control line voltage devices. Which in turn allowed the creation of the charge controller project.

Apple IIe shown with its companion RC car

Apple IIe shown with its companion RC Car.


TRIAC array mounted externally on perf board

Triac array connected externally on perf board. The white chips under the heat sinks (barely visible) are there to provide optical isolation. This meant the trouble of powering the 3010s seperately with 2AA batteries mounted on a clip externally, and of course, the expense of buying the chips.
Regardless of how much I paid to get my Apple IIe, (not a lot) the thing is a piece of history, to have pieces of it burnt out from experimentation done carelessly is simply unacceptable. The line voltages the TRIAC is controlling can fry the nearby Mux chip like this 74LS154 in an instant. Of course it is trivial to find a replacement chip to make it work again. But the original parts are what make this machine a piece of history.

Fairchild 74LS15 Mux chip on the Apple IIe board


Game port interface

The Apple II has its joystick port built in, because gaming has always been a big thing for home computers, but it does more than take input from a couple of fancy mounted potentiometers, there was a socket that gives you four outputs for connecting external devices, so the basis for making force feedback or external gaming devices were already there. Like all the interesting things done with the Apple, you would poke certain memory locations, and it will turn on or off that particular switch. If you ever get your hands on an Apple II, The Apple II User's Guide is a must have. Get the pdf here. Since the outputs are independent, with an external demuxer, there can be 2^4 = 16 individual devices that can be controlled by software. Controling outside device is important, because sometimes floppy drives were not used, and an audio cassette was used to record and playback programs, being able to control the cassette deck from software can be really useful.

Apple II game port interface transistor

So from the RC car project, wires were inserted into that socket, and then a simply array of resister and transistors were put between that and the DIN9 socket mounted on the case for connection originally with the RC car's hacked remote control. The TRIAC circuit just plugs into that for control input.

Here are the circuit diagrams and code. Alternate flip flop based test driver signal

Circuit layout

Less than 30 lines of BASIC

Eventually the programming got pretty fancy, I was flashing off "Merry Christmas" in morse code, have the light strings move in time domain variations. This was way before the fad of hooking up an ipod to the holiday lights. But when things can be controlled with software, making adjustments are easy.

M --
E .
R .-.
R .-.
Y -.--

C -.-
H ....
R .-.
I ..
S ...
T -
M --
A .-
S ...


Yeah, also did this back in 2002. It is a programmable Lead Acid battery charging system. Back in the day before Lithium Ion or even Nickel Metal Hydrates (NiMH) was available, we used to buy stacks of NiCad from Costco. (It was Price Club.) Charging them with commercially available chargers took 8 hours, and the charge will last about 2 hours. So yeah, we gave it a dose of Home Improvement and started charging them at something like 3amps instead of 0.3amps (300mah) Of course the plastic cover on the shells bursted, but it did finish charging in 15 minutes, a 32x improvement. It also burnt away any memories of the dreaded memory effect inherent in NiCad due to the fact that we were charging the cells to the brink of death. What we did not know about of course, was the possibility of liquid cooling the cells as we charge...

Anyway, when we eventually graduated to car sized Lead Acid battery for our monster audio amplifiers (signal noise from our home built monster transformers are unacceptable) I hit upon the idea of using the Apple II to make a closed loop charge controller. These days companies like Tesla Motor would call something like that a SuperCharger.

Apple II Battery Charge Management System.

Content last updated:
July 15, 2015 23:51


Unless noted otherwise, graphics and text and designs are all Copyright (c) P A N G Industries.
Trademarks are the properties of their respective owners.
Please Contact us if you claim ownership of content and wish to have them removed.


Post your comments here.
071515 21:44:52
011216 10:03:27
011216 10:09:34
011516 13:34:51 Testing
011516 13:42:20
011516 13:42:28 Testing
021816 23:46:59
021816 23:54:20
030716 20:43:47
030716 20:43:48
032116 13:53:05
032116 14:00:51
041916 18:35:38
041916 18:38:39
051016 23:17:41
051016 23:24:44
061116 13:02:03
061116 13:07:45
061416 19:00:34
061416 19:07:43
070816 17:58:13
070816 18:04:06
091316 17:05:33
091416 18:32:36
091416 18:39:13
101316 1:53:47
101316 2:00:26
110916 23:14:00
110916 23:20:18
121916 23:57:38
122016 0:02:52
010517 3:10:09
010517 3:17:39
031517 17:19:44
040817 1:34:05
051617 2:37:28
051617 2:44:40
062617 15:33:04
071117 16:59:17
071117 18:53:46
071117 19:00:48
071117 20:39:09
071117 20:46:16
071317 23:01:00
071317 23:01:04
072817 14:47:42
081217 3:12:34
082617 15:30:05
091017 3:07:31
091217 20:23:29
091217 20:29:10
092417 20:30:14
092417 20:31:11
092417 20:34:17
092917 17:38:16
100617 21:13:21
100617 21:17:58
100917 18:33:07
100917 18:34:12
100917 18:35:56
101617 11:20:00
102617 13:22:59
102617 13:24:59
102617 13:29:23
103117 12:51:40
110317 21:49:30
111017 17:11:05
111017 17:21:25
111017 17:21:29
111617 14:50:53
112617 13:26:10
112617 13:30:09
112617 13:30:17
112617 13:32:18
120117 17:08:03
120617 21:37:11
120617 21:43:07
121217 4:01:54
121217 4:04:12
121217 4:09:50
121717 1:56:05
122617 23:52:25
122617 23:53:37
122617 23:55:30
010118 1:35:08
010918 23:58:05
011018 0:08:49
011018 23:09:30
011018 23:10:14
011018 23:18:42
011518 23:50:02
012618 4:33:04
012618 4:39:25
012618 4:40:25
013118 2:15:43
021018 4:12:18
021018 4:18:14
021118 1:08:34
021118 1:13:59
021118 1:26:55
021118 7:17:15
021118 7:18:47
021118 7:22:47
021618 12:16:59
030218 17:21:41
030218 17:24:53
030218 17:25:26
030818 4:53:33
031318 9:41:11
031318 9:46:43
050418 21:25:54
050418 21:35:22
050718 13:25:05
050718 13:36:53
050718 13:59:59
050718 14:05:54
050718 14:19:47
050718 14:20:02
050718 14:22:24
051618 9:10:28
051618 9:22:23
051618 9:49:54
051618 10:02:39
051618 10:07:59
051618 10:13:10
051618 10:16:26
061318 0:40:38
061318 0:53:42
061318 1:05:37
061318 10:32:50
061318 10:46:29
061318 10:57:27
061318 11:09:38
061318 11:21:02
061318 11:32:43
061318 13:25:48
061318 13:37:25
061318 13:59:28
061318 14:09:17
061318 14:17:13
061318 14:19:59
061318 14:20:08
061318 16:10:43
061318 16:24:17
061318 16:49:13
061318 16:56:06
061318 17:08:49
061318 17:21:49
061318 17:30:02
061318 17:45:19
061318 18:02:37
061318 18:05:12
070718 13:01:03
070718 13:14:02
070718 13:35:40
070718 13:47:31
070718 13:51:45
070718 13:56:39
070718 14:00:12
080318 1:02:50
080318 1:14:21
080318 2:43:39
080318 3:25:29
080318 3:48:04
080318 3:59:53
080318 4:22:45
080318 4:39:40
080318 4:42:11
080618 10:38:15
080618 10:52:32
080618 11:06:08
080618 11:19:00
080618 12:01:35
080618 12:01:44
080618 12:21:14
080618 12:26:14
080618 12:39:22
080618 13:01:07
080618 13:20:02
080618 13:22:32
091118 11:56:38
091118 12:07:59
091118 12:30:50
091118 12:42:06
091118 12:56:02
091218 16:11:40
091218 16:14:42
091218 16:20:10
091218 16:22:04
091218 16:23:52
091218 16:24:29
091218 16:29:47
091418 11:21:00
091418 11:28:27
091418 11:42:10
091418 11:46:58
091418 11:51:23
091418 11:52:57
091418 12:16:21
091418 12:22:19
092418 22:12:04
092518 9:16:56
092518 14:51:04
100118 4:35:48
100718 9:16:00
100818 1:58:46
100818 11:28:15
101018 2:53:15
101218 0:27:43
101218 0:35:17
101218 0:50:20
101218 0:54:36
101218 1:03:16
101218 1:05:30
101218 1:16:25
102118 0:03:30