EasyManua.ls Logo

ADEEPT PiCar-B - Page 64

ADEEPT PiCar-B
81 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
www.adeept.com
60
Now you’ve already enabled I2C, move on to enable Camera.
sudo raspi-config
Click through:
5 Interfacing Options ->P1 Camera ->Yes ->OK ->Finish ->Yes
Reboot the Raspberry Pi. If it does not reboot automatically, type in the following
command:
reboot
Then the I2C and Camera module are both enabled.
After the Raspberry Pi is rebooted, type in the following commandtocheckthatthe
module has been enabled:
lsmod | grep i2c
If the following contents are shown, it indicates the module isenabledsuccessfully.
6.Install I2C-Tools
Install I2C-Tools to check whether the external devices are connected successfully as well
as the address of the devices. Type in the command to install:
sudo apt-get install i2c-tools
Install the Python drive program for PCA9685:
sudo pip3 install adafruit-pca9685
To install the library from source, so that you can use the PCA9685 PWM servo/LED
controller with a Raspberry Pi.
Look for more information and example at its homepage:
https://github.com/adafruit/Adafruit_Python_PCA9685/

Related product manuals