Тёмный

DIY ARDUINO MOUSE JOYSTICK 

amstudio
Подписаться 221 тыс.
Просмотров 130 тыс.
50% 1

How to set up Arduino Usb Joystick mouse control emulator. This tutorial can be adapted to a DIY wheel or simulators requiring mouse for controls. An easy project that lets you control the mouse cursor.
PARTS
-Joystick ebay.us/QtMixN
-Arduino Leonardo bit.ly/2qZBv9P
-Arduino Pro Micro bit.ly/3QfCKM1
-Wires bit.ly/3zq8maR
-Sketch bit.ly/2KiXd1b
This site contains affiliate links for which I may be compensated
Thank you for watching, all questions are welcome.
Want a tutorial or project built, leave suggestions in the comments.
Share the video with a friend who would like this!
AMSTUDIO channel for other DIY projects.
/ @amstudioprojects
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Хобби

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

 

1 май 2018

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 159   
@DarknessTracks
@DarknessTracks 6 лет назад
Thank you for taking the time to make these magnificent videos. Quality content ! Cheers from south of France :)
@Emzdrav
@Emzdrav 6 лет назад
So simple and affordable yet so handy. You rock man. o7
@vandebharatmatram805
@vandebharatmatram805 5 лет назад
I tried this project. It works. I was a beginner but this not difficult. The horizontal motion was happening in the opposite direction. I corrected that programming in my file. Thanks for good instructions, mate. Thanks to Arduino platform also.
@NilsWeber143
@NilsWeber143 5 лет назад
Can you tell me what you've changed, please??? I have the same Problem and I'm seemingly to stupid to find the error.😅
@thereasonwelie1668
@thereasonwelie1668 6 лет назад
Your videos are amazing.
@KimNabi_cat
@KimNabi_cat 6 лет назад
There's gotta be an episode where you put all these projects together and show off! That'd be like Thanos' infinity gauntlet!
@reiisbrunoo
@reiisbrunoo 6 лет назад
very good! I really like your job, I'm always learning something new on your channel. keep it up! 🇧🇷
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks Bruno!
@simkarte123
@simkarte123 6 лет назад
It's like you read my mind! I had this exact idea a week or so ago, although I wanted to use a joystick from an old RC helicopter I had lying around!
@droneys1348
@droneys1348 3 года назад
Well, that would probably work once you find what plug is what
@game-basebuilderandtricks8959
@game-basebuilderandtricks8959 3 года назад
JUST Love it, Thank's a lot
@arduinorobotics9512
@arduinorobotics9512 4 года назад
I really liked your video, you needed 10m subscribers
@umutdegismen
@umutdegismen 6 лет назад
I love your jobs buddy, keep goin ✌
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks!
@SusanAmberBruce
@SusanAmberBruce 3 года назад
Yeah, I tried at home and success it works, now to make a game controller for Minecraft, thanks for the video.
@ekotete
@ekotete 3 года назад
nice sharing. thanks. i'm interesting to make such this thing.
@flymaster_tim
@flymaster_tim Год назад
thank you very much!!!
@Kimera_Alternate_Realities
@Kimera_Alternate_Realities Год назад
That's it? I need to code or solder? I needed this! Thanks for sharing.
@jackliddy4540
@jackliddy4540 6 лет назад
Could you do a video with a bigger joystick one for a flight sim or farming simulator. Love this video
@TheJorensanbar
@TheJorensanbar 6 лет назад
@amstudio Nice video, this project can be used with Arduino Nano? Or Pro Micro is required?
@mineroyales8118
@mineroyales8118 2 года назад
thanks
@jamalghandour8650
@jamalghandour8650 6 лет назад
was looking to something similar to this as I have a BBI32 laying around and would love to create a wheel button box with a similar joystick but added to it a rotation feature + 8 ways + push-button feature. Which model should I opt for and is there any DIY project link I can follow?
@DennisKarlsson
@DennisKarlsson 6 лет назад
Would it be possible to combine this project with the 5 axis project. This joystick and three analogue potentiometers!? I guess two will be used by the joystick?
@robusgt8640
@robusgt8640 5 лет назад
Can you make a tutorial to make that thingy into a movement control?
@blyaticon8190
@blyaticon8190 5 лет назад
Do you think it would be possible to run that simple stuff in a firmware like qmk for simultaneous mouse control?
@ConCorDesign
@ConCorDesign Год назад
Note for people that are using this technique with Joy Con Joysticks - set "const int sensitivity" to around 150. 200 seems to disable the value for negative values.
@drumstick-marblebag
@drumstick-marblebag 5 лет назад
This joystick mouse kit works on android smartphones like Redmi Note 5 and tablets like Asus zenpad. I did check it. In fact it works on these linux based devices much easier than windows based devices like desktop computer. It was fun to learn. I feel more confident and capable now, after having this understanding and skill.
@risingmermo
@risingmermo 2 года назад
How do i connect it to a phone?
@lokmanfreeman
@lokmanfreeman 6 лет назад
Genius =D
@chainbreaker8909
@chainbreaker8909 3 года назад
can this work for moving characters, obviously the program will be different but can it work?
@MethmalDhananjaya
@MethmalDhananjaya 4 года назад
Does this work for use as mouse for Smartphone via OTG?
@tilenpodobnik641
@tilenpodobnik641 4 года назад
Nice.. how to make a button box with 2 joysticks? Can you wire all this to the same arduino
@sushantsarvade6699
@sushantsarvade6699 6 лет назад
pls make video on arduino interfacing with adxl335 accelerometer to control gesture of games
@oscarchan2624
@oscarchan2624 6 лет назад
hello. id like to ask is there anyone know is there programs for both the joystick codes and button codes if I want t add buttons to the controller the device have to be able to transfer the input back to the computer so I'm kinda lost in the woods here
@johnplummer4785
@johnplummer4785 4 года назад
I was in an ADHD hyperfixation moment and this helped me a lot
@el_teodoro
@el_teodoro 3 года назад
How did it help?
@FutureClubNow
@FutureClubNow 3 года назад
What is the Pro Micro used for in this? Thanks.
@artur4390
@artur4390 5 лет назад
Is it possible to do something similar with the accelerometer sensor?
@ta05racer
@ta05racer 2 года назад
just what i was looking for but i having trouble with getting the cursor back to center when i release the joystick, any ideas? cheers
@StefanoV__
@StefanoV__ 6 лет назад
Make a bass shaker with simhub software pls!!! ❤️
@thinkright5611
@thinkright5611 2 года назад
Any tips on how to invert just one particular axis?
@rivolz_
@rivolz_ 2 года назад
can i use this system for example for moving a character in a game map?
@hagopjozakian4491
@hagopjozakian4491 3 года назад
I need to make this wireless via two HC-05 modules one as master with the joystick and the other slave (arduino micro) as the mouse emulator. Any help?
@fryarshamshiri9974
@fryarshamshiri9974 4 года назад
Nice job, but for a reason i know that this project, like almost all other similar ones, do not control the cursor exactly like a mouse does, How do you change the response curve? With mouse cursor moves with different acceleration
@kawarider9049
@kawarider9049 3 года назад
Hi, Is it possible to have analog handbrake AND this joystick using only one Arduino Micro? I dont know how to set code to get both working
@mdpatel.404
@mdpatel.404 10 месяцев назад
Can we use two joystick or additional button or an led
@mortallychallenged1436
@mortallychallenged1436 Год назад
I want to try something similar but I need it to be a bit more sensible. In the presentation this looked like the inputs are 100% and no gradient in speed. I have no experience with coding these things so I ask. Does someone know a code that would make this more smooth/gradient? Like imagine you want to control a character and transition from walking to running to sprinting. Or use it to control some plane.
@paulhughes3315
@paulhughes3315 4 года назад
It possible to create a grid that the mouse would snap to on moving the joystick?
@zacharynunes440
@zacharynunes440 2 года назад
is there a way to do the same thing with the teensy duino? if so can you show
@Rodrigo-rd1
@Rodrigo-rd1 6 лет назад
Nice vid
@amstudioprojects
@amstudioprojects 6 лет назад
Thanks1
@jakeridesbikes99
@jakeridesbikes99 6 лет назад
hi there, just done this but my y axis is switched, what could I do to resolve this? thanks jake.
@realkeremcam
@realkeremcam 5 лет назад
I have the joystick module but i don't have the arduino leonardo, can i use uno instead of leonardo?
@Bacon-rr4st
@Bacon-rr4st 6 лет назад
Hi. I know that this isn't the right video to ask this on but i just really wanna make sure that u see this. If i buy a 3d print on ur web does i get the 3d file or do u send me a 3d printed piece bec i don't have a 3d printer but i really want a bigger wheel for my g29 wheel base. Thanks.
@slipknotfan2217
@slipknotfan2217 3 года назад
i have the pro micro, can i plug the vcc on the pro micro to the vcc on the joystick?
@amjadfelemban6951
@amjadfelemban6951 3 года назад
Can you use Arduino Nano or just Arduino Micro and Leonardo 🤔
@nebruh2180
@nebruh2180 6 месяцев назад
Can u do that but insted of it copying the mouse can it copy like fortnite,csgo movment aka wasd?
@Skullgamer52
@Skullgamer52 3 года назад
Is there a way to fit this with the button box buttons?
@nonghungson6386
@nonghungson6386 3 года назад
hello, can add left, right click buton in this board? i like using joystick mouse but can't click ? thank
@jericoabasolo9847
@jericoabasolo9847 4 года назад
Hi, I would like to do this project but I want to connect to the PC wirelessly (like a wireless mouse). anyone knows a DIY tutorial link? Thanks a lot
@adityawaghe5922
@adityawaghe5922 6 лет назад
Can you make pedals for Euro truck simulator 2
@raphaelchicago9138
@raphaelchicago9138 3 года назад
Can you do this with multiple joystick say one to walk around and one to look around.
@Shingojikung
@Shingojikung 3 года назад
ok i did it but im still new to this so is there anyway to remove this and turn my arduino leonado back to normal?
@julianheller4812
@julianheller4812 4 года назад
Can i use in Games for movement?
@parafinity6516
@parafinity6516 2 года назад
does this work on a mega 2560 board??
@sr.adrian3329
@sr.adrian3329 3 года назад
does my arduino nano work as a mouse? they got the atmega328p processor
@Charkel
@Charkel 6 лет назад
Lol I just bought this chip! I hope it works as well on the Teensy as it has better HID Emulation than the leonardo
@Charkel
@Charkel 6 лет назад
It worked :)
@paytufo
@paytufo 6 лет назад
Do you know any joystick/button like this also a rotary function like in the Fanatec steering wheels? Thank you
@Goku17yen
@Goku17yen 5 лет назад
you could do that with a joystick as its basically just a potentiometer, which is also what a gaming steering wheel is. Or you could just use a ocuple of big potentiometers and make a cardboard steering wheel yourself, you could look up an example of one of youtube easily
@FrJan100
@FrJan100 4 года назад
Might be a bit late, but here is a solution for anyone who gets reverted horizontal movement: if (vertValue != 0) Mouse.move(0, vertValue/sensitivity, 0); // move mouse on y axis if (horzValue != 0) horzValue -=2 * horzValue; // THIS LINE HAS TO BE ADDED! Mouse.move(horzValue/sensitivity, 0, 0); // move mouse on x axis
@AlexandreMonteiroSilva
@AlexandreMonteiroSilva 4 года назад
I am very noob on arduino, can you share the entire code?
@regaz4168
@regaz4168 3 года назад
Thank you very much for this fix!
@Thomsen5280
@Thomsen5280 2 года назад
thanks
@saniahsyeda1590
@saniahsyeda1590 4 года назад
will this work with an aruduino uno?
@sg_72
@sg_72 Год назад
I have an inverted horizontal and vertical movement!
@cheesenoodles380
@cheesenoodles380 3 года назад
Does this work with an arduino uno?
@fernandinoo.velasquez4287
@fernandinoo.velasquez4287 6 лет назад
Do a arduino steering wheel
@redactado266
@redactado266 4 года назад
pls
@Daewoo_Matiz
@Daewoo_Matiz Месяц назад
does this works with arduino nano?
@ROMMERBATISTA
@ROMMERBATISTA 4 года назад
Can you do the opposite? make a mouse control one of the analog stick
@thedataflo
@thedataflo 5 лет назад
someone more arduino and code savy as me schould add 2 digital buttons to change mouse speed and acceleration via hardware
@pavletrnic1433
@pavletrnic1433 3 года назад
Can i use an arduino uno?
@ccpro6670
@ccpro6670 5 лет назад
where is the 5v on the pro micro?
@DennisCaunce
@DennisCaunce 3 года назад
Can I use arduino uno?
@belhadjtablet5491
@belhadjtablet5491 3 года назад
Can you remap it to be instead of wasd and maybe have 360º movement in some games
@drewp8123
@drewp8123 3 года назад
Note: The adjusted timing and delay can be adjusted based on you program and input.
@Shreddy324
@Shreddy324 4 года назад
Can We Use Arduino Uno
@zokim3834
@zokim3834 3 года назад
can you do this with arduino uno
@itzdogelover
@itzdogelover 2 года назад
can i use uno instead of leonardo? i have only uno
@shobhabarnwal9090
@shobhabarnwal9090 4 года назад
Brother can we use Arduino Uno in the place of leanardo
@HAKOoooo
@HAKOoooo 2 года назад
does it work on linux?
@alkalineacid2273
@alkalineacid2273 3 года назад
Can this work for Arduino Uno if you change some code?
@gnokketto7423
@gnokketto7423 6 лет назад
next step.. make a 3d box for this!!
@miguelstevens3042
@miguelstevens3042 5 лет назад
What would be a good (nondestructive) way to attach this on a steering wheel? Tape seems weird. What would be a more solid way?
@YouthfulPat
@YouthfulPat 2 года назад
most ofthese have4 holes on the corners you can use screws
@R07ishere
@R07ishere 5 лет назад
Anyway we could get a button box with this on it? Thanks
@TheRedArrowExpress
@TheRedArrowExpress 5 лет назад
1:30
@fatoucan1078
@fatoucan1078 4 года назад
hi it doesn't work for me. i copied the correct code and put the wires in the correct places. please help
@abdurrahmantpkm1619
@abdurrahmantpkm1619 2 года назад
Hi, thank you for the video, its very helpful. May I ask, can this mouse connect to phone? And how do i do that?
@gateway1776
@gateway1776 Год назад
You'll need to ensure the code is stored on the Arduino board (instead of running locally from the computer), then use an OTG micro USB male (or USB-C, lightning, etc., depending on what type of phone you have) to USB-A female cord to give yourself a USB-A female port that connects to your phone. Next, take a USB-A male to micro USB male cord and plug the USB-A male part into the USB-A female port, and plug the micro USB male part into the Arduino board. Provided your code is good and everything's wired up, you should be good to go.
@nicomaravilla1906
@nicomaravilla1906 6 лет назад
Hello! I am a big fan of the page, I would like that in some video you will explain how to make an adapter for the logitech g25 to ps4. Thankyou so much for the videos!
@Goku17yen
@Goku17yen 5 лет назад
you would have to open it up, and figure out what gpio pins are which for that, and what aligns with the internal potentiometer so you could code it with the arduino
@obsidiantechz1371
@obsidiantechz1371 4 года назад
will arduino uno work
@julienrachenne8668
@julienrachenne8668 5 лет назад
C'est possible de pouvoir mettre le joystick sur un volants avec 8 Boutons?
@aaroningram9721
@aaroningram9721 3 года назад
how can i add buttons to this code?
@Ghostfireyt
@Ghostfireyt 3 года назад
Want joystick work as wasd code pls
@Pecks
@Pecks 2 года назад
Can you make a joystick without arduino?
@padmalayarawal3091
@padmalayarawal3091 4 года назад
Can we use arduino UNO R3?
@leegee2246
@leegee2246 3 года назад
nope, the UNO R3 doesn't support USBCON
@nickenzmann8389
@nickenzmann8389 3 года назад
When i upload the code. My mouse goes crazy and i cant controll it. How can i fix it? Is it caused by the code?
@josephachkar4375
@josephachkar4375 5 лет назад
can I use the Arduino uno to make a handbrake using on/off switch
@Goku17yen
@Goku17yen 5 лет назад
yes, but its harder, as the arduino doesn't ahve a usb compatible chip, like the AtMega32u4, like the leonardo, so you would need to lfash anotehr firmware onto it, like the UnoJoy, which will turn your uno into basically a sub that you can program a joystick to use with
@nicolasfranco9749
@nicolasfranco9749 5 лет назад
Can the same thing be made but to use WASD keys with the joystick instead of the mouse?
@Goku17yen
@Goku17yen 5 лет назад
yes, use the first keyboard output code in the link, then outline the code to your liking with any pins you like, i did that easily
@jeffwoodyart3255
@jeffwoodyart3255 3 года назад
Does it have to be arduino leonardo or with another type of arduino does it work? Greetings
@gateway1776
@gateway1776 Год назад
As long as it has the same pinouts as described in this video, most any other Arduino board should work.
@hennes5051
@hennes5051 5 лет назад
can i use this for farming simulator loader?
@EvanVanderStoep
@EvanVanderStoep 4 года назад
That's what I'm doing RN!!!
@tomtenbrinke256
@tomtenbrinke256 6 лет назад
does it also work with the arduino uno? or is it a different comminucation?
@amstudioprojects
@amstudioprojects 6 лет назад
ProMicro or Leonardo
@Tigerskunk
@Tigerskunk 6 лет назад
This will only work with Arduino Leonardo or clones that use the 32u4. Those chips allow the computer to see them as a USB device. Such as keyboards or joysticks. The other Arduino chips use a USB to serial interface thus they can't work directly with the computers.
@SianaGearz
@SianaGearz 6 лет назад
Uno only supports a serial port emulation over USB, does not have support for other USB devoce types, so emulating an input device (HID USB type) is not possible. The reason is that USB is implemented on the Uno using a separate IC that supports only that one USB device type. On the Leonardo USB is handled by the main processor using a fully configurable built-in USB peripheral and any kind of USB device can be implemented in software.
@HandigamerProject
@HandigamerProject Год назад
i don't see Arduino Pro Micro plugged ???
@daviddogdasit7790
@daviddogdasit7790 5 лет назад
says Mouse not found any help?
@Jpaulson2024
@Jpaulson2024 4 года назад
It's probably because we dont have the leonardo
Далее
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌹
3:09:38
MAKE ARDUINO RGB REV LIGHTS w SIMHUB
4:30
Просмотров 468 тыс.
DIY Flight Simulator Joystick
9:10
Просмотров 1 млн
I turned my OLD CONTROLLER into the ULTIMATE KEYPAD!
8:41
Beginners guide to game controllers with Arduino
7:57
Просмотров 3,7 тыс.
Why you should buy an Arduino Leonardo
4:34
Просмотров 308 тыс.
EQUIPAMENTOS TOP ? #moto  #motopeças
0:13
Просмотров 17 млн
УДИВИЛА МЛАДШУЮ СЕСТРУ
0:50
Просмотров 6 млн
4 июля 2024 г.
0:20
Просмотров 4,9 млн