EasyManua.ls Logo

Waveshare Pan-Tilt HAT - Servo and Light Sensor Examples; BCM2835 Examples; WiringPi Examples; Python Examples

Default Icon
17 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...
Pan-Tilt HAT User Manual
Version: V1.0.0; Date: 2019.03.16 10 / 17
SERVO AND LIGHT SENSOR
To run the Servo Driver and Light Sensor examples. Please enter the folder and using
following commands to execute programs:
BCM2835 examples:
cd bcm2835
sudo ./main
wiringPi examples:
cd wiringpi
sudo ./main
Python examples:
sudo python main.py
Note: If it prompt that files is not exist when running bcm2835 or wiringpi codes,
please first execute command make and try again.
CAMERA
To use camera, you need to fist do settings
1. Connect Camera to Raspberry Pi
2. Enable Camera
sudo raspi-config