Questions tagged [joystick]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
2answers
479 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 ...
2
votes
1answer
132 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 ...
1
vote
1answer
33 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);...
1
vote
1answer
148 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>...
1
vote
2answers
578 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 ...
1
vote
0answers
48 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 ...
0
votes
1answer
101 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 ...
0
votes
1answer
325 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 with the Arduino, read the input on the left side from the ...
0
votes
1answer
69 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 ...
0
votes
1answer
42 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 ...
0
votes
2answers
2k 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 ...
0
votes
2answers
296 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 ...
0
votes
2answers
2k 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 ...
0
votes
0answers
45 views

Stepper motor controlled with joystick wont spin anti-clockwise [duplicate]

Im trying to get my Stepper-motor to spin clockwise when joystick is pulled to one side and anti-clockwise when pulled to the other side. Problem is the motor only spins clockwise in both cases. Here ...
0
votes
1answer
46 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 ...
0
votes
0answers
17 views

Use joypad to control a robotic arm with 8 servos

I'm using Arduino UNO and the SSC-32U board to control a robotic arm made up by 8 digital servos. At the moment, I'm correctly able to move each servo by using the following code: move1(servo_pin, ...
0
votes
0answers
26 views

Joystick Bluetooth to Bluetooth to Motors [UPDATED] [duplicate]

I have updated the code, switching the Bluetooth sensors because my codes were switched(master was slave, and slave was master), putting the hc05s on the same baud rate, and removed certain comments, ...
0
votes
0answers
37 views

Robot can't stop after joystick release

Used the plan from: https://www.instructables.com/id/Arduino-RC-Gamepad/ The motor doesn't stop when release the joystick, need help. Thanks. <pre> {#include <VirtualWire.h> //...
0
votes
0answers
246 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: ...
0
votes
0answers
116 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%...
0
votes
0answers
196 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; ...
0
votes
1answer
645 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 ...
0
votes
1answer
1k 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 ...
0
votes
2answers
421 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 ...
-1
votes
1answer
116 views

HC-05 modules with joystick driven platform [closed]

I am working to create a joystick controlled platform using bluetooth to communicate, but am having several problems. The platform https://www.dfrobot.com/wiki/index.php/Cherokey_4WD_Mobile_Platform_(...
-1
votes
0answers
24 views

Stepper motor continues to step slowly when “idle”

I'm building a robotic arm and I'm currently using a stepper motor (with ULN2003 Driver board) and a servo motor (the little blue 9gram one), and also two joysticks, one for each motor. When I move ...