PyoBot Robot Car

PyoBot

micro:bit 로봇카 보드 - MakeCode 블록 코딩으로 쉽게 배우는 로봇 프로그래밍

A micro:bit robot car board with MakeCode block coding support for easy robot programming education.

Open in MakeCode GitHub

Features

⚙

DC Motors

Control two DC motors independently. Forward, backward, turn left/right with adjustable speed (0–1023).

━

Line Sensor

Two IR line sensors (left/right) for line tracing. Detects black lines on white surfaces.

⚫

Ultrasonic

HC-SR04 ultrasonic distance sensor. Measure distance in centimeters for obstacle avoidance.

💡

LED

Left and right indicator LEDs. Control individually or together.

♫

Buzzer

Play tones at any frequency. Create melodies and sound effects for your robot.

↺

Servo

Control a servo motor (0–180°) on P2. Great for ultrasonic sensor scanning.

Getting Started

  1. Open makecode.microbit.org and create a new project.
  2. Click Extensions in the block toolbox.
  3. Paste https://github.com/pyocodingcompany-crypto/pyobot-makecode and press search.
  4. Click pyobot to add the extension. PyoBot blocks will appear in the toolbox.
  5. Connect your micro:bit to the PyoBot board and download your code!

Example: Line Tracing

basic.forever(function () {
  if (PyoBot.lineDetected(PyoLineSensor.Left)) {
    PyoBot.motorRun(PyoMotor.Left, PyoDirection.Forward, 1023)
  } else {
    PyoBot.motorStop(PyoMotor.Left)
  }
  if (PyoBot.lineDetected(PyoLineSensor.Right)) {
    PyoBot.motorRun(PyoMotor.Right, PyoDirection.Forward, 1023)
  } else {
    PyoBot.motorStop(PyoMotor.Right)
  }
})

Example: Obstacle Avoidance

basic.forever(function () {
  if (PyoBot.ultrasonic() < 15) {
    PyoBot.motorStop(PyoMotor.Both)
    PyoBot.motorTurn(PyoTurn.Right, 500)
    basic.pause(500)
  } else {
    PyoBot.motorRun(PyoMotor.Both, PyoDirection.Forward, 500)
  }
})

Pin Map

FunctionPin
LED Left / RightP3 / P4
BuzzerP0
Line Sensor Left / RightP6 / P7
Ultrasonic Trig / EchoP1 / P10
Motor Left (PWM, Dir)P8, P9, P13
Motor Right (PWM, Dir)P16, P14, P15
ServoP2
I2C (SCL / SDA)P19 / P20

Works with HuskyLens

PyoBot can be used together with DFRobot HuskyLens AI camera over I2C (P19/P20). No pin conflict — add both extensions to your project for AI-powered robot projects!

Purchase & Inquiry / 구매 및 문의

PyoBot 로봇카 보드 구매, 단체 주문, 수업 활용 문의는 아래로 연락주세요.

For purchase, bulk orders, or classroom use inquiries, please contact us below.