WEBVTT
Kind: captions
Language: en

00:00:10.200 --> 00:00:17.160
Guess what I’ll be doing&nbsp;
for the next two months!
&nbsp;

00:00:17.160 --> 00:00:21.560
Hi. Have you ever wanted something you didn't&nbsp;
need? Because when I saw a video of a trash&nbsp;&nbsp;

00:00:21.560 --> 00:00:28.360
can that looked like it came from the future, I&nbsp;
thought: “That is so sick! Where can I get one?”.&nbsp;&nbsp;

00:00:28.360 --> 00:00:36.040
Oh right, this is just some proof of concept made&nbsp;
for a 2017 Japanese EXPO. 2017! Almost 10 years&nbsp;&nbsp;

00:00:36.040 --> 00:00:40.200
have passed and instead of getting rid of trash&nbsp;
they made even more of it and put them on the&nbsp;&nbsp;

00:00:40.200 --> 00:00:45.000
streets! “Oh but Blytical why do you need a trash&nbsp;
can when you already have this Youtube channel?"&nbsp;&nbsp;

00:00:45.000 --> 00:00:49.480
Well, the reason is... I can’t come up with a good&nbsp;
reason for wanting one, but it’s satisfying and&nbsp;&nbsp;

00:00:49.480 --> 00:00:55.840
it seems easy to make, so here’s the plan. 
First, we need a trash can that we can modify.&nbsp;&nbsp;

00:00:55.840 --> 00:01:01.240
And where do we get one of those? That’s&nbsp;
right! We catch one in the wilderness!&nbsp;&nbsp;

00:01:01.240 --> 00:01:09.080
Alright if we're lucky we might just be able&nbsp;
to find one. Wait... wait a second. I found&nbsp;&nbsp;

00:01:09.080 --> 00:01:22.000
one! I have to sneak up on him! I think&nbsp;
he's sleeping. I got him. I got him. 
&nbsp;

00:01:22.000 --> 00:01:25.280
After we disassembled the creature&nbsp;
and removed its plastic parts,&nbsp;&nbsp;

00:01:25.280 --> 00:01:30.160
we now have two metal shells. They have some&nbsp;
cosmetic damage but that’s not the main concern&nbsp;&nbsp;

00:01:30.160 --> 00:01:34.840
right now. Let's start with the lid. I haven’t&nbsp;
learned how to quantum tunnel my trash yet,&nbsp;&nbsp;

00:01:34.840 --> 00:01:40.280
so we’ll need a large opening on the top,&nbsp;
which I’ll mark with this compass. As I&nbsp;&nbsp;

00:01:40.280 --> 00:01:59.840
said I will mark it with this compass. I think&nbsp;
we’ll need to bring out the special equipment.&nbsp;&nbsp;

00:02:03.440 --> 00:02:08.120
Guess what number comes after one!
Two, we can now get rid of the middle and&nbsp;&nbsp;

00:02:08.120 --> 00:02:23.720
clean the surface, but a knife isn’t gonna cut&nbsp;
it. Now we can clean the surface with sandpaper&nbsp;&nbsp;

00:02:23.720 --> 00:02:28.480
to make it look all shiny and new, although the&nbsp;
small dents will remain since I can’t do much&nbsp;&nbsp;

00:02:28.480 --> 00:02:34.120
about them. We do the same for the bin because&nbsp;
that just looks nasty! After polishing comes:
&nbsp;

00:02:34.120 --> 00:02:39.000
Three, reinforcement. For the bottom of the&nbsp;
bin, I’ll be using this steering wheel thing&nbsp;&nbsp;

00:02:39.000 --> 00:02:44.560
to make it resistant to bending, and for the top,&nbsp;
these 4 spacers will be pushing against the rim,&nbsp;&nbsp;

00:02:44.560 --> 00:02:50.400
held down by the inner plastic bin. Now&nbsp;
we just secure things down, cover up some&nbsp;&nbsp;

00:02:50.400 --> 00:02:56.200
holes with aluminum tape, and it’s time to:
Four, design the moving parts. And by design&nbsp;&nbsp;

00:02:56.200 --> 00:03:01.960
I mean go onto Thingiverse, search for a design,&nbsp;
download it, modify it a bit to fit your criteria,&nbsp;&nbsp;

00:03:01.960 --> 00:03:06.520
and you just saved a week of headache trying to&nbsp;
figure out how to design something from scratch.&nbsp;&nbsp;

00:03:06.520 --> 00:03:11.320
But for real tho thanks to the guy whose name I&nbsp;
can’t pronounce for this design, it’s incredibly&nbsp;&nbsp;

00:03:11.320 --> 00:03:16.800
well made. For the electronics, I'll be getting&nbsp;
a circuit board from PCBWay (today’s sponsor),&nbsp;&nbsp;

00:03:16.800 --> 00:03:21.840
but I'll come back to this later. My 3d printer&nbsp;
wasn’t big enough to print out everything in one&nbsp;&nbsp;

00:03:21.840 --> 00:03:26.680
part, so I had to do some nasty plastic welding,&nbsp;
then make sure that every single piece could move&nbsp;&nbsp;

00:03:26.680 --> 00:03:32.400
freely without a lot of friction. Did I forget&nbsp;
to mention what I was even assembling? This is&nbsp;&nbsp;

00:03:32.400 --> 00:03:38.760
an aperture/iris, a circular door if you will, the&nbsp;
same mechanism that you can find in camera lenses.&nbsp;&nbsp;

00:03:38.760 --> 00:03:43.880
It consists of overlapping blades that slide over&nbsp;
each other, which control the size of the opening.&nbsp;&nbsp;

00:03:43.880 --> 00:03:48.200
The problem with most of these on the market is&nbsp;
that they don’t close fully, which in our case&nbsp;&nbsp;

00:03:48.200 --> 00:03:55.320
would just let the smell out, so we need our hole&nbsp;
to be as small as possible. That’s good enough,&nbsp;&nbsp;

00:03:55.320 --> 00:04:02.560
but I would like the blades to go inward, like&nbsp;
this, not like that. Mirroring everything on&nbsp;&nbsp;

00:04:02.560 --> 00:04:10.000
the Y-axis should fix the issue, right?
I was thinking that re-printing everything&nbsp;&nbsp;

00:04:10.000 --> 00:04:14.560
wouldn’t be worth it for that small cosmetic&nbsp;
inconvenience, but this whole thing is falling&nbsp;&nbsp;

00:04:14.560 --> 00:04:19.400
apart anyway. I might as well take it apart&nbsp;
and salvage some of the parts that I can reuse,&nbsp;&nbsp;

00:04:19.400 --> 00:04:24.560
like the ring, handle, and front cover.
Now we just have to do the entire assembly all&nbsp;&nbsp;

00:04:24.560 --> 00:04:29.600
over again, make sure everything fits and slides&nbsp;
smoothly, and after days of work, we’ll finally&nbsp;&nbsp;

00:04:29.600 --> 00:04:38.440
have a flipped mechanism just how I wanted...
Hey! You’re about to witness me going through the&nbsp;&nbsp;

00:04:38.440 --> 00:04:44.840
five stages of grief in a mere 60 seconds, enjoy!
First I thought, there is no way that I did all&nbsp;&nbsp;

00:04:44.840 --> 00:04:49.720
this work for nothing. I must have assembled&nbsp;
something wrong, I mean wouldn’t mirroring&nbsp;&nbsp;

00:04:49.720 --> 00:04:54.960
the part also mirror the way the blades close,&nbsp;
this cannot be real! I then proceeded to test&nbsp;&nbsp;

00:04:54.960 --> 00:04:59.800
how stable my desk was when I realized that the&nbsp;
only thing that had been flipped was the direction&nbsp;&nbsp;

00:04:59.800 --> 00:05:04.560
you open and close the iris, not how the&nbsp;
blades mesh together. But there must be some&nbsp;&nbsp;

00:05:04.560 --> 00:05:14.960
easy and quick way to fix this, right? There has&nbsp;
to be, there HAS TO BE! After taking a quick nap&nbsp;&nbsp;

00:05:14.960 --> 00:05:20.040
on the floor and thinking about how I got here,&nbsp;
I now had two options: I was either gonna give&nbsp;&nbsp;

00:05:20.040 --> 00:05:25.680
you up, let you down, run around and desert you,&nbsp;
or I was going to sit back down to the computer,&nbsp;&nbsp;

00:05:25.680 --> 00:05:30.520
figure out what I did wrong, fix the issue, do&nbsp;
everything all over again for the third time,&nbsp;&nbsp;

00:05:30.520 --> 00:05:35.480
and finish what I started like a real man!&nbsp;
Right, Blytical?! You’re not gonna give up just&nbsp;&nbsp;

00:05:35.480 --> 00:05:40.520
like that, you’re better than this! So what do you&nbsp;
say? Are you gonna go back and finish your Goddamn&nbsp;&nbsp;

00:05:40.520 --> 00:05:49.200
job properly- Anyway… step number (five):
 
Five, prototyping the electronics. This doohickey&nbsp;&nbsp;

00:05:49.200 --> 00:05:53.480
is obviously not going to be hand-powered,&nbsp;
so I’ll be using this small servo motor to&nbsp;&nbsp;

00:05:53.480 --> 00:05:58.000
help me out. With just three wires, you can&nbsp;
control the speed and direction of the shaft,&nbsp;&nbsp;

00:05:58.000 --> 00:06:03.320
which is connected to a gear segment, which&nbsp;
is connected to the iris. But uh oh, look at&nbsp;&nbsp;

00:06:03.320 --> 00:06:09.720
that! You see, servo motors usually only have&nbsp;
a range of about 180 degrees, and in our case,&nbsp;&nbsp;

00:06:09.720 --> 00:06:13.600
that’s not enough. But with a couple of&nbsp;
modifications, it's possible to remove&nbsp;&nbsp;

00:06:13.600 --> 00:06:20.200
these limitations, so I did! The iris can fully&nbsp;
close now, so we can move on to the detection.
&nbsp;

00:06:20.200 --> 00:06:24.720
One thing I didn’t like in the original is&nbsp;
that bulky ultrasonic sensor sticking out&nbsp;&nbsp;

00:06:24.720 --> 00:06:28.520
at the top. Since I’m going to make&nbsp;
mine look more high-end and premium,&nbsp;&nbsp;

00:06:28.520 --> 00:06:34.400
I’ll need something much less visible, so&nbsp;
we have three options to choose from:
&nbsp;

00:06:34.400 --> 00:06:38.520
By using a laser diode on one side, and&nbsp;
a light sensing component on the other,&nbsp;&nbsp;

00:06:38.520 --> 00:06:42.800
we can detect if something gets in the way&nbsp;
of the laser’s light beam. It’s fast, it’s&nbsp;&nbsp;

00:06:42.800 --> 00:06:48.640
simple… and disappointing. I imagined the detector&nbsp;
looking more like something you see in the movies,&nbsp;&nbsp;

00:06:48.640 --> 00:06:56.880
not like this. Hmm… anyway it also has no&nbsp;
range which is quite bad, so moving on. 
&nbsp;

00:06:56.880 --> 00:07:01.480
These operate with infrared light and have a&nbsp;
range of around 10 centimeters, but as you can&nbsp;&nbsp;

00:07:01.480 --> 00:07:09.200
see they’re not very stable on their own so this&nbsp;
small code should make them run better. "Why does&nbsp;&nbsp;

00:07:09.200 --> 00:07:16.600
it work so well?" It might work well enough, but&nbsp;
the detection range is still kinda terrible.
&nbsp;

00:07:16.600 --> 00:07:19.960
By combining the first two options,&nbsp;
we get a Time-of-Flight sensor,&nbsp;&nbsp;

00:07:19.960 --> 00:07:25.040
with both high range and good reliability. As I&nbsp;
move this ball towards and away from the sensor,&nbsp;&nbsp;

00:07:25.040 --> 00:07:31.000
I get fast and accurate distance measurements,&nbsp;
just what I want. You know what else I want? A&nbsp;&nbsp;

00:07:31.000 --> 00:07:34.400
working prototype! This thing is so sick,&nbsp;
I can't stop playing with this! Yes!
&nbsp;

00:07:34.400 --> 00:07:41.320
The first prototype finally works! Check&nbsp;
this out! We got some power over here,&nbsp;&nbsp;

00:07:41.320 --> 00:07:48.680
we have some wiring, and we have the code that I&nbsp;
wrote myself. So let's say you have some trash,&nbsp;&nbsp;

00:07:48.680 --> 00:07:59.440
like that. You pick it up, and now, all you gotta&nbsp;
do is just... Looks like the trash is gone! 
&nbsp;

00:08:17.320 --> 00:08:23.080
Now that things work we can finalize things&nbsp;
with a PCBWay sponsorship who yet again kindly&nbsp;&nbsp;

00:08:23.080 --> 00:08:29.520
helped this project come to life, I recommend you&nbsp;
check them out. Now we have all the parts, so:
&nbsp;

00:08:29.520 --> 00:08:35.560
Six, assembly. I’m going to disassemble the&nbsp;
iris once again to absolutely make sure that&nbsp;&nbsp;

00:08:35.560 --> 00:08:40.200
there won’t be a lot of friction when opening&nbsp;
or closing it. After tasting the lubricant to&nbsp;&nbsp;

00:08:40.200 --> 00:08:44.800
make sure that it hadn’t expired, I applied it&nbsp;
on the moving parts, then permanently welded&nbsp;&nbsp;

00:08:44.800 --> 00:08:51.200
the front cover to the body. The electronics are&nbsp;
important too, I guess... but something wasn’t&nbsp;&nbsp;

00:08:51.200 --> 00:08:55.800
right. Whenever the motor started, it kept&nbsp;
going in an endless cycle of resetting the&nbsp;&nbsp;

00:08:55.800 --> 00:09:01.520
microcontroller. I was panicking for 30 minutes&nbsp;
before realizing that the problem was the fuse,&nbsp;&nbsp;

00:09:01.520 --> 00:09:06.120
a component supposed to protect the circuit&nbsp;
from destroying itself. I replaced it with a&nbsp;&nbsp;

00:09:06.120 --> 00:09:10.720
stronger one, but at this point, the fuse&nbsp;
is completely useless, but hey! At least&nbsp;&nbsp;

00:09:10.720 --> 00:09:15.800
everything works now! One more Dremel cutting&nbsp;
session later, I stuck the iris to the lid,&nbsp;&nbsp;

00:09:15.800 --> 00:09:29.360
and finally turned it on. Now it works just how&nbsp;
I want, so a few drops of hot glue later…
&nbsp;

00:10:43.560 --> 00:10:47.640
Thanks for watching! If for some reason you&nbsp;
want to buy this one-of-a-kind trash can,&nbsp;&nbsp;

00:10:47.640 --> 00:10:52.320
I’m considering selling it. I never sell my&nbsp;
projects because there’s only one of each so&nbsp;&nbsp;

00:10:52.320 --> 00:10:56.920
they mean a lot to me, but this one just takes up&nbsp;
way too much space in my room, so if you REALLY&nbsp;&nbsp;

00:10:56.920 --> 00:11:04.240
want it, then email me. And that’s basically&nbsp;
it, now I can do and edit this whole thing...

