Skip to content
quebeh edited this page Mar 25, 2023 · 2 revisions

Welcome to the Hexagone wiki!

Hexagone was not meant for a library. The resources on this repo DOES have some usable classes. (This was ran on an NVIDIA Jetson Nano Developer Kit B01, with python3.8)

Quick start

Make sure you have Python version 3.7+. Install cv2 and adafruit_pca9685 (required for PCA9685 control)

$ python3.8 -m pip install opencv-python
$ python3.8 -m pip install adafruit_circuitpython_pca9685

To run the ESC and Servo:

from hardware import ESC, Servo, getPCA

pca = getPCA()
esc = ESC(pca.channels[15]) # Replace with the esc channel used
servo = Servo(pca.channels[0]) # Replace with servo channel used

esc.speed = -1 # Backwards
esc.speed = 0 # Stop
esc.speed = 1 # Forward

servo.turn(90) # Turn to a certain angle

Clone this wiki locally