Modules - Device Drivers
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Modules - Device Drivers
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
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
Very good idea! This trhead should be sticky...
Moderator Note: I made this thread sticky
Moderator Note: I made this thread sticky
Frédéric
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: Modules - Device Drivers
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
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
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: Modules - Device Drivers
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!?
-
- Posts: 288
- Joined: Sun May 04, 2014 8:54 am
Re: Modules - Device Drivers
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.
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.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Modules - Device Drivers
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
https://github.com/peterhinch/Micropython-scheduler
Regards Pete
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Modules - Device Drivers
Driver for WS2812 RGB LEDs (NeoPixels, ...)
http://forum.micropython.org/viewtopic.php?f=5&t=394
https://github.com/JanBednarik/micropython-ws2812
Driver for AdaFruit 8x8 LED Matrix
http://forum.micropython.org/viewtopic.php?f=5&t=405
https://github.com/JanBednarik/micropython-matrix8x8
http://forum.micropython.org/viewtopic.php?f=5&t=394
https://github.com/JanBednarik/micropython-ws2812
Driver for AdaFruit 8x8 LED Matrix
http://forum.micropython.org/viewtopic.php?f=5&t=405
https://github.com/JanBednarik/micropython-matrix8x8
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Modules - Device Drivers
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.
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.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Modules - Device Drivers
@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.
Index to my micropython libraries.