Skip to content
raspberrypi-go-driversPublic

About

Allow to control a FS90R servo connected on a PWM GPIO pin

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

FS90R servo

Go Reference golangci-lint Go Report Card License: MIT

This drivers allows to control a FS90R servo connected on a PWM GPIO pin

Documentation

For full documentation, please visit Go Reference

Quick start

import (
	"os"

	"github.com/raspberrypi-go-drivers/fs90r"
	"github.com/stianeikeland/go-rpio/v4"
)

func main() {
	err := rpio.Open()
	if err != nil {
		os.Exit(1)
	}
	defer rpio.Close()
	servo := fs90r.NewFS90R(18)
	servo.SetSpeed(50) // Set servo speed to 50% (CCW)
}

Raspberry Pi compatibility

This driver has has only been tested on an Raspberry Pi Zero WH using integrated bluetooth but may work well on other Raspberry Pi having integrated Bluetooth

License

MIT License


Special thanks to @stianeikeland

This driver is based on his work in stianeikeland/go-rpio

About

Allow to control a FS90R servo connected on a PWM GPIO pin

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages