https://github.com/raspberrypi-go-drivers/fs90r
Allow to control a FS90R servo connected on a PWM GPIO pin
https://github.com/raspberrypi-go-drivers/fs90r
driver fs90r go golang raspberry-pi raspberrypi-drivers robotics
Last synced: about 2 months ago
JSON representation
Allow to control a FS90R servo connected on a PWM GPIO pin
- Host: GitHub
- URL: https://github.com/raspberrypi-go-drivers/fs90r
- Owner: raspberrypi-go-drivers
- License: mit
- Created: 2020-12-18T20:53:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-18T21:10:52.000Z (over 5 years ago)
- Last Synced: 2025-01-03T19:45:25.672Z (over 1 year ago)
- Topics: driver, fs90r, go, golang, raspberry-pi, raspberrypi-drivers, robotics
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FS90R servo
[](https://pkg.go.dev/github.com/raspberrypi-go-drivers/fs90r)

[](https://goreportcard.com/report/github.com/raspberrypi-go-drivers/fs90R)
[](https://opensource.org/licenses/MIT)
This drivers allows to control a FS90R servo connected on a PWM GPIO pin
## Documentation
For full documentation, please visit [](https://pkg.go.dev/github.com/raspberrypi-go-drivers/fs90r)
## Quick start
```go
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](https://github.com/stianeikeland/go-rpio/)