This article is contributed. See the original author and article here.

This is a look back at a blog post from Nonki


Originally written on 08/28/2017.


 


BBC micro:bit is a small board computer for kids.  Today I’d like to introduce two programs that communicate between a micro:bit and a PC.


 


The micro:bit side program is thermometer which is programed with JavaScript Blocks Editor.  This program shows temperature at A button clicked and sends temperature to serial port when the temperature changed.


 


makecode.microbit.org_-300x187.png 


 


The PC side program is Thermometer.sb which receives temperature from serial port and shows it graphically.  The picture below shows Device Manager, Thermometer.sb and chibi:bit (a micro:bit compatible board).


 


chibibit-300x225 (1).jpg


 


Before running Thermometer.sb, please check the port number in Ports (COM & LPT) such like COM3 with Device Manager.  And modify line 88 of Thermometer.sb.  Then push reset button and push A button of micro:bit.


 


Have fun with Small Basic and micro:bit!


See Also


Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.

%d bloggers like this: