WEBVTT
Kind: captions
Language: en-US

00:00:00.020 --> 00:00:05.320
A few months ago, my dad and I got his first computer running, this old Apple II from 1979.

00:00:06.080 --> 00:00:09.780
After that video, we started fixing all the little bugs we found, like some of the keys

00:00:09.940 --> 00:00:10.800
just weren't working.

00:00:11.500 --> 00:00:15.480
Other parts, like the power supply, needed a rebuild, since this thing's almost 50 years

00:00:15.780 --> 00:00:15.940
old.

00:00:16.000 --> 00:00:19.940
I was hoping to make this video about how we loaded up programs off cassette tapes, or

00:00:20.040 --> 00:00:24.100
how programming worked on it, but every step of the way we ran into some new problem.

00:00:24.560 --> 00:00:26.860
And that's how it goes sometimes with these old computers.

00:00:27.660 --> 00:00:31.240
From what my dad tells me, they weren't always reliable even when they were brand new.

00:00:31.680 --> 00:00:34.720
Yeah, and even a brand new computer needs good data in and out.

00:00:35.240 --> 00:00:38.360
And getting a good program load off of cassette tape wasn't always easy.

00:00:39.120 --> 00:00:40.980
And floppy disks weren't without problems either.

00:00:41.520 --> 00:00:44.580
And data cables, well they were still sort of experimental themselves.

00:00:45.940 --> 00:00:49.320
So in this video we're going to go through the three challenges we've had with this machine,

00:00:49.940 --> 00:00:50.680
starting with its keyboard.

00:00:51.300 --> 00:00:55.019
So the first thing that we did was we took the keyboard out of the case, and I was kind

00:00:55.060 --> 00:00:58.640
surprised I like it looks like a mechanical keyboard it has key switches

00:00:58.710 --> 00:01:03.620
and key caps and these are actually the switches from it yeah but I was

00:01:03.840 --> 00:01:07.500
surprised everything is soldered down and it's not like a modern keyboard where

00:01:07.500 --> 00:01:11.380
you can pop the key caps out what was the thing that you were testing on these

00:01:11.540 --> 00:01:14.880
to make sure that they actually worked well you get out your volt ohm meter

00:01:15.240 --> 00:01:19.420
simple ohms test to see when you press the button you got a closure and in the

00:01:19.540 --> 00:01:22.760
case of some switches that depending on the material you might expect to get a

00:01:22.600 --> 00:01:29.380
a few ohms not a short uh but i i got the good kit tested the good switches uh found some bad ones

00:01:29.840 --> 00:01:34.880
and then some more bad ones and then this was this was the maybe maybe box some of them it's like

00:01:35.240 --> 00:01:40.460
once we started i can see there's even some goo coming out of these yeah um some of them it's like

00:01:40.540 --> 00:01:45.840
they worked sometimes but not always some of them had switches where you would get that one's gone

00:01:46.420 --> 00:01:51.340
you would press in and it would like get stuck sometimes yeah so some of them refurbished up a

00:01:51.240 --> 00:01:52.180
a little nicer than others.

00:01:52.600 --> 00:01:55.820
You go and do a little cleaning and they worked great.

00:01:56.020 --> 00:01:59.340
And others were maybes that we could fix if we really had to.

00:01:59.520 --> 00:02:02.360
'Cause it's amazing how quickly a batch of used switches

00:02:03.140 --> 00:02:03.920
you can go through.

00:02:03.960 --> 00:02:06.820
We had three boxes, good, maybe, and not good.

00:02:07.120 --> 00:02:09.220
- Yeah, and you took one of these apart completely.

00:02:09.280 --> 00:02:12.680
And I was surprised by how it's just like two little pieces

00:02:12.760 --> 00:02:14.820
of plastic and it's like a capacitive switch.

00:02:14.820 --> 00:02:17.360
- Yeah, it looked like a capacitive switch to me.

00:02:17.460 --> 00:02:19.240
It was very, very close together.

00:02:19.500 --> 00:02:22.120
but the ohm reading would come out.

00:02:22.170 --> 00:02:24.420
So I'm not sure exactly what that material was,

00:02:24.590 --> 00:02:26.400
whether it was resistively something,

00:02:26.660 --> 00:02:28.240
but you'd press that button,

00:02:28.250 --> 00:02:31.680
it would slide down to where that contacting point would be,

00:02:32.320 --> 00:02:34.740
and then you'd get your couple ohms at the most.

00:02:35.030 --> 00:02:35.900
It was a good switch.

00:02:36.220 --> 00:02:38.060
And this was the first time that both of us

00:02:38.200 --> 00:02:41.520
had ever used a HAKO FR-301 desoldering gun.

00:02:42.400 --> 00:02:43.200
Gets my thumbs up.

00:02:43.420 --> 00:02:44.220
That's a great tool.

00:02:44.610 --> 00:02:47.280
You had been testing it on like a phone handset board

00:02:47.300 --> 00:02:52.900
or something i think from our early family phone yes and we immediately saw like wow we don't have

00:02:52.900 --> 00:02:57.580
to like spend all the time wicking and all the time getting the solder off and all that no so that was

00:02:57.760 --> 00:03:05.020
kind of cool and uh i don't know how many keys do you think you're placed in total probably 15 maybe

00:03:05.460 --> 00:03:10.660
yeah something like it was quite a few we started out like oh we need the run key we needed you and

00:03:10.700 --> 00:03:14.160
then we found out once we got that and you start typing other things like oh this one's intermittent

00:03:14.180 --> 00:03:15.480
and this one's double stroking,

00:03:16.240 --> 00:03:19.900
and we ended up replacing probably a good 10 or 12.

00:03:20.060 --> 00:03:20.680
- Yeah, it was interesting.

00:03:20.880 --> 00:03:22.240
I noticed that there was one problem

00:03:22.460 --> 00:03:24.040
that a key wouldn't work.

00:03:24.260 --> 00:03:25.280
That's pretty easy to debug.

00:03:25.820 --> 00:03:27.180
But the other problem that some keys,

00:03:27.520 --> 00:03:29.800
you'd press them and it would go two or three times.

00:03:29.940 --> 00:03:30.160
- Yeah.

00:03:30.540 --> 00:03:33.060
- And apparently these keyboards

00:03:33.500 --> 00:03:36.000
didn't have debouncing algorithms built into them.

00:03:36.060 --> 00:03:37.080
So I'm guessing like--

00:03:37.080 --> 00:03:38.880
- They may have, but it's like the debounce

00:03:39.000 --> 00:03:39.940
for how many milliseconds?

00:03:40.460 --> 00:03:41.740
And when you press those in,

00:03:41.820 --> 00:03:44.120
if they have a problem of dirt in there or something,

00:03:44.340 --> 00:03:45.540
or wear and tear on that material,

00:03:46.030 --> 00:03:47.700
you literally, as it's going down plunging,

00:03:47.800 --> 00:03:50.720
it could hit and then disconnect and then hit again.

00:03:51.060 --> 00:03:52.580
And then you let go, it might hit another one.

00:03:52.680 --> 00:03:54.980
That could be three hits in one deal.

00:03:55.660 --> 00:03:58.540
- Yeah, I mean, I remember that you had gone through

00:03:58.540 --> 00:04:00.340
and tested all the keys, replaced all the ones

00:04:00.480 --> 00:04:02.220
that we knew didn't work, and then we did it again,

00:04:02.360 --> 00:04:03.580
and a couple other keys didn't work.

00:04:03.650 --> 00:04:05.520
And I think we finished, like the X key

00:04:05.620 --> 00:04:06.900
was the last one that wouldn't work.

00:04:07.050 --> 00:04:08.520
So we went back and did it again.

00:04:09.280 --> 00:04:11.640
And we still have one missing key.

00:04:11.970 --> 00:04:12.680
I forget what that key is.

00:04:12.680 --> 00:04:13.120
That's the repeat.

00:04:13.500 --> 00:04:14.120
The repeat key.

00:04:14.240 --> 00:04:17.000
That's when we decided we don't even know if we want it, but it's in there.

00:04:17.400 --> 00:04:18.239
Missing key cap.

00:04:18.329 --> 00:04:21.440
Yeah, the key cap is gone, but that switch actually works.

00:04:21.600 --> 00:04:25.420
So I might find a way to 3D print one and try to make it look pretty close.

00:04:25.860 --> 00:04:29.180
Or, you know, who knows if I can find one scrounging around the Internet somewhere.

00:04:29.640 --> 00:04:33.199
But it would be nice to have a way to plug in like a USB keyboard

00:04:33.840 --> 00:04:40.020
because we also aren't 100% sure how much the keyboard is integrated into the rest of the computer for the data flow.

00:04:40.520 --> 00:04:44.740
If there's a problem on the keyboard and we have it plugged in, could that cause the problem to exist?

00:04:45.080 --> 00:04:48.160
The thing is, you think about the simple data paths that were there,

00:04:48.780 --> 00:04:52.280
and if the keyboard is spitting out data intermittently without anybody touching it,

00:04:52.360 --> 00:04:56.200
you could imagine the chaos that would be going on inside the programming stuff.

00:04:56.540 --> 00:05:03.580
So I would say getting that keyboard maybe out of the picture might be fun to do for $5.

00:05:04.040 --> 00:05:04.120
Yeah.

00:05:04.480 --> 00:05:05.920
USB keyboards, it costs $5.

00:05:06.140 --> 00:05:06.260
Yeah.

00:05:06.560 --> 00:05:10.420
Well, I did find somebody has an Arduino library that might work.

00:05:11.000 --> 00:05:14.460
So I'd have to tweak it a little bit to use USB because they had written it for PS2,

00:05:14.600 --> 00:05:16.780
and I don't think I have a PS2 keyboard anymore.

00:05:17.160 --> 00:05:20.440
Well, that HDMI card works great.

00:05:20.640 --> 00:05:20.840
Yeah.

00:05:21.160 --> 00:05:22.620
Yeah, that's been perfect.

00:05:23.120 --> 00:05:31.680
So speaking of things that aren't perfect, though, the power supply has been an adventure because, you know, it actually worked out of the box when we turned on the computer.

00:05:31.880 --> 00:05:37.120
But with the old capacitors in it, we were like, you know, this is an important part of the system.

00:05:37.190 --> 00:05:38.780
We don't want to blow out a chip or something.

00:05:39.540 --> 00:05:40.940
So we decided to recap it.

00:05:40.970 --> 00:05:42.540
And I bought a kit from Console 5.

00:05:43.300 --> 00:05:44.880
We used the HACO FR301.

00:05:44.910 --> 00:05:47.600
And was there anything interesting in your recapping journey?

00:05:48.800 --> 00:05:51.820
Well, it was interesting to work on a power supply for the first time in a lot,

00:05:51.920 --> 00:05:56.080
because we got to the point now where there's power supply replacement is an easy thing.

00:05:57.780 --> 00:06:01.700
But putting it back together, getting it all done, it was satisfying, right?

00:06:01.760 --> 00:06:03.040
You had this old power supply.

00:06:03.220 --> 00:06:04.700
It's still all the parts seem to work.

00:06:05.160 --> 00:06:06.720
We replaced the caps, and it seemed to work.

00:06:07.160 --> 00:06:10.440
Until there was a mysterious ticking sound.

00:06:10.660 --> 00:06:13.520
That's right, which I understand we're not the only ones that have experienced that.

00:06:15.100 --> 00:06:15.320
Uh-oh.

00:06:15.720 --> 00:06:16.840
See, that's the power supply.

00:06:17.440 --> 00:06:17.980
Yeah, turn it off.

00:06:18.010 --> 00:06:18.420
Turn it off.

00:06:18.680 --> 00:06:19.420
before it goes poof.

00:06:20.280 --> 00:06:20.520
Yep.

00:06:21.240 --> 00:06:22.840
Yeah, there's something bad in there.

00:06:23.620 --> 00:06:23.960
Phooey.

00:06:24.680 --> 00:06:25.800
That was the easy part.

00:06:26.120 --> 00:06:27.600
- Yeah, someone had mentioned that they had

00:06:27.600 --> 00:06:29.720
had that happen before and it was the protection circuit

00:06:29.920 --> 00:06:30.300
built in.

00:06:30.740 --> 00:06:33.180
Basically, something was overloading and it would tick,

00:06:33.260 --> 00:06:33.660
tick, tick.

00:06:34.180 --> 00:06:36.620
And I did pull out the thermal camera and we checked

00:06:36.780 --> 00:06:39.240
and there was like a resistor towards the back

00:06:39.320 --> 00:06:40.540
that was getting pretty hot.

00:06:40.920 --> 00:06:43.540
So the question is, where is that,

00:06:44.020 --> 00:06:45.280
where's the short circuit happening?

00:06:45.860 --> 00:06:50.800
We even unplugged the whole PSU from the motherboard entirely, so it was all independent, and we

00:06:50.840 --> 00:06:52.100
turned it on, and it was still ticking.

00:06:52.380 --> 00:06:57.160
So something inside the power supply was bad, and maybe it was like we gave it a good capacitor,

00:06:57.560 --> 00:07:00.580
and now it's like there's too much power to some part that was kind of barely holding

00:07:00.680 --> 00:07:00.780
on.

00:07:01.440 --> 00:07:03.500
Or that input circuit thing that we didn't want to bypass.

00:07:03.880 --> 00:07:08.100
Could have bypassed it, but the new PSU was a great option.

00:07:08.140 --> 00:07:11.180
Yeah, we bought a Pico C, I think that's what it's called.

00:07:12.460 --> 00:07:15.440
It's just a tiny, tiny power supply that uses a PicoPSU.

00:07:16.320 --> 00:07:20.080
So you rely on an external 9-volt power supply, or 12-volt?

00:07:20.380 --> 00:07:22.220
I think it might be 12-volt.

00:07:22.840 --> 00:07:29.140
And you plug that into it, and then it feeds the 5-volt, negative 5, 12, and ground.

00:07:30.479 --> 00:07:31.880
So we put that together.

00:07:32.000 --> 00:07:32.780
You put that together.

00:07:33.380 --> 00:07:34.620
It's also satisfying.

00:07:34.900 --> 00:07:37.000
And you got to put on your satisfying glasses.

00:07:37.400 --> 00:07:38.320
Yeah, yeah, yeah.

00:07:38.630 --> 00:07:41.700
I got to put that on there, and that always feels good because you can see.

00:07:42.920 --> 00:07:46.420
I'm not quite to the point yet where I need them, but I think that I'm getting there.

00:07:47.580 --> 00:07:51.760
But we put it in, and you also tested it again with your nice little voltmeter

00:07:52.420 --> 00:07:54.280
and made sure that all the rails were good.

00:07:54.980 --> 00:07:58.820
It was working great, except for we started getting some weird boot errors,

00:07:59.160 --> 00:08:02.820
and it would do things like the sound would kind of get choppy, that kind of thing.

00:08:02.920 --> 00:08:06.700
So I remember I pulled out the thermal camera because with these older computers,

00:08:06.820 --> 00:08:08.700
you can see like, oh, that chip is getting hot.

00:08:08.780 --> 00:08:09.460
Super hot, yeah.

00:08:09.540 --> 00:08:12.000
But it didn't seem like there was anything too alarming there.

00:08:13.280 --> 00:08:16.900
But in the end, for the power supply, we ditched the original PSU,

00:08:16.920 --> 00:08:21.280
but I'm holding on to it because it seems like we could get that thing working

00:08:21.720 --> 00:08:22.660
if we spend some more time.

00:08:23.220 --> 00:08:26.380
Right, and we're seeing the 12 volts, 5 volts plus minus.

00:08:26.500 --> 00:08:28.860
We're seeing that in the system in the right places.

00:08:29.160 --> 00:08:31.800
So it felt like a good substitution.

00:08:32.200 --> 00:08:36.459
Yeah, so at this point now, we're debugging the boot issue

00:08:36.479 --> 00:08:41.640
because we can't even get it to boot into like applesoft basic or you know the basic on the

00:08:41.979 --> 00:08:46.660
the upgraded rom card and we've tried everything we've tried removing everything putting things

00:08:46.840 --> 00:08:52.380
back in and you even went so far i think you pulled out like every chip almost every chip at

00:08:52.380 --> 00:08:56.180
this point i think almost every chip was pulled i didn't put out the processor and how did you

00:08:56.300 --> 00:09:02.059
clean them and all that i used the deoxit with the little applicator needle applicator on the

00:09:02.540 --> 00:09:08.980
pins and went in and seated them and gave them a little wiggle up and out once or twice and

00:09:09.940 --> 00:09:14.700
depending on the pins and how they look but the sockets all looked great but we went in a couple

00:09:14.700 --> 00:09:20.280
of the pins had the some of the blackish oxidation oxidation on but and you you did perfect right

00:09:20.620 --> 00:09:24.600
every single pin was perfect after you put them oh not every single pin there might have been one

00:09:25.650 --> 00:09:29.799
time in my aggressiveness or not aggressiveness I don't know but there might have been one time

00:09:29.820 --> 00:09:30.420
where there was a problem.

00:09:30.580 --> 00:09:31.780
Yeah, and one of the ROMs.

00:09:32.180 --> 00:09:33.100
I think it was E0.

00:09:33.660 --> 00:09:36.440
But the other thing that happened as a result of that,

00:09:37.100 --> 00:09:39.120
I looked up, there's actually a chip pulling tool

00:09:39.700 --> 00:09:42.380
that is made specifically for certain sizes

00:09:42.800 --> 00:09:44.140
of dual inline pin chips.

00:09:45.160 --> 00:09:48.140
And it squeezes the chip and pulls it straight up.

00:09:48.380 --> 00:09:49.280
Yeah, not fun.

00:09:49.320 --> 00:09:50.920
It just does its job.

00:09:52.020 --> 00:09:53.820
It's not as exciting as trying to wiggle it out

00:09:53.940 --> 00:09:56.520
with a little extractor.

00:09:56.900 --> 00:09:58.660
Or trying to use a screwdriver on the side.

00:09:59.520 --> 00:10:06.800
So after we went through and checked all the chips, then it was, I wondered if maybe the clock was bad or something.

00:10:07.060 --> 00:10:11.100
So we got at the oscilloscope, and you were looking at a lot of different things.

00:10:11.280 --> 00:10:15.820
And we opened up the Redbook, and what were some of the clocks that you were looking at?

00:10:15.900 --> 00:10:18.980
Well, it's cool. There's the 14 megahertz master clock.

00:10:19.560 --> 00:10:23.440
It's all in the back corner right over here, yeah, the clock system.

00:10:23.680 --> 00:10:32.820
And then it distributes out and splits at different chips, split it out to seven and three and, you know, all that for different purposes all the way down to one.

00:10:34.220 --> 00:10:36.240
And, like, the memory runs off of one.

00:10:36.250 --> 00:10:40.160
So you can go to the pins and look, see, am I seeing the clocking coming into this chip?

00:10:40.270 --> 00:10:43.520
Is it the right frequency for the clock?

00:10:43.720 --> 00:10:44.940
And we did see that.

00:10:44.990 --> 00:10:48.860
And, you know, I love looking at, like, square waves that are square or they have a little bit of ring.

00:10:49.340 --> 00:10:51.200
So I was a little shocked at some of the looks.

00:10:51.380 --> 00:10:55.460
But I don't know if that's the, we might need to tweak the probe a little bit or get a little shorter.

00:10:55.770 --> 00:10:56.200
I don't know.

00:10:56.340 --> 00:10:59.960
But it was interesting and fun and took me back.

00:11:00.260 --> 00:11:03.120
It's been a long time since we troubleshooted anything like that.

00:11:03.340 --> 00:11:03.400
Yeah.

00:11:03.860 --> 00:11:10.460
But it seems like, you know, you're seeing on the screen some of the different scopes, the screens that we saw.

00:11:11.300 --> 00:11:20.680
If someone out there is deeper into Apple II, more, is this, it seems like it's okay because you're getting a rising edge and it's more than five volts or six volts,

00:11:20.860 --> 00:11:23.360
whatever it needs to be for that clock purpose.

00:11:23.450 --> 00:11:24.500
It all followed the spec.

00:11:25.440 --> 00:11:26.440
Like you said, they weren't square.

00:11:26.690 --> 00:11:28.100
They were more like mountain range waves.

00:11:28.120 --> 00:11:29.680
- Well, and that could be the probe adjustment

00:11:29.900 --> 00:11:32.260
and whatever, but it's a little noisier than I expected.

00:11:33.050 --> 00:11:35.460
But if anybody does, I went on memory pins to look

00:11:35.530 --> 00:11:37.100
and you can see activity going on

00:11:37.110 --> 00:11:38.340
on the different register pins.

00:11:39.700 --> 00:11:42.140
The question is, should they be more quiet or not?

00:11:42.340 --> 00:11:44.160
That's what I don't know, 'cause we didn't do that before

00:11:44.500 --> 00:11:45.560
when we had it almost working.

00:11:46.620 --> 00:11:48.840
But are they too noisy, too quiet?

00:11:49.360 --> 00:11:50.640
- And everything that we've been doing,

00:11:50.820 --> 00:12:00.720
I've been posting on GitHub some issues, all the different things that we're testing and all the different pictures and things that are helpful for references, mostly because I forget this stuff and you might forget some of it.

00:12:01.319 --> 00:12:04.340
And it's good to have that reference to go back to.

00:12:04.720 --> 00:12:06.620
But a lot of people have said it might be the RAM chips.

00:12:06.760 --> 00:12:12.300
So one thing that you had done was you looked in the Redbook, like, how do you set the pins correctly for different banks of RAM?

00:12:12.779 --> 00:12:17.520
And you had tested without the two sets of RAM on the bottom.

00:12:17.760 --> 00:12:26.140
One at a time, I took the banks out, took the chip out, you know, and then I put the jumpers in, the sockets where you're supposed to tell it, you know, what's in row E.

00:12:26.820 --> 00:12:33.520
And I did that, and just to be sure, I tried a couple iterations of it to make sure I understood what was going on.

00:12:33.580 --> 00:12:41.840
And I think I covered all the possible things, but I never, I took out the two banks except for the original memory that came with the unit.

00:12:41.960 --> 00:12:42.980
I did not remove that.

00:12:43.180 --> 00:12:44.920
So that's one more thing we could test there.

00:12:45.100 --> 00:12:51.940
But you also are considering, just to rule out the clock issue with potential noise, you have a signal generator?

00:12:51.940 --> 00:12:55.920
I have a signal generator that can generate 14 megahertz square waves.

00:12:56.060 --> 00:12:58.480
Luckily, that's not super crazy. It's not like 10 gigahertz.

00:12:58.500 --> 00:13:01.180
No, but what would be cool is like, how slow could I make that?

00:13:01.270 --> 00:13:04.960
Because I can go down to 1 megahertz or so many kilohertz.

00:13:05.480 --> 00:13:08.160
Like if I could generate a nice square wave and inject it, you know,

00:13:08.190 --> 00:13:14.260
I pull out one of the chips that's the master, where the master chip is that sends out the 14 megahertz to the board.

00:13:14.900 --> 00:13:18.920
If I plugged in my little pin there at four and a half or five volts,

00:13:20.380 --> 00:13:21.600
would that work?

00:13:21.690 --> 00:13:25.820
And could I slow it down and actually see the effect at the different chips?

00:13:26.660 --> 00:13:27.660
Or would they all start working?

00:13:28.020 --> 00:13:32.040
Or would it go pop and then we have no Apple II anymore?

00:13:32.300 --> 00:13:33.920
So that's where you come in.

00:13:34.270 --> 00:13:36.560
We both think that maybe the problem lies in the RAM.

00:13:36.840 --> 00:13:38.060
Maybe it lies in the clock.

00:13:38.410 --> 00:13:38.880
Not sure.

00:13:39.640 --> 00:13:41.760
But those are the things we're going to be debugging next.

00:13:41.850 --> 00:13:43.860
But have you seen any of these issues?

00:13:44.260 --> 00:13:46.160
Like this is an honest question for you.

00:13:46.580 --> 00:13:48.940
What's crazy is that it felt like we were so close

00:13:49.030 --> 00:13:50.080
to having this thing running,

00:13:50.640 --> 00:13:52.380
like it was like 30, 40 years ago.

00:13:53.100 --> 00:13:55.160
But that boot issue reared its ugly head

00:13:55.280 --> 00:13:58.380
and we even had an external data tape loaded into memory,

00:13:58.580 --> 00:14:00.640
but that was before we had to work in keyboards.

00:14:00.920 --> 00:14:02.780
So like you said, we couldn't type the word run

00:14:03.440 --> 00:14:04.180
and run the program.

00:14:05.180 --> 00:14:07.340
So hopefully we can get this thing up and running,

00:14:07.660 --> 00:14:08.560
but thanks for watching.

00:14:08.780 --> 00:14:10.820
Consider subscribing to see what happens next

00:14:11.040 --> 00:14:12.120
and we'll see you again soon.

