USB Serial Communication Using Raspberry Pi and Microbit

micro:bit talks to Raspberry Pi using USB serial communication.

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 better application.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

USB Serial Communication Using Raspberry Pi and Microbit
Record QR Data Into CSV Format Using Raspberry Pi
Reading QR Code Using Raspberry Pi Camera
Send Photo of Burglar To IoT Telegram Bot Using Raspberry Pi
Program PikaBot Using mBlock
Scroll to Top