Questions tagged [joystick]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
29 views

Arduino Micro seen as three game controllers in Windows 11

When I connect my Arduino Micro through a micro USB cable to my Windows PC, it is seen as 3 different game controllers (print screen below). I wonder why and if I can change this. I think it causes an ...
Mathieu G's user avatar
-1 votes
1 answer
38 views

Joystick library not reading potentiometer

I am using Joystick Library to make a HOTAS system for flight simulators. When I load the test program I can get all the simulated controller inputs to register in windows. I can also get the value ...
Bodhi Teraguchi's user avatar
2 votes
1 answer
450 views

How can I compensate for a joysticks offset value in neutral position?

I have a joystick that outputs the values 0 - 4095. I want to map these values in this fashion (Yes, the reversed mapping is intended): outputValue = map(inputValue, 4095, 0, -2048, 2047); However, ...
Erik's user avatar
  • 261
2 votes
0 answers
42 views

I am trying to control 4 servos with a joystick, but after a few seconds, they start spinning and don't stop until the power source is cut

Here's my code. I don't know if the issue is the power source though. I only have access to my computer for a power source. #include <Servo.h> Servo servo1; Servo servo2; Servo servo3; Servo ...
PokemonsterBlue2's user avatar
1 vote
1 answer
1k views

Expose two HID Joystick devices with single RP2040 board (Waveshare Pi Pico Zero)

I want to use a Waveshare Pi Pico Zero to connect two standard NES controllers to a computer over a single USB port. I'm using the Waveshare RP2040 Zero board definition from https://github.com/...
NeilenMarais's user avatar
-2 votes
1 answer
212 views

I want a Rotary Encoder to make 10 steps at once, but my code isn't working. What am I doing wrong?

I'm using a rotary encoder on my Arduino Micro, that is supposed to do single steps or ten steps at once, depending on which position a switch is in. The Rotary: https://www.reichelt.de/...
Chritzeltopf's user avatar
0 votes
1 answer
101 views

Can I make an Arduino Uno Rev3 pretend to be a joystick?

I want to create a joystick for my flight simulator and I need to make an Arduino Uno Rev3 pretend to be a joystick when I plug it to my computer.
manarinian's user avatar
0 votes
1 answer
96 views

Joystick reading erroneous values

Under normal operation, the value of a joystick's ADC range on my board is from 0 to 1023 (10-bits). However, my graph for either axis is not continuous. Rather, there is more than one min and maximum ...
thediyer's user avatar
-2 votes
2 answers
221 views

Emulate Joystick

I am trying to automate a existing system that uses Joystick as its input to move the Motors in x&y directions. I actually want to emulate arduino to exactly do what the joystick is doing by just ...
ASAD ALI's user avatar
1 vote
0 answers
634 views

ESP32 WROOM32E w/ Arduino IDE 2axis joystick - how do I get a good reading?

How do I get the full range of motion from an analog joystick and the ESP32 WROOM32E using the arduino IDE with esp-idf installed? Using a 2 axis analog joystick, the 5v/3.3v pin, ground pin and the ...
localmartian's user avatar
1 vote
0 answers
188 views

I'm getting really unstable analog values with my B103348 joystick

I'm trying to make my B103348 joystick control a DC motor but I'm getting very unstable values from it specifically when the y axis is at 0. This is what my Serial monitor shows... 0, 21, 21, 21, 0, ...
Christian Bautch's user avatar
1 vote
1 answer
2k views

Can Arduino UNO be used to emulate a PS4 joystick?

I Want to know if there is a library that can be used in order to make a PS4 controller with Arduino. I have a PS2 steering wheel and I want to use it thorugh Arduino with PS4. I know that PS4 has his ...
AlexSp3's user avatar
  • 203
1 vote
2 answers
380 views

Im trying to map a joystick to a servo but need the servo to be at 0 when the joystick is in nerural. And up to 180 when joy is forward or back

Im trying to map a joystick to a servo but need the servo to be at 0 when the joystick is in nerural. And up to +180 when joy is forward or back. I just cant seem to figure out the mapping or setup ...
hendr13x's user avatar
1 vote
0 answers
206 views

How can I control 2 servos separately using a joystick on an ATTiny85?

Prelude I haven't done a lot of work in programming chips. The ATTiny85 is the first chip I've programmed, and I have the hang of the basics I think, but I don't have an in-depth understanding of it's ...
Devin Carpenter's user avatar
1 vote
0 answers
235 views

I'm making a trim wheel using a rotary encoder for flight simulation. Should I have the Joystick library use button presses or make it an axis?

Title says the majority of it. I'm looking to make a trim wheel for flight sim using a rotary encoder, the Joystick library and an Arduino Leonardo. I wasn't sure if it would be better to make it a ...
Pierce Jennings's user avatar
1 vote
0 answers
924 views

Custom PS4 joystick with arduino

I am acquiring a Logitech G29 for my PS4 and I want to have an external handbreak. The handbrake only needs an input when active, so no "pressure level" or something like that required, only ...
Macaroni and not cheese's user avatar
1 vote
0 answers
103 views

DHT11 thermometer connected to a LCD and 2 servos connected to joysrick [duplicate]

Im trying to find a way to run two codes from the one arduino me being an absolute begginer doesnt even know where to start the DHT11 thermometer is connected to a LCD showing temperature and humidity ...
Daniel o dea's user avatar
1 vote
1 answer
80 views

How can I PWM 4 LEDs from 0 to full brightness using a two axiz resistive joystick?

I am trying to use the Arduino MAP function to allow me to PWM 4 LEDs between 0 and full brightness. I guess the tricky part is that the joystick neutral position is at the venter of the range of the ...
Tokthebloke's user avatar
0 votes
1 answer
112 views

Transmitting multiple values to an Arduino, and interpreting them with minimum delay

I am building an underwater robot, which can move up/down and forward/reverse, controlled by a Joystick. The situation is like this : A USB joystick is connected to a PC, the PC is connected to an ...
Steve Hansleman's user avatar
1 vote
1 answer
1k views

Arduino Joystick Library not Recognized by Games (Steam)

I have an Arduino Pro Micro running code that uses the Arduino joystick library to act as a gamepad. I'm just doing testing right now so there's a single button wired up and configured in the code. ...
Orion DeYoe's user avatar
0 votes
0 answers
37 views

Arduino glitches and makes 240 < 7 and -240 > 7

I'm experimenting with the joystick and the MAX7219 module (8x8 LED display) and i made this program: #include "LedControl.h" LedControl lc=LedControl(11,13,10,1); int Xo = 36; int Yo = 34;...
Nobert's user avatar
  • 11
0 votes
1 answer
96 views

Problem using 2 motors

I would like both the motors to spin the attached wheels forward when I push the joystick forward and vice versa. When the joystick is still, the motors should stop spinning. At the moment, when I ...
Magalek's user avatar
2 votes
1 answer
1k views

How to use a USB host shield with different HID Joysticks

I bought a Sparkfun USB host shield a while ago and have been using it using my Logitech Extreme 3D Pro Joystick. There is some example code for that one which makes it nice and easy to work with. ...
Vosem Media's user avatar
1 vote
0 answers
339 views

Arduino Due with Logitech F710 gamepad

I'm having Arduino Due board and Logitech F710 Wireless Gamepad. I have connected the receiver dongle to native port of Due board via OTG cable. As the native usb host library supports only keyboard ...
Syshacky's user avatar
1 vote
0 answers
99 views

Save joystick movement and run a servo motor

I am planning to use a joystick to input joystick stroke directions, save the directions as number in a variable. The idea is to start a servo motor if the directions match the directions in the ...
marc Katz's user avatar
1 vote
0 answers
2k views

Using digital rotary encoders for HID input using the Joystick library

I have been working on a small switch panel for flight sims, but I wanted to use the CYT1100 Digital Rotary encoders to move instruments in-game. I have the code set up to press a certain joystick ...
Jacob C's user avatar
  • 11
1 vote
0 answers
259 views

How do I write my code to reverse the motors in the opposite direction so the RSLK can move backwards?

I've assembled the TI RSLK Robot Maze Edition for a final project for my embedded systems class. Instead of using the MSP432P401R LaunchPad that came with the kit to control the power board, I've used ...
Angel's user avatar
  • 11
1 vote
1 answer
61 views

Is the code correct? Nrf24l01

I'm am a beginner, so I'm sorry I have written this wrong. Is this piece of code correct? If not where? Transmitter: #include <SPI.h> #include "RF24.h" int* Msg, mSg, msG; RF24 radio(9, 10);...
Blaziken's user avatar
0 votes
1 answer
353 views

Stuck making multi, many button, joysticks

I'm stuck, I figured I'd ask here for some help... Note I'm a newb and this is essentially my first Arduino project beyond blink... I'm creating Virtual cockpit panels for DCS World, using an Arduino ...
FedaykinWolf's user avatar
1 vote
0 answers
148 views

Interfacing Uno to Logitech Attack3 Joystick

I bought a Logitech Attack3 joystick at a garage sale for a couple of bucks and now I want to use it for something useful, like controlling a car or my small robotic arm. This joystick has 11 buttons ...
Scott M's user avatar
  • 41
1 vote
1 answer
912 views

Varible Ramp up speed for motors controlled by joytstick [closed]

I trying to create a piece of code which will ramp up the motors speed to a changing value controlled by a joystick. For example joystick requests 120 speed to motors so instead of going 0 to 120 it ...
Ollie Holmes's user avatar
0 votes
1 answer
104 views

Run website / Javascript game from a Arduino UNO device?

I apologise if this is a dumb question, but I'm trying to find information on whether or not this is possible. I'd like to build a arcade machine to play my custom Javascript 2D game. The game ...
themanwiththemasterplan's user avatar
1 vote
0 answers
745 views

Bluetooth gamepad via Adafruit Feather M0 Bluefruit BLE

I'm trying to build a Bluetooth-enabled gamepad out of an old Playstation 1 controller, using an Adafruit Feather M0 Bluefruit BLE. I've programmed the board as a Keyboard HID and everything works: ...
Cosmin Stamate's user avatar
1 vote
0 answers
370 views

Real-time Pub/Sub thru MQTT between JoyStick and OnBoard Drive units [both ESP8266] - Connection issues

I looked around for solutions to my issue by searching on the forum and elsewhere and haven't seen similar issues - (https://arduino.stackexchange.com/search?page=2&tab=Relevance&q=MQTT%...
bhanu's user avatar
  • 11
0 votes
2 answers
6k views

Reading Multiple Analog Input Pins

I am having a bit of trouble trying to read multiple Analog Input Pins (A0 and A3, in this instance). I am using a Pololu A-Star 32U4 LV Robot Controller (https://www.pololu.com/product/3116), and am ...
Brendan Lesniak's user avatar
2 votes
1 answer
390 views

Servos not working properly with joystick

So, I was working with a project in which I used a joystick module to control two servos at the same time. The joystick controls the servos in a way that when the joystick is moved along x-axis, both ...
Faiq Irfan's user avatar
1 vote
0 answers
644 views

Read from analog input "bounces" around

I have a joystick and am using the following code to show the output to the serial monitor: // Arduino pin numbers const int SW_pin = 2; // digital pin connected to switch output const int X_pin = 0; ...
Daniel Gee's user avatar
0 votes
1 answer
1k views

Arduino Nano joystick x2 / potentiometer

will i be able to connect up all these parts to an arduino Nano i noticed i will need to connect to the nanos v5 to the 2 joysticks and potentiometer slider if i share the voltage will it still ...
karth 's user avatar
0 votes
2 answers
515 views

USB Host Shield plus 2 identical joysticks

I'm trying to get two identical joystics (Saitek cyborg 3D) running with the USB-Host-Shield on a Mega 2560 and an USB-Hub. I already get the event-messages of both of them: #include <usbhid.h>...
Palmstroem's user avatar
0 votes
1 answer
123 views

Joysitck with servo, LED array and buzzer [closed]

Does anybody know of a sketch that can turn a single servo 180 degrees clockwise/counterclockwise with the x axis of a joystick, light a bar graph LED with the Y axis, and sound a buzzer when the ...
Jacob Dickson's user avatar
1 vote
1 answer
2k views

Arduino force feedback vibration gamepad

I'm projecting a gamepad with Arduino Micro. I'm using the Arduino Joystick Library. I'm building this gamepad for racing games so I need to catch signal like hit_the_wall, hit_another_car. I wonder ...
Andrea Mancini's user avatar
0 votes
2 answers
466 views

How can I control the speed and direction of dc motor at the same time (through Bluetooth

I am working on a project of an arduino car it's simple really i know how to control the speed and direction using simple button but I was looking for an upgrade so I add a virtual joystick in my app ...
beel's user avatar
  • 5
4 votes
2 answers
766 views

Interfacing Logitech Joystick to Arduino and interrupt a while loop

I am working on a project of a robot arm. The joints are made of servo motor. The basic function can be describe as: The robot arm (the servos) were moved manually by the Logitech joystick. The user ...
John Keane's user avatar
0 votes
1 answer
537 views

Simulate 9-pin joystick output

I have built this little setup, which is supposed to record and replay input from a classic 9-pin Joystick. I connected the 9 pin connectors to the Arduino, read the input on the left side from the ...
Esshahn's user avatar
  • 217
0 votes
2 answers
1k views

analogRead returning 0 constantly when connected to joystick

What reasons could there be for a joystick to return 0 when using analogRead? X-pin is connected to AO and y-pin is connected to A1. VCC is connected to 5V and GRND is connected to GRND. By ...
helppls's user avatar
1 vote
2 answers
1k views

How to: Connecting 4-pin Joystick to Arduino board

I am completely new at Arduino. I have a joystick: It is however quite different from all the other joystick-tutorials, as their joysticks have 5 pins, not just 4. So I am quite at loss here. How do ...
andrew's user avatar
  • 173
0 votes
2 answers
4k views

Arduino USB Host Shield with joystick

I'm building my own quadcopter and going to use an Arduino for this. An Arduino Micro for the quadcopter and an Arduino UNO for the controller. I want to use an USB host shield with a Logitech Extreme ...
Jeroen's user avatar
  • 3