Display/Expansion shield for STM32F4Disco

Showroom for MicroPython related hardware projects.
Target audience: Users wanting to show off their project!
Post Reply
User avatar
badi
Posts: 49
Joined: Mon Aug 10, 2015 2:18 pm
Location: Bern, Switzerland

Display/Expansion shield for STM32F4Disco

Post by badi » Fri Jul 01, 2016 5:00 pm

Hi
I build a expansion shield for the STM32F4Discovery Kit http://www.st.com/content/st_com/en/pro ... overy.html.

I added connectors for a 32x32 RGB LED matrix display (https://www.adafruit.com/products/1484) for an ITDB02 compatible 3.2'' LCD (http://shop.boxtec.ch/tft-lcd-screen-mo ... 41504.html) some PMODs (for GPS (https://www.embeddedartists.com/product ... cc_gps.php) and other RF modules(http://www.panstamp.com/). Further I added a LoRa RF module for wireless communication (http://www.hoperf.com/rf_transceiver/lora/RFM96W.html). The aim of this project is to evaluate the location resolved connection quality of different modulation techniques.

For the Led Matrix I added a C-Module (REPO https://github.com/tobbad/micropython branch led_matrix_support) which does the fast IRQ based refresh of the display, setting a pixel and filling the matrix with a certain color (has a configurable D=depth (R, G, B) x D bits). Therefore I modified timer.c to register a raw-C (not python) callback. I do not know if this code is of interest in the main repo, but is was fun doing it.

Python code can be found in https://github.com/tobbad/micropython_lib. The tetris can be easy ported to other displays - it just needs a pixel, clear and fill function (the start-function can be left as simple pass function without any functionality. In my C-Code it starts the interrupt driven update).

Have a look at:
https://vimeo.com/172953749
where I play tetris with 3000 LEDs.. :-)
badi

User avatar
badi
Posts: 49
Joined: Mon Aug 10, 2015 2:18 pm
Location: Bern, Switzerland

Re: Display/Expansion shield for STM32F4Disco

Post by badi » Sun Aug 07, 2016 2:00 pm

There was a question on SX127x/HopeRF RFM95 driver on my private message.

I am working on a infrastructure to develop the python driver on a PC while communicating to the low level SPI device on the micropython board over USB/VCP. This is work in progress and not yet finished.

There are some python drivers out there. In my repo@https://github.com/tobbad/micropython_lib there is a modified sx127x_a.py driver which I got from Mayer Analytics Ltd. and I adapted it in my sx127x.py code. But none of them - in my opinion - work.
badi

Post Reply