How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example! @VDEngineering
How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example!  @VDEngineering
Uploaded September 2016 | Updated September 2026, 16 hours ago
#joysticks #flightsimulation
2020 Update: At 2:24, I mention that you cannot find the selector block within MATLAB / Simulink browser. I apologize for this. You can find the block, it is called "Selector". So go in the Simulink Library Browser, drag the selector block, double click it, set the Input Port Size to 8 (this makes it compatible to work with joysticks). Leave the other parameters as is. You can then select the Index [1 2 3 4] as follows for attitude and thrust.
See this: mathworks.com/help/simulink/slref/selector.html

Free Udemy Course (Motion Planning): udemy.com/course/an-introduction-to-sampling-based-motion-planning-algorithms

Dear Engineering students,

Welcome to my all new tutorial on using a basic USB joystick in MATLAB / Simulink. For this specific tutorial, you must have Simulink 3D Animation installed. However to use a joystick in general, you do not need 3D Animation.

This tutorial covers:

1) Setting up a simple USB joystick
2) Knowing which Simulink blocks use a joystick
3) Using the fundamental joystick controls (yaw, pitch, roll)
4) Mapping joystick axis motion to a CAD file within the VRML world.
5) Testing!!

Note: If you have no experience with Simulink 3D Animation, I highly recommend watch my previous videos explaining the following in more detail.
- VR Signal Expander
- Basic coordinates in Simulink 3D Animation

A lot of people I notice on MATLAB forums as well as YouTube, have difficulty knowing exactly how to import a joystick and map the joystick axes.

Stay tuned for upcoming videos:
- Importing ASSEMBLIES in VRML
- Joystick + PID control

Cheers,

Vin

Joystick used: Logitech Freedom 2.4 Cordless
How to use Simulink 3D Animation: youtube.com/watch?v=--9d8jYzLpg
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
udemy.com/course/autonomous-robots-nonholonomic-motion-planning-algorithms
Buy Coffee: buymeacoffee.com/vdengineering
My Instagram: instagram.com/vinayak_desh
My Website: vinayakd.com
How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example!C++ and Qt Tutorial: Image Processing Application!MATLAB & Simulink Tutorial - Design a Simple Autopilot (with Flight Simulation!)Two Stage Rocket , NEUDOSE Satellite Launch (telemetry) - MATLAB / SimulinkArduino: How to build a Radar/Sonar with a User Interface Heads Up Display using C++ and Qt!Simulink Code Generation Tutorial: Transform the models into custom C++ applicationsDesign a Trajectory for Rocket Landing | C++ and Qt Application!PyTorch to C++ | Converting and Running Neural Networks | Tutorial (LibTorch / ONNX)Guidance, Navigation and Control Engineering explained in 49 seconds!Rocket Science 101 | What are the various types of Rocket Fuels? (For Beginners)5 Quick Tips For More Accurate Airfoil CFD Simulations (ANSYS Fluent Tutorial)How to import and animate 3D CAD Assemblies using MATLAB / Simulink 3D Animation
VDEngineering |

How to Read and Use Joysticks in MATLAB and Simulink - Step-by-step detailed example!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER