Easy Diy Controller With Arduino Uno or Micro
by Saral Tayal in Circuits > Arduino
7027 Views, 12 Favorites, 0 Comments
Easy Diy Controller With Arduino Uno or Micro
Enroll in my 'Electronics in a nutshell' course here: https://www.udemy.com/electronics-in-a-nutshell/?...
Also check out my youtube channel here for more projects and electronics tutorials: https://www.youtube.com/channel/UCelOORs7UioZ4TZF...
As any gamer would know, controllers are expensive, around 60$.
I had a arduino micro so I decided to make a xbox/playstation style dual analog controller.
The code can be found HERE
Parts
Arduino micro or uno
2 x analog thumbsticks
15 x buttons
proto board and soldering equipment
Make It
Code- download the code from here
Unojoy is for those who have Arduino uno, and leojoy will work with an arduino micro, or an arduino Leornado
In the code, you have to remove a few comment line at the bottom. These lines control the joystick motion. Defaultly it will say 'Right..... = 128' or so. Change the '128' value to the commented part of 'AnalogRead.....' Look at the pictures for more help.
The top part of the code will show button pinouts. These will be normally open. To activate them, the button will connect that pin to ground.
Don't forget to upload this code
Wire it up on to a proto board only after you try it on a breadboard
Case
Get as creative as you want with this one. make one from wood, mould it, what ever.
Conclusion
This is a build that I did for fun. Before I could make a case for it, I was gifted a xbox one controller for pc. Although I left it because of getting a controller doesn't mean it has no potential.
You could easily modifyy the code to suit your needs, and make a custom controller for custom applications outside of gaming for example - simulation.
It was fun to at least experiment with the idea, and I got to learn more about Arduino and their capabilities.
Enroll in my 'Electronics in a nutshell' course here: https://www.udemy.com/electronics-in-a-nutshell/?...
Also check out my youtube channel here for more projects and electronics tutorials: https://www.youtube.com/channel/UCelOORs7UioZ4TZF...