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

microbit Tutorials

1.Learning goals

image.png  image.png

After you download the program,please the ultrasonic module on the side of the door. If the ultrasonic module is blocked by hand (simulating someone standing in front of the door), the servo will rotate 90 degrees to open the door. After two seconds, the door will automatically close. Let's try it together.

2.Preparation

Hardware:

●  1 x Micro:bit Board

●  1 x Micro:bit expansion board

●  1 x servo kit

●  1 x Ultrasonic

●  1 x door ( Owned )

●  4 x DuPont line female to male

●  3 x DuPont line male to male

●  1 x Power module

●  1 x Breadboard

●  1 x PC

●  1 x USB Cable

Then the micro:bit is connected to the computer through USB, and the computer will pop up a U disk and click the URL in the U disk to enter the programming interface.Input this URL https://github.com/lzty634158/yahboom_mbit_en to get the package.

3.handmade

image.png 

image.png 

In this lesson we will use the servos and ultrasonic module. Both VCCs must be connected to 5V.

How to distinguish the positive and negative of the servo?

The brown line of servo is the negative pole, the red line of servo is the positive pole, and the yellow line of servo is connected to P2. Ultrasonic TRIG is connected to P0, ECHO is connected to P1, and everyone can use the charging treasure to supply power to the 5v power supply module. The servo, ultrasonic and micro:bit negative (GND) must be connected to the GND of the power supply.

4.Search for blocks

image.png 

image.png 

image.png 

image.png 

image.png 

5.Combine blocks

image.png 

image.png


Arduino Tutorials
MSPM0G3507 turtorials

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/中文