Тёмный

Arduino Game Controller FULL TUTORIAL 

Saber C++
Подписаться 3,6 тыс.
Просмотров 3,3 тыс.
50% 1

Get the PCB from PCBWay: www.pcbway.com...
(Follow this link and click Add to Cart to buy your own custom PCB!)
OR buy a kit from my Etsy shop with ALL OF THE COMPONENTS: sabercpp.etsy....
Here's the program: github.com/D4Q...
Put this in the 'Additional Boards Manager URLs' field: raw.githubuser...
Install this library: github.com/dma...
(Some of the following links are Affiliate Links, meaning that I may earn a small commission at no extra cost to you. Thanks!)
MATERIALS:
PCB Design Order: www.pcbway.com...
Arduino Pro Micro Board: amzn.to/3HwkYSo
Joysticks: amzn.to/429qfsu
Buttons: amzn.to/48FvuCG
Angle Buttons: amzn.to/3HANLFa
Type C Cable (for programming board): amzn.to/4bbqAPm
LED (optional): amzn.to/4bafmuM
Resistor (for LED): amzn.to/4b4YPbf
Join us on Discord: / discord
If you’d like to receive exclusive benefits and help me out, check out my Patreon: patreon.com/SaberCPP
MY TOOLS:
Soldering Iron Kit: amzn.to/3K1CnnJ
Helping Hands: amzn.to/3MJRgvZ
Multimeter: shorturl.at/yVW29
MY SETUP:
Computer: amzn.to/49AhmLd (16GB RAM, RTX 3050)
Monitor: amzn.to/40OafKF
Mouse: amzn.to/42AdHdO
Keyboard: amzn.to/3G5tc3y (Black Keyboard, Brown Switches)
Microphone: amzn.to/3SXyWD6
Mic Arm: amzn.to/3I0fm33
Camera Kit: amzn.to/3K1N34Z

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 42   
@saifialeem8255
@saifialeem8255 2 месяца назад
Excellent video, Really loved how detailed and precise you were. Would be awesome if we could have 2 more analogue pins for The triggers but i think we might need another microcontroller for that.
@SaberCPP
@SaberCPP 2 месяца назад
Yeah I ran out of pins for the joystick buttons and only had 4 analog pins for the joysticks. Hopefully I can make a v2 at some point with a more expansive controller!
@saifialeem8255
@saifialeem8255 2 месяца назад
@@SaberCPP That would be awesome, you should use a button Matrix to use more buttons in limited space
@SaberCPP
@SaberCPP 2 месяца назад
@@saifialeem8255 Yeah that would definitely work if I could get the tracks in all the right places! We still need a controller with 2 more analog pins though...
@saifialeem8255
@saifialeem8255 2 месяца назад
@@SaberCPP Arduino Pro Micro has 9 Analog pins A0, A1, A2, A3, A6, A7, A8, A9 and A10, I think we can use 6 of them
@SaberCPP
@SaberCPP 2 месяца назад
Oh yeah I don’t know what I was thinking 🤦‍♂️ So I could actually use that for v2 with a matrix!!!
@jaythebay8425
@jaythebay8425 3 месяца назад
can you connect this to a Xbox Series? Will it register it as a actual Series controller or just a pc controller?
@SaberCPP
@SaberCPP 3 месяца назад
Unfortunately not, as Microsoft uses a special security chip to prove which controllers are theirs and no one knows how to duplicate it.
@jqson24
@jqson24 Месяц назад
how's the input lag test? assuming its wired connection. Interesting video. I'm also planning on using my spare arduino Uno R3 as Arcade Stick. I got schematic diagram mapped out but I still lack tactile buttons.
@SaberCPP
@SaberCPP Месяц назад
I couldn't get the input lag test to work but I did do a polling test and it polls at 1000 hertz, so theoretically it will respond quite quickly (with it being wired, this is not surprising)
@TheUnlimitedGuy
@TheUnlimitedGuy 24 дня назад
nice job! but idk why when i upload the code the pc don't recognize the arduino pro micro but when i upload other codes it read it
@SaberCPP
@SaberCPP 23 дня назад
Thanks! That's weird though. So my code doesn't work but you found some different code that works? Mind if I ask what that code is? Just in case someone else has a similar issue (or if there's something wrong with my code that I can fix, I've only tested it on my system of course).
@FEU1235
@FEU1235 7 месяцев назад
Where do you get the board xinput version of the micro
@SaberCPP
@SaberCPP 7 месяцев назад
You just get a regular micro and then the library/board info stuff takes care of the rest! (Shameless plug: I do have a kit available if you want all the parts)
@FEU1235
@FEU1235 7 месяцев назад
@@SaberCPP Ok, thanks, I have a normal one already so that works out great! I am going to build my own spinoff of this into my current project which is a handheld libre computer retro console. I have been looking around for a solution for the controls for a while and this is perfect! I will probably make a vid on my console once it is done if anyone else is interested.
@SaberCPP
@SaberCPP 7 месяцев назад
@@FEU1235 Sounds awesome! Be sure to let me know if you need any help and once it's finished!
@YouTubeExpertZesan
@YouTubeExpertZesan 6 месяцев назад
waiting for this video
@SaberCPP
@SaberCPP 6 месяцев назад
Thanks! Glad I could help!
@anothertemplarchuunibyoude3750
@anothertemplarchuunibyoude3750 Месяц назад
bro is it possible to do this with an "esp32-wroom-32d" i tried doing it the bluetooth way but it has unreliable connection and keeps disconnecting but it would be a hassle to order an arduino board because it would take days or weeks to arrive please reply, im knee deep in this project i already did the wiring, and code is the only thing stopping me from finishing it
@SaberCPP
@SaberCPP Месяц назад
Ah that’s unfortunate! The ESP32 doesn’t have a USB chip that can talk to a computer as a human interface device (most Arduino boards don’t either, that’s why you have to get the Pro Micro or maybe the Leonardo or a couple of others). If i were in your place I would try to troubleshoot the Bluetooth as I’ve heard ESP32s are pretty good with Bluetooth, but I can’t help much there as I don’t have any experience.
@anothertemplarchuunibyoude3750
@anothertemplarchuunibyoude3750 Месяц назад
@@SaberCPP thanks for the info mate
@TheUnlimitedGuy
@TheUnlimitedGuy 22 дня назад
@@anothertemplarchuunibyoude3750 if you want my advice quit using esp32 even the bluetooth part because it not good at all i tried to make it work but i didn't end up with any thing i used BleGamepad library but it's not that good i ended up using arduino pro micro and it worked well
@rezabagri896
@rezabagri896 2 месяца назад
i got an Arduino Pro Micro and uploaded the code to it, now the controller is working but it doesn't recognise the mirco as an Arduino Pro Micro, is recognising it as a game controller. i tried to change the code or upload an empty code(for using micro in other ways) but since my computer recognising it as a game controller, i can't use Arduino IDE. is this code locking the micro? any way to change the uploaded code?
@SaberCPP
@SaberCPP 2 месяца назад
Yeah it does make it act like a game controller so you have to plug in the board, double tap the reset button, and then upload the code (this is time sensitive, might take a couple of tries)
@Expyrial
@Expyrial 20 дней назад
So if I built one of these controllers, could I sell it? Or would I need to build my own code? (I want to do a mint tin size controller)
@SaberCPP
@SaberCPP 20 дней назад
I’m not sure what the XInput library has for a license, you’d have to check. I did barely anything beyond the demo, so you’re welcome to use what I have if their license permits it
@Expyrial
@Expyrial 20 дней назад
@@SaberCPP Thx I will
@bettergamingchairwins2442
@bettergamingchairwins2442 2 месяца назад
Is there some way you can see the latency of this arduino controller? I am curious about it
@SaberCPP
@SaberCPP 2 месяца назад
Yeah there are testers I think let me look into it
@SaberCPP
@SaberCPP 2 месяца назад
I couldn't get any of the online testers to work and check the latency of the controller, but it does poll 1000 times/second, which is pretty standard and as it's a wired connection I would assume it's the same as most other wired controllers.
@bettergamingchairwins2442
@bettergamingchairwins2442 2 месяца назад
@@SaberCPP I thought you might say that, I just have none of the tools or knowledge to do it myself so figured I would ask. Thanks for the info, I appreciate it
@agustinvolador_robot4638
@agustinvolador_robot4638 3 месяца назад
Hi, sorry for being ignorant in arduino. Is posible to have extra buttons, on the bottom of the controller like a scuf controller?
@SaberCPP
@SaberCPP 3 месяца назад
Of course. If you’re making by your own PCB like I did you can add buttons wherever you want! (Only limit is the Arduino board has to have enough pins for it)
@agustinvolador_robot4638
@agustinvolador_robot4638 3 месяца назад
@@SaberCPP thank you man, really apreciatte you respond my coment. Sorry for the inglish, can a i use an arduino mega o orginal. To make the joystick
@SaberCPP
@SaberCPP 3 месяца назад
Of course! Unfortunately, I don't think the mega will work because you need a special USB chip that can talk to the computer that average Arduinos don't have. If you want a bigger board, I believe the Arduino Leonardo has a couple more pins and has the 32u4 chip (any board that has the 32u4 usb chip should work).
@saifialeem8255
@saifialeem8255 2 месяца назад
​@@agustinvolador_robot4638You can use A button Matrix to use more buttons if needed
@FPChris
@FPChris 4 месяца назад
Does it register as an actual windows game controller?
@SaberCPP
@SaberCPP 4 месяца назад
Yeah if you plug it into your PC it'll show up just like a game controller!
@amaralitytvandres1789
@amaralitytvandres1789 3 месяца назад
Hello, is it compatible with Android?
@SaberCPP
@SaberCPP 3 месяца назад
Hmm I haven’t tried that, but it is wired, do Xbox or similar controllers work with Android via their data port?
Далее
The Weirdest controller I've ever Used.
20:35
Просмотров 34 тыс.
Они захватят этот мир🗿
00:48
Просмотров 312 тыс.
We built the Biggest iPhone in the World.
23:30
Просмотров 3,1 млн
Ultimate FPS Controller Design & Build
29:06
Просмотров 2,1 млн
Arduino Game Controller that runs GTA 5
7:37
Просмотров 52 тыс.
My First CNCed part --EVER--
31:21
Просмотров 17 тыс.
Forget WiFi! This Wireless Method is WAY Better?
12:14
Просмотров 582 тыс.
Controller Input Delay: Explained, Measured, Debunked
14:04
I Built a CoPilot+ AI PC (without Windows)
12:50
Просмотров 358 тыс.
DIY BLE Gamepad using ESP32 | PCBway
10:01
Просмотров 38 тыс.
DIY Arduino Game System and Controller! The MOD_Boy
12:15
Arduino Joystick 2.0  Library  - Beginners Guide
25:22
Просмотров 84 тыс.