question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Odd behaviour when using luma.ledmatrix on Unicorn 8x8 HAT

See original GitHub issue

Description

The following code works, but get sporadic behaviour - most commonly missed pixels:

import time

from luma.led_matrix.device import neopixel, UNICORN_HAT
from luma.core.render import canvas

device = neopixel(width=8, height=8, mapping=UNICORN_HAT)

for y in range(device.height):
    for x in range(device.width):
        with canvas(device) as draw:
            draw.point((x, y), fill="green")
        time.sleep(0.5)

Any observations and patterns

On launch, the entire HAT will light up briefly. Sometimes it’s white/bright colours, sometimes it’s a random selection of colours. Green dot begins moving across the display, but after a short while - usually by line #3 or #4 it will start ‘jumping’ (missing pixels).

Your device type (PiZero / 2B / 3B, etc)

Pi 3B (less than a week old), no mods other than the HAT itself.

OS and kernel version (paste output of uname -a)

Linux ninja 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux

$ cat /etc/*-release

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

No mods other than enabled SPI, disabled boot to Desktop Manager and enabled SSH

Output of dmesg after running the demos

Do you want entire output? Ok to paste in comments?

What amp rating does the power supply provide?

2.5A (https://www.amazon.co.uk/gp/product/B01M03T0UB/ref=oh_aui_detailpage_o01_s00?ie=UTF8&psc=1)

What other peripherals are connected? screen, keyboard, mouse, WIFI, etc?

None - just power and the HAT. Wifi is built-in on Pi 3. Pi is accessed via SSH.

Do you get the same erratic behaviour if you use the official Pimoroni drivers?

No, these work consistently fine.

On the 8x4 Unicorn pHAT, I had to solder the header on - is this the same for the 8x8 HAT? - if so check for any bad solder joints

No, arrived complete and good to go.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fullphatcommented, Feb 8, 2017

Gents - apologies - been maxed out with work. Give me a few days and I’ll do some videos and try out the branched library.

1reaction
fullphatcommented, Aug 18, 2017

Apologies all - I’ve since purchased the HD Hat and have been using the Pimoroni/PIL libraries to run it. Will try to get back to testing this but I’m rammed right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Luma.LED_Matrix: Display drivers for MAX7219, WS2812 ...
Support both common-row anode and common-row cathode LED matrices. 2017/02/02. 0.4.3. Add translation mapping to accomodate Pimoroni's 8x8 Unicorn HAT.
Read more >
luma.led-matrix - Python Package Health Analysis - Snyk
Python 3 library interfacing LED matrix displays with the MAX7219 driver (using SPI), WS2812 (NeoPixels, inc Pimoroni Unicorn pHat/Hat and Unicorn Hat HD) ......
Read more >
Untitled
Rgb led matrix 8x8 square, Agiter en anglais, Orchard road map singapore city, Viburnum varieties uk, 11th admission in pune 2014-15, Tu-134a3, ...
Read more >
Untitled
Mens robe with initials, Dj rashad footwork! Ph of vinegar 4, Xtrc-01, Midtown cinema, Outcasts motorcycle club uk, Anjali devi geet, Bear tail...
Read more >
ZPg - ALBA.Net
Mieszkanie rotmistrzowska, El mal llevado miguel figueroa, Sailor hat paper, ... Therapure hepa air purifier 540, Episode 7, Honda unicorn new model 2015, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found