Jump to content

need help lcd to 7 segments


reboot

Recommended Posts

You'll need to modify the program..

The LCD works by sending ASCII codes that describe which character to display (Google "ASCII Chart")

The LED digits work by lighting up to seven segments for each character. (Google "7 segment")

You'll need to build the drivers electronics, probably multiplexed.

You'll need to convert ASCII to 7 segment (Google "PIC table lookups, RETLW")

Modify the code to convert the ASCII values to 7 segment data, and drive each digit with the results.

Done!

Have Fun,

LyleHaze

Link to comment
Share on other sites

My French is not good enough to read the site. Is the source code available?

If it is, then you could use some of Philips' I2C to 7 segment driver chips, but you'll need to re-code it.

Translating LCD commands to a 7 segment set is a job for another processor at least - better to re-code the main firmware.

If the code is good, and structured, then the needed mods will not be that hard.

Is it a special type of clock? there are plenty of LED clock designs around, and I think there are some single chip ones still around as well, (though not sure if the do the date as well as the  time).

Link to comment
Share on other sites

Mike makes a good point

MOST of the display is numeric,  but the 2 letter "day of week" may not make the transition to seven segment very well..

If you can figure out how you want it to look in 7 seg, then OK, all patterns are possible for the PIC to drive.

Have Fun,

LyleHaze

Link to comment
Share on other sites

This is back to you for an answer.

You will have to change code no matter what.

YOU said you wanted to use 7 segment displays.

YOU said you need the days of the week.

Can you display the letters you need on seven segment displays?

Since I don't speak french, I don't know what letters you need.

You can light any combination of the seven segments, those are the only options available based on the information YOU gave.

There are 128 possible combinations of seven segments, including "all off".

You can use any combinations you want, but if you can't display it in those seven segments, then you will have to change one of the requirements you have given.

Here's a 2 digit 7 segment display (plus decimal points)

Is this enough to display each day of the week?

5988-2970EN.jpg

Also, you said you have 12 digits, but the display you are replacing seems to be using

16 digits, not including slashes and colons.

You'll need more digits, or less information, or a display that changes or scrolls the information.

Wow, I actually got an image to show!

Have Fun,

LyleHaze

Link to comment
Share on other sites

I grabbed the source for a look. Obviously built upon some other work: the comments are a mixture of French and English.

The difficult bits would probably be in the setting time and date mode, where more of the display is used.

It is possible to do, from the way the source is written, but it will be quite a lot of work.

A few things I googled up:

Max 6959 Project

These guys sell ready made I2C LED 7 segment modules

Or if you want to get really silly

A last thought: perhaps you could add a real time clock module to the 'MIDIbox monitor display system. Use the I2C clock design from the article you posted, then write the I2C read/write stuff and use that instead of the main loop in the monitor

Hope some of this helps.

Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...