Pan-Tilt HAT examples
Quick Links:
We are happy to see your issus and pull request. Feel free to be apart.
Pan-Tilt HAT is a 2-axis Pan-Tilt kit for intelligent detection and free movement based on the Raspberry Pi. Built in a 5 megapixel camera and the Raspberry Pi extension board with 14 external interfaces, Pan-Tilt HAT can realize functions such as color detection, face detection, gesture detection and traffic sign detection, and can freely control the camera's turning around.
Download this repository to your Raspberry Pi:
cd ~
git clone https://github.com/sunfounder/pan-tilt-hat.git
cd ~/pan-tilt-hat
sudo python3 install.py
Run the example
cd ~/pan-tilt-hat/examples
sudo python3 xxx.py
Stop running the example by using Ctrl+C
More to see: https://docs.sunfounder.com/projects/pan-tilt-hat/en/latest/index.html
Click this link to view the real-time dynamics of the Raspberry Pi camera
Note to replace it with the IP address of your own Raspberry Pi
To edit, rewrite your own code, or just want to get debug messages. run the command:
sudo nano xxx.py
After your code is done, exit the text compiler via Ctrl+X and run the command:
sudo python3 xxx.py
SunFounder is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, SunFounder also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!
Ezblock is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, Ezblock also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!
This is the code for Pan-Tilt HAT. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa rranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Pan-Tilt HAT examples comes with ABSOLUTELY NO WARRANTY; for details checkout LICENCE. This is free software, and you are welcome to redistribute it under certain conditions; checkout LICENCE for details.
SunFounder, Inc., hereby disclaims all copyright interest in the program 'Pan-Tilt HAT examples' (which makes passes at compilers).
Mike Huang, 21 August 2015
Mike Huang, Chief Executive Officer
Email: service@sunfounder.com
website: ezblock.cc
E-mail: service@sunfounder.com