How to convert P10 Led Dot matrix into 4 digit 7 Segment Display without changing in code

In project we are using the 16x32 LED Dot matrix whose inputs pins include A , B , Clk , SClk , En and Data pins which are coming from microcontroller.
I want to change the display into 4 digit 7 segment display and i am not allowed to change a single line in the code but i can add some additional components in the circuit.
Can it possible to conversion into 4 digit 7 segment display without changing in the code.
Can it be possible using MAX7219 IC or 74HC595 Shift Registers.
If possible please guide and also tell the connections of the components.

Is it possible w/o changing code? Probably. You'd likely end up adding a whole other microcontroller to do the translation from dot matrix to 7 segment. And you'd have to write a whole lot more code for that microcontroller to do it. It's bonkers, but you wouldn't have to change any of the original code.

But as a practical matter? No. I don't think it's practical.

Personally, I'd hand it back to the person making such absurd limitations and tell them to do it.

1 Like

Sounds like homework.

Ok
Then which library which is easy in programming i can use so that i have to amend the code very less.

There is no library to do what you want. You will have to write your own code.

1 Like

To replace a P10 matrix with a 7 segment display without changing the code you need

  • Capture the P10 data
  • OCR
  • Drive the 7 segment display

The MAX7219 seems to be suitable to drive 7 segments. Libraries to display "1234" are readily available.

When lucky the OCR part is simply looking at a few pixel and generating the string for the MAX library. This depends highly on what is currently displayed on the P10.

Now the capture part. You probably deal with 2x RGB, clock, latch, row select and enable. Around 11 lines. This is a challenge to handle this fast enough. I would go for an FPGA here.


Replacing the P10 with changing the code:

When lucky you only need to replace a few matrix.print(...) calls. But this depends on the code you already have.


To get better answers you need to show us your currently existing project. Code and schematics.

1 Like

Make up your mind. Are you allowed to change the code or not?

This is beginning to all sound very suspect.

2 Likes

Analyse the code.
I assume you are using a library for the P10 Display already.
Write down all used functions for the P10 Display.
Rewrite all functions of the P10 Library to work with a MAX7219.
If done properly, you don't need to change any line in the .ino file.
You only need to changes the used display library.

Thanks to all of you
I used the LedControl library and max7219 to drive 7 segment display
Interfacing 7 segment in place of P10 without changing code sounds very difficult

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.