Resources — python

Connecting I2C Devices to the BBC micro:bit

APDS-9960 BBC micro:bit DFRobot I2C micro:bit microbit MicroPython Python Sensors

Connecting I2C Devices to the BBC micro:bit

The BBC micro:bit supports the I²C bus protocol, for communicating with other devices. In this post, I've used MicroPython to demonstrate, but the principles can easily be translated to lower and higher level languages. Objectives: To the micro:bit's minimal I2C commands to interact with a device eg a sensor - so we can use other configurable sensors with the micro:bit, even when there's not already an appropriate MicroPython module available. Requirements: a logic analyser or bus pirate to observe communications (optional) basic understanding of MicroPython a BBC micro:bit Kitronik Edge Connector for the micro:bit electronic jumper leads sensor eg DFRobot SEN0187...

Read more →