WEBVTT
Kind: captions
Language: en-US

00:00:00.000 --> 00:00:02.235
Input shaper. What the heck is it?

00:00:02.235 --> 00:00:05.238
And why should you add it
to your 3D printer right now?

00:00:05.438 --> 00:00:06.039
Should you?

00:00:06.039 --> 00:00:09.743
The biggest thing I want you to get out of
this video is to develop an intuitive

00:00:09.743 --> 00:00:14.714
understanding of what input shaper is
and what we mean when we say input shaper.

00:00:14.714 --> 00:00:17.484
But don't worry, I'll show you
how to get it on your printer

00:00:17.484 --> 00:00:19.652
and the kind of results
you can expect Now,

00:00:19.652 --> 00:00:21.821
if you're already familiar
with input shaper,

00:00:21.821 --> 00:00:23.456
then there's still good reason
to stick around

00:00:23.456 --> 00:00:24.991
because later in this video

00:00:24.991 --> 00:00:25.892
I'll go through something

00:00:25.892 --> 00:00:29.162
I discovered that I think will change how
I approach 3D printing.

00:00:29.162 --> 00:00:32.265
Now, maybe you already knew this thing,
but it was definitely new to me.

00:00:32.332 --> 00:00:35.001
So let's jump into
it. What is input shaper?

00:00:36.669 --> 00:00:40.173
By definition, input shaper is an open
loop control technique

00:00:40.173 --> 00:00:44.377
that is implemented on computer
controlled machines to reduce vibrations.

00:00:44.377 --> 00:00:47.914
when our 3D printers undergo
an acceleration, a change in speed

00:00:47.914 --> 00:00:51.017
or direction, they don't exactly do what
we want them to.

00:00:51.084 --> 00:00:53.620
well, yes, the machine
does exactly what we tell it to.

00:00:53.620 --> 00:00:59.292
It's a computer, but the resulting motion
that we expect isn't exactly what we get.

00:00:59.459 --> 00:01:03.096
let's say that we have some sort of G code
and it's telling our print head

00:01:03.096 --> 00:01:06.332
to move to the right and then move down,

00:01:06.399 --> 00:01:10.236
because our 3D printers aren't perfectly
rigid, Basically, what's going to happen

00:01:10.236 --> 00:01:14.574
is that the resulting motion
is going to look something like this.

00:01:14.908 --> 00:01:18.311
and this is the resulting motion
This is called an oscillation,

00:01:18.311 --> 00:01:21.314
and these are a direct result of Newton's
first law.

00:01:21.347 --> 00:01:23.716
A body
that is in motion tends to stay in motion

00:01:23.716 --> 00:01:25.585
while a body at rest tends
to stay at rest.

00:01:25.585 --> 00:01:26.920
when our print head stops.

00:01:26.920 --> 00:01:28.154
It isn't a perfect stop.

00:01:28.154 --> 00:01:30.790
It wants to keep moving.
And the same with our bed.

00:01:30.790 --> 00:01:33.026
Each of them
have some inertia when it accelerates.

00:01:33.026 --> 00:01:35.762
And that causes it
to keep going in the direction it was.

00:01:35.762 --> 00:01:40.834
Since most printers today are belt driven,
these belts kind of act like a spring,

00:01:40.834 --> 00:01:43.136
and when there's a sudden acceleration,

00:01:43.136 --> 00:01:46.739
they tend to stretch
and contract over and over, Not only that,

00:01:46.739 --> 00:01:48.975
but the frames of our printers
vibrate as well.

00:01:48.975 --> 00:01:51.411
these oscillations lead
to print artifacts.

00:01:51.411 --> 00:01:56.082
they're commonly referred to as ghosting
ringing, echoing, banding.

00:01:56.216 --> 00:01:59.853
They're commonly found in places where
the printer undergoes high accelerations.

00:01:59.853 --> 00:02:01.321
and I printed this ringing tower.

00:02:01.321 --> 00:02:04.390
Basically a print that is meant
to exaggerate those oscillations

00:02:04.724 --> 00:02:05.592
so that you could see them.

00:02:06.593 --> 00:02:07.360
also printed out two

00:02:07.360 --> 00:02:10.430
benches to show a more practical print
and where ringing can show up.

00:02:10.430 --> 00:02:12.699
The first one
I printed out at 100 millimeters

00:02:12.699 --> 00:02:15.835
a second with 3000 millimeters
per second squared acceleration.

00:02:16.202 --> 00:02:18.838
The second one was 200 millimeters
per second.

00:02:18.838 --> 00:02:23.543
Don't judge the unfinished benchy
and 6000 millimeters per second squared.

00:02:23.543 --> 00:02:26.079
Acceleration.
So these are kind of our baseline.

00:02:26.079 --> 00:02:28.481
I wanted to see if we could improve

00:02:28.481 --> 00:02:30.683
the print quality
at those two different speeds.

00:02:30.683 --> 00:02:32.652
Now you could turn down the speed
of your printer,

00:02:32.652 --> 00:02:36.289
reduce the acceleration or even design
your parts to have rounded corners.

00:02:36.856 --> 00:02:38.925
But I don't want to do that.

00:02:38.925 --> 00:02:41.561
I want to go fast,
but I don't just want speed.

00:02:41.561 --> 00:02:42.862
I also want print quality.

00:02:42.862 --> 00:02:46.833
So how do we go fast and get good
print quality input shaper.

00:02:46.833 --> 00:02:49.836
That's how
So we have the motion that we want

00:02:50.003 --> 00:02:51.771
and we have the resulting motion.

00:02:51.771 --> 00:02:55.108
So what input shape does is it modifies

00:02:55.108 --> 00:02:58.578
this input signal
so that it cancels out these oscillations.

00:02:58.711 --> 00:03:02.482
So instead of telling the printer, hey,
go right, and then instantly go down,

00:03:02.582 --> 00:03:06.653
it might say, Hey, go to the right
and then actually go to the left

00:03:06.653 --> 00:03:10.123
a little bit right when you get here
and then do your own oscillation.

00:03:10.256 --> 00:03:13.259
Basically, your motion is going to attempt
to cancel that out But

00:03:13.259 --> 00:03:16.362
it's not going to be perfect
because can't perfectly estimate

00:03:16.362 --> 00:03:18.097
what the motion of the printer
is going to look like.

00:03:18.097 --> 00:03:22.669
and we're going to have a resulting signal
that maybe looks something like that

00:03:22.802 --> 00:03:25.104
just a little random motion
here and there.

00:03:25.104 --> 00:03:27.173
And this is much better than this.

00:03:27.173 --> 00:03:28.308
And that's what we're going for.

00:03:28.308 --> 00:03:30.243
So this is our input signal

00:03:30.243 --> 00:03:34.747
and this is our shaped input signal,
which is why it's called input shaper.

00:03:34.948 --> 00:03:35.782
input shaper

00:03:35.782 --> 00:03:40.587
is the act of modifying that input signal
to get resulting motion that we want.

00:03:40.587 --> 00:03:44.157
Now, again, I want to stress that
this is an open loop control technique.

00:03:44.157 --> 00:03:47.594
Basically, that means we are trying
to estimate a behavior

00:03:47.594 --> 00:03:50.730
and account for it with the signals
we're inputting into the printer.

00:03:50.797 --> 00:03:53.900
Maybe you've heard of a closed loop
control technique like having something

00:03:53.900 --> 00:03:57.437
that can measure if a stepper motor
skip steps and then correct for that.

00:03:57.437 --> 00:04:00.106
So that closed loop
technique is kind of a reaction,

00:04:00.106 --> 00:04:03.209
whereas this open loop control
technique is a more proactive method.

00:04:03.209 --> 00:04:06.546
The issue is, since we're estimating
we're not going to be able to perfectly

00:04:06.713 --> 00:04:08.147
cancel out these resonances.

00:04:09.916 --> 00:04:12.318
So we've talked about input shaper
and what it is.

00:04:12.318 --> 00:04:15.755
Now I want to give you an actual visual
to see what's going on.

00:04:16.055 --> 00:04:17.290
So I've got two videos for you

00:04:17.290 --> 00:04:19.726
linked in the description,
So this first video is really short.

00:04:19.726 --> 00:04:22.662
We have a hanging mass on
just a moving platform.

00:04:22.662 --> 00:04:25.565
And basically what you see is
when the platform moves without input,

00:04:25.565 --> 00:04:28.568
shaper turned on that
hanging mass oscillates wildly.

00:04:28.735 --> 00:04:33.072
But you can see right when they turn input
shaper on and that platform moves again,

00:04:33.706 --> 00:04:36.342
the mass doesn't oscillate nearly as much.

00:04:36.342 --> 00:04:39.112
So in the second video, we have a crane.

00:04:39.112 --> 00:04:42.982
There's a gantry moving from left to right
and a mass hanging down

00:04:42.982 --> 00:04:43.983
by a couple of wires.

00:04:43.983 --> 00:04:46.986
And basically what they're trying to do
is make that motion

00:04:47.153 --> 00:04:51.057
either smooth
or to stop the crane at a specific point.

00:04:51.057 --> 00:04:52.592
And what they do is they modify it.

00:04:52.592 --> 00:04:54.227
They don't just go left to right.

00:04:54.227 --> 00:04:58.464
They modify how that gantry moves
so that the resulting motion

00:04:58.464 --> 00:05:01.868
of that crane is what they want
Go check out those videos.

00:05:01.868 --> 00:05:02.669
They're way cool.

00:05:02.669 --> 00:05:04.804
And I think that they provide
a really intuitive

00:05:04.804 --> 00:05:07.407
visual of what's going on
when we're using input shaper.

00:05:07.407 --> 00:05:11.311
Now that we have a good understanding
of what input shaper is, how do we get it?

00:05:13.613 --> 00:05:14.781
Well, I mentioned that we

00:05:14.781 --> 00:05:20.153
need to both measure those resonances
and we need something to control that.

00:05:20.320 --> 00:05:22.055
So how do we do that? Klipper.

00:05:22.055 --> 00:05:23.990
The answer seems to always be Klipper.

00:05:23.990 --> 00:05:26.826
Klipper is what's going to allow us
to implement input shaping.

00:05:26.826 --> 00:05:29.462
But what do we need to actually measure
those resonances?

00:05:29.462 --> 00:05:31.030
There are two main things we need.

00:05:31.030 --> 00:05:32.565
The first is an accelerometer,

00:05:32.565 --> 00:05:35.568
which helps us measure resonances
at different frequencies.

00:05:35.702 --> 00:05:38.905
The second thing we need
is an MCU or a microcontroller.

00:05:38.905 --> 00:05:41.674
I'm going to be using this ADXL 345.

00:05:41.674 --> 00:05:44.444
It's one of the most common accelerometers
I see people use.

00:05:44.444 --> 00:05:46.079
So that's what I'm going to stick with.

00:05:46.079 --> 00:05:49.382
The MCU I recommend
the most is the Raspberry Pi Pico.

00:05:49.449 --> 00:05:51.851
All you have to do
is install some firmware on it

00:05:51.851 --> 00:05:54.020
and you can even get the PICO
with headers.

00:05:54.020 --> 00:05:55.555
Same with the Excel.

00:05:55.555 --> 00:05:57.290
You can get both with headers

00:05:57.290 --> 00:06:00.793
and then you can just use some simple
DuPont connectors to connect between them.

00:06:01.194 --> 00:06:04.197
So no soldering required
if you don't have a soldering iron

00:06:04.397 --> 00:06:05.898
or if you just don't like to solder.

00:06:05.898 --> 00:06:08.901
Now, the reason I recommend the PICO
is because

00:06:08.901 --> 00:06:12.905
if you wire something up wrong here
and you somehow destroy the pico,

00:06:13.473 --> 00:06:16.175
all it is is like an 8 to $10 board.

00:06:16.175 --> 00:06:20.179
You're not destroying your $60 Raspberry
Pi, which is for running your printer.

00:06:20.179 --> 00:06:23.449
Basically, you connect a USB cable
from the PICO to your PI

00:06:23.449 --> 00:06:24.717
that is running Clipper.

00:06:24.717 --> 00:06:27.854
And that kind of acts as an isolation
between the two.

00:06:27.954 --> 00:06:30.256
now you could skip out on the pi pico,

00:06:30.256 --> 00:06:33.292
but you're going to need to wire directly
to your PI's pins

00:06:33.626 --> 00:06:36.629
and I've shorted out of Pi before
and it really doesn't feel good.

00:06:36.629 --> 00:06:39.932
So I try to avoid wiring directly
to the PI's pins.

00:06:39.932 --> 00:06:40.533
If I can.

00:06:40.533 --> 00:06:42.835
in my last video
I installed a new control board

00:06:42.835 --> 00:06:46.272
and that has a pin out
dedicated for an ADXL.

00:06:46.372 --> 00:06:50.810
I also have an ADXL built
in on my printhead on my EBB42 board,

00:06:50.910 --> 00:06:52.979
which is super convenient.

00:06:52.979 --> 00:06:55.248
Now. I'm sorry,
but this next part is pretty dry.

00:06:55.248 --> 00:06:57.517
There's a lot to unpack here
and a lot of information,

00:06:57.517 --> 00:06:59.118
but maybe you'll learn something

00:06:59.118 --> 00:07:02.121
Or maybe you'll see a mistake I made
and be able to point that out to others.

00:07:02.221 --> 00:07:03.923
But don't worry,
we still have that really cool thing

00:07:03.923 --> 00:07:06.225
to learn about
and the final results of the printer.

00:07:06.225 --> 00:07:07.059
So stick around.

00:07:07.059 --> 00:07:07.360
All right.

00:07:07.360 --> 00:07:09.462
So let's
go ahead and talk about the wiring Again,

00:07:09.462 --> 00:07:13.633
I'm going to use the Raspberry Pi, PICO
and the ADXL as the examples,

00:07:13.766 --> 00:07:15.902
kind of the pin outs
and things can be a little confusing

00:07:15.902 --> 00:07:17.503
because they're not named at the same.

00:07:17.503 --> 00:07:20.306
there are a couple simple things
we need to understand first.

00:07:20.306 --> 00:07:22.942
First off, the easy ones,
we always have our ground

00:07:22.942 --> 00:07:26.078
and then our ADXLs are powered by a 3.3
volt line.

00:07:26.078 --> 00:07:29.415
these four pins are for something
we call SPI communication.

00:07:29.415 --> 00:07:31.317
So first we'll do some quick translation.

00:07:31.317 --> 00:07:34.620
So CS is Chip select or chip selection.

00:07:34.687 --> 00:07:38.357
Rx is receive
so that's the Raspberry Pi pico receiving.

00:07:38.424 --> 00:07:41.627
And as you can see, it's receiving
from the serial data out.

00:07:41.828 --> 00:07:45.565
So SDO is serial data out
and then the PI transmits data back

00:07:45.565 --> 00:07:49.769
using the Tx pin so that Tx Pin
goes into here, the SDA pin.

00:07:49.936 --> 00:07:52.805
So this one's a little confusing
because it stands for serial data,

00:07:52.805 --> 00:07:56.642
which is an I2C communication pin
these chips can often do

00:07:56.642 --> 00:08:00.780
as you can see here,
they can do I2C and they can do SPI.

00:08:00.780 --> 00:08:03.516
so we've got a 3.3
volt line or ground line.

00:08:03.516 --> 00:08:04.784
We have our chip select,

00:08:04.784 --> 00:08:09.055
we have our serial data out
pin connected to the SPI receive pin,

00:08:09.255 --> 00:08:13.759
have our serial data in is what
I would call this SDI serial data in

00:08:13.759 --> 00:08:16.829
And then finally we have our clock
So they're a little bit different.

00:08:16.829 --> 00:08:19.031
But if you can keep them straight, it's
not too bad.

00:08:19.031 --> 00:08:23.970
Now, if you have just the pi pico
and you want to use two different ADXLs

00:08:23.970 --> 00:08:27.039
for if you have a bed slinger
and you want to measure the resonance on

00:08:27.039 --> 00:08:30.409
both your print head and the bed, then you're going to need to connect two ADXLs to

00:08:31.477 --> 00:08:32.745
your Raspberry Pi pico.

00:08:32.745 --> 00:08:34.380
And this is definitely possible.

00:08:34.380 --> 00:08:37.650
So you can see that
the SPI has this 0 after it.

00:08:38.084 --> 00:08:42.922
So the PI actually can have two separate
SPI communications going on at once.

00:08:43.089 --> 00:08:46.392
you can see there's two different
SPI zero Tx's,

00:08:46.392 --> 00:08:49.629
but this is the same
like communication line.

00:08:49.629 --> 00:08:51.197
You can see the zeros over here too.

00:08:51.197 --> 00:08:55.334
So there are basically three different
places that you can plug in the SPI0 line.

00:08:55.334 --> 00:08:57.770
So there's one
here, one here and one here.

00:08:57.770 --> 00:08:59.171
And this is to give flexibility.

00:08:59.171 --> 00:09:03.276
So if you want to use like I2C0 here,
you could use SPI0 here.

00:09:03.276 --> 00:09:04.043
At the same time.

00:09:04.043 --> 00:09:08.347
So if you want to connect a secondary ADXL
to your Raspberry Pi pico,

00:09:08.481 --> 00:09:11.551
then you're going to want to connect one
using SPI0

00:09:11.584 --> 00:09:13.986
which you can just copy
what is shown in this diagram.

00:09:13.986 --> 00:09:17.123
But for the other one
you're going to want to use SPI1.

00:09:17.189 --> 00:09:21.294
and you can use the same ground
and 3.3 volt doesn't matter,

00:09:21.294 --> 00:09:23.596
but that is how you're going to wire up
an ADXL.

00:09:23.596 --> 00:09:25.364
It's going to be the same
for Raspberry Pi.

00:09:25.364 --> 00:09:29.569
Just look up a pin out diagram for the
Raspberry Pi and use those two different

00:09:29.669 --> 00:09:31.103
SPI communications.

00:09:31.103 --> 00:09:34.106
But again, I don't recommend this,
so I'm not going to go deeply into it.

00:09:38.511 --> 00:09:39.779
Now that you've wired everything up,

00:09:39.779 --> 00:09:43.115
you need to figure out how to mount
your accelerometers onto the printer.

00:09:43.215 --> 00:09:45.217
There are loads of mounting
options online.

00:09:45.217 --> 00:09:48.988
I think a lot of people have done this,
so you should be able to find a part

00:09:48.988 --> 00:09:49.889
for your printer.

00:09:49.889 --> 00:09:52.892
If you're using the Hero
Me Gen7 suite like I am.

00:09:53.025 --> 00:09:57.530
They actually have plenty of ADXL parts
that are easily mountable to your hot end.

00:09:57.630 --> 00:09:58.864
Now try to find a mount

00:09:58.864 --> 00:10:02.401
that has the accelerometer
as close to the hot end as possible

00:10:02.435 --> 00:10:06.505
because we want to measure
the behavior of the hot end itself.

00:10:06.505 --> 00:10:08.741
Because that's what what's moving
while we're printing.

00:10:08.741 --> 00:10:11.310
That's what
we want to estimate the behavior of.

00:10:11.310 --> 00:10:12.078
For the bed.

00:10:12.078 --> 00:10:15.114
I don't think it matters
as much where you put ADXL.

00:10:15.114 --> 00:10:17.116
Try to keep it in the center of the bed.

00:10:17.116 --> 00:10:18.784
But again, it's a big metal plate.

00:10:18.784 --> 00:10:19.652
It's pretty rigid.

00:10:19.652 --> 00:10:22.555
so I feel like the resonances
aren't going to change that much,

00:10:22.555 --> 00:10:24.757
but maybe I'll investigate
that in a later video.

00:10:24.757 --> 00:10:26.459
So we've got everything wired up.

00:10:26.459 --> 00:10:28.160
We've got everything mounted.

00:10:28.160 --> 00:10:30.596
Now we need to do a little bit
of configuration of Klipper.

00:10:33.799 --> 00:10:36.736
So we're going to go
ahead and go into our Klipper config files

00:10:36.736 --> 00:10:41.207
and we're going to create a new file
and let's call it input shaper.cfg.

00:10:41.273 --> 00:10:45.011
The first section we want is ADXL345 head,

00:10:45.211 --> 00:10:48.748
the other section is ADXL345 Bed.

00:10:48.981 --> 00:10:52.551
for both of these sections
we want to define the four SPI pins that

00:10:52.551 --> 00:10:54.587
we talked about in the wiring section.

00:10:54.587 --> 00:10:55.988
So we have our chip select pin,

00:10:55.988 --> 00:11:00.393
have our serial clock pin,
we have our MOSI or SDA SDI pin

00:11:00.393 --> 00:11:03.596
and we have MISO our SDO pin
just to help keep things sorted.

00:11:03.596 --> 00:11:07.633
Our chip select pin was blue,
our serial clock pin was orange MOSI

00:11:07.667 --> 00:11:10.670
or our SDA/SDI pin was yellow and our miso

00:11:10.670 --> 00:11:14.640
or our SD open was green
So go ahead and double check your wiring.

00:11:14.640 --> 00:11:16.075
Make sure these things look right.

00:11:16.075 --> 00:11:19.979
And now we want to define the pins
as they match our board.

00:11:20.079 --> 00:11:22.348
in my print head I've got the EBB42.

00:11:22.348 --> 00:11:23.315
So I define that.

00:11:23.315 --> 00:11:25.918
That's the controller board
that I want to talk to.

00:11:25.918 --> 00:11:28.320
And then these are
the pins that I want to use.

00:11:28.320 --> 00:11:31.357
Now since the manta is our actual control
board, I don't need to add

00:11:31.357 --> 00:11:34.527
any special identification
for which MCU we're using.

00:11:34.527 --> 00:11:36.028
It'll just default to the manta.

00:11:36.028 --> 00:11:39.899
now if you're using the Raspberry Pi pico,
then you'll need to create a new section

00:11:39.899 --> 00:11:43.102
that includes the Raspberry
Pi as an extra MCU.

00:11:43.102 --> 00:11:48.641
so you'll say MCU and call it PICO Next,
you'll add this serial line,

00:11:48.708 --> 00:11:52.078
and this will tell your Raspberry
Pi how to communicate with the Pico.

00:11:52.078 --> 00:11:54.213
So you'll have to find the address
for that USB.

00:11:54.213 --> 00:11:57.216
Klipper also goes through using the ADXL
with your Raspberry Pi.

00:11:57.216 --> 00:11:58.718
But again,
I'm not going to go through that

00:11:58.718 --> 00:12:00.352
in this video,
but it's here if you need it.

00:12:00.352 --> 00:12:01.721
If you're going the Raspberry Pi out,

00:12:01.721 --> 00:12:03.556
you're going to need to install
some firmware on it.

00:12:03.556 --> 00:12:05.958
So you're going to want to open up
your terminal and sage

00:12:05.958 --> 00:12:07.526
over to your Raspberry Pi.

00:12:07.526 --> 00:12:08.728
Once you're in your Raspberry Pi,

00:12:08.728 --> 00:12:12.131
you can just click here to copy that, go
back to your terminal and paste this in.

00:12:13.165 --> 00:12:13.666
Now you're going

00:12:13.666 --> 00:12:16.702
to want to configure this
so that it looks like this picture.

00:12:16.769 --> 00:12:19.638
going to select the Raspberry
Pi PICO Microcontroller.

00:12:19.638 --> 00:12:22.908
Our communication interface is USB
and we don't need a bootloader,

00:12:22.975 --> 00:12:25.377
so you're going to hit Q
and then Y to save.

00:12:25.377 --> 00:12:26.579
now you're going to want to hold the boot

00:12:26.579 --> 00:12:30.316
select button on the pico while
you connect the USB to the Raspberry Pi.

00:12:30.382 --> 00:12:31.250
Once they're connected,

00:12:31.250 --> 00:12:34.253
you're going to copy this command
and paste it into your terminal.

00:12:35.087 --> 00:12:37.490
Now, since I'm not using a PICO,
I don't have it plugged in.

00:12:37.490 --> 00:12:40.659
as you can see, if it fails,
then you can just use this

00:12:40.826 --> 00:12:44.196
command instead, which is indicated
in the clip documentation.

00:12:44.196 --> 00:12:44.830
Once you do that,

00:12:44.830 --> 00:12:45.831
the PICO should reboot

00:12:45.831 --> 00:12:48.901
and then we're going to copy this command
we're going to paste in the terminal.

00:12:49.101 --> 00:12:52.104
And what it will do is it
will output a serial ID.

00:12:52.204 --> 00:12:53.806
In my case,
I don't have anything plugged in.

00:12:53.806 --> 00:12:57.510
So then, but it will output a serial
ID that looks something like this

00:12:57.510 --> 00:13:00.913
and then we will paste this
into our config file.

00:13:00.913 --> 00:13:02.014
Now I did this in the past,

00:13:02.014 --> 00:13:05.417
so I still have my old serial,
so I would just paste something like this

00:13:05.484 --> 00:13:07.987
and now I Raspberry
Pi can talk to our pico.

00:13:07.987 --> 00:13:09.155
Now if you're using the pico,

00:13:09.155 --> 00:13:11.891
then you're again
going to want to define two sections.

00:13:11.891 --> 00:13:14.393
want one for the head
you want one the bed.

00:13:14.393 --> 00:13:17.163
Now for both of these,
we just need to write two lines.

00:13:17.163 --> 00:13:21.100
The first one is CS PIN, if you remember,
that's the chip select pin the head.

00:13:21.100 --> 00:13:21.801
I would use

00:13:21.801 --> 00:13:26.739
Pico to say that we're using an MCU, then
I would pick the GPIO that the PICO uses.

00:13:26.739 --> 00:13:31.343
If you're using the SPI0 bus,
then the chip selection pin is GPIO 2.

00:13:31.443 --> 00:13:35.347
So say GPIO 2
and then the next line is called SPI bus.

00:13:35.347 --> 00:13:39.585
and this is basically where we define
are we using SPI0 or SPI1

00:13:39.585 --> 00:13:44.056
as a reminder SPI0 is this section
SPI1 is the other communication line.

00:13:44.156 --> 00:13:49.195
So for the head, if we're using the SPI0,
we will call this SPI0 a

00:13:49.261 --> 00:13:55.100
for the bed, same thing, we need a chip
select pin, let's say pico GPIO 13

00:13:55.100 --> 00:13:59.538
then for the SPI bus we're using
the other serial peripheral interface.

00:13:59.538 --> 00:14:03.976
So we will say SPI1b
So if you are like this

00:14:03.976 --> 00:14:08.147
then we will call it SPI0a
If you wire down here it will be SPI1b

00:14:09.014 --> 00:14:12.985
believe the zero and one select
whether you're at zero if you're at one.

00:14:12.985 --> 00:14:15.020
And then I think that A
and B differentiate

00:14:15.020 --> 00:14:16.755
between these separate ones, you can do.

00:14:16.755 --> 00:14:20.893
So believe this chip select GPIO
nine would be SPI one

00:14:20.893 --> 00:14:24.430
A whereas this one is spi
one B similar for SPI zero.

00:14:24.430 --> 00:14:25.865
I believe this would be spy

00:14:27.499 --> 00:14:29.301
and zero C, So depending on

00:14:29.301 --> 00:14:32.338
which one you are up, you're going to need
to make sure you configure it properly.

00:14:32.404 --> 00:14:34.240
Now, I think these are the five options.

00:14:34.240 --> 00:14:37.243
You have three options for SPI0
two options

00:14:37.243 --> 00:14:40.379
for SPI1 I use this one for my bed,
this one for the head.

00:14:40.479 --> 00:14:42.381
these are estimated guesses.

00:14:42.381 --> 00:14:44.083
I believe that these will work
for the other three

00:14:44.083 --> 00:14:46.585
if you choose to use them, but do
so at your own risk.

00:14:46.585 --> 00:14:48.354
Now that we have our configuration
figured out,

00:14:48.354 --> 00:14:51.223
we need to add a section
on resonance tester.

00:14:51.223 --> 00:14:54.460
In this section, we need to define
three things ADXL_chip_X,

00:14:54.994 --> 00:14:57.863
ADXL_chip_y and probe points.

00:14:57.863 --> 00:15:00.733
For these,
I called the X axis head, we will call it

00:15:00.733 --> 00:15:03.836
ADXL345 head the Y axis.

00:15:03.836 --> 00:15:07.840
I called it bed, so ADXL345 bed
and then probe points

00:15:07.840 --> 00:15:11.310
is the location that you want the head
and the bed to move.

00:15:11.310 --> 00:15:14.013
So I would choose points
that are in the middle of your printer.

00:15:14.013 --> 00:15:19.351
So for me that looked something like 183
on the x, 138 on the Y and 20 in the Z.

00:15:19.351 --> 00:15:22.922
so that'll put the print head
about above the middle of the print bed

00:15:23.188 --> 00:15:24.323
about 20mm Up.

00:15:24.323 --> 00:15:26.892
Now that we have
that initial configuration done, let's

00:15:26.892 --> 00:15:31.196
go ahead and go to our printer config file
and basically what we want to do is type

00:15:31.430 --> 00:15:35.134
include input shaper .cfg,
and now when our printer loads up

00:15:35.134 --> 00:15:38.637
it will load in the input shaper
config file that we just put together.

00:15:38.704 --> 00:15:40.005
So click save and restart.

00:15:40.005 --> 00:15:42.341
now we should be ready to
start the resonance testing.

00:15:46.412 --> 00:15:49.148
Now, finally, it's time to start testing
some resonances.

00:15:49.148 --> 00:15:52.217
I would copy these commands into that file
and comment them out

00:15:52.217 --> 00:15:55.154
so that you just have them on hand
for whenever you want to do this again.

00:15:55.154 --> 00:15:58.157
The first command
we do is to query our accelerometer,

00:15:58.390 --> 00:16:02.027
and this basically asks it
to output its current values,

00:16:02.361 --> 00:16:05.331
and that is how we confirm
that we can talk to the accelerometer.

00:16:05.331 --> 00:16:06.365
If the query fails

00:16:06.365 --> 00:16:08.133
and you can't talk to your accelerometer,

00:16:08.133 --> 00:16:10.369
then it might be because
of the communication

00:16:10.369 --> 00:16:12.538
through the wires
and there are some actual suggestions

00:16:12.538 --> 00:16:16.208
for how to twist wire pairs
for your SPI communication.

00:16:16.208 --> 00:16:17.476
Now, I didn't do this.

00:16:17.476 --> 00:16:21.513
I never have and I've never had problems,
but if you have longer wiring than this

00:16:21.513 --> 00:16:22.414
might be an issue.

00:16:22.414 --> 00:16:25.951
Now MISO and MOSI
are some deprecated terms, in my opinion.

00:16:25.951 --> 00:16:29.822
basically they stand for master
in slave out and master slave in.

00:16:29.922 --> 00:16:30.723
There's a trend towards

00:16:30.723 --> 00:16:34.760
calling it controller in peripheral out
and controller out peripheral in

00:16:34.860 --> 00:16:38.831
So SDO is the same as MISO,
which is the same as Rx, and MOSI

00:16:38.864 --> 00:16:43.002
is the same as SDA or the transmit
So you want black and green together.

00:16:43.002 --> 00:16:46.105
You want orange and blue together
and you want yellow and red together.

00:16:46.205 --> 00:16:48.974
I know that's really confusing,
but that's how things are right now.

00:16:48.974 --> 00:16:53.045
There's a lot of different naming schemes
and when you have these SPI and UART

00:16:53.045 --> 00:16:56.682
and I2C communication pins sharing
the same pin,

00:16:57.049 --> 00:17:00.619
things can get a bit confusing,
but just write it out, take your time

00:17:00.686 --> 00:17:02.221
and you shouldn't
have the worst time with it.

00:17:02.221 --> 00:17:06.058
If you're using a Manta like me
than we have this dedicated SPI pin out,

00:17:06.058 --> 00:17:08.394
you're going to want to use these bottom
six pins.

00:17:08.394 --> 00:17:11.430
These are the four pins for serial data
and serial data

00:17:11.430 --> 00:17:14.533
out chip select and serial clock.

00:17:14.533 --> 00:17:16.935
And then we have our three volt
three power and our ground.

00:17:16.935 --> 00:17:20.973
Now again, here's an example
where on the map it shows MISO and MOSI

00:17:21.106 --> 00:17:25.644
But just remember that pin
11 is going to be SDO where PC 12

00:17:25.844 --> 00:17:30.115
mostly is going to be SDA or SDI,
whichever name you're using.

00:17:30.115 --> 00:17:33.118
But I would ignore these colors
and I would stick with the colored wiring

00:17:33.185 --> 00:17:34.319
that's on the Klipper page.

00:17:34.319 --> 00:17:37.623
So we've gotten our red in our black,
which is 3.3 volts and ground.

00:17:37.623 --> 00:17:41.393
Our chip select is blue wire
and our clock, our serial clock is

00:17:41.393 --> 00:17:42.161
orange wire.

00:17:42.161 --> 00:17:46.331
Our SDO is green
and our SDA or SDI is yellow.

00:17:46.398 --> 00:17:47.633
Maybe you're starting to see now

00:17:47.633 --> 00:17:50.069
I recommend the PICO
so that you don't short out a PI

00:17:54.239 --> 00:17:56.275
Now it's time to home the printer
and start

00:17:56.275 --> 00:17:58.544
testing the resonances on the x axis.

00:17:58.544 --> 00:18:00.245
It's going to test accelerations

00:18:00.245 --> 00:18:03.849
at different frequencies
from about one hertz to 133 hertz.

00:18:04.383 --> 00:18:06.385
You really want to stick
around your printer at this time

00:18:06.385 --> 00:18:09.788
because you could get some seriously
violent movements from your printer

00:18:09.822 --> 00:18:12.624
if it hits a resonance
that is especially high.

00:18:12.624 --> 00:18:14.626
Once you've completed
the X Resonance test,

00:18:14.626 --> 00:18:18.130
go ahead and test the Y axis
After you've finished both of these tests.

00:18:18.430 --> 00:18:21.100
Now we need to ss h into our raspberry Pi.

00:18:21.100 --> 00:18:24.136
So go ahead and open a terminal
on your computer and SSH into it.

00:18:24.770 --> 00:18:27.773
You'll then want to copy paste
both of these commands.

00:18:27.940 --> 00:18:31.410
They're basically going to go into
the data that the accelerometer collected

00:18:31.910 --> 00:18:35.881
and they're going to recommend an input,
shape or algorithm for you to use.

00:18:36.048 --> 00:18:40.419
another super cool thing it does is
it plots the resonances versus frequency

00:18:40.419 --> 00:18:43.889
and it charts that and it shows us
all the different input shapers.

00:18:43.889 --> 00:18:45.757
these plots are super helpful to look at.

00:18:45.757 --> 00:18:49.795
So go ahead and use the SCP command
and your terminal or use something

00:18:49.795 --> 00:18:54.399
like WinSCP to move those figures
over to your desktop computer.

00:18:54.399 --> 00:18:55.300
So we can look at them.

00:18:55.300 --> 00:18:58.237
You'll find them in the temporary
directory and the root of your Pi.

00:18:58.237 --> 00:19:01.273
Now, typically this is where you would
input the recommended shaper

00:19:01.273 --> 00:19:04.977
into your config file and move on
with your life But don't do that.

00:19:04.977 --> 00:19:07.012
without going into too much detail
right now.

00:19:07.012 --> 00:19:10.916
Basically, we can look at these plots
and identify issues with our printer.

00:19:14.720 --> 00:19:17.356
Welcome to the super cool part
of this video, in my opinion.

00:19:17.356 --> 00:19:20.259
these are the resonance curves
generated by Klipper.

00:19:20.259 --> 00:19:24.463
So we have one for our X-axis and one
for a y axis or a Printhead in our bed.

00:19:24.530 --> 00:19:26.331
for now, ignore all the dotted lines.

00:19:26.331 --> 00:19:27.499
what you need to understand about

00:19:27.499 --> 00:19:31.737
this is we did measurements from zero
to about 133 hertz.

00:19:31.737 --> 00:19:33.138
You can see where it ends here.

00:19:33.138 --> 00:19:37.809
And the height of these lines is how much
resonance we have at that frequency.

00:19:37.976 --> 00:19:40.179
If you're not too familiar
with the idea of resonance,

00:19:40.179 --> 00:19:41.980
think of when an air conditioner comes on

00:19:41.980 --> 00:19:44.082
and it has that moment or two of rattling.

00:19:44.082 --> 00:19:48.287
the air conditioners creating frequencies
that cause one of its parts to resonate.

00:19:48.287 --> 00:19:49.988
And that's what that vibrating motion is.

00:19:49.988 --> 00:19:53.025
once it gets to a frequency
higher than that, then that disappears.

00:19:53.025 --> 00:19:55.360
So looking at our frequency
response curves,

00:19:55.360 --> 00:19:59.064
we see that we have a large peak here
at about the 40 hertz range,

00:19:59.064 --> 00:20:02.067
And we see
we have another large peak at 100 hertz.

00:20:02.134 --> 00:20:04.336
also have these smaller peaks,
but we will talk about that.

00:20:04.336 --> 00:20:07.039
then on our Y-axis,
we just have one main large peak

00:20:07.039 --> 00:20:09.007
and then these kind of smaller
peaks going up.

00:20:09.007 --> 00:20:12.244
So these graphs are kind of busy,
but we know this is the x axis,

00:20:12.377 --> 00:20:16.815
we're not looking at X, Y or Z
This is basically the X of the ADXL.

00:20:16.848 --> 00:20:19.084
So if we didn't have it rotated
with our X,

00:20:19.084 --> 00:20:20.519
then they're not going to align.

00:20:20.519 --> 00:20:24.356
So you can see that our x axis has this
a zero resonance, but that's not right.

00:20:24.356 --> 00:20:25.691
So what's actually right

00:20:25.691 --> 00:20:28.860
is not going to be the purple line
but the next tallest line.

00:20:28.994 --> 00:20:33.465
So in our case, the Y axis of the ADXL
aligned with the x axis of our product.

00:20:33.465 --> 00:20:34.800
we're going to look at that green curve.

00:20:34.800 --> 00:20:37.836
That's kind of what we're we're focused
on the Y axis over here.

00:20:37.836 --> 00:20:40.939
It's actually kind of odd
because I have my ADXL

00:20:40.939 --> 00:20:44.276
aligned with the printer and it seems that
I have a lot of Z resonance.

00:20:44.376 --> 00:20:47.446
But to be fair, on a print bed,
I would kind of expect that

00:20:47.446 --> 00:20:49.648
you can kind of
think of the print bed as a speaker

00:20:49.648 --> 00:20:50.282
the Z direction

00:20:50.282 --> 00:20:53.352
is the most likely direction
that resonance would affect the movement

00:20:53.352 --> 00:20:55.754
of the bed
and the Y direction is pretty rigid.

00:20:55.754 --> 00:20:58.423
Same in the x direction.
So we don't really see much from there.

00:20:58.423 --> 00:20:59.891
Again, that plate can bend. And both.

00:20:59.891 --> 00:21:02.094
So that's where we're going
to see the most resonance on our bed.

00:21:02.094 --> 00:21:05.897
These dotted lines in the background
are our different input shapers you can

00:21:05.897 --> 00:21:08.900
kind of get an idea of what they're doing
by looking at that cyan line.

00:21:08.900 --> 00:21:12.971
The bottom line here, you can see that
that is the estimated resonance after

00:21:12.971 --> 00:21:14.906
inputting the recommended input shaper.

00:21:14.906 --> 00:21:16.742
So you can see it's a lot lower.

00:21:16.742 --> 00:21:18.443
So first, let's look at this one.

00:21:18.443 --> 00:21:19.578
I won't go through all of them,

00:21:19.578 --> 00:21:23.181
but just to give you an idea of
what's going on, you can see the Z V curve

00:21:23.181 --> 00:21:27.019
kind of dips right
where we have one of the resonance peaks.

00:21:27.085 --> 00:21:29.921
that's kind of like dampening
what's going on here.

00:21:29.921 --> 00:21:33.825
So the higher it is, the less dampening
at that frequency, lower it is, more it's

00:21:33.825 --> 00:21:34.826
correcting for that.

00:21:34.826 --> 00:21:36.528
So we see another dip down here

00:21:36.528 --> 00:21:39.531
and you can see this one doesn't
really align to this huge profile,

00:21:39.564 --> 00:21:41.967
which is kind of what you have to do
when you're deciding

00:21:41.967 --> 00:21:43.935
what kind of input shape
you want to choose.

00:21:43.935 --> 00:21:46.938
Because for example,
this 3hump_ei is the recommended one,

00:21:47.039 --> 00:21:48.373
we can see it right here.

00:21:48.373 --> 00:21:48.907
It aligns

00:21:48.907 --> 00:21:52.744
pretty well with what's going on here,
it dampens all the way through here.

00:21:52.878 --> 00:21:56.782
thing is, it also dampens this large area
where we don't really have anything going

00:21:56.782 --> 00:21:58.083
on, it stays down.

00:21:58.083 --> 00:22:00.786
You can see it dampens all this
and then it starts to come up.

00:22:00.786 --> 00:22:04.456
the consequence of all this
extra dampening is that we get lower

00:22:04.456 --> 00:22:05.757
accelerations.

00:22:05.757 --> 00:22:07.993
these less aggressive
dampening ones like Z V,

00:22:07.993 --> 00:22:12.764
we can have accelerations up to 5200, with
something like 3hmp_ei, we can't do that

00:22:12.764 --> 00:22:15.967
because it's just a much more aggressive
input shaper So you can imagine

00:22:15.967 --> 00:22:19.104
that our y axis
is going to be much easier to input shape

00:22:19.104 --> 00:22:22.174
because we don't have a whole
nother range of peaks to worry about.

00:22:22.174 --> 00:22:24.176
All we need is one to coincide with it.

00:22:24.176 --> 00:22:27.412
two things you need to know to configure
and put shaper are the method,

00:22:27.479 --> 00:22:30.482
these names over here and the frequency
which is these.

00:22:30.549 --> 00:22:34.186
frequency defines the function
and kind of changes how they look.

00:22:34.319 --> 00:22:35.554
Other things we can see

00:22:35.554 --> 00:22:39.358
is this vibration output, smoothing output
and an acceleration.

00:22:39.458 --> 00:22:41.760
Now, I don't exactly know
what this quantity means,

00:22:41.760 --> 00:22:45.263
but I know that the lower the number is,
the less vibrations we will have.

00:22:45.364 --> 00:22:46.631
Smoothing on the other hand,

00:22:46.631 --> 00:22:49.267
the higher the numbers, the smoother
your prints will be.

00:22:49.267 --> 00:22:50.869
sharp corners will be more rounded.

00:22:50.869 --> 00:22:54.139
You'll get smoothing of fine
detail features finally, acceleration.

00:22:54.306 --> 00:22:56.508
basically
saying we recommend an acceleration

00:22:56.508 --> 00:22:58.343
less than or equal to this number.

00:22:58.343 --> 00:23:00.779
So you can see as you get more aggressive
on the input shaper,

00:23:00.779 --> 00:23:02.614
your acceleration tends to go down.

00:23:02.614 --> 00:23:06.284
let's talk about how these plots can help
you diagnose issues with your printer.

00:23:10.322 --> 00:23:11.723
So a good rule of thumb is

00:23:11.723 --> 00:23:16.495
that you want to see these accelerations
decreasing what we say monotonically.

00:23:16.628 --> 00:23:20.632
they just decrease
like 5000, 4000, 3000, 2000, 1000.

00:23:20.766 --> 00:23:23.468
don't like jump up and down
like mine are on both plots.

00:23:23.468 --> 00:23:27.272
can see this one's more well behaved,
but still some issues and these will be

00:23:27.272 --> 00:23:30.642
well behaved when we have a
well behaved resonance peak.

00:23:30.742 --> 00:23:34.413
if we had a perfectly rigid printhead
and our frame was perfectly rigid.

00:23:34.479 --> 00:23:36.915
would only really have one resonance
peak for the Printhead.

00:23:36.915 --> 00:23:38.950
You can see that
we have a lot of other mass going on.

00:23:38.950 --> 00:23:41.586
Same on the y axis.
We don't have a perfect resonance peak.

00:23:41.586 --> 00:23:42.888
So let's go and talk about that.

00:23:42.888 --> 00:23:44.189
I'm not going to get into everything

00:23:44.189 --> 00:23:47.225
you can diagnose from these curves,
but just a few small things to point out

00:23:47.292 --> 00:23:48.660
at least open your eyes to this.

00:23:48.660 --> 00:23:50.429
This cool diagnostic tool.

00:23:50.429 --> 00:23:53.031
So the first is these small peaks.

00:23:53.031 --> 00:23:56.334
They tend to tell you
that you have some sort of loose screw.

00:23:56.435 --> 00:23:58.904
So you can think if you have a screw
that's not perfectly loose,

00:23:58.904 --> 00:24:00.539
then it's not part of that rigid body

00:24:00.539 --> 00:24:03.608
of the printer, it's
going to have some amount of wiggle room.

00:24:03.608 --> 00:24:05.644
So it's going to resonate at certain
frequencies.

00:24:05.644 --> 00:24:06.678
let's go ahead and look at this.

00:24:06.678 --> 00:24:10.615
So basically, this is our original plot
for the x axis this one on the right

00:24:10.715 --> 00:24:14.886
is the plot that resulted
after I tightened screws in my print head.

00:24:14.886 --> 00:24:17.889
So I took my print head on and off
a lot over the last few weeks,

00:24:17.923 --> 00:24:20.926
it turns out that I forgot to tighten
a screw to all the way.

00:24:20.992 --> 00:24:22.961
And you can see that where originally

00:24:22.961 --> 00:24:26.865
we had a peak resonance of about one times
ten to the four over here.

00:24:26.932 --> 00:24:28.733
Now we dropped our maximum down

00:24:28.733 --> 00:24:32.571
to about seven times ten to the three,
so that would correspond to here.

00:24:32.637 --> 00:24:35.373
So we dropped our plot
all the way from up here to down here.

00:24:35.373 --> 00:24:39.644
You can see that tightening the screws
almost eliminated the vibrations

00:24:39.644 --> 00:24:41.913
in that Z direction. can see how dampened
they are.

00:24:41.913 --> 00:24:45.450
it even dropped this large hump down
into these two smaller resonance peaks.

00:24:45.550 --> 00:24:49.020
Also, interestingly enough, it shifted
this whole peak from having its middle

00:24:49.020 --> 00:24:52.691
point at about 100 hertz
its middle point being towards 110 hertz.

00:24:52.824 --> 00:24:55.126
It also affected this peak, but not much.

00:24:55.126 --> 00:24:58.129
It kind of dampened
this left side peak, but still an issue.

00:24:58.196 --> 00:25:00.398
And if we look at the output numbers,
again,

00:25:00.398 --> 00:25:03.034
can see that our accelerations
went up across the board.

00:25:03.034 --> 00:25:05.937
So just by tightening some screws,
we got some higher accelerations

00:25:05.937 --> 00:25:07.439
smoothing values went down.

00:25:07.439 --> 00:25:09.174
still recommends the same input shaper,

00:25:09.174 --> 00:25:11.810
but that shaper again
now has a higher acceleration.

00:25:11.810 --> 00:25:13.144
So again, the more well behaved

00:25:13.144 --> 00:25:16.014
we can get these resonance peaks,
the better our shapers will work.

00:25:16.014 --> 00:25:18.350
I did this on the y axis too,
just checking it out.

00:25:18.350 --> 00:25:20.318
And you can see that not much was affected

00:25:20.318 --> 00:25:23.321
because the head and the bed
don't affect each other that much.

00:25:23.421 --> 00:25:26.424
you can see that sort of resonance
over here did go down

00:25:26.424 --> 00:25:29.160
and this didn't change
our first few input shapers very much.

00:25:29.160 --> 00:25:31.863
That kind of dampened vibrations
a bit, little less smoothing.

00:25:31.863 --> 00:25:35.367
the more aggressive shapers, we did get
an increase in potential accelerations.

00:25:35.467 --> 00:25:37.869
next thing I did was
I went throughout the entire printer

00:25:37.869 --> 00:25:39.771
and I tightened
all the screws I could find.

00:25:39.771 --> 00:25:42.541
So this is the plot
after I tightened up the printhead.

00:25:42.541 --> 00:25:44.943
And you can again see the effect
that this had on the printer.

00:25:44.943 --> 00:25:46.878
I didn't find anything crazily loose,

00:25:46.878 --> 00:25:49.648
some of them could just be a little bit
tighter and check out what did it.

00:25:49.648 --> 00:25:50.916
So we had this huge peak.

00:25:50.916 --> 00:25:53.184
almost disappeared
that the peak on the left.

00:25:53.184 --> 00:25:55.320
And now we just have a more well defined

00:25:55.320 --> 00:25:57.255
peak right there,
which is good for the input shaper.

00:25:57.255 --> 00:26:01.192
Now, you might notice that our maximum
kind of resonance value did increase,

00:26:01.293 --> 00:26:02.994
that's actually not a bad thing.

00:26:02.994 --> 00:26:06.698
As long as our resonance is well defined,
then our shapers can deal with it

00:26:06.798 --> 00:26:07.399
very well.

00:26:07.399 --> 00:26:11.269
You can see we slightly reduced
the resonance of this peak.

00:26:11.570 --> 00:26:14.372
It's a little over
six here, a little under six here,

00:26:14.372 --> 00:26:16.308
we slightly reduce that green peak of it
Yeah.

00:26:16.308 --> 00:26:18.410
So just as a before
and after, after I tightened

00:26:18.410 --> 00:26:21.446
all these screws in my head
and the rest of my pressure, can see that

00:26:21.446 --> 00:26:24.983
we reduced our total resonance
by quite a bit, especially this peak.

00:26:25.183 --> 00:26:27.819
definitely made our peaks
more well-defined, whereas this had

00:26:27.819 --> 00:26:30.689
pretty much two main peaks
and this one had two larger peaks.

00:26:30.689 --> 00:26:31.723
we have one well-defined

00:26:31.723 --> 00:26:35.060
peak with some other noise around here
and our well-defined peak here.

00:26:35.060 --> 00:26:35.660
another cool thing

00:26:35.660 --> 00:26:38.930
I wanted to show is what happened
after I took my printer off of the shelf.

00:26:38.930 --> 00:26:42.300
It lives on I put it on the floor
so that had a sturdier surface.

00:26:42.300 --> 00:26:43.401
And basically what this does

00:26:43.401 --> 00:26:47.172
is tell me if my shelving or platform
that the printer on is a problem.

00:26:47.272 --> 00:26:50.208
So in looking at the x axis,
only real thing I can see

00:26:50.208 --> 00:26:53.078
is that maybe this jagged
but kind of disappears.

00:26:53.078 --> 00:26:55.847
I feel like it's just too close
to even say

00:26:55.847 --> 00:26:58.416
that that was because of the printer
or if it was a measurement thing.

00:26:58.416 --> 00:27:00.518
can see
we had a slightly higher resonance.

00:27:00.518 --> 00:27:01.653
again, that's not a bad thing.

00:27:01.653 --> 00:27:04.155
You can actually see
that our potential accelerations

00:27:04.155 --> 00:27:05.690
went up for a few of the shapers

00:27:05.690 --> 00:27:08.927
and some of the vibrations changed
along with the smoothing.

00:27:09.027 --> 00:27:12.831
On the Y axis side of things, it looks
like it actually made this resonance peak

00:27:12.897 --> 00:27:16.501
way higher, and it actually
looks like we lost some acceleration

00:27:16.501 --> 00:27:19.738
potential and got more vibration
when we moved it to the floor.

00:27:19.804 --> 00:27:23.074
And I think this is because
when we have the printer on the shelves,

00:27:23.074 --> 00:27:26.378
it kind of lets
the shelves move to compensate for

00:27:26.444 --> 00:27:28.113
whatever movement is going on.

00:27:28.113 --> 00:27:32.384
it kind of helps cancel out some of those
vibrations by not being completely rigid.

00:27:32.384 --> 00:27:35.887
So the final plot I want to show you
is the difference from before.

00:27:35.920 --> 00:27:39.357
Like the first resonance test I did
and the final test I did

00:27:39.357 --> 00:27:41.826
when my printer was back on the shelf
and its resting place.

00:27:41.826 --> 00:27:42.994
again, you can see that before

00:27:42.994 --> 00:27:47.065
and after and how we improved our maximum
accelerations and reduced smoothing.

00:27:47.132 --> 00:27:48.733
Same kind of sentiment for the Y.

00:27:48.733 --> 00:27:53.071
We got higher accelerations
even though our peak looks arguably worse.

00:27:53.071 --> 00:27:55.273
But overall, I'd say this is a success.

00:27:55.273 --> 00:27:59.010
It definitely let me know that my printer
has some issues with how rigid it is.

00:27:59.077 --> 00:28:00.612
definitely think with printers like mine

00:28:00.612 --> 00:28:04.449
that have two column z-axis
definitely have a problem with resonance.

00:28:04.649 --> 00:28:05.583
There are these mods

00:28:05.583 --> 00:28:08.586
that you can do to your printer
that add a brace to the z-axis,

00:28:08.720 --> 00:28:12.724
which definitely helps with travel
in the Y direction for the Z-Axis is

00:28:13.425 --> 00:28:16.428
Well, new day, new shirt, new me.

00:28:16.528 --> 00:28:19.664
So I went ahead and compared
all of the prints that I did

00:28:19.664 --> 00:28:20.965
with the different input shapers.

00:28:20.965 --> 00:28:22.434
There were four cases.

00:28:22.434 --> 00:28:24.969
There was no input shaper.

00:28:24.969 --> 00:28:27.972
The z V input shaper,
which allows for higher acceleration.

00:28:28.406 --> 00:28:31.209
The recommended input shaper,
which for me was three

00:28:31.209 --> 00:28:34.713
hump for the x axis and ei for the Y axis.

00:28:35.213 --> 00:28:38.216
And then finally,
I kind of chose a mix of them

00:28:38.383 --> 00:28:40.285
and we'll compare all four of those.

00:28:40.285 --> 00:28:42.487
And then I have fast
and slow speeds for each.

00:28:42.487 --> 00:28:45.457
Again, that's 100 millimeters
a second for one of them.

00:28:45.457 --> 00:28:47.726
And the first one is 200 millimeters
a second.

00:28:47.726 --> 00:28:50.729
Also have ringing towers
for each of those input shavers.

00:29:01.039 --> 00:29:01.473
Now, in

00:29:01.473 --> 00:29:05.143
my eyes, the recommended input shaper is
what won for me.

00:29:05.276 --> 00:29:07.345
It even had better
print quality at the slow speeds

00:29:07.345 --> 00:29:10.148
where those tiny oscillations
seemed to be accentuated.

00:29:10.148 --> 00:29:14.018
I do think having the ZV and the ei
kind of combined was better than having

00:29:14.018 --> 00:29:18.189
just ZV alone, but I still didn't
like the print quality I was getting.

00:29:18.189 --> 00:29:22.360
One big thing I noticed as well
is that now the printer sounds quieter

00:29:22.427 --> 00:29:25.430
because our resonances aren't
really allowed to resonate.

00:29:25.697 --> 00:29:29.033
We have a much quieter printer For me,
I like print quality the most.

00:29:29.134 --> 00:29:32.170
I make a lot of different parts
for projects and I need them to be

00:29:32.203 --> 00:29:33.671
what I think they will be.

00:29:33.671 --> 00:29:35.573
Second for me is the print speed.

00:29:35.573 --> 00:29:36.775
I like to prototype a lot

00:29:36.775 --> 00:29:40.178
and that involves a lot of iterations,
so I like it to be fast.

00:29:40.712 --> 00:29:41.312
And then third,

00:29:41.312 --> 00:29:44.616
I do like the noise reduction,
and the less noise there is, the better.

00:29:45.049 --> 00:29:45.917
So what do you think?

00:29:45.917 --> 00:29:47.986
Did I make the right call in
the input shaper?

00:29:47.986 --> 00:29:48.753
Did I get anything

00:29:48.753 --> 00:29:51.256
majorly wrong in this video
or is there something else

00:29:51.256 --> 00:29:52.690
that you think
I could have done better on?

00:29:52.690 --> 00:29:54.425
I really love
getting feedback in the comments.

00:29:54.425 --> 00:29:58.263
It helps me improve how I approach
these videos and the topics I present.

00:29:58.429 --> 00:30:00.665
I'm still really new to this,
but I'm having a blast

00:30:00.665 --> 00:30:03.234
and I hope you're enjoying the work
I'm putting out as well.

00:30:03.234 --> 00:30:04.969
If you want to the support the channel,
you know what to do.

00:30:04.969 --> 00:30:06.037
I won't belabor the point.

00:30:06.037 --> 00:30:08.773
if there's anything you want me
to dive deeper into or suggestions

00:30:08.773 --> 00:30:11.776
you have for future videos,
then let me know down in the comments.

00:30:11.776 --> 00:30:13.178
Anyway, I hope you've enjoyed.

00:30:13.178 --> 00:30:15.246
I've been Spencer
and this has been my desk.

00:30:15.246 --> 00:30:17.148
And I will see you next time. Bye.

