[solved] Getting an Adafruit Servo Hat to Work on an Up Board
Options
lowjunen
New Member Posts: 5 ✭
Hellooo everyone,
Just thought I'd chip for anyone having issues with getting the the adafruit hats to work with the GPIO pins. A few things that are missing/aren't clear from the wiki:
- If you are using Ubuntu, you'll need to install the MRAA library. Follow the instructions here: https://github.com/intel-iot-devkit/mraa
- The servo hat requires an i2c input, which by default is not enabled in the BIOS. Head over to the Hat tab in the bios and enable it at the I2CO/GPIO Selection.
- The simpletest python code's default search address for i2c is incorrect. First, find out which bus your i2c is at using: ls /sys/devices/pci0000:00/808622C1:01/ | grep i2c
- Mine was on bus 5. So find out the address using sudo i2cdetect -r -y 5 (where '5' was determined from step 3.
- In the simpeltest.py example, add the address to the initialization. In my case it was pwm = Adafruit_PCA9685.PCA9685(address=0x40, busnum=5).
Each of these steps aren't really new, it's just that they're scattered around in the forum. Hope it helps for anyone who's been having issues with their hats! Would be really good if these could be added to the wiki instructions. Otherwise they're really clear and useful.
Comments
-
Hi @lowjunen ,
Thank so much for the update in Adafruit library for Ubuntu.
We will add your sugesstions as soon as possible.
Categories
- All Categories
- 63 Announcements & News
- 139 Product News - New Product/Product Change Notice/ End-of-life
- 112 Welcome Developers!
- 60 Unboxing & Project Sharing
- 114 Tech Updates
- 3.6K UP Products
- 119 UP 7000
- 25 UP Squared i12
- 24 UP Xtreme i12
- 14 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 24 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 59 UP Squared Pro
- 135 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 265 Starter Kits & Peripheral