In this work, an original state recurrent wavelet-based cerebellar model articulation controller (SRWCMAC) is proposed for a rotary inverted pendulum (RIP) control problem. This control problem in this study is to keep the pendulum position at the unstable setpoint. Moreover, a micro control unit (Arduino mega 2560) is used to control the RIP. Finally, a RIP is implementation based on a microcontroller with some handmade hardware circuits. In the end, the efficiency of the SRWCMAC is verified by RIPs real-world implementation.