Close

Test #3: Ultrasonic sensor HC-SR04

A project log for Inverted pendulum on a cart

Building an inverted pendulum system with PID control. Trying to achieve swing-up.

dharshanDharshan 05/01/2022 at 09:200 Comments

Using a HC-SR04 ultrasonic sensor to track the position of the cart. 

Limiting the minima to 10cm and maxima to 45cm (~10mm clearance)

I used a cardboard cut-out to mount the sensor, and also as a rebound surface, 

Although the least count is 1cm here, the reading seems to be pretty precise.  

Discussions