View previous topic :: View next topic |
Author |
Message |
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Thu Sep 06, 2012 11:03 pm Post subject: Poor man's Rolex.... |
|
|
Made a clock with an Arduino Mega, displayboard + clock and a 2.4 inch ILI9325D driven display. It is a clock which shows the time in clear text. It refreshes the display three times a minute so it is a bit alive.
In the code SIX1 wrote for the ILI9320 and I adapted for the ILI9325 there are some pre-defined colors. The gray3 color can hardly be seen, and the idea was to have all words displayed in this gray3 color at the back and have them light up in yellow.
Here the steps from Arduino Mega to a well looking 'Rolex' that fits very well as a desk clock. The text is Dutch, fetched from a lookup-table so can be in any language.
The main screen.
It has a touchscreen, so by tipping the screen you get an option to adjust date and time.
The building of the clock.
The display + clock shield has a DS1337 clockchip with battery.
Plexiglas painted on the inside.
And finished, the Poor Man's Rolex...
Have fun
Ben Zijlstra |
|
Back to top |
|
|
six1
Joined: 27 Feb 2009 Posts: 553
|
Posted: Fri Sep 07, 2012 5:34 am Post subject: |
|
|
Ok, Rollex is beaten. They will lose all their customers.
Ben that's very creativ!
but don't forgett to enjoy the rest of your holidays!
best, Michael _________________ For technical reasons, the signature is on the back of this message. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Sep 07, 2012 9:24 am Post subject: |
|
|
hi Ben and Theo,
I had seen some pictures already and it is nice to see the other project images about the casing too so thanks for uploading them.
While not suited for the wrist , i think this is great clock. It is unique and hand made.
This is the kind of clock i can imagine one could buy in a special gift shop where they sell rare and special items.
Maybe you should get patent before they are produced elsewhere in the world
And one remark: can you also include the code on the bascom forum since this is the 'share code' section ? _________________ Mark |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Fri Sep 07, 2012 10:10 am Post subject: the source... |
|
|
Software written in three days. With the display routines of SIX1. Could be more compact but it works...
Just an Arduino Mega, a display+clock shield with CR2032 battery and a ILI9325D 16 bit display.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
Posted: Sun Apr 21, 2013 4:49 pm Post subject: |
|
|
Hi Ben.
Altered your code under the 8-bit connection - works. Tried to translate into Russian language - a problem: instead of letters does not appear to understand icons. Do not tell me what could be wrong?
Thanks in advance. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Apr 21, 2013 5:54 pm Post subject: Cyrillic font |
|
|
What I see is that you tried to translate the days of the week
Code: | '-------------------------------------------------------------------------------
' lookup voor dag van de week
'-------------------------------------------------------------------------------
Weekdays:
'Data "maandag" , "dinsdag" , "woensdag" , "donderdag" , "vrijdag" , "zaterdag" , "zondag"
Data "Понедельник" , "Вторник" , "Среда" , "Четверг" , "Пятница" , "Суббота" , "Воскресенье"
'---------------------------------------------------------------
|
These characters are taken from these two font-files.
font12x16.font
font8x12.font
If you want to use different charakters (Cyrillic) you will have to change them in the font-files. There is a font-designer at tools.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
Posted: Sun Apr 21, 2013 6:08 pm Post subject: |
|
|
Yes. It must be so:
Code: | '-------------------------------------------------------------------------------
' lookup voor dag van de week
'-------------------------------------------------------------------------------
Weekdays:
'Data "maandag" , "dinsdag" , "woensdag" , "donderdag" , "vrijdag" , "zaterdag" , "zondag"
Data "Понедельник" , "Вторник" , "Среда" , "Четверг" , "Пятница" , "Суббота" , "Воскресенье" |
In fact of the matter is that there are font8x12.font cyrillic characters:
|
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sun Apr 21, 2013 6:42 pm Post subject: font 2 - 12x16 is used... |
|
|
Code: | For String_pos = 1 To Len(lcd_text) 'Fьr jedes Zeichen im String
If Fontset = 2 Then
Restore Font12x16
Else
Restore Font8x12
End If
Read Char_rows : Read Char_row_len : Read Char_bytes : Read Dummy 'Read the first 4 bytes from the font file
|
Almost everywhere in the code font 2 is used, that is the font12x16.font. So you will have to change the other font-file.
Would be nice if you could publish a picture of the finished clock in Russian.
Have fun
Ben Zijlstra |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
Posted: Sun Apr 21, 2013 6:52 pm Post subject: |
|
|
All right. |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri May 03, 2013 9:02 am Post subject: |
|
|
that was nice max50. good to see you finished the project. It was nice for me to see it in a foreign language. _________________ Mark |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
Posted: Fri May 03, 2013 9:12 am Post subject: |
|
|
All right. |
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Fri May 03, 2013 11:53 am Post subject: Thanks... |
|
|
Very nice!!
Spaciba! Thanks for the pictures.
Ben Zijlstra |
|
Back to top |
|
|
max50
Joined: 04 May 2010 Posts: 14
|
Posted: Fri May 03, 2013 12:54 pm Post subject: |
|
|
Thanks. |
|
Back to top |
|
|
|