My, my...
(A case fan)!
I've always wanted one of these.
Oh...
(What's this)?
(DVD Drive)!
I thought I had a couple of these somewhere...
Oh!
Good.
I think it's time for a uh... request video number three.
Youtube random comment picker.
Uh.. nope.
Nope.
Hello Mr.Evan make a steering wheel Arduino joystick and steering wheel is 3D printed
thank you for making us happy.
Okay.
Arduino.
Steering wheel.
3D printed.
What else you got?
Next.
Next.
You ugly chink.
Nope, nope.
Ain't nothing I can do about that.
Hey Evan, can you make a controller out of a fidget cube?
Controller.
Fidgetty.
That was a terrible idea.
Uhh.. nope.
Nope.
Nope.
Please wire a PS2 controller to USB.
PS2.
USB.
This... this was a terrible idea.
Evan, just go back to bed.
Forget all this happened.
It's not like anybody's gonna know that you tried to make them happy and you failed again.
Go back to bed.
Go back to bed.
Go back to bed.
Go back to...
Design.
Uhh...
USB means we gotta shove an Arduino Pro Micro inside it.
I have no idea why!
But it's USB supported so...
Steering wheel?!
Ayy whatever you want man!
There you go.
You know what?
How about two steering wheels?
3D printed?
Are you kid...
Ayyy 3D printed steering wheels!
DAAAH!
Controller... it's a little late for that.
Fidget... man you are just full of...
Well alrighty then!
We'll just add some counterweights here, here, here, here, here, here.
And that'll make the wheel spin like a mother...
I want this controller to be so fidgetty that it'll make any JRPG play like QWOP.
Gentlemen.
And ladies.
There's no ladies here.
I present you... the Fidget USB Controller of Kickassery!
I just like to let you know that this is practically a vintage by now.
A few more years, I can pay rent with this.
I can buy food with this thing!
Aw... the food I can buy with this thing...
I think these holes are too big.
There's nothing I can do about...
Spinny wheels go here and here.
Arduino USB is gonna come out from the top.
These buttons we're gonna keep.
These buttons we're going to try to keep.
Now, for the steering wheel, we need something that spins really fast.
I'm thinking something like a uh... frictionless rotary encoder, if that is a thing?
Twenty bucks?!
Are you kidding me?!
EVAN ANGRY!
EVAN SMASH!
AAAHHH!
WAIT!
These are not rotary encoders, they're just motors.
But if you spin them in one direction, you get voltage across the terminals.
And if you spin it in the other direction, you'll get the opposite voltage.
How fast you spin it is how big the voltage is going to be.
In other words...
Way too much work.
DAAAHHH!
See, the problem is, the motor's going to generate positive and negative voltages.
And the Arduino is going to work off of 0 to +5V.
We could just get an opamp.
Don't make me go get an opamp.
You're gonna make me get an opamp.
Let's go get an opamp.
This is a quad opamp.
Four opamps in one.
Which is the same one as the one we used in this video.
Wapow!
It's not clickable.
You have to use the card thing now.
Take our first opamp.
Give that a voltage divider half way between 5 and ground.
This is now 2.5.
Add a capacitor here for good luck.
Now the motor, is going to sit on this virtual ground and is buffered into another opamp
which then gets output to the Arduino.
So essentially, what we've done here, is create a DC offset halfway between 5 and 0 where
the motor now sits and swings between 0 and 5.
So now the Arduino can read both the positive and the negative outputs of the motor.
Just gonna let you pause the frame here, if you have to.
There.
Are you done?
Time's up!
Hmm... this could work.
Not too bad.
Let's map it to a joystick axis.
Ah... something doesn't feel right.
Okay I see the problem.
So when you spin it really really fast, it goes all the way up to the max value really
quickly.
But when you spin it really slowly, it hardly registers anything.
We need a function, that transforms the current motor output into something that's really
sensitive in the beginning but then it slows down as it reaches the max value.
Log x.
Shift that to the left.
Uhh... other left.
Let's make it curvier.
MORE.
Perfect.
Add that into the code.
Aww... so much better.
Okay, while you weren't watching, I drilled two more holes in the back of the controller,
here and here.
These holes are going to be replaced by these motor mounts which are going to fit in like
this.
And the motor sits on top like that.
There we go.
Now we just gotta take all this and put it into this.
This into this.
Oh, and also, I want to keep the original board in here because it has the start and
select buttons...
Oh hey there!
Why yes, I'd love to take a bullet in my head right now.
Now we go design the wheel.
Why am I even doing this?
Get a job.
Quit youtube.
Be a salesman.
Or a panda.
Or a panda hugger.
Aw, I'd kill to be a panda hugger right now.
Uh, hi.
My name is Earl, and I'm a 3D printer.
Let's get a little closer.
Bwa!
Huu... are you done?
Yoink!
Weee!
Where are my steel nuts?
I said, where are my nuts of steel?!
Oh... ah, here we go.
See, that wasn't so bad, was it?
Should've really bought that bullet.
Here we go, here we go.
Nope.
Nope.
AW!
See this controller is all about momentum.
ARRRR.
Nope.
Nonono get that.
Stay away.
Stay away.
Definitely prolongs the life of a game.
The games that I used to be good at, just isn't a thing anymore.
Let's make some CRAZY MONEY.
Pick up that lady...
BRAKE.
Come on.
No time for you!
JUMP.
How did I not make it?!
Không có nhận xét nào:
Đăng nhận xét