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
#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










