WEBVTT
Kind: captions
Language: en

00:00:00.410 --> 00:00:09.420 align:start position:19%
this may look like an ordinary 1970s
Polaroid instant camera but actually

00:00:06.899 --> 00:00:20.359 align:start position:19%
it's been modified so that when you take
a picture it prints onto thermal paper I

00:00:21.230 --> 00:00:27.720 align:start position:19%
know this probably isn't an original
idea it's almost certainly been done

00:00:25.650 --> 00:00:33.750 align:start position:19%
before but I wasn't gonna let that stop
me and besides you can't buy a camera

00:00:30.420 --> 00:00:37.309 align:start position:19%
like this and I now have one there are
two parts to building this one is the

00:00:35.640 --> 00:00:42.270 align:start position:19%
hardware side where we repurposed
off-the-shelf webcam and off-the-shelf

00:00:39.719 --> 00:00:46.200 align:start position:19%
thermal printer and through a colossal
amount of cutting and drilling and

00:00:44.070 --> 00:00:52.320 align:start position:19%
gluing managed to squeeze everything
inside that case the other part is the

00:00:49.260 --> 00:00:55.230 align:start position:19%
software now if we had been really
clever

00:00:52.710 --> 00:00:59.430 align:start position:19%
we could have repurposed the arm
cortex-m nor chip that was present on

00:00:57.989 --> 00:01:07.760 align:start position:19%
the circuit board for the thermal
printer it was give you devices I think

00:01:02.430 --> 00:01:07.760 align:start position:19%
which is a clone of stm32 F

00:01:08.960 --> 00:01:14.850 align:start position:19%
to reverse engineer that we could have
directly interfaced the camera to the

00:01:12.960 --> 00:01:19.619 align:start position:19%
thermal printer driver board which would
have been amazing but a lot of work so

00:01:17.490 --> 00:01:26.460 align:start position:19%
instead I went with the easy option and
stuck a Raspberry Pi in there so this is

00:01:24.000 --> 00:01:31.140 align:start position:19%
an embedded Linux device and we want it
to boot as fast as possible so this

00:01:28.380 --> 00:01:35.700 align:start position:19%
isn't gonna run raspbian you know that
the default distribution for Raspberry

00:01:33.390 --> 00:01:39.720 align:start position:19%
Pi that would that just takes far too
long to boot I'll turn this on and it's

00:01:37.530 --> 00:01:46.259 align:start position:19%
a meter view ready to take a picture and
the way to do that is to construct our

00:01:41.520 --> 00:01:50.850 align:start position:19%
own image with just the Linux kernel and
the very bare minimum of packages to get

00:01:49.229 --> 00:01:54.750 align:start position:19%
it to run you know want it to be as
lightweight as possible and there's a

00:01:52.649 --> 00:02:00.899 align:start position:19%
very easy way to do that through
something called built route so using

00:01:58.409 --> 00:02:06.920 align:start position:19%
that we can just select the kernel and
the packages we want and cross compile

00:02:02.670 --> 00:02:12.230 align:start position:19%
it into a very very minimal image and
this was this was quite an adventure

00:02:09.270 --> 00:02:15.540 align:start position:19%
because even there the boot time
originally was

00:02:13.890 --> 00:02:23.459 align:start position:19%
you know seven or eight seconds which is
unacceptable for a camera and so it was

00:02:19.910 --> 00:02:27.330 align:start position:19%
very much an interesting adventure
through the various things you have to

00:02:25.470 --> 00:02:33.810 align:start position:19%
do to speed at the boot type now boots
in about two seconds which is it's

00:02:30.690 --> 00:02:39.240 align:start position:19%
pretty good now there's a convenient
connector on the top here it's intended

00:02:35.459 --> 00:02:44.670 align:start position:19%
for a flash unit but I rewired that so
that we can connect USB serial adapter

00:02:42.690 --> 00:02:51.239 align:start position:19%
onto the top this is just a standard
point one inch header so we can get our

00:02:48.090 --> 00:02:55.200 align:start position:19%
console running even while it's fully
assembled I was actually quite

00:02:53.220 --> 00:03:00.900 align:start position:19%
entertained by the fact that the default
baud rate for the serial is one on five

00:02:58.200 --> 00:03:05.400 align:start position:19%
200 which you know that sounds fine it's
completely standard but we're squeezing

00:03:03.420 --> 00:03:10.200 align:start position:19%
every last drop in terms of the boot
time and it turned out that one of the

00:03:07.170 --> 00:03:15.120 align:start position:19%
biggest parts of the boot was dumping
the kernel messages over the serial port

00:03:12.620 --> 00:03:19.370 align:start position:19%
that baud rate was taking about noir
point nine seconds which is now a

00:03:16.890 --> 00:03:24.329 align:start position:19%
significant chunk of the boot time so
speeding up to one mega board

00:03:21.860 --> 00:03:29.430 align:start position:19%
drastically reduced the boot time anyway
most of this Linux stuff isn't really

00:03:26.100 --> 00:03:33.420 align:start position:19%
suited to the format of a YouTube video
so if you want to learn more about that

00:03:32.070 --> 00:03:38.130 align:start position:19%
have a look at the project page on my
website there's a few more things I'd

00:03:36.840 --> 00:03:43.769 align:start position:19%
like to do to this before we call it
finished such as improving the way to

00:03:40.890 --> 00:03:48.420 align:start position:19%
load a roll of paper so you don't have
to do this off one of these is like I

00:03:46.260 --> 00:03:53.370 align:start position:19%
haven't measured it though at least
three or four hundred pictures and the

00:03:51.540 --> 00:04:00.410 align:start position:19%
original flap that's used to load the
chute kill the cartridges just isn't big

00:03:56.820 --> 00:04:07.400 align:start position:19%
enough to fit one of these through so
we'd either have to cut a big monstrous

00:04:04.049 --> 00:04:07.400 align:start position:19%
flap in the bottom or something

00:04:07.580 --> 00:04:15.900 align:start position:19%
which you know it would work but it
would be kind of ugly or potentially we

00:04:13.020 --> 00:04:21.450 align:start position:19%
could reverse the feed motors so that it
can kind of suck the entire role inside

00:04:17.940 --> 00:04:25.200 align:start position:19%
through the front but I'm not convinced
that would work it probably just

00:04:23.760 --> 00:04:29.550 align:start position:19%
crumpled up inside unless you had a
motorized reel to take it another thing

00:04:28.200 --> 00:04:35.460 align:start position:19%
I was hoping to make use of is the
autofocus motor so that's that's the

00:04:32.100 --> 00:04:37.620 align:start position:19%
mechanism is still intact for that just
for some kind of feedback while the

00:04:36.690 --> 00:04:41.880 align:start position:19%
cameras working
you just rack it back and forwards you

00:04:40.440 --> 00:04:48.560 align:start position:19%
know I managed to modify the shutter
mechanism so that the solenoid present

00:04:44.810 --> 00:04:53.910 align:start position:19%
is via a MOSFET wire to one of the GPIO
on the Raspberry Pi so when you take a

00:04:52.080 --> 00:05:00.720 align:start position:19%
picture it as far as the shutter without
actually blocking the webcam for the

00:04:56.570 --> 00:05:03.300 align:start position:19%
duration of the picture taking so I was
thinking you know with the autofocus we

00:05:02.010 --> 00:05:06.510 align:start position:19%
could just rack it back and forwards
while it's working you know until it's

00:05:05.370 --> 00:05:08.660 align:start position:19%
ready to take a picture something like
that

00:05:23.510 --> 00:05:31.380 align:start position:19%
there is definitely an artistic quality
to these grainy black-and-white pictures

00:05:29.700 --> 00:05:35.850 align:start position:19%
it's everything I could have hoped for
the whole thing is you know solid enough

00:05:33.960 --> 00:05:41.280 align:start position:19%
that I can take it to a party hand it
over to people and let them have fun

00:05:37.020 --> 00:05:45.780 align:start position:19%
taking pictures all that needs now is a
way to automatically digitize these

00:05:43.290 --> 00:05:51.480 align:start position:19%
paper strips some kind of film scanner
or something so if you want to learn

00:05:49.680 --> 00:05:56.760 align:start position:19%
about Linux and about how to get a
Raspberry Pi to boot really really

00:05:53.520 --> 00:06:00.890 align:start position:19%
quickly check out the write-up on MIT
Telecom the link is in the description

