WEBVTT
Kind: captions
Language: en

00:00:00.000 --> 00:00:07.440 align:start position:19%
I wanted to see how far I could push
drawing with a single line.

00:00:04.160 --> 00:00:10.960 align:start position:19%
The answer is apparently way too far.
See, I've been enjoying hand drawing

00:00:09.120 --> 00:00:15.480 align:start position:19%
technical diagrams. The results are
satisfying, but they take forever.

00:00:13.960 --> 00:00:20.360 align:start position:19%
I originally built this machine to help
me out. Then I got carried away.

00:00:18.600 --> 00:00:23.400 align:start position:19%
Once I saw what it could do, I became
obsessed.

00:00:21.600 --> 00:00:27.400 align:start position:19%
How much detail?
How much shading?

00:00:26.200 --> 00:00:30.960 align:start position:19%
How much realism [music]
can emerge from a single unbroken

00:00:29.360 --> 00:00:34.880 align:start position:19%
stroke?
So, what actually is drawing?

00:00:32.759 --> 00:00:37.720 align:start position:19%
Mechanically, it's surprisingly simple.
You hold a pen and you move it across a

00:00:36.720 --> 00:00:41.200 align:start position:19%
surface.
To do that, we need two independent axes

00:00:39.680 --> 00:00:46.320 align:start position:19%
of motion.
We need high accuracy

00:00:44.240 --> 00:00:48.360 align:start position:19%
and collaboration so I can draw with the
machine.

00:00:47.000 --> 00:00:51.680 align:start position:19%
&gt;&gt; What the radius?
&gt;&gt; I meant the diameter.

00:00:50.280 --> 00:00:56.080 align:start position:19%
Oh, show.
Go.

00:00:53.040 --> 00:01:00.120 align:start position:19%
And collaboration so I can draw with the
machine.

00:00:58.320 --> 00:01:02.600 align:start position:19%
A Cartesian plotter solves the accuracy
problem,

00:01:02.880 --> 00:01:06.320 align:start position:19%
but not the collaboration problem.

00:01:07.200 --> 00:01:14.840 align:start position:19%
This polar plotter from a previous video
lets me hold the pen,

00:01:11.480 --> 00:01:18.640 align:start position:19%
but it's just not accurate enough.
This design combines the best of both.

00:01:17.160 --> 00:01:22.640 align:start position:19%
The pen can move anywhere in the 2D
plane, and there's plenty of space for

00:01:20.520 --> 00:01:26.440 align:start position:19%
me on this side to hold the pen.
So, I started manufacturing parts.

00:01:26.800 --> 00:01:35.080 align:start position:19%
Let's start with the X axis.
This rail handles all horizontal motion.

00:01:33.320 --> 00:01:39.560 align:start position:19%
If I push at the end of a long arm
attached here, the slide will want to

00:01:36.880 --> 00:01:44.680 align:start position:19%
twist and lock up.
So, I'm using two slides and spacing

00:01:41.360 --> 00:01:44.680 align:start position:19%
them as far as possible.

00:01:46.880 --> 00:01:54.040 align:start position:19%
The Y axis needs to be lightweight, but
still rigid. So, it rides on these rods

00:01:51.080 --> 00:01:54.040 align:start position:19%
and linear bearings.

00:01:56.760 --> 00:02:03.000 align:start position:19%
And the pen just friction fits into the
end effector here.

00:02:00.960 --> 00:02:07.040 align:start position:19%
Then we hit our first major problem.
While the Y axis is gliding smoothly,

00:02:05.640 --> 00:02:10.440 align:start position:19%
there's a lot more friction in the X
axis.

00:02:08.280 --> 00:02:16.296 align:start position:19%
So, I redesigned the entire X axis to
instead also run on a linear bearing.

00:02:14.276 --> 00:02:16.296 align:start position:19%
&gt;&gt; [music]

00:02:17.640 --> 00:02:21.959 align:start position:19%
&gt;&gt; Now it's time to bring this machine to
life.

00:02:20.120 --> 00:02:25.480 align:start position:19%
Timing belts let the system move quickly
without sacrificing precision.

00:02:26.240 --> 00:02:31.640 align:start position:19%
We'll get this powered in just a second,
but first a quick word from the sponsor.

00:02:30.080 --> 00:02:35.920 align:start position:19%
One thing that always surprises me about
these build projects is how much time

00:02:33.320 --> 00:02:40.320 align:start position:19%
disappears into sourcing parts.
The bearings, linear rails, shafts,

00:02:38.440 --> 00:02:42.880 align:start position:19%
pulleys, all the little mechanical
components that make this machine

00:02:41.560 --> 00:02:46.800 align:start position:19%
possible.
That's actually why I've been using

00:02:44.040 --> 00:02:50.959 align:start position:19%
JLCMC lately.
Most people know JLC for their PCBs,

00:02:52.800 --> 00:02:58.800 align:start position:19%
but they also have a pretty extensive
catalog of mechanical and motion control

00:02:56.160 --> 00:02:58.800 align:start position:19%
components.

00:02:59.800 --> 00:03:05.280 align:start position:19%
So, instead of ordering electronics from
one place, bearings from another, and

00:03:03.160 --> 00:03:09.320 align:start position:19%
linear motion parts from a third, I can
usually get everything for project in a

00:03:06.880 --> 00:03:13.400 align:start position:19%
single order.
Pricing is really quite good depending

00:03:10.720 --> 00:03:18.560 align:start position:19%
on your shipping option.
And honestly, having fewer suppliers to

00:03:15.080 --> 00:03:21.959 align:start position:19%
manage just makes the projects easier.
So, if you also have a build project

00:03:19.959 --> 00:03:24.959 align:start position:19%
that requires mechatronic components,
I've put a link to JLCMC in the

00:03:23.640 --> 00:03:27.040 align:start position:19%
description if you'd like to take a
look.

00:03:27.200 --> 00:03:34.239 align:start position:19%
Now, let's get back to the build.
I'll control everything with an Arduino

00:03:31.880 --> 00:03:38.440 align:start position:19%
and two stepper drivers, which means
it's finally time for the moment of

00:03:35.959 --> 00:03:38.440 align:start position:19%
truth.

00:03:41.000 --> 00:03:43.640 align:start position:19%
Oh, duh.

00:03:44.600 --> 00:03:51.120 align:start position:19%
What?
All right, that should do it.

00:03:48.480 --> 00:03:55.200 align:start position:19%
There it is. There Here
Now that the machine can move, it's

00:03:52.640 --> 00:03:57.920 align:start position:19%
finally time to make some marks.
Small problem, though.

00:03:56.600 --> 00:04:01.080 align:start position:19%
When the arm retracts, there's more
weight behind the pivot than in front of

00:03:59.320 --> 00:04:03.520 align:start position:19%
it, which means the pen lifts off the
page.

00:04:02.280 --> 00:04:06.560 align:start position:19%
I'm going to solve this one using the
highest level of engineering

00:04:04.760 --> 00:04:12.160 align:start position:19%
sophistication.
Bubble wrap.

00:04:08.760 --> 00:04:16.239 align:start position:19%
Now we get good contact.
Straight lines are easy.

00:04:13.920 --> 00:04:19.680 align:start position:19%
But how do we draw something curved?
These motors move in tiny discrete

00:04:17.600 --> 00:04:23.800 align:start position:19%
steps. At each step, I can move the X
axis, [music] the Y axis, or both.

00:04:22.280 --> 00:04:27.400 align:start position:19%
By combining these, we can approximate
any angle we want.

00:04:25.440 --> 00:04:30.040 align:start position:19%
Worried about these bumps? Each step is
10 micrometers. [music]

00:04:28.520 --> 00:04:33.120 align:start position:19%
So, a full millimeter would look like
this.

00:04:31.280 --> 00:04:36.400 align:start position:19%
Oh, and the line of ink from the pen is
this thick.

00:04:34.919 --> 00:04:39.560 align:start position:19%
We can break down curved shapes into a
bunch of tiny line segments, and

00:04:38.040 --> 00:04:43.360 align:start position:19%
suddenly the machine can draw smooth
shapes.

00:04:41.919 --> 00:04:46.948 align:start position:19%
And look how precise it is as I tell it
to draw the exact same circle twice.

00:04:44.928 --> 00:04:46.948 align:start position:19%
[music]

00:04:47.080 --> 00:04:51.760 align:start position:19%
We're ready to compare man versus
machine.

00:04:53.400 --> 00:04:59.800 align:start position:19%
And honestly, it's not even close.
With this device, I don't have to move

00:04:57.960 --> 00:05:03.200 align:start position:19%
my ruler, and I don't have to adjust my
angle.

00:05:00.960 --> 00:05:07.160 align:start position:19%
I don't even have to measure distance.
I just use my number pad to select a

00:05:04.880 --> 00:05:10.560 align:start position:19%
line direction, type the distance, and
the machine does the rest.

00:05:09.120 --> 00:05:15.480 align:start position:19%
So, suddenly a drawing that would
normally take forever [music]

00:05:12.240 --> 00:05:15.480 align:start position:19%
becomes almost effortless.

00:05:19.919 --> 00:05:23.960 align:start position:19%
But these rigid drawings don't even
scratch the surface of what this machine

00:05:22.720 --> 00:05:27.000 align:start position:19%
can do.
It's time to start pushing the limits of

00:05:25.400 --> 00:05:29.480 align:start position:19%
where we can go with a single line
drawing.

00:05:28.120 --> 00:05:34.240 align:start position:19%
The first place my mind goes is
calligraphy. It's beautiful, it's

00:05:31.280 --> 00:05:37.320 align:start position:19%
continuous, and it's distinctly human.
Cursive writing has so much personality

00:05:35.919 --> 00:05:41.120 align:start position:19%
that it's notoriously difficult to
forge, so it should be completely

00:05:39.080 --> 00:05:45.200 align:start position:19%
impossible for this machine.
I need a way to try to digitize letters.

00:05:43.600 --> 00:05:52.040 align:start position:19%
So, I wrote a program that lets me trace
curves and export them as coordinates.

00:05:48.760 --> 00:05:52.040 align:start position:19%
Now the machine can try writing.

00:05:53.000 --> 00:05:59.840 align:start position:19%
Maybe slightly scaled down. That should
also make the corners less obvious.

00:05:58.320 --> 00:06:03.480 align:start position:19%
I need to make sure every letter begins
and ends at the same height.

00:06:02.120 --> 00:06:07.880 align:start position:19%
Hmm, let's think. What other words can
we write? Maybe Rockefeller's signature.

00:06:08.240 --> 00:06:13.760 align:start position:19%
With any luck, I will be retiring
shortly.

00:06:12.240 --> 00:06:17.400 align:start position:19%
I added a simple connector stroke for
spaces [music] and suddenly this machine

00:06:15.480 --> 00:06:21.560 align:start position:19%
has made another jump in capability,
writing complete lines of text.

00:06:19.680 --> 00:06:25.800 align:start position:19%
But there's still one problem. How do
you move down the page without breaking

00:06:23.760 --> 00:06:30.880 align:start position:19%
the line? My elegant and maybe
completely bizarre solution is to write

00:06:27.600 --> 00:06:30.880 align:start position:19%
every other line backwards.

00:06:34.720 --> 00:06:41.000 align:start position:19%
With punctuation added, the machine can
write full pages. And at this point,

00:06:38.440 --> 00:06:44.720 align:start position:19%
things start to get a bit surreal.
This machine that a minute ago could

00:06:42.640 --> 00:06:49.640 align:start position:19%
only draw straight lines and circles is
now effortlessly writing the first page

00:06:46.640 --> 00:06:49.640 align:start position:19%
of The Wizard of Oz.

00:06:49.919 --> 00:06:55.400 align:start position:19%
I want to push even further. Not just
writing, but actual drawings. The only

00:06:54.080 --> 00:06:58.440 align:start position:19%
problem is
I have no idea how.

00:06:56.919 --> 00:07:01.320 align:start position:19%
Now I could just trace a drawing like we
did for the letters.

00:07:03.440 --> 00:07:09.520 align:start position:19%
But we did that already. We need a
different approach.

00:07:07.720 --> 00:07:12.360 align:start position:19%
Every digital image is just a grid of
pixels.

00:07:10.680 --> 00:07:16.680 align:start position:19%
For grayscale images, they're simply
bright pixels,

00:07:13.640 --> 00:07:21.000 align:start position:19%
dark pixels, and shades in between.
And somehow [music]

00:07:18.040 --> 00:07:25.080 align:start position:19%
that's enough to create realism.
So if I move through the image one pixel

00:07:22.760 --> 00:07:29.400 align:start position:19%
at a time, all I really need is some way
to represent brightness.

00:07:27.600 --> 00:07:34.000 align:start position:19%
ASCII characters work.
Burnt toast works. Apparently, anything

00:07:31.680 --> 00:07:38.280 align:start position:19%
can become an image. But what can we do
with a single unbroken line?

00:07:36.760 --> 00:07:41.560 align:start position:19%
Writing back and forth in cursive gave
me an idea.

00:07:39.480 --> 00:07:45.600 align:start position:19%
What if the The drew a sine wave across
each row of pixels.

00:07:43.520 --> 00:07:49.760 align:start position:19%
And every time it enters a new pixel,
the amplitude changes to match [music]

00:07:47.120 --> 00:07:49.760 align:start position:19%
the brightness.

00:07:54.240 --> 00:08:00.080 align:start position:19%
So, in theory, we should be able to
trick our eye into seeing an image

00:07:58.200 --> 00:08:02.640 align:start position:19%
when really it's just a bunch of
squiggles.

00:08:04.120 --> 00:08:10.160 align:start position:19%
But, this is all just theory. Could it
actually [music] work? Let's put it to

00:08:07.560 --> 00:08:15.080 align:start position:19%
the test.
Thanks to all the time programming, it

00:08:11.760 --> 00:08:19.320 align:start position:19%
actually ran surprisingly well.
From far away

00:08:16.440 --> 00:08:22.880 align:start position:19%
that genuinely looks like the Mona Lisa.
But, there are definitely problems.

00:08:21.080 --> 00:08:27.160 align:start position:19%
Plus, it took a really long time, even
though the resolution isn't even good.

00:08:24.960 --> 00:08:31.240 align:start position:19%
So, I pushed the machine harder. Higher
speed, more detail.

00:08:29.640 --> 00:08:36.800 align:start position:19%
Which immediately caused problems with
the motors skipping steps.

00:08:34.280 --> 00:08:40.440 align:start position:19%
So, I tuned the variables.
We've had some cool results so far, but

00:08:38.719 --> 00:08:44.960 align:start position:19%
this is the first one that genuinely
shocked me.

00:08:41.560 --> 00:08:49.880 align:start position:19%
There is absolutely no ambiguity.
Instead of scanning row by row what if

00:08:47.200 --> 00:08:53.920 align:start position:19%
we spiraled outward from the center?
As the spiral expands, the machine

00:08:51.800 --> 00:08:56.480 align:start position:19%
zigzags around the ideal path to encode
brightness.

00:08:56.960 --> 00:09:02.400 align:start position:19%
I was impressed before with the Home
Alone image.

00:08:59.800 --> 00:09:06.520 align:start position:19%
Now, I'm starting to get creeped out.
This looks exactly like Einstein.

00:09:07.720 --> 00:09:13.640 align:start position:19%
I can't push the detail any higher
without the image turning to mud.

00:09:12.000 --> 00:09:17.240 align:start position:19%
So, I swapped the marker for a much
finer ballpoint pen.

00:09:15.800 --> 00:09:20.520 align:start position:19%
This lets me push the resolution and the
frequency even higher.

00:09:21.880 --> 00:09:26.360 align:start position:19%
And at this point, something strange
happened.

00:09:24.440 --> 00:09:29.320 align:start position:19%
The illusion became so convincing that I
basically stopped seeing this as a

00:09:27.760 --> 00:09:32.160 align:start position:19%
drawing robot, and it started to feel
like a printer.

00:09:30.560 --> 00:09:34.640 align:start position:19%
My brain just started accepting them as
normal.

00:09:35.200 --> 00:09:40.680 align:start position:19%
If we're going to do this, let's really
do this. We're adding color.

00:09:39.320 --> 00:09:45.800 align:start position:19%
There's no way I'm loading hundreds of
markers onto this machine, but luckily

00:09:43.320 --> 00:09:50.040 align:start position:19%
we can hack human vision.
Our eyes only actually have receptors

00:09:47.560 --> 00:09:53.960 align:start position:19%
for blue, red, and green light. It's by
mixing these that we get millions of

00:09:51.680 --> 00:09:57.880 align:start position:19%
color combinations. Screens create color
by creating light, but markers work by

00:09:55.840 --> 00:10:02.640 align:start position:19%
absorbing light. So, instead of red,
green, and blue, we need their

00:09:59.680 --> 00:10:06.840 align:start position:19%
opposites: cyan, magenta, and yellow.
This is actually the same trick used in

00:10:04.080 --> 00:10:09.680 align:start position:19%
printing old comics. Tiny colored dots
that your brain blends together into

00:10:08.440 --> 00:10:13.720 align:start position:19%
full color.
So, let's go ahead and decompose this

00:10:11.240 --> 00:10:16.360 align:start position:19%
image into yellow, magenta, and cyan
channels.

00:10:26.720 --> 00:10:34.360 align:start position:19%
I still need to add the final black
layer, but no, this ain't it. That's

00:10:31.480 --> 00:10:38.160 align:start position:19%
very yellow. I think I know the problem.
These water-based markers just layer on

00:10:36.120 --> 00:10:41.640 align:start position:19%
top of each other instead of mixing.
Switching to these alcohol markers

00:10:39.600 --> 00:10:45.680 align:start position:19%
should blend much better.
So, I redid the color lines with the new

00:10:43.400 --> 00:10:50.800 align:start position:19%
markers, and now we're ready to add the
black, which leads us to our final

00:10:48.280 --> 00:10:50.800 align:start position:19%
drawing.

00:11:19.920 --> 00:11:25.040 align:start position:19%
Wow, just
wow.

00:11:23.560 --> 00:11:29.760 align:start position:19%
I genuinely did not think that this
would work that well. I mean, that's the

00:11:27.400 --> 00:11:34.680 align:start position:19%
freaking Mona Lisa, and there's one mess
up with the yellow, but that hardly

00:11:32.240 --> 00:11:38.520 align:start position:19%
matters. And yes, each color is its own
line, but come on. And I like that it

00:11:36.600 --> 00:11:42.320 align:start position:19%
not only looks cool from far away, it
maybe even looks cooler zoomed in.

00:11:41.080 --> 00:11:45.960 align:start position:19%
This machine was originally just
supposed to help me draw straight lines.

00:11:44.400 --> 00:11:50.400 align:start position:19%
And somehow it turned into a machine
that can draw photorealistic images

00:11:47.880 --> 00:11:53.200 align:start position:19%
using nothing but squiggles.
All right, that's all for today's video.

00:11:51.720 --> 00:11:57.840 align:start position:19%
Thanks so much for watching. If you like
this kind of content, be sure to

00:11:54.200 --> 00:11:57.840 align:start position:19%
subscribe, and I'll see you next time.

