10% Off For Your First Order, Code:Elephant10



Robot Kit for Micro:bit Tutorial: 7.4 Handle remote control

Posted by SuFiona on

Robot Kit for Micro:bit Tutorial: 7.4 Handle remote control

1.Preparation

1-1.Learn how to use  micro:bit handle

1-2.Learn how to communicate between the Tiny-bit robot car and the micro:bit handle

The handle is shown below. The communication between the Tiny-bit robot car and the micro:bit handle is the communication between two micro:bit boards. They use the wireless networking communication method.

image.png

Programming method:

Mode 1 online programming: First, we need to connect the micro:bit to the computer by USB cable. The computer will pop up a USB flash drive and click on the URL in the USB flash drive: http://microbit.org/ to enter the programming interface. Add the Yahboom package: https://github.com/lzty634158/Tiny-bit and https://github.com/lzty634158/GHBit to program.

Mode 2 offline programming: We need to open the offline programming software. After the installation is complete, enter the programming interface, click【New Project】, add Yahboom package: https://github.com/lzty634158/Tiny-bit and https://github.com/lzty634158/GHBit, you can program.

2.Learning goal

2-1. Learn about using Radio graphically programming blocks

2-2. Learn about using GHBit graphically programming blocks

2-3.Learn how to use micro:bit handle control Tiny bit robot car

3.Tiny bit code

The following is the location of the building blocks required for this programming.

 

image.pngimage.png

image.pngimage.png

image.pngimage.pngimage.png

The summary program is shown below:

image.png

image.png

image.png

image.png

5.Handle code:rocker control 

The following is the location of the building blocks required for this handle code programming.

image.png

image.png

image.png

image.png

image.png

The summary program of handle rocker control is shown below:

image.png

image.png

image.png

The summary program of handle gravity control is shown below:

image.png

image.png

5.Download code

 First, we need to download the microbit-Tiny-bit-code.hex to the micro:bit board on the Tiny-bit robot car.

Then, we need to download the handle control program (microbit-Handle_rocker_control.hex/microbit-Handle-gravity-control.hex) to the micro:bit board on the handle.

The code of the experiment: 4.Handle remote control(option).rar

Interacting with Tiny bit

0 comments

Leave a comment

Please note, comments must be approved before they are published