Modules - Device Drivers

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

Modules - Device Drivers

Postby 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

User avatar
fma
Posts: 156
Joined: Wed Jan 01, 2014 5:38 pm
Location: France

Re: Modules - Device Drivers

Postby 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: 260
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Postby 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: 260
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Postby Turbinenreiter » Tue Aug 05, 2014 9:16 am


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

Re: Modules - Device Drivers

Postby 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: 260
Joined: Sun May 04, 2014 8:54 am

Re: Modules - Device Drivers

Postby 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: 1639
Joined: Fri Jul 18, 2014 8:01 am

Re: Modules - Device Drivers

Postby 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


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

Re: Modules - Device Drivers

Postby 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: 1639
Joined: Fri Jul 18, 2014 8:01 am

Re: Modules - Device Drivers

Postby 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-examples/blob/master/encoder2.py
Peter Hinch


Return to “Hardware Projects”

Who is online

Users browsing this forum: No registered users and 2 guests