Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jetsonhacksnano/servokit
Install the Adafruit ServoKit Circuit Python library on the NVIDIA Jetson Nano Developer Kit
https://github.com/jetsonhacksnano/servokit
adafruit-circuit-python-servokit adafruit-servokit jetson-nano jetson-nano-developer-kit
Last synced: 2 months ago
JSON representation
Install the Adafruit ServoKit Circuit Python library on the NVIDIA Jetson Nano Developer Kit
- Host: GitHub
- URL: https://github.com/jetsonhacksnano/servokit
- Owner: JetsonHacksNano
- License: mit
- Created: 2019-07-09T05:09:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-04-04T17:46:21.000Z (over 2 years ago)
- Last Synced: 2023-03-03T07:19:20.047Z (almost 2 years ago)
- Topics: adafruit-circuit-python-servokit, adafruit-servokit, jetson-nano, jetson-nano-developer-kit
- Language: Python
- Size: 1.28 MB
- Stars: 49
- Watchers: 0
- Forks: 31
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ServoKit
Install the Adafruit ServoKit Circuit Python library on the NVIDIA Jetson Nano Developer KitHere are some convenience scripts to get servo motors working with the NVIDIA Jetson Nano Developer Kit using a PCA9685 breakout board over I2C.
installServoKit.sh
installServoKit.sh first sets the permissions for i2c and gpio so that they can be accessed in user space by the current user. Next, pip is installed. Finally, the adafruit-circuitpython-servokit library (along with its supporting libaries) are installed. To run the script:
$ ./installServoKit.shinstallGamePad.sh
Installs the approxeng.input gamepad input library using pip. This provides support for a variety of gamepad controllers. In particular, the Sony Dual Shock PS4 game controller. The script also installs a fix to the dual shock controller for the mapping of the right joystick.
$ ./installGamePad.shservoPlay.py
A simple example of controlling two servos with a game controller. For testing, two servos are connected to an Adafruit PCA9685 breakout board in positions 0 and 1. For testing, a Sony PS4 game controller was used.
$ python3 servoPlay.pyFor the servo attached to port 0, the left gamepad joystick X direction controls the position of the servo. For the other servo, the right joystick in the Y direction controls the position.
Wiring
On the Jetson Nano, pins 27 (SDA) and 28 (SCL) on the J41 GPIO header are connected to I2C Bus 0. Pins 3 (SDA) and 4 (SCL) are connected to I2C Bus 1. The demo servoPlay.py uses pins 27 and 28.Here's the wiring diagram:
![Wiring Diagram](images/NanoI2CWiringDiagram.jpg)
Releases
Current Work in Progress