yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
2DOF PTZ📖
0.About 2DOF PTZ
  • About 2DOF PTZ
1.PTZ Installation tutorial
  • PTZ Installation tutorial
2.Drive servo
180° Servo
  • Arduino Tutorials
  • microbit Tutorials
  • MSPM0G3507 turtorials
  • MSPM0G3519 turtorials
  • Raspberry Pi tutorials
  • Raspberry pico tutorials
270° Servo
  • Arduino Tutorials
  • Microbit Tutorials
  • MSPM0G3507 Tutorials
  • MSPM0G3519 Tutorials
  • Raspberry Pi Pico Tutorials
  • Raspberry Pi Tutorials
3.K230 module on PTZ
  • 1. PTZ face tracking
  • 2. PTZ color tracking
  • 3. Fruit sorting
  • 4. Rock-paper-scissors game
  • 5. Gesture control
  • 6. Human tracking alarm
  • 7. Moving target control and tracking
4.K210 module on PTZ
  • 1.2DOF PTZ Color Tracking
  • 2.2DOF Face Tracking
  • 3.2DOF Fruit sorting
Download ZIP

Welcome to 2DOF PTZ repository

Raspberry Pi tutorials

Instructions for use of 180 degree servo --- Raspberry Pi

1.Raspberry Pi pin diagram

2

2. Hardware wiring

1.Connect the red wire (positive pole) of the servo to the positive pole of the 7.4V battery 2.Connect the brown wire (negative pole) of the servo to the negative pole of the 7.4V battery 3.The yellow wire (signal wire) of the servo is connected to the physical pin of the Raspberry Pi motherboard (pin 33), BCM code (13) 4.The Raspberry Pi motherboard is powered, and any GND interface on the board is connected to the negative pole of the battery.

3.Upload and run the program

Upload the servo.py file in the folder to the root directory of the Raspberry Pi and enter the following command to run

python servo.py

4.Phenomenon

After running the program. The servo will rotate from 0-45-90-135-180-135-90-45-0.

MSPM0G3519 turtorials
Raspberry pico tutorials

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文