yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Tiny:bit Pro📖
0.First Trial and Assemble
  • 1.0 Installation Video
  • 1.1 First Trial
1.Preparation before programming
  • 1.Online programming
  • 2.Offline programming
  • 3.Python Programming
  • 4.Import Tiny:bit library
  • 5.Tiny:bit MicroPython API
  • 6.How to download program
2.Lighting with Tiny bit
  • 3.1 LED light
  • 3.2 RGB Searching light
  • 3.3 RGB light exchange lighting
  • 3.4 LED light exchange lighting
  • 3.5 Breathing light
3.Singing withTiny bit
  • 4.1 Playing internal music
  • 4.2 Play Merry Christma with lights
4.Running with Tiny bit
  • 5.1 Advance
  • 5.2 CarRun
  • 5.3 Control speed
  • 5.4 Dancer
  • 5.5 Route plan
5.Playing with Tiny bit
  • 6.1 Measuring worker
  • 6.2 Distance control light
  • 6.3 Ultrasonic obstacle avoidanc
  • 6.4 Magic hand
  • 6.5 Radar detector
  • 6.6 Playing black paino
  • 6.7 Tracking
  • 6.8 Voice control light
  • 6.9 Coward
  • 6.10 Musical rhythm
  • 6.11 Listener
  • 6.12 Wobble when touch
  • 6.13 Spinning top
  • 6.14 Frog beating
  • 6.15 Adventure car
6.Interacting with Tiny bit
  • 7.1 IR Control
  • 7.2 Android bluetooth APP control
  • 7.3 iOS bluetooth APP control
  • 7.4 Handle remote control
7.MicroPython course
  • 1.Hello,World
  • 2.Display built-in image
  • 3.Display custom image
  • 4.Display custom animation
  • 5.Button game
  • 6.Play built-in music
  • 7.Car Headlights
  • 8.Drive Motor
  • 9.Tracking
  • 10.Sound sensor
  • 11.Ultrasonic
  • 12.IR control
  • 13.LED light
8.AI vision course
1. Preparation
  • 3.12.1 K210 Identification Information and Adjust
  • 1. K210 module download code
  • 1.2 Parsing K210 protocol data
  • 1.3 microbit connection use
2. Basic course
  • 2.1 Color recognition
  • 2.2 Barcode recognition
  • 2.3 QR code recognition
  • 2.4 Machine code recognition
  • 2.5 Object recognition
  • 2.6 Learning and classification
  • 2.7 Mask warning
  • 2.8 Facial recognition
  • 2.9 Handwriting digit recognition
3. Tinybit course
  • 3.1 Color response
  • 3.2 Barcode recognition
  • 3.3 QR code recognition
  • 3.4 Object detection
  • 3.5 Signposting action
  • 3.6 Mask Testing
  • 3.7 Face Detection
  • 3.8 Handwritten digital control
  • 3.9 Color patrol
  • 3.10 Machine code following
  • 3.11 Color tracking
  • 3.12.2 Autopilot
9.Charging and Battery
  • Charging and Battery
Download
  • APP(Android/iOS)
  • Code
  • Manual
  • Hardware Info
  • APP communication protocol
  • RoadSign File
  • Bluetooth Remote Control with ultrasonic V2.hex
  • Bluetooth Remote ControlV1.5.hex
  • Bluetooth Remote Control with ultrasonicV1.5.hex
  • IR control V1.5.hex
  • IR control V1.5.hex
  • IR control V2.hex
  • Tiny:bit V1 MicroPython Library
  • Tiny:bit V2 MicroPython Library
  • Tiny:bit MicroPython API
Download ZIP

Welcome to Tiny:bit Pro repository

1.2 Parsing K210 protocol data

1. K210 building blocks

URL for k210 library: https://github.com/YahboomTechnology/K210-Module

1

2. Block types

Number type blocks: face recognition, handwritten numbers, self-learning detection, height, width, X-axis, Y-axis

String type blocks: face detection, object detection, machine code id, mask detection, machine code detection, colour recognition, QR code detection, barcode detection

3. Building Blocks Introduction

02

face_detect scan return: return "Y" when face is detected; return "N" when no face is detected.

03

Apriltag_id return: return the ID value of the recognized machine code.

03

handwriting_number return: can return 0-9, total 10 numbers. It will return -1 if there is no recognition.

03

self_learning scan return: it will return the class id (there are three classes for autonomous learning, and the ids are 1, 2 and 3 respectively).

03

object_detct scan return: it can return the id of a specific object.

20 kinds of objects can be detected: "Aircraft", "Bicycle", "Bird", "Boat", "Bottle", "Bus", "Car", "Cat", "Chair", "Cow", "Dining Table", "Dog", "Horse", "Motorbike", "Person", "Potted Plant", "Sheep", "Sofa", "Train", "TV Screen".

03

face_reg scan return: return the id of the recognized face, when unregistered face is recognized it will return -1, by default it will return -2.

03

face_mask scan return: Returns "Y" when the face is recognized as wearing a mask, and "N" when the face is recognized as not wearing a mask.

03

Apriltag scan return: it will return all the contents of the machine code (family code + id).

03

color scan return: it can return the first capital letter of the four colors of red, yellow, blue and green ("R", "G", "B", "Y").

03

QRcode scan return: Returns the content of the QR code.

03

Barcode scan return: returns the content of the barcode.

03

reg_H return/reg_W return/reg_Y return/reg_X return: returns the height and width of the color block as well as the X-axis and Y-axis values.

03

init_SerialPort: initialize the serial port pins, P1 is TX, P2 is RX. baud rate is 115200.

4. Receiving blocks

When receiving blocks, we need to do some processing.

String type blocks, you can refer to the following figure to receive:

6

Numeric type blocks can then be received in the same way as shown below:

7

K210 module download code
microbit connection use

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

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文