PixelTime icon indicating copy to clipboard operation
PixelTime copied to clipboard

Using the new lib "PxMatrix" instead of the old "P10_matrix"

Open obakuhl opened this issue 7 years ago • 11 comments

I've tried to use the new "PxMatrix" lib instead of the old "P10_matrix". So i've changed following row apart from the inclusion of the new lib from:

P10_MATRIX display(P_LAT, P_OE,P_A,P_B,P_C); to PxMATRIX display(32,16, P_LAT, P_OE,P_A,P_B,P_C);

But it doesnt work. In the beginning it appears only pixel "porridge" instead of "Pixel Time" sign and after that the leds are dark. Do i have to changed another row in the code too?

The reason behind that is the leds are flickering little bit, i've changed the cpu frequency to 160 MHz, but it doesnt help. I'm hoping this is eliminated with the new lib.

Thanks.

obakuhl avatar Apr 14 '18 14:04 obakuhl

Hi,

did you specify the correct pattern in the display.begin() call. If you have a green 1/4 scan display you would call display.begin(4).

Best

Dom

Sent from my iPhone

On 14. Apr 2018, at 16:35, obakuhl [email protected] wrote:

I've tried to use the new "PxMatrix" lib instead of the old "P10_matrix". So i've changed following row apart from the inclusion of the new lib from:

P10_MATRIX display(P_LAT, P_OE,P_A,P_B,P_C); to PxMATRIX display(32,16, P_LAT, P_OE,P_A,P_B,P_C);

But it doesnt work. In the beginning it appears only pixel "porridge" instead of "Pixel Time" sign and after that the leds are dark. Do i have to changed another row in the code too?

The reason behind that is the leds are flickering little bit, i've changed the cpu frequency to 160 MHz, but it doesnt help. I'm hoping this is eliminated with the new lib.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

2dom avatar Apr 14 '18 14:04 2dom

Hi Dom, thanks for your reply. Oh i didnt see this. Now its working. Thanks. But there has to be an other error now, because the ESP is always restarting and it only appears "Pixel Time", nothing for a few seconds, "Pixel Time", etc.

br Ben

obakuhl avatar Apr 14 '18 15:04 obakuhl

Are you using

PxMatrix https://github.com/2dom/PxMatrix/examples https://github.com/2dom/PxMatrix/tree/master/examples/pixeltime https://github.com/2dom/PxMatrix/tree/master/examples/pixeltime/pixeltime.ino ?

Sounds like you are using the examples form the old library

Best

Dom

On 14. Apr 2018, at 17:27, obakuhl [email protected] wrote:

Hi Dom, thanks for your reply. Oh i didnt see this. Now its working. Thanks. But there has to be an other error now, because the ESP is always restarting and it only appears "Pixel Time", nothing for a few seconds, "Pixel Time", etc.

br Ben

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2dom/PixelTime/issues/1#issuecomment-381336969, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4vjENLr95EtDDYROGPNkvLn1kfMusaks5tohVugaJpZM4TVFvg.

2dom avatar Apr 14 '18 15:04 2dom

Well the examples are working but i'm failing with this PixelTime sketch (PixelTime.ino) and not with the examples of PxMatrix. I've changed the ticker period from 0.001 to 0.002 (like in the example), but it's still restarting.

br Ben

ps: maybe its not working with the new lib, but i think it would remove the flickering.

obakuhl avatar Apr 14 '18 15:04 obakuhl

I see,

I suggest trying out https://2dom.github.io/PixelTimes/ https://2dom.github.io/PixelTimes/

This is an animated picture frame but also includes the weather clock (can be selected via PRGM button). It uses PxMatrix by default.

Best

Dom

On 14. Apr 2018, at 17:52, obakuhl [email protected] wrote:

Well the examples are working but i'm failing with this PixelTime sketch (PixelTime.ino) and not with the examples of PxMatrix. I've changed the ticker period from 0.001 to 0.002 (like in the example), but it's still restarting.

br Ben

ps: maybe its not working with the new lib, but i think it would remove the flickering.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2dom/PixelTime/issues/1#issuecomment-381338708, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4vjParCRAxYw0txLU_UanELrxJjxWFks5tohs7gaJpZM4TVFvg.

2dom avatar Apr 14 '18 15:04 2dom

Great, now its working. But its still flickering (high frequently). Is this "normal"?

br Ben

obakuhl avatar Apr 14 '18 16:04 obakuhl

Great!

Well, mine is also flickering a tiny bit. However, if I install a (paper) diffusor and don’t sit right in front of it, I cannot really see it.

Is it that sever with yours?

Best

Dom

On 14. Apr 2018, at 18:17, obakuhl [email protected] wrote:

Great, now its working. But its still flickering (high frequently). Is this "normal"?

br Ben

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2dom/PixelTime/issues/1#issuecomment-381340557, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4vjBulHHrZxi6sWtG0WyP2aVvUee_Fks5toiEXgaJpZM4TVFvg.

2dom avatar Apr 14 '18 16:04 2dom

Not that bad, but it's noticeable. Does it depends on the brightness of the leds or on the power supply? I've tried several usb adapters (1A-2A), but this doesnt improve anything.

br Ben

obakuhl avatar Apr 15 '18 09:04 obakuhl

Hi,

I don’t think this is a power supply issue. I think that sometimes background tasks on the ESP8266 may prevent the display.update to update in time.

Things that you may try to eliminate flicker are:

  • User a proper real-time OS (there is free-rtos for the ESP8266 if I am not mistaken)
  • Reduce the number of colour levels
  • Only use saturated colors (red, green, blue, yellow, cyan, megenta, white) and set number of colour levels to 1

Hope that helps!

Dom

On 15. Apr 2018, at 11:07, obakuhl [email protected] wrote:

Not that bad, but it's noticeable. Does it depends on the brightness of the leds or on the power supply? I've tried several usb adapters (1A-2A), but this doesnt improve anything.

br Ben

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/2dom/PixelTime/issues/1#issuecomment-381391499, or mute the thread https://github.com/notifications/unsubscribe-auth/AD4vjJttc14I6GwlVyDf_1glAxTsSGDlks5tow3sgaJpZM4TVFvg.

2dom avatar Apr 15 '18 17:04 2dom

Thank you for your reply. I will try it and let you know it.

Br Ben

obakuhl avatar Apr 16 '18 08:04 obakuhl

Thank you @obakuhl, I fixex the flickering issue by using PxMatrix lib and "double_buffer"ing.

wyojustin

wyojustin avatar Dec 14 '19 18:12 wyojustin