A simple simulation of a Ball on Beam system using React, SVG, and a PID controller. This project allows users to interactively tune the controller and observe how the ball reacts to different target positions and beam lengths.
- Real-time simulation of ball movement on a rotating beam
- User-controlled PID tuning
- React
- JavaScript
- SVG for animation
- Node.js
- npm
- Clone the repository:
git clone https://github.com/rotasn/ball-on-beam.git
cd ball-on-beam
- Install dependencies:
npm install
- Run the development server:
npm run dev
- Enter a desired position for the ball (0-300) in the input field
- Adjust the P, I, and D sliders to see how different control parameters affect the ball's movement
MIT
Nikolaos Rotas