https://github.com/jmojiwat/kuongshun
L9110 H-Bridge for Raspberry Pi.
https://github.com/jmojiwat/kuongshun
microcontroller
Last synced: about 1 year ago
JSON representation
L9110 H-Bridge for Raspberry Pi.
- Host: GitHub
- URL: https://github.com/jmojiwat/kuongshun
- Owner: jmojiwat
- Created: 2021-01-18T03:52:17.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-18T04:12:51.000Z (over 5 years ago)
- Last Synced: 2025-02-01T20:30:36.747Z (over 1 year ago)
- Topics: microcontroller
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# L9110 2 Channel Motor Driver library for Raspberry Pi.
This library controls the L9110 2 channel motor driver using a soft Pulse Width Modulation.
```c#
var gpioController = GpioController.GetDefault();
var speedPinNumber = 18; // input A is used to control speed
var directionPinNumber = 21; // input B is used to control direction
var dutyCycle = 0.5d;
var l9110 = new L9110(gpioController, speedPinNumber, directionPinNumber);
l9110.StartLow(dutyCycle); // input B is low; clockwise
l9110.Stop();
l9110.StartHigh(dutyCycle); // input B is high; anticlockwise
l9110.Stop();
```