You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Learn how to use Simulink to make an Arduino based blower fan that levitates a ping pong ball at a specified height. An ultrasonic sensor measures the height of the ball and a PID controller adjusts the fan speed to maintain the desired height.
Hardware Used:
Arduino Mega 7.4V Li-po Battery
IRLZ14 MOSFET 1k Ohm Resistor
Fan Blower USB A to B Cable
Ping Pong Ball Tube (3D Printed or Homemade)
Sharp Infrared Sensor GP2Y0A21YK (will need a 3 pin JST connector)
Cite As
Brian McKay (2026). Levitating a Ping Pong Ball Using Arduino and Simulink (https://www.mathworks.com/matlabcentral/fileexchange/58427-levitating-a-ping-pong-ball-using-arduino-and-simulink), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.1 (752 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Communities
More Files in the Power Electronics Control Community
