Skip to content

micropython classes and other code for components to be used with micro:bit

Notifications You must be signed in to change notification settings

rhubarbdog/microbit-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 

Repository files navigation

Components


Displays


ht16k33, generic i2c driver for 8x8 LED Matrix

https://github.com/mcauser/deshipu-micropython-ht16k33

LCD1602, generic i2c LCD driver for 16x2 ... 40x4 screens

https://github.com/rhubarbdog/microbit-LCD-driver

tm1637, 4 digit 7 segment LED display

https://github.com/mcauser/microbit-tm1637

Temperature, Humdity and Weather


TMP35, TMP36 & TMP37 - Measure temperature with an analog device

The TMP36 converts between an analog voltage and degrees celcius via the following code snippet. TMP35 and TMP37 use similar logic but have different parameters.

The TMP36 produces 750 mV at 25°C and has an output scale factor of 10 mV/°C

millivolts = pin0.read_analog() * 3300 / 1023
degrees = ((millivolts - 750) / 10) + 25

DHT11 - digitally measure temperature and humidity

https://github.com/rhubarbdog/microbit-dht11

DHT12 - digitally measure temperature and humidity over the i2c bus

https://github.com/mcauser/microbit-dht12

AM2320 - digitally measure temperature and humidity over the i2c bus

https://github.com/mcauser/microbit-am2320

Keypads, Keyboards and Generic Input devices


mpr121 capacative touch keypad

https://github.com/rhubarbdog/microbit-mpr121-keypad

Distance


HC-SR04 - ultrsonic range finder

https://github.com/fizban99/microbit_hcsr04

About

micropython classes and other code for components to be used with micro:bit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published