DIY ARDUINO MOUSE JOYSTICK
HTML-код
- Опубликовано: 10 сен 2024
- 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.
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.
Can you tell me what you've changed, please??? I have the same Problem and I'm seemingly to stupid to find the error.😅
There's gotta be an episode where you put all these projects together and show off! That'd be like Thanos' infinity gauntlet!
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!
Well, that would probably work once you find what plug is what
Thank you for taking the time to make these magnificent videos.
Quality content !
Cheers from south of France :)
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.
How do i connect it to a phone?
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.
So simple and affordable yet so handy. You rock man. o7
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
I am very noob on arduino, can you share the entire code?
Thank you very much for this fix!
thanks
Do a arduino steering wheel
pls
can this work for moving characters, obviously the program will be different but can it work?
Yeah, I tried at home and success it works, now to make a game controller for Minecraft, thanks for the video.
very good! I really like your job, I'm always learning something new on your channel. keep it up! 🇧🇷
Thanks Bruno!
I was in an ADHD hyperfixation moment and this helped me a lot
How did it help?
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
JUST
Love it, Thank's a lot
Can you make a tutorial to make that thingy into a movement control?
I have an Arduino UNU and it doesn't have built-in mouse connectivity. Is there a way I can still do this? I made my own method using C++ and Python, but it sucks.
I really liked your video, you needed 10m subscribers
Your videos are amazing.
Lol I just bought this chip! I hope it works as well on the Teensy as it has better HID Emulation than the leonardo
It worked :)
Can u do that but insted of it copying the mouse can it copy like fortnite,csgo movment aka wasd?
Can we use arduino UNO R3?
nope, the UNO R3 doesn't support USBCON
says Mouse not found
any help?
It's probably because we dont have the leonardo
thank you very much!!!
I love your jobs buddy, keep goin ✌
Thanks!
nice sharing. thanks. i'm interesting to make such this thing.
Does this work for use as mouse for Smartphone via OTG?
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?
Do you think it would be possible to run that simple stuff in a firmware like qmk for simultaneous mouse control?
thanks
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
does this work on a mega 2560 board??
Do you know any joystick/button like this also a rotary function like in the Fanatec steering wheels? Thank you
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
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
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?
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?
Can the same thing be made but to use WASD keys with the joystick instead of the mouse?
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
I have the joystick module but i don't have the arduino leonardo, can i use uno instead of leonardo?
hello, can add left, right click buton in this board? i like using joystick mouse but can't click ? thank
@amstudio Nice video, this project can be used with Arduino Nano? Or Pro Micro is required?
Can we use two joystick or additional button or an led
pls make video on arduino interfacing with adxl335 accelerometer to control gesture of games
hi there, just done this but my y axis is switched, what could I do to resolve this? thanks jake.
Could you do a video with a bigger joystick one for a flight sim or farming simulator. Love this video
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?
What's the difference with Arduino Leonardo?, I want to make a handbrake joystick for pc.
Make a bass shaker with simhub software pls!!! ❤️
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?
It possible to create a grid that the mouse would snap to on moving the joystick?
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.
Use analogRead() instead of digitalRead()
is there a way to do the same thing with the teensy duino? if so can you show
someone more arduino and code savy as me schould add 2 digital buttons to change mouse speed and acceleration via hardware
i have the pro micro, can i plug the vcc on the pro micro to the vcc on the joystick?
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
does my arduino nano work as a mouse? they got the atmega328p processor
Anyway we could get a button box with this on it? Thanks
1:30
can i use this system for example for moving a character in a game map?
Is it possible to do something similar with the accelerometer sensor?
hi it doesn't work for me. i copied the correct code and put the wires in the correct places. please help
Can you do this with multiple joystick say one to walk around and one to look around.
Genius =D
Nice.. how to make a button box with 2 joysticks? Can you wire all this to the same arduino
next step.. make a 3d box for this!!
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
Can We Use Arduino Uno
I have an inverted horizontal and vertical movement!
Can this work for Arduino Uno if you change some code?
Is there a way to fit this with the button box buttons?
can I use the Arduino uno to make a handbrake using on/off switch
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
What is the Pro Micro used for in this? Thanks.
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.
Any tips on how to invert just one particular axis?
can i use uno instead of leonardo? i have only uno
Can you use Arduino Nano or just Arduino Micro and Leonardo 🤔
Dude is it working in a game
Can you make pedals for Euro truck simulator 2
does this works with arduino nano?
It's keeps saying 'Mouse' not found. Does your sketch include the line '#include '?
But it clearly on the first line puts that code in. Any help?
Same problem. I think We have to download the library to solve this
can i use this for farming simulator loader?
That's what I'm doing RN!!!
Want joystick work as wasd code pls
C'est possible de pouvoir mettre le joystick sur un volants avec 8 Boutons?
Note: The adjusted timing and delay can be adjusted based on you program and input.
does it also work with the arduino uno? or is it a different comminucation?
ProMicro or Leonardo
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.
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.
i don't see Arduino Pro Micro plugged ???
What would be a good (nondestructive) way to attach this on a steering wheel? Tape seems weird. What would be a more solid way?
most ofthese have4 holes on the corners you can use screws
Does this work with an arduino uno?
how can i add buttons to this code?
Can i use in Games for movement?
Nice vid
Thanks1
Can I use arduino uno?
Hi, thank you for the video, its very helpful.
May I ask, can this mouse connect to phone? And how do i do that?
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.
does it work on linux?
Can you make a joystick without arduino?
where is the 5v on the pro micro?
Can you do the opposite? make a mouse control one of the analog stick
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!
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
what about the arduino mini? its not working for me!
never mind i figured it out. i also have an elegoo uno r3 help?
Can you remap it to be instead of wasd and maybe have 360º movement in some games
Does it have to be arduino leonardo or with another type of arduino does it work?
Greetings
As long as it has the same pinouts as described in this video, most any other Arduino board should work.
Brother can we use Arduino Uno in the place of leanardo