Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Poor man's Rolex....

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here
View previous topic :: View next topic  
Author Message
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Thu Sep 06, 2012 11:03 pm    Post subject: Poor man's Rolex.... Reply with quote

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
View user's profile Visit poster's website
six1

Bascom Expert



Joined: 27 Feb 2009
Posts: 553

germany.gif
PostPosted: Fri Sep 07, 2012 5:34 am    Post subject: Reply with quote

Ok, Rollex is beaten. They will lose all their customers.

Laughing

Ben that's very creativ!
but don't forgett to enjoy the rest of your holidays! Razz

best, Michael

_________________
For technical reasons, the signature is on the back of this message.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Fri Sep 07, 2012 9:24 am    Post subject: Reply with quote

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 Very Happy , 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 Smile

And one remark: can you also include the code on the bascom forum since this is the 'share code' section ? Very Happy

_________________
Mark
Back to top
View user's profile Visit poster's website
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Fri Sep 07, 2012 10:10 am    Post subject: the source... Reply with quote

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
View user's profile Visit poster's website
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Sun Apr 21, 2013 4:49 pm    Post subject: Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sun Apr 21, 2013 5:54 pm    Post subject: Cyrillic font Reply with quote

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
View user's profile Visit poster's website
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Sun Apr 21, 2013 6:08 pm    Post subject: Reply with quote

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
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sun Apr 21, 2013 6:42 pm    Post subject: font 2 - 12x16 is used... Reply with quote

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
View user's profile Visit poster's website
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Sun Apr 21, 2013 6:52 pm    Post subject: Reply with quote

All right.
Back to top
View user's profile
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Fri May 03, 2013 7:13 am    Post subject: Reply with quote

Hello!
bzijlstra wrote:
Would be nice if you could publish a picture of the finished clock in Russian.

http://bascom.at.ua/publ/neobychnye_chasy/1-1-0-83
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Fri May 03, 2013 9:02 am    Post subject: Reply with quote

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
View user's profile Visit poster's website
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Fri May 03, 2013 9:12 am    Post subject: Reply with quote

All right.
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Fri May 03, 2013 11:53 am    Post subject: Thanks... Reply with quote

Very nice!!

Spaciba! Thanks for the pictures.

Ben Zijlstra
Back to top
View user's profile Visit poster's website
max50

Bascom Member



Joined: 04 May 2010
Posts: 14

russia.gif
PostPosted: Fri May 03, 2013 12:54 pm    Post subject: Reply with quote

Thanks.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> Share your working BASCOM-AVR code here All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum