Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64 x 64 FM6126A panel not working #73

Closed
fnascorral opened this issue Feb 13, 2019 · 11 comments
Closed

64 x 64 FM6126A panel not working #73

fnascorral opened this issue Feb 13, 2019 · 11 comments

Comments

@fnascorral
Copy link

I am trying very hard to make work a 64 x 64 panel with a FM6126A register shifter, unfortunately without success. I see you updated this library to support this chip.
I am using an ESP32 dev board, the panel is connected per instruction to the ESP32, but using 74HCT245 as voltage level shifters (without them the panel stays black).
Trying the pixeltime example.
I set width and height to 64. setScanPattern and setMuxPattern to default.
display.begin(32) and setDriverChip(FM6126A)
I am running in some issues.
With these setting the ESP32 crashes because a triggered watchdog.
if I change the timerAlarmWrite value (line 99 on pixeltime.ino) from 2000 to a large value like 3000 I don't get the crash anymore but the led matrix shows just some random color lines. The panel is properly grounded. I tested two different same model panels with same results.

Any suggestions?

@fotosettore
Copy link

fotosettore commented Feb 15, 2019

go here : #53
Dominic and Dave are working about it ...

@fnascorral
Copy link
Author

Glad to hear... be glad to help with testing or anything else is needed

@fnascorral
Copy link
Author

fnascorral commented Feb 16, 2019

Ok I did some more testing and checked the signals with a scope:

Pattern test:
red: skips first 16 led, then ok
Yellow: first 16 led display green, then yellow completes ok
White: remains yellow

On the scope I watched CLK and pin R1 and I can see clock signals and data getting clocked on R1. Sorry I don't have a logic analyzer to verify proper timings.

pixtime:

On the scope I do not see any clock signal or data getting clocked on R1. ESP32 is not crashed or at least I don't see a crash dump on the serial port

@2dom
Copy link
Owner

2dom commented Feb 22, 2019

The crashing has todo with to much time spent in the display update function - just use larger values as you did. Regarding the random colors - try properly resetting the entire set-up a few times (power off, press reset on the ESP). Make sure the panel is powered when the ESP is booting up.

We send some configuration data to the FM6126A chip at start-up and it seems to very picky when it accepts it ...

@fnascorral
Copy link
Author

fnascorral commented Feb 23, 2019

The crashing has todo with to much time spent in the display update function - just use larger values as you did. Regarding the random colors - try properly resetting the entire set-up a few times (power off, press reset on the ESP). Make sure the panel is powered when the ESP is booting up.

We send some configuration data to the FM6126A chip at start-up and it seems to very picky when it accepts it ...

Tried that. What I don't understand is with the same setup: ESP32 connected to the panel HUB75 as per instructions but through 74HCT245 level shifters if I run the pattern test I clearly see the clock signal and R1 data being clocked on the oscilloscope. If I run the pixtime sample there is no clock signal on the scope nor data sent to R1. This is with the time increased to 3000 and no obvious crash.

Also on the pattern test sample the first 16 led on the red pattern remains off

@2dom
Copy link
Owner

2dom commented May 9, 2019

What time increased to 3000, show time? That won't work.

@kkaoo
Copy link

kkaoo commented Jun 27, 2019

ESP32 & FM6126A latch signed, You can use bit transfer:
SPI.transferBits(v, NULL, 5);
digitalWrite(_LATCH_PIN,HIGH);
SPI.transferBits(v>>5, NULL, 3);
digitalWrite(_LATCH_PIN,LOW);

https://github.com/kkaoo/PxMatrix.git

@fnascorral
Copy link
Author

Thank you kkao your lib works better but still not there. On pixeltime sketch I have a red scrolling text which is better than a black panel. I connected the panel directly so the pins are driven at 3V. This weekend I am going to try to use level shifters and drive the panel pins at 5V and see if it makes a difference.

@kkaoo
Copy link

kkaoo commented Jul 5, 2019 via email

@kkaoo
Copy link

kkaoo commented Jul 5, 2019

Thank you kkao your lib works better but still not there. On pixeltime sketch I have a red scrolling text which is better than a black panel. I connected the panel directly so the pins are driven at 3V. This weekend I am going to try to use level shifters and drive the panel pins at 5V and see if it makes a difference.

I just tested pixeltime sketch, which works fine, but there are two things to note:

"B12a = 0 b0111100011111111; // brightness: low "comment out, because the low brightness setting seems to skew the panel.

I don't have to rewrite setFastUpdate () and setBrightness () related parts, to join shouldn't be hard, you can try to get more perfect results.

@2dom
Copy link
Owner

2dom commented Oct 19, 2019

Check out the newest master with ESP32 ... should work now

@2dom 2dom closed this as completed Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants