Electronic – Controlling servo

servo

I just got a I2C PWM hardware module.
I would like to use it to control some servos.

I found here and there that servos uses a 50Hz PWM, if the pulse is 1ms it will go to 0° and 2ms will make it go to 180°.

Is it the same for all servos? I also read that if you go below 1ms or above 2ms you will break the servo gears.

Mine are 'T & R SG90 servo 9 g micro servo'

Thanks.

Best Answer

The SG90 is a very common sub-micro analog servo size, it is made by multiple manufacturers and is one of the cheapest (though cheap implies not that reliable).

Analog servos all typically state 1.5 mS/50Hz as the home (center position) 1mS is extreme left, and 2 ms is extreme right travel. The 50 Hz frame rate is not absolute, many will work just fine between 50 - 75 Hz. If you stop sending frames, the servo goes into free mode (no drive to servo motor) and as soon as you send frames it locks at its position sense.

If the analog servo is modified for continuous motion they are 1.5 ms stationary/stopped 1 ms fast reverse/ant-clockwise and 2 ms fast forward/clockwise

The typical analog servo has 180 degree span for 1 - 2 ms, but most will go somewhat further ...ie <1 ms and >2 ms. The SG90 has a very small and delicate plastic gearbox, it's easy to strip the gears (I have destroyed a bunch over the years).

There are also many servos that can span more than 180 degrees using the 1 - 2 ms signal. This is a good place (ServoCity) to see all the features available over a range of servos.