Тёмный

Arduino Analog Joystick 

Science Fun
Подписаться 6 тыс.
Просмотров 10 тыс.
50% 1

Quick tutorial on how to interface an analog joystick with an Arduino for PWM motor control.
The following is an affiliate link for the joystick used in this video. Using this link may help me earn a small commission to help my channel grow. Thanks for your support!
2 Channel analog joystick: amzn.to/3pcXOX7

Наука

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

 

27 июл 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@RexSmithII
@RexSmithII 2 года назад
I’m trying to control two big hub motors that could be powered by 2 VESC (uart tx,rx) or I have 2 motor controllers(ebike) that work on 0-5v potentiometer not sure if the arduino can work with that controller? I also wouldn’t want the go in reverse from center to back, because I f you were moving at 20mph wouldn’t that burn up the motors? I didn’t see your code templet.
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Yes, the Arduino can output 0-5V using the PWM analogWrite commands. Also, my code is on Facebook facebook.com/ScienceFun4u/
@KW-ei3pi
@KW-ei3pi 5 месяцев назад
Thank you for posting. Just what I needed. However, there is no link in the description to the Facebook page with code, but since I don't have a Facebook account, I couldn't get it anyway.
@ScienceFunInnovations
@ScienceFunInnovations 5 месяцев назад
The code will be discussed in the second video, which will be out this morning.
@i.m.pressive
@i.m.pressive 11 месяцев назад
Hi! Thanks for the video. I have a spinal cord injury, and I have limited movement in my hands. At the moment, I am working on a game controller. Please tell me, which controller is better suited for this, Arduino or Raspberry Pi? Can I connect 12 buttons and two such joysticks to Raspberry Pi/Arduino as analog sticks?
@ScienceFunInnovations
@ScienceFunInnovations 11 месяцев назад
I have only done analog using Arduino (I have done digital on the Pi). Yes you can connect a ton to Arduino, especially a big one like the Mega.
@ezzatluqman
@ezzatluqman 2 года назад
are they gonna make a different on output (if i were using motors) if the max speed forward and backward is different?
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
I have programmed code before to have a different speed range for forward and reverse while still using the full range of motion of the joystick.
@mystreteacher
@mystreteacher 7 месяцев назад
I have a couple of these coming in a few days. Could you swap the black and red wires around to reverse the Y axis? I'd like to mount the joystick upside down for a student I'm working with. I'm not planing to use an arduino, this will be with a 3.5 TRRS audio plug for the X1/X2 jacks on the xbox adaptive controller. 1:34
@ScienceFunInnovations
@ScienceFunInnovations 6 месяцев назад
Sorry for the slow reply. I'm not familiar with the Xbox controls, so not sure I can advise. Hopefully you figured something out!
@mystreteacher
@mystreteacher 6 месяцев назад
@@ScienceFunInnovations Not a problem, I experimented on it when the joystick came in. As it turns out it does work that way if you reverse vcc and ground across the pot. Wiring up the 3.5 plug for X1 and X2 jacks on the Xbox Adaptive controller goes Tip and 1st ring for data, and 3rd and 4th rings for power and ground.
@wakandafoodtruck4758
@wakandafoodtruck4758 2 года назад
Help plz!?!??!? Can I hook this up to Ipac controller interface
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
I'm not to familiar with the ipac, but if it takes a 0-5V signal, then yes.
@lironkalfa5479
@lironkalfa5479 2 года назад
I can connect 3 joysticks to one arduino?
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Yes. You would need to use 6 analog channels.
@boomville8734
@boomville8734 2 года назад
Can I connect a Flysky i6 joystick part to arduino?
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
Yes. Check out my other videos that use an RC tx/rx. I use it to control a linear actuator and an Arduino hovercraft.
@boomville8734
@boomville8734 2 года назад
@@ScienceFunInnovations oh, wow cool thx 😊
@boomville8734
@boomville8734 2 года назад
@@ScienceFunInnovations i watch it, i am not seeing the joystick tho
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
@@boomville8734 Something like this? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Rj8x43r24xs.html
@ScienceFunInnovations
@ScienceFunInnovations 2 года назад
@@boomville8734 or this? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-8EwqpNrkym4.html
Далее
Super Smooth Joystick and Throttle with Arduino
9:10
Старый Дим Димыч вернулся😱
00:16
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Просмотров 3,1 млн
How to control a DC motor with an encoder
9:30
Просмотров 427 тыс.
Arduino 56 Button Joystick 737 Gear Control
16:43
Просмотров 44 тыс.
8 EASY TIPS for not BURNING ARDUINO
9:08
Просмотров 43 тыс.
Magnetic Switches - for $20 each!
20:42
Просмотров 383 тыс.
#35 - 4 axis Arduino joystick game controller KSP
4:38
DIY ARDUINO MOUSE JOYSTICK
2:14
Просмотров 130 тыс.
Arduino Analog Inputs
6:08
Просмотров 67 тыс.