Page 1 of 3

Modules - Device Drivers

Posted: Tue Jul 29, 2014 7:47 am
by Turbinenreiter
Let's collect all the modules written to work with external devices!

micropython-BMP180
The BMP180 is a pressure and temperature sensor, with a good enough resolution to act as altimeter.
http://wiki.micropython.org/BMP180

TMP102 temperature sensor
http://forum.micropython.org/viewtopic.php?f=5&t=154

HC-SR04 and SRF04 ultrasonic sensors
http://forum.micropython.org/viewtopic.php?f=5&t=201

MPL115A2 barometric pressure sensor
http://forum.micropython.org/viewtopic.php?f=5&t=159

Let's also add them to the wiki!
http://wiki.micropython.org/Home

Re: Modules - Device Drivers

Posted: Tue Jul 29, 2014 8:07 am
by fma
Very good idea! This trhead should be sticky...

Moderator Note: I made this thread sticky

Re: Modules - Device Drivers

Posted: Sun Aug 03, 2014 5:44 pm
by Turbinenreiter
On the wiki, you can find code for:

General Pulsed Width Modulation

Adafruit RPi CharLCDPlate

TI SN 754110 Quad H-Bridge dual DC Motor Driver

NXT Lego Motor Driver

Also displays:

http://forum.micropython.org/viewtopic.php?f=2&t=238
https://github.com/dhylands/python_lcd

Re: Modules - Device Drivers

Posted: Tue Aug 05, 2014 9:16 am
by Turbinenreiter

Re: Modules - Device Drivers

Posted: Wed Aug 06, 2014 9:53 am
by kfricke
You do link to an 9DOF BMP9150 IMU sensor module, but the README.md in that repository does link to the BMP180 barometric preassure sensor breakout board at Adafruit!?

Re: Modules - Device Drivers

Posted: Wed Aug 06, 2014 1:51 pm
by Turbinenreiter
oh, thank's, will fix that. wrong link.
i copied the body of the readme from my bmp180 module to get consistent looks.

there also may or may not be an undefinded number of bugs in the module. also it's just basic functionality.

Re: Modules - Device Drivers

Posted: Wed Aug 27, 2014 6:39 am
by pythoncoder
Generic scheduler using cooperative multi-threading with example libraries using threaded code for these devices: debounced switches/pushbuttons and LCD displays based on the Hitachi HD4480 controller and wired using the four wire parallel interface. This library is intended as a framework for writing your own threaded device drivers and applications.
https://github.com/peterhinch/Micropython-scheduler

Regards Pete

Re: Modules - Device Drivers

Posted: Wed Nov 12, 2014 11:42 am
by Architekt

Re: Modules - Device Drivers

Posted: Sun May 17, 2015 4:56 pm
by SpotlightKid
Another HD44780-compatible LCD controller library:

https://github.com/SpotlightKid/micropy ... master/lcd

A library to read rotary encoders:

https://github.com/SpotlightKid/micropy ... er/encoder

Uses gray code error checking using the technique described here, so usually hardware or software debouncing is not needed.

A library to send and receive MIDI data via the UARTs or the USB virtual serial interface:

https://github.com/SpotlightKid/micropy ... aster/midi

The latter is currently not tested very much.

Re: Modules - Device Drivers

Posted: Mon May 18, 2015 5:51 am
by pythoncoder
@SpotlightKid The LCD and MIDI libraries look very useful but I think beginners reading this should be aware that the Pyboard hardware supports reading quadrature encoders: this has recently been made accessible via the pyb Timer class. A hardware based solution offers several benefits over any software implementation. https://github.com/dhylands/upy-example ... ncoder2.py