SPI and led panel
Posted: Mon Jan 02, 2017 2:21 pm
Hello
I'm using 4x sure electronics led display (based on HT1632C chip with a 74HCT138N mux) with my raspi using SPI and after a while (4-10 hours) I got the last led panel that displays nothing. I need to halt raspi and restart it to make the panel works again
I tested a lot of thing thinking it was an issue in my code, but nothing gave result unfortunately
I suspect a spidev library issue but i don't know why.
My tests were to:
- change xfer2 function parameters (increase delay, change speed)
- add some pause in my code (time.sleep)
- change spi port frequency
I changed order of panels, and it's always the last one that stops working, so i suppose it's not a hardware issue.
Configuring my system with 3 led panels instead of 4 seems to work (i only tested 24 hours).
The problem seems to occur when i'm scrolling message permanently. If i display a static message, i can reproduce the problem. But the spi is used only once, when the message is displayed.
I got no errors when the panel is not working, my software still send data to it correctly (spi returns no error)
If someone have some ideas, i will take it
For now, i'm using writebytes instead of xfer2 closing/opening spi at each scrolling.
Thank you
I'm using 4x sure electronics led display (based on HT1632C chip with a 74HCT138N mux) with my raspi using SPI and after a while (4-10 hours) I got the last led panel that displays nothing. I need to halt raspi and restart it to make the panel works again
I tested a lot of thing thinking it was an issue in my code, but nothing gave result unfortunately
I suspect a spidev library issue but i don't know why.
My tests were to:
- change xfer2 function parameters (increase delay, change speed)
- add some pause in my code (time.sleep)
- change spi port frequency
I changed order of panels, and it's always the last one that stops working, so i suppose it's not a hardware issue.
Configuring my system with 3 led panels instead of 4 seems to work (i only tested 24 hours).
The problem seems to occur when i'm scrolling message permanently. If i display a static message, i can reproduce the problem. But the spi is used only once, when the message is displayed.
I got no errors when the panel is not working, my software still send data to it correctly (spi returns no error)
If someone have some ideas, i will take it
For now, i'm using writebytes instead of xfer2 closing/opening spi at each scrolling.
Thank you