WEBVTT
Kind: captions
Language: en

00:00:02.640 --> 00:00:05.680
Yes, we're talking about the Philips CD-i again.

00:00:05.680 --> 00:00:09.200
I know, no one cares about this&nbsp;
failed un-nostalgic system,&nbsp;&nbsp;

00:00:09.200 --> 00:00:13.520
but for some reason it's just really fun&nbsp;
to tinker with, so let's tinker with it!

00:00:13.520 --> 00:00:18.240
In my last CD-i video I complained that CD-i&nbsp;
controllers were rare and expensive, and ended&nbsp;&nbsp;

00:00:18.240 --> 00:00:22.720
up building a controller adapter so I could use my&nbsp;
existing pile of Sega Genesis controllers with it.

00:00:22.720 --> 00:00:28.880
But the controller wasn't my only frustration,&nbsp;
I was also pretty annoyed by the power supply.

00:00:28.880 --> 00:00:32.800
The CD-i's power supply is&nbsp;
weird, like objectively.

00:00:32.800 --> 00:00:35.280
The plug is just straight up an Ethernet cable.

00:00:35.280 --> 00:00:39.600
Okay, technically it's not, it just uses&nbsp;
an 8P8C connector like Ethernet does,&nbsp;&nbsp;

00:00:39.600 --> 00:00:41.600
but still what a weird choice.

00:00:41.600 --> 00:00:44.480
You know that tab that always&nbsp;
snaps off on Ethernet cables?

00:00:44.480 --> 00:00:48.000
Well, it does that here too, and if&nbsp;
your CD-i power supply is like that,&nbsp;&nbsp;

00:00:48.000 --> 00:00:51.360
it means a stiff breeze can make it&nbsp;
fall out and shut off the system.

00:00:51.360 --> 00:00:54.000
Oh yeah, and good luck trying to find&nbsp;
a replacement in this day and age.

00:00:54.000 --> 00:00:57.200
I thought CD-i controllers&nbsp;
were rare, but power supplies?

00:00:57.200 --> 00:01:01.120
You could try recabling it yourself,&nbsp;
but look at this: this power supply&nbsp;&nbsp;

00:01:01.120 --> 00:01:05.760
is not only huge and bulky, but for some&nbsp;
reason Philips also made it tamper-proof.

00:01:05.760 --> 00:01:07.680
The screws, hidden under its rubber pads,&nbsp;&nbsp;

00:01:07.680 --> 00:01:12.320
are one-way screws - designed so that&nbsp;
they can be screwed in but not out.

00:01:12.320 --> 00:01:12.960
Why?

00:01:12.960 --> 00:01:15.920
I mean, I guess power supplies&nbsp;
are dangerous and all, but really?

00:01:15.920 --> 00:01:17.360
Was this necessary?

00:01:17.360 --> 00:01:19.680
They also hard-wired the AC cable.

00:01:19.680 --> 00:01:21.440
And you know how much I hate this.

00:01:21.440 --> 00:01:26.000
Especially because this one has a European plug&nbsp;
forcing me to use an adapter on it at all times.

00:01:26.000 --> 00:01:28.960
What's weird is it does&nbsp;
support universal voltages.

00:01:28.960 --> 00:01:31.920
Why go to the effort of that if&nbsp;
you're going to hard-wire the cable?

00:01:31.920 --> 00:01:36.400
I briefly considered trying to mod some kind&nbsp;
of plug in any way, kind of like my Nintendo 64&nbsp;&nbsp;

00:01:36.400 --> 00:01:40.560
power supply from a few years ago, and actually&nbsp;
did have some success getting the screws out&nbsp;&nbsp;

00:01:40.560 --> 00:01:45.600
through sheer willpower, but then I realized&nbsp;
I could do something a lot more interesting.

00:01:45.600 --> 00:01:48.480
The CD-i runs primarily off of 5 volts,&nbsp;&nbsp;

00:01:48.480 --> 00:01:51.440
and just by me saying that you&nbsp;
already know where this is going.

00:01:51.440 --> 00:01:54.400
That's right, I'm thinking of&nbsp;
running this thing off USB,&nbsp;&nbsp;

00:01:54.400 --> 00:01:59.920
whose canonical baseline voltage has been&nbsp;
5 volts for the last 2,000 years or so.

00:01:59.920 --> 00:02:01.840
But it's not quite that simple, see

00:02:01.840 --> 00:02:05.920
The USB-C power delivery standard&nbsp;
provides a baseline of 5 volts,&nbsp;&nbsp;

00:02:05.920 --> 00:02:08.480
3 amps, for a total of 15 watts.

00:02:08.480 --> 00:02:14.720
Meaning no matter what, all USB PD-compliant&nbsp;
chargers will provide at least that by default.

00:02:14.720 --> 00:02:18.880
And at first glance that would seem to&nbsp;
be right on the money for the CD-i 450.

00:02:18.880 --> 00:02:24.320
Except for the fact that it also&nbsp;
requires negative 5 volts, 0.2 amps.

00:02:24.320 --> 00:02:29.280
A whole extra watt that puts it just&nbsp;
over the baseline USB-C power spec.

00:02:29.280 --> 00:02:32.080
While it's tempting to run it off&nbsp;
the baseline and hope that either&nbsp;&nbsp;

00:02:32.080 --> 00:02:35.040
the charger will tolerate it&nbsp;
or the CD-i will compensate,&nbsp;&nbsp;

00:02:35.040 --> 00:02:39.120
realistically if we want something good,&nbsp;
we should get that extra watt properly.

00:02:39.120 --> 00:02:41.360
Ideally with plenty of headroom to spare.

00:02:41.360 --> 00:02:45.200
Thankfully, it's very rare to find chargers&nbsp;
that only provide the baseline nowadays.

00:02:45.200 --> 00:02:49.840
Most of them provide at least 20 watts if&nbsp;
not 30 - more than enough for the CD-i.

00:02:49.840 --> 00:02:51.520
However, if you look at them closely,&nbsp;&nbsp;

00:02:51.520 --> 00:02:56.000
they still almost never provide&nbsp;
more than 3 amps on the 5 volt rail.

00:02:56.000 --> 00:02:59.760
Instead, providing that extra&nbsp;
wattage through 9 volts.

00:02:59.760 --> 00:03:04.800
Turns out, higher amps are much harder to deal&nbsp;
with than higher volts, at least at this scale.

00:03:04.800 --> 00:03:08.960
As long as the cables are sufficiently&nbsp;
insulated, higher volts aren't really a problem.

00:03:08.960 --> 00:03:11.040
But higher amps means more heat production,&nbsp;&nbsp;

00:03:11.040 --> 00:03:14.880
requiring thicker cables, more heat&nbsp;
management, larger components...

00:03:14.880 --> 00:03:19.520
Basically making the whole thing bigger,&nbsp;
more complicated, and more expensive.

00:03:19.520 --> 00:03:25.040
As such, the USB-C standard only requires&nbsp;
chargers to provide 3 amps on the 5 volt rail,&nbsp;&nbsp;

00:03:25.040 --> 00:03:27.360
and most of them happily conform to that.

00:03:27.360 --> 00:03:30.560
While it is possible to get adapters&nbsp;
and cables that provide more,&nbsp;&nbsp;

00:03:30.560 --> 00:03:34.720
if we want this to be compatible with the&nbsp;
vast majority of USB-C chargers out there,&nbsp;&nbsp;

00:03:34.720 --> 00:03:40.800
it actually makes the most sense to run off the&nbsp;
9 volt rail and step it down internally to 5.

00:03:40.800 --> 00:03:44.400
So with this in mind, our board&nbsp;
needs to accomplish four things:

00:03:44.400 --> 00:03:47.680
one, tell the USB-C power adapter we want 9 volts;

00:03:47.680 --> 00:03:50.640
two, convert that down to 5 volts, 4 amps;

00:03:50.640 --> 00:03:54.800
three, flip a portion of it around for&nbsp;
that one pin that needs negative 5 volts;

00:03:54.800 --> 00:03:57.360
and finally handle the on-off switch.

00:03:57.360 --> 00:04:01.600
Yeah, turns out the CD-i's power switch is&nbsp;
actually wired straight to the power brick&nbsp;&nbsp;

00:04:01.600 --> 00:04:05.120
so if we're getting rid of the brick,&nbsp;
we'll need to handle that part too.

00:04:05.120 --> 00:04:07.040
So how do you design a board?

00:04:07.040 --> 00:04:09.200
Well, you should start out with a schematic,&nbsp;&nbsp;

00:04:09.200 --> 00:04:13.120
and while it may look intimidating, it's&nbsp;
actually a lot easier than you'd think.

00:04:13.120 --> 00:04:16.080
Really, all it comes down to is wiring stuff up.

00:04:16.080 --> 00:04:19.360
If you ever played Widget Workshop,&nbsp;
you understand the basic principle.

00:04:19.360 --> 00:04:22.800
Of course, the obvious question&nbsp;
is: what do you wire up? And why?

00:04:22.800 --> 00:04:25.840
Well, there's a reason I broke&nbsp;
this down into individual tasks.

00:04:25.840 --> 00:04:30.800
Once you can look up "requesting 9 volts from&nbsp;
USB-C" or "converting 9 volts to 5 volts",&nbsp;&nbsp;

00:04:30.800 --> 00:04:33.280
it becomes a lot easier to find what you need.

00:04:33.280 --> 00:04:36.560
In fact, each job ends up&nbsp;
corresponding to one chip.

00:04:36.560 --> 00:04:40.400
But from there it mostly boils down&nbsp;
to reading a lot of datasheets to&nbsp;&nbsp;

00:04:40.400 --> 00:04:43.280
figure out which components make&nbsp;
the most sense for your purposes.

00:04:43.280 --> 00:04:50.080
For example, while the STUSB4500 is a popular chip&nbsp;
for USB-C designs, I found it a little overkill.

00:04:50.080 --> 00:04:52.000
We're not designing anything that needs to cleanly&nbsp;&nbsp;

00:04:52.000 --> 00:04:55.760
switch between internal battery and AC&nbsp;
power, nor do we need a whole table of&nbsp;&nbsp;

00:04:55.760 --> 00:04:59.600
acceptable voltages fed to it by an&nbsp;
EEPROM or separate microcontroller.

00:04:59.600 --> 00:05:02.320
All we need is something&nbsp;
that says "give me 9 volts".

00:05:02.320 --> 00:05:06.640
The CH221K is a tiny 6-pin&nbsp;
chip that does exactly that.

00:05:06.640 --> 00:05:10.560
And all we need to do to select 9 volts is&nbsp;
wire up a resistor with a specific value.

00:05:10.560 --> 00:05:11.760
Couldn't be easier!

00:05:11.760 --> 00:05:14.880
Next, to get it down to 5 volts, there&nbsp;
are once again plenty of options,&nbsp;&nbsp;

00:05:14.880 --> 00:05:20.000
but I ended up going with the TPSM84538,&nbsp;
which is both highly integrated, making&nbsp;&nbsp;

00:05:20.000 --> 00:05:25.280
the board simpler and smaller, and crucially&nbsp;
can output up to 5 amps - plenty for the CD-i.

00:05:25.280 --> 00:05:29.600
This simplicity does come at a cost: it&nbsp;
is the most expensive chip on the board.

00:05:29.600 --> 00:05:34.320
Using a less integrated chip would be considerably&nbsp;
cheaper, but I figured for a low-volume board&nbsp;&nbsp;

00:05:34.320 --> 00:05:40.080
where space is at a premium, having things simpler&nbsp;
and more self-contained was worth the price.

00:05:40.080 --> 00:05:44.560
As for inverting the voltage to&nbsp;
negative 5 volts, I chose the LT3580,&nbsp;&nbsp;

00:05:44.560 --> 00:05:47.440
which realistically probably is overkill.

00:05:47.440 --> 00:05:51.760
It can output up to 2 amps, which is 10&nbsp;
times what the CD-i needs on this rail,&nbsp;&nbsp;

00:05:51.760 --> 00:05:54.560
and it requires the most support&nbsp;
components of any of our chips,&nbsp;&nbsp;

00:05:54.560 --> 00:05:58.160
making this section the largest&nbsp;
single consumer of space on the board.

00:05:58.160 --> 00:06:02.800
But I wanted something that I knew would work&nbsp;
with no issue, and this is definitely that.

00:06:02.800 --> 00:06:07.600
Still, if I ever did a version 2 of this board,&nbsp;
this is the first thing I'd try to scale down.

00:06:07.600 --> 00:06:09.120
Finally, the power switch.

00:06:09.120 --> 00:06:12.160
You'd probably assume this part would&nbsp;
be the simplest - just connecting and&nbsp;&nbsp;

00:06:12.160 --> 00:06:16.320
disconnecting the console to power - but&nbsp;
it's actually deceptively complicated.

00:06:16.320 --> 00:06:19.760
Unless you're using a big industrial&nbsp;
switch like this, your power button&nbsp;&nbsp;

00:06:19.760 --> 00:06:23.200
probably isn't gatekeeping all&nbsp;
of that energy all on its own.

00:06:23.200 --> 00:06:26.800
Instead, they use a component called a&nbsp;
"load switch" which lets you manage a&nbsp;&nbsp;

00:06:26.800 --> 00:06:29.440
massive amount of power from a low-voltage signal.

00:06:29.440 --> 00:06:32.480
Load switches also typically&nbsp;
have other responsibilities too,&nbsp;&nbsp;

00:06:32.480 --> 00:06:35.920
most notably mitigating "in-rush",&nbsp;
where many electrical devices,&nbsp;&nbsp;

00:06:35.920 --> 00:06:39.360
particularly capacitors in our case,&nbsp;
draw significant power charging up&nbsp;&nbsp;

00:06:39.360 --> 00:06:43.840
when first powered on before settling&nbsp;
into their usual power usage later on.

00:06:43.840 --> 00:06:46.320
In-rush can be dangerous because&nbsp;
it can force more power through&nbsp;&nbsp;

00:06:46.320 --> 00:06:48.320
the supply components than they're rated for.

00:06:48.320 --> 00:06:53.360
So load switches tend to force a slow start so&nbsp;
there can be no huge spike at the beginning.

00:06:53.360 --> 00:06:56.480
Now we could add an extra component&nbsp;
to handle all of this for us,&nbsp;&nbsp;

00:06:56.480 --> 00:07:01.520
but one of the reasons I really liked our&nbsp;
voltage converter - the TPSM84538 - is that&nbsp;&nbsp;

00:07:01.520 --> 00:07:05.920
it has built into it an "enable"&nbsp;
pin, and a slow-start mechanism.

00:07:05.920 --> 00:07:08.480
Effectively, it can be a load switch.

00:07:08.480 --> 00:07:12.560
There's only one problem: the "enable" pin&nbsp;
expects an active-high signal while the&nbsp;&nbsp;

00:07:12.560 --> 00:07:15.680
CD-i's power switch produces an active-low signal.

00:07:15.680 --> 00:07:17.440
If you're familiar with software programming,&nbsp;&nbsp;

00:07:17.440 --> 00:07:21.840
this is the equivalent of the chip expecting&nbsp;
a 1 while the power switch produces a 0.

00:07:21.840 --> 00:07:26.240
So if we just wired it up as-is, turning&nbsp;
the switch off would turn the CD-i on.

00:07:26.240 --> 00:07:27.840
Obviously that wouldn't work.

00:07:27.840 --> 00:07:31.360
There are a lot of ways to invert an&nbsp;
active-low signal to an active-high signal,&nbsp;&nbsp;

00:07:31.360 --> 00:07:35.120
and what I decided to do was combine the&nbsp;
power switch with another active-low signal:&nbsp;&nbsp;

00:07:35.120 --> 00:07:39.360
the one that the USB-C chip produced when it&nbsp;
had finished negotiating with the charger.

00:07:39.360 --> 00:07:41.040
I can combine those into a NOR gate,&nbsp;&nbsp;

00:07:41.040 --> 00:07:44.880
which will pass the signal along only&nbsp;
if its two inputs are pulled low.

00:07:44.880 --> 00:07:48.160
And by plugging the signal into the&nbsp;
voltage converter, we effectively say:&nbsp;&nbsp;

00:07:48.160 --> 00:07:52.800
"only start producing 5 volts, thus powering&nbsp;
the CD-i, if the power button is pressed,&nbsp;&nbsp;

00:07:52.800 --> 00:07:55.760
and we're finished negotiating&nbsp;
with the USB-C charger".

00:07:55.760 --> 00:07:57.120
Makes sense, right?

00:07:57.120 --> 00:07:59.040
Except for one more wrinkle...

00:07:59.040 --> 00:08:01.600
To create any kind of signal, we need power.

00:08:01.600 --> 00:08:04.800
But at this point, the voltage&nbsp;
converter is off so all we have&nbsp;&nbsp;

00:08:04.800 --> 00:08:07.520
is the 9 volts coming directly from the charger.

00:08:07.520 --> 00:08:10.640
But 9 volts is way too much&nbsp;
for both the NOR gate and,&nbsp;&nbsp;

00:08:10.640 --> 00:08:13.360
ironically, the voltage converter's "enable" pin.

00:08:13.360 --> 00:08:17.680
We somehow need to get an additional&nbsp;
lower-voltage power rail to drive this circuit.

00:08:17.680 --> 00:08:21.440
Once again, you could add another voltage&nbsp;
converter just to run this circuit,&nbsp;&nbsp;

00:08:21.440 --> 00:08:23.760
but it turned out I didn't need to.

00:08:23.760 --> 00:08:28.320
The USB-C negotiator chip actually&nbsp;
runs off 3.3 volts internally,&nbsp;&nbsp;

00:08:28.320 --> 00:08:32.640
and it has to get that from a power source&nbsp;
that could be anywhere from 5 to 20 volts.

00:08:32.640 --> 00:08:39.040
So it actually has a built-in voltage converter,&nbsp;
effectively giving us a 3.3 volt signal for free.

00:08:39.040 --> 00:08:41.600
Obviously it's not designed to power&nbsp;
much more than the chip itself,&nbsp;&nbsp;

00:08:41.600 --> 00:08:45.600
but for a simple signal like this, it&nbsp;
should be no problem taking advantage of it.

00:08:45.600 --> 00:08:49.440
That's the cool creative part of designing&nbsp;
something like this - figuring out how to&nbsp;&nbsp;

00:08:49.440 --> 00:08:53.200
do everything you need with the least&nbsp;
amount of components and board space.

00:08:53.200 --> 00:08:54.880
Even as I'm putting this video together,&nbsp;&nbsp;

00:08:54.880 --> 00:08:58.080
I'm finding new and better ways&nbsp;
I could have designed this board.

00:08:58.080 --> 00:09:00.240
Maybe that means there will&nbsp;
be a part 2 in the future...

00:09:00.240 --> 00:09:03.120
Now you might be thinking, okay,&nbsp;
I get the purpose of each chip,&nbsp;&nbsp;

00:09:03.120 --> 00:09:05.360
but what about all of these support components?

00:09:05.360 --> 00:09:07.040
How did you know what to add there?

00:09:07.040 --> 00:09:11.840
Well, not to sound like a broken record, but the&nbsp;
answer, once again, is to read the datasheets.

00:09:11.840 --> 00:09:14.320
And I really mean it this time&nbsp;
because many datasheets will&nbsp;&nbsp;

00:09:14.320 --> 00:09:16.480
actually feature a "typical application";&nbsp;&nbsp;

00:09:16.480 --> 00:09:20.960
essentially the manufacturer's recommendation&nbsp;
for exactly how the chip should be wired up.

00:09:20.960 --> 00:09:26.080
Including our very specific use case of converting&nbsp;
to negative 5 volts in the case of the LT3580.

00:09:26.080 --> 00:09:27.920
For the most part, I'll be totally honest,&nbsp;&nbsp;

00:09:27.920 --> 00:09:31.600
I just copied these directly&nbsp;
and made tweaks where necessary.

00:09:31.600 --> 00:09:34.720
Finally, we have a schematic&nbsp;
that looks like it'll do the job,&nbsp;&nbsp;

00:09:34.720 --> 00:09:39.440
so now it's time to figure out how to&nbsp;
fit all these parts into the real world.

00:09:39.440 --> 00:09:41.520
There isn't really a lot to say&nbsp;
about this other than you need&nbsp;&nbsp;

00:09:41.520 --> 00:09:44.240
a lot of patience for a lot of trial-and-error.

00:09:44.240 --> 00:09:48.640
While just putting stuff onto a board isn't too&nbsp;
hard, if you have specific space requirements,&nbsp;&nbsp;

00:09:48.640 --> 00:09:51.520
it can be quite challenging squeezing it all in.

00:09:51.520 --> 00:09:57.040
Now, space certainly is a challenge if&nbsp;
you look at the CD-i 450 board here...

00:09:57.040 --> 00:10:00.880
There's the space where the&nbsp;
port was and not a lot more.

00:10:00.880 --> 00:10:04.400
And it's even less once you put the&nbsp;
shield and the CD drive back in.

00:10:04.400 --> 00:10:08.080
Plus, the original port had these two&nbsp;
large mounting holes for stability that&nbsp;&nbsp;

00:10:08.080 --> 00:10:11.840
I'd like to keep using to take the stress&nbsp;
of plugging and unplugging off the pins.

00:10:11.840 --> 00:10:16.160
Modeling and 3D printing some stalks that&nbsp;
fit should be a relatively simple process,&nbsp;&nbsp;

00:10:16.160 --> 00:10:19.920
but that means we have even less board&nbsp;
space to fit the actual components.

00:10:19.920 --> 00:10:23.360
Fitting everything into the space&nbsp;
of an Ethernet jack would be tough.

00:10:23.360 --> 00:10:27.200
In fact, even utilizing both sides of&nbsp;
the board, I still ended up pushing a&nbsp;&nbsp;

00:10:27.200 --> 00:10:31.520
little bit to the left where the CD-i&nbsp;
had about a centimeter of empty space.

00:10:31.520 --> 00:10:33.200
But did I squeeze it all in?

00:10:33.200 --> 00:10:34.160
Yes, I did.

00:10:34.160 --> 00:10:38.160
Technically, that meant the PCB was done&nbsp;
and ready to send off for manufacturing,&nbsp;&nbsp;

00:10:38.160 --> 00:10:42.480
however since we really needed this to fit, and&nbsp;
line up with not only the pins but the mounting&nbsp;&nbsp;

00:10:42.480 --> 00:10:48.800
holes, I decided to 3D print the board&nbsp;
first so I knew for sure it would work.

00:10:48.800 --> 00:10:49.760
"Nice..."

00:10:49.760 --> 00:10:53.920
"Everything seems to line up, there's&nbsp;
enough space... just enough space for it..."

00:10:53.920 --> 00:10:56.960
But then I got a look at the&nbsp;
back and realized I'd, uh...

00:10:56.960 --> 00:10:59.200
...made the shaft a little too long.

00:10:59.200 --> 00:11:01.680
"It kind of pokes out like a tongue..."

00:11:01.680 --> 00:11:06.560
Of course there is such a thing as too&nbsp;
big, so I got to work making it shorter.

00:11:06.560 --> 00:11:10.720
Thankfully, from the test, I realized I had&nbsp;
plenty of space on the sides of the tongue,&nbsp;&nbsp;

00:11:10.720 --> 00:11:15.200
so I could move stuff from behind the port&nbsp;
to the sides to make the whole thing shorter.

00:11:15.200 --> 00:11:19.040
I 3D printed it again, and this&nbsp;
time it was pretty much perfect,&nbsp;&nbsp;

00:11:19.040 --> 00:11:21.760
slotting right in where the old plug was.

00:11:21.760 --> 00:11:24.160
Good thing too because I’d gotten the port pretty&nbsp;&nbsp;

00:11:24.160 --> 00:11:27.760
much as close to the mounting holes&nbsp;
as I could without it overlapping.

00:11:27.760 --> 00:11:30.240
With that, it was time to&nbsp;
send it off for manufacturing.

00:11:30.240 --> 00:11:34.800
And of course I called on friend of the&nbsp;
channel, and this video's sponsor, PCBWay!

00:11:34.800 --> 00:11:39.040
I've been to PCBWay's factory&nbsp;
in-person and it's a massive operation.

00:11:39.040 --> 00:11:43.280
PCBs look simple but there are so&nbsp;
many steps and levels to making them.

00:11:43.280 --> 00:11:45.680
So many materials and chemicals that I've never&nbsp;&nbsp;

00:11:45.680 --> 00:11:48.720
heard of in my life but that&nbsp;
these guys are experts in.

00:11:48.720 --> 00:11:52.160
I would have assumed that the process was&nbsp;
all robots and machines, and the equipment&nbsp;&nbsp;

00:11:52.160 --> 00:11:57.040
they have is very impressive, but it's all being&nbsp;
driven by a remarkable amount of human beings,&nbsp;&nbsp;

00:11:57.040 --> 00:12:01.920
working hard every step of the way to ensure&nbsp;
the PCBs come out correctly every single time.

00:12:01.920 --> 00:12:05.600
Now while I liked the idea of using parts&nbsp;
that could be easily soldered by hand,&nbsp;&nbsp;

00:12:05.600 --> 00:12:08.880
the size constraints here just&nbsp;
didn't make that feasible.

00:12:08.880 --> 00:12:13.440
Thankfully PCBWay also offers an end-to-end&nbsp;
assembly service, using their specialized&nbsp;&nbsp;

00:12:13.440 --> 00:12:17.600
equipment to solder those tiny components&nbsp;
onto the board so I wouldn't have to.

00:12:17.600 --> 00:12:22.400
All I had to do was upload the board and my parts&nbsp;
list to pcbway.com and they handled the rest,&nbsp;&nbsp;

00:12:22.400 --> 00:12:25.840
turning what was just an idea and a&nbsp;
couple of lines on the computer into&nbsp;&nbsp;

00:12:25.840 --> 00:12:30.480
an actual device theoretically capable of&nbsp;
running the funny meme console off USB-C.

00:12:30.480 --> 00:12:32.800
Thanks to PCBWay for sponsoring this video and&nbsp;&nbsp;

00:12:32.800 --> 00:12:35.520
making these high quality&nbsp;
boards just how I imagined.

00:12:35.520 --> 00:12:37.680
Now all that was left was to test it...

00:12:37.680 --> 00:12:41.920
"Test number 1: the smoke test..."

00:12:41.920 --> 00:12:46.240
"Whew! Okay... nothing blew up!"

00:12:46.240 --> 00:12:50.000
Now for the real test: did it&nbsp;
actually produce any power?

00:12:50.000 --> 00:12:58.320
"This should come out to 9&nbsp;
volts, let's see if it does..."

00:12:58.320 --> 00:12:59.040
Nothing.

00:12:59.040 --> 00:13:03.120
I tried a second one just in case&nbsp;
it was a dud, and still nothing...

00:13:03.120 --> 00:13:08.400
Now, as a programmer, I am very accustomed&nbsp;
to things not working first try, but even&nbsp;&nbsp;

00:13:08.400 --> 00:13:12.240
so I feel like the stakes are a little&nbsp;
bit higher when it comes to hardware.

00:13:12.240 --> 00:13:17.680
Everything seemed like it should work&nbsp;
on paper, why did it not in practice?

00:13:19.520 --> 00:13:21.360
Well, as I checked back over the datasheets,&nbsp;&nbsp;

00:13:21.360 --> 00:13:25.360
I realized there was a reason&nbsp;
it wouldn't work even on paper.

00:13:25.360 --> 00:13:31.200
While USB-A is designed to provide 5 volts no&nbsp;
matter what, USB-C is bidirectional, so when you&nbsp;&nbsp;

00:13:31.200 --> 00:13:35.920
first plug it in the devices have to figure out&nbsp;
who's consuming the power and who's supplying it.

00:13:35.920 --> 00:13:43.280
As a consumer, we're supposed to pull CC1 and&nbsp;
CC2 down to ground using two 5.1K ohm resistors.

00:13:43.280 --> 00:13:48.000
If we don't, the charger doesn't know what&nbsp;
to do, and ends up providing no power at all.

00:13:48.000 --> 00:13:51.280
Guess which two resistors&nbsp;
didn't make it into my design?!

00:13:51.280 --> 00:13:56.320
Indeed, there they are in our USB-C chip's&nbsp;
reference schematic, I just missed them...

00:13:56.320 --> 00:13:57.600
Adding them back would be trivial,&nbsp;&nbsp;

00:13:57.600 --> 00:14:01.040
but in the interests of testing without&nbsp;
doing another full manufacturing cycle,&nbsp;&nbsp;

00:14:01.040 --> 00:14:05.840
I bought some 5.1K resistors big enough for&nbsp;
human hands to solder and tacked them on.

00:14:05.840 --> 00:14:08.400
And now, the big question: was that it?

00:14:08.400 --> 00:14:14.480
Would the board now be able to negotiate&nbsp;
with the charger and get 9 glorious volts?

00:14:14.480 --> 00:14:15.600
"Oh, good!"

00:14:15.600 --> 00:14:17.200
"Good, good, good!"

00:14:17.200 --> 00:14:18.880
Now, assuming our power switch works,&nbsp;&nbsp;

00:14:18.880 --> 00:14:23.200
it shouldn’t be outputting 5 volts to&nbsp;
the console yet, and indeed it isn’t.

00:14:23.200 --> 00:14:24.960
But if I wire the switch pin to ground,&nbsp;&nbsp;

00:14:24.960 --> 00:14:30.800
effectively simulating the CD-i switch&nbsp;
being turned on, we should now get 5 volts.

00:14:30.800 --> 00:14:31.840
"And we do!"

00:14:31.840 --> 00:14:33.520
And of course, if everything is working right,&nbsp;&nbsp;

00:14:33.520 --> 00:14:37.120
we’ll also have one pin&nbsp;
supplying negative 5 volts.

00:14:37.120 --> 00:14:40.320
"And we do! Yeah, okay!"

00:14:40.320 --> 00:14:45.040
So, according to the numbers, this should&nbsp;
now be able to power a Philips CD-i.

00:14:45.040 --> 00:14:54.400
Only one way to find out...

00:14:54.400 --> 00:14:57.680
"This is... absolutely insane."

00:14:57.680 --> 00:15:01.360
"To think: this whole thing&nbsp;
is running off that..."

00:15:01.360 --> 00:15:03.600
"Just this, this tiny little brick!"

00:15:03.600 --> 00:15:08.160
"Keep in mind, THIS is the power&nbsp;
brick that it shipped with."

00:15:08.160 --> 00:15:12.480
"Comparing this, to this...&nbsp;
it's just unbelievable."

00:15:12.480 --> 00:15:17.920
Of course, I had to try some games...

00:15:17.920 --> 00:15:28.880
Of course, I only play the best&nbsp;
games that the CD-i has to offer...

00:15:28.880 --> 00:15:33.520
But software quality notwithstanding,&nbsp;
it is working perfectly.

00:15:33.520 --> 00:15:39.600
"Zelda, Duke Onkled is under attack by the evil&nbsp;
forces of Ganon. I'm going to Gamelon to aid him."

00:15:39.600 --> 00:15:44.480
And so there we have it, a Philips&nbsp;
CD-i running off a cell phone charger.

00:15:44.480 --> 00:15:45.520
"Oh boy!"

00:15:45.520 --> 00:15:48.000
What an incredible time to be alive.

00:15:48.000 --> 00:15:50.880
This is something I’ve been&nbsp;
wanting to do for over a year now,&nbsp;&nbsp;

00:15:50.880 --> 00:15:53.840
and I’m very happy to have finally done it.

00:15:53.840 --> 00:15:57.280
Now, I suspect I'm not the only person&nbsp;
who would want something like this,&nbsp;&nbsp;

00:15:57.280 --> 00:16:01.280
after all I'm not the first person to make a&nbsp;
replacement power supply for this CD-i model.

00:16:01.280 --> 00:16:04.800
But as far as I know, I'm the first&nbsp;
one to get it running on USB-C.

00:16:04.800 --> 00:16:08.480
And, while obviously this is the CD-i we're&nbsp;
talking about here, there's not going to be&nbsp;&nbsp;

00:16:08.480 --> 00:16:12.960
a massive demand, I am considering selling some&nbsp;
of these at some point for anyone who wants them.

00:16:12.960 --> 00:16:15.520
Of course, we don't want to&nbsp;
mess around with power supplies,&nbsp;&nbsp;

00:16:15.520 --> 00:16:18.000
particularly when it comes&nbsp;
to old systems, so I plan to&nbsp;&nbsp;

00:16:18.000 --> 00:16:21.840
get these thoroughly tested and make any&nbsp;
revisions I need to before selling them.

00:16:21.840 --> 00:16:25.600
Also, while doing an internal mod like I&nbsp;
did is obviously the cleanest solution,&nbsp;&nbsp;

00:16:25.600 --> 00:16:29.120
there's no reason you couldn't take&nbsp;
the same board and solder an 8P8C&nbsp;&nbsp;

00:16:29.120 --> 00:16:33.280
cable to it to turn it into an external&nbsp;
dongle, not unlike my controller adapter.

00:16:33.280 --> 00:16:35.200
The benefit of that is you wouldn't have to do any&nbsp;&nbsp;

00:16:35.200 --> 00:16:37.840
soldering or modification&nbsp;
of the original hardware.

00:16:37.840 --> 00:16:39.920
It would be completely plug and play.

00:16:39.920 --> 00:16:44.320
If I do get to selling these, I'll probably&nbsp;
make internal and external versions available.

00:16:44.320 --> 00:16:47.520
But all of that will come later and&nbsp;
I'll keep you guys posted as it happens.

00:16:47.520 --> 00:16:50.080
For now, thanks for watching, and&nbsp;
I'll see you all in the next one.

00:16:50.080 --> 00:17:05.360
Bye guys!

