USB Serial Communication Using Raspberry Pi and Microbit

USB Serial Communication Using Raspberry Pi and Microbit

Introduction

To expand controller capability, sometimes it is necessary to communicate with other controllers. There have few common protocols in controller communication e.g. UART, I2C, SPI and etc. This tutorial will share on how to do the UART serial communication between Raspberry Pi and micro:bit through USB connection.

Video

This video shows how to do serial communication between Raspberry Pi and micro:bit over a USB connection.

 

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is python sample program for micro:bit (top) and Raspberry Pi (bottom). You can use mu editor to program micro:bit and Thonny Python IDE to run program in Raspberry Pi.

 

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."