Showing posts with label PWM. Show all posts
Showing posts with label PWM. Show all posts

Tuesday, 5 July 2016

Raspberry Pi: servo motor control via PWM

Following a question raised in response to a recent post on PWM, I hooked up a small servo motor to a Pi.


The motor in question is a 3 wire jobbie that needs a short pulse to control its position.


This short post explains how to drive the servo motor using wiringPi with a touch of Gambas.

Friday, 12 February 2016

PWM on RaspberryPi with Gambas

The Raspberry Pi has a PWM (pulse width modulation) mode which can be put to use in Gambas with the help of Gordon's wiringPi library.

 

The wiringPi library allows access to the hardware controlled PWM feature which is output on wiringPi pin 1.


So here are some notes and a small Gambas test program to help explore its capabilities.