Levitating a Ping Pong Ball Using Arduino and Simulink
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)
Cita come
Brian McKay (2024). 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. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Robotics and Autonomous Systems > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
- Aerospace and Defense > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
- Automotive > Simulink 3D Animation > Classic Virtual Reality World > Share Visualizations > Record and Play Animations >
Tag
Community
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.