reboot Posted June 25, 2009 Report Share Posted June 25, 2009 hellothe project is a clocki built this one :http://pagesperso-orange.fr/fabrice.sincere/cm_electronique/projet_pic/RTC/RTC_I2C.htmmy problem : i need to use 12 x 7 segments digits , not the lcd sorry to ask some help but i'm stuckthank you Quote Link to comment Share on other sites More sharing options...
reboot Posted June 26, 2009 Author Report Share Posted June 26, 2009 nobody ? Quote Link to comment Share on other sites More sharing options...
lylehaze Posted June 26, 2009 Report Share Posted June 26, 2009 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 Quote Link to comment Share on other sites More sharing options...
TheAncientOne Posted June 26, 2009 Report Share Posted June 26, 2009 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). Quote Link to comment Share on other sites More sharing options...
lylehaze Posted June 26, 2009 Report Share Posted June 26, 2009 Mike makes a good pointMOST 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 Quote Link to comment Share on other sites More sharing options...
reboot Posted June 27, 2009 Author Report Share Posted June 27, 2009 in fact i don't need to use the day of the week do i have to change the main code and a bit of hardware ?ordo i have to use 1 or 2 max 7221 for exemple without change code ?thank you again Quote Link to comment Share on other sites More sharing options...
lylehaze Posted June 27, 2009 Report Share Posted June 27, 2009 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?Also, you said you have 12 digits, but the display you are replacing seems to be using16 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 Quote Link to comment Share on other sites More sharing options...
TheAncientOne Posted June 27, 2009 Report Share Posted June 27, 2009 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 ProjectThese guys sell ready made I2C LED 7 segment modulesOr if you want to get really sillyA 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 monitorHope some of this helps.Mike Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.