Real time accelerometer display from three BBC Micro:bits

How to plot real-time sensor data from three BBC micro:bits.

Please find a video showing this in action below. On the screen to the right of the juggling clown, you can see the accelerometer data. Each BBC micro:bit has a three-axis accelerometer in it. I get the averaged acceleration value from all three axes from each micro:bit. On the screen, three are three traces, one for each micro:bit. As the boards are juggled, the accelerometer values are sent by radio to a receiver micro:bit connected to the computer. This micro:bit acts as a bridge between the juggled micro:bits and the computer. The accelerometer data is plotted real time using a Python script, using the pyqtgraph library.

Leave a Reply

Your email address will not be published. Required fields are marked *