Chapter 9 of KitiBot-Microbit

From Waveshare Wiki
Jump to: navigation, search

2.4G Communication

You need at least two micro:bit for 2.4G testing

First we should add the package for 2.4G, note that its package could not be used with Bluetooth at the same time.

Add package for radio.png

There are three types of radio blocks. Send, receive and initial

note: you should set the boards to the same wireless group for normal communication

Radio class.png

Buttons

---

Radio code.gif

Radio code-1.png

Press button A or B of one micro:bit, and another will show characters A or B on LED matrix

Radio control KitiBot


Joystick board.png

We have learned how to use radio above, here we learn to use radio to control KitiBot by the module Joystick for micro:bit.

To use the Joystick for micro:bit, you need to install WSJoyStick package.https://github.com/waveshare/JoyStick

Add package for joystick microbit.gif

The block in WSJoyStick package are: Initialize block JoyStickInit, Key detect block Key P Press and DIR dir NONE block.

Blocks in joystick package.png

Related Pages