https://github.com/pr-dc/prdc_servoht
PR-DC Servo Library for STM32 using HardwareTimer from Arduino_Core_STM32.
https://github.com/pr-dc/prdc_servoht
arduino arduino-library servo stm32
Last synced: about 1 month ago
JSON representation
PR-DC Servo Library for STM32 using HardwareTimer from Arduino_Core_STM32.
- Host: GitHub
- URL: https://github.com/pr-dc/prdc_servoht
- Owner: PR-DC
- License: lgpl-3.0
- Created: 2022-01-06T14:38:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T09:37:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T17:17:16.470Z (over 1 year ago)
- Topics: arduino, arduino-library, servo, stm32
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
# STM32 Servo Library using HardwareTimer from Arduino_Core_STM32
PWM signal for Servo motor control is generated using HardwareTimer
library from Arduino_Core_STM32, for every i/o pin, that has PWM
capability. Timer and channel are configured within the attach() method.
## Requirements
[Arduino](https://www.arduino.cc/)
[Arduino_Core_STM32](https://github.com/stm32duino/Arduino_Core_STM32)
This library is tested with
**Arduino IDE 1.8.13** and **Arduino_Core_STM32 1.9.0**.
## Installation
Clone the repository to the Arduino libraries folder.
For example, on the Windows OS path is:
```
C:\Users\{User}\Documents\Arduino\libraries
```
For more information please visit: https://www.arduino.cc/en/guide/libraries#toc5
## Usage
This library is compatible with the **Arduino Servo library**,
the only difference is that the class name is **ServoHT** instead of Servo.
For more information about the Arduino Servo library
please visit: http://www.arduino.cc/en/Reference/Servo
## License
Copyright (C) 2021 PR-DC
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see .