A PID based solution to inverse pendulum problem. Simulation prepared in Matlab Simulink.
Before Start:
Input the physical environment vareibles to Matlab I/O
M = 0.5; m = 0.2; b = 0.1; I = 0.006; g = 9.8; l = 0.3
More Info(TR): https://www.youtube.com/watch?v=MlRPhM1SG0c
More info about PID https://www.youtube.com/watch?v=fWQWX9-8_sA