D
D
darkoment2021-02-14 16:10:02
Arduino
darkoment, 2021-02-14 16:10:02

Is it possible to make a joystick with arduino nano?

Don't hit with sticks! I heard that arduino Leonardo, arduino pro mini are suitable for creating peripheral devices, like joysticks and other things. Can the adruino nano be suitable for these purposes, or will you have to dance with a tambourine?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
L
lonelymyp, 2021-02-14
@lonelymyp

The question needs to be specific.
If you want to make a homemade usb joystick that can be plugged into any computer and the computer defines it as a joystick, then no, nano will not work, but if you need it purely for your uart program, then easily.

B
Borys Latysh, 2021-02-14
@nava2002

NO it won't work.
Arduino Leonardo - made on the ATmega32U4 controller which has a built in USB controller (very useful) and allows you to use the USB mouse and keyboard emulator library.
Therefore, obtaining such a function using NANO will require not just a "tambourine" but, as it were, an "orchestra" - several tambourines. Considering that the issue price is "2 kopecks". buy any module that is implemented on the ATmega32U4 controller and get the desired functionality.
PS I have assembled an excellent device based on a Chinese controller and plus an SD card interface on board.

K
Konstantin Zaitsev, 2021-02-14
@KonstantineZ

There is a rather old MJoy project on the ATMega8 controller, it is bigger than the 328 on which the nano is made. So technically real. But you need to understand that the nano does not have a USB interface, there is a USB-to-serial converter, which means that you will have to connect to the computer through a USB emulator, from free pins. This is never easy, and you have to solder.
So yes, you can, but it's easier and cheaper to use Leonardo or pro micro on atmega32u4.
Link to MJoy www.joysticks.ru/joysticks/handmade/mjoy.shtml
MJoy is not written on Arduino!

V
Vasily Bannikov, 2021-02-14
@vabka

Yes, you can. It differs from pro mini only in form factor.
But, IMHO, a full-fledged joystick is better to do on more powerful MKs, which will have a better ADC.

J
joshhhab, 2021-02-19
@joshhhab

you can do it with arduino nano, there is a soft usb library, but for the USB port you need to do the binding. I tried to flash it, but there was something wrong with the strapping and the USB device was not detected normally

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question