Evgeny Zinoviev 16d6aee534 fix
2021-10-31 21:35:40 +03:00
2021-10-31 16:30:35 +03:00
fix
2021-10-31 21:35:40 +03:00
2021-10-31 16:34:17 +03:00
2021-10-31 16:30:35 +03:00
2021-10-31 16:30:35 +03:00
2021-10-31 16:30:35 +03:00
2021-10-31 16:30:35 +03:00

opi-mg996r

This is a Python implementation of MG996R servo support for Orange Pi boards (H3 specifically, others untested). It does not use hardware PWM but instead emulates PWM with primitive time.sleep() calls, so don't expect any real-time accuracy. And, well, it's Python, after all.

But it does its job and MG996R servo works just fine!

Usage

  • Clone the repo.
  • Install dependencies (see here).
  • Check out example.py for an example.

You can also just use it from command line like this:

./example.py --deg 0
./example.py --deg 180
./example.py --deg 90

Credits

The softpwm implementation was taken the orangepwm project.

License

MIT

Description
No description provided
Readme MIT 33 KiB
Languages
Python 100%