Modules - Device Drivers

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Modules - Device Drivers

Post by Turbinenreiter » Tue Jul 29, 2014 7:47 am

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

fma
Posts: 164
Joined: Wed Jan 01, 2014 5:38 pm
Location: France

Re: Modules - Device Drivers

Post by fma » Tue Jul 29, 2014 8:07 am

Very good idea! This trhead should be sticky...

Moderator Note: I made this thread sticky
Frédéric

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Post by Turbinenreiter » Sun Aug 03, 2014 5:44 pm

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

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Post by Turbinenreiter » Tue Aug 05, 2014 9:16 am


User avatar
kfricke
Posts: 342
Joined: Mon May 05, 2014 9:13 am
Location: Germany

Re: Modules - Device Drivers

Post by kfricke » Wed Aug 06, 2014 9:53 am

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!?

Turbinenreiter
Posts: 288
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Post by Turbinenreiter » Wed Aug 06, 2014 1:51 pm

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Modules - Device Drivers

Post by pythoncoder » Wed Aug 27, 2014 6:39 am

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
Peter Hinch
Index to my micropython libraries.


SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: Modules - Device Drivers

Post by SpotlightKid » Sun May 17, 2015 4:56 pm

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Modules - Device Drivers

Post by pythoncoder » Mon May 18, 2015 5:51 am

@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
Peter Hinch
Index to my micropython libraries.

Post Reply