30 August 2018 1 min read

Servo Motor and PWM Library

Control servo motors and LED brightness with pulse width modulation.

Servo Motor and PWM Library

Hello, we have published PWM library and servo motor library in the latest HARDWARIO SDK.

Pulse Width Modulation (PWM) is a method to create analog-like signal from the microcontroller digital output. It will achieve that by fast toggling of the pin with different ratio of logic HIGH and LOW. This ratio is called duty cycle.

This PWM signal can be used to set brightness when connected to some low power LED. With a proper power driver you can drive lots of power LEDs and LED strips. You can have up to 9 separate PWM channels.

By using bc_servo library you can connect a servo to the digital output and set the servo motor angle. You can use up to 9 servo motors.

For more information please see the How to: PWM and How to: Servo motor articles in the Learn section.