help to make prayer time clock by arduino and dot matrix display

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
m_nagy2
Posts: 13
Joined: Mon Jun 13, 2016 9:22 pm

help to make prayer time clock by arduino and dot matrix display

Post by m_nagy2 » Mon Jun 13, 2016 10:57 pm

i have this material :
3 x dot matrix display
1 x arduino uno

and arduino library :
1-prayer time library https://github.com/asmaklad/Arduino-Prayer-Times
2-DMD library https://github.com/freetronics/DMD

i want to build project like this video
1- https://www.youtube.com/watch?v=TedWbCWtxc0
2-https://www.youtube.com/watch?v=kW7mYYE7rvI
3-https://www.youtube.com/watch?v=7l6RULObXWs
4-https://www.youtube.com/watch?v=ZgfWfJyOAjM


Any one help me for wiring and Program code
I would be grateful to him

User avatar
stryker
Posts: 282
Joined: Sat Jan 14, 2012 2:44 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by stryker » Tue Jun 14, 2016 4:25 am

Hi,

Looking at the example provided in the library, PrayerTimes_example.ino it is able to output 7 different values per date provided. The example repeats the same outputs for 1/1/1970 over and over after waiting 10 seconds.

Code: Select all

PTimes:
YEAR:1970
MONTH:1
DAY:1
0 	       Fajr 4.35 	  04:21 
1 	    Sunrise 6.08 	  06:05 
2 	      Dhuhr 13.45 	 13:27 
3 	        Asr 17.48 	 17:29 
4 	     Sunset 20.82 	 20:49 
5 	    Maghrib 20.82 	 20:49 
6 	       Isha 22.55 	 22:33 
7 	 TimesCount 0.00 	  00:00 
So once you define which of these values you'll output you can certainly get them onto the DMD, either one after the other, or in a kind of marquee animation with the 3 DMDs you have.

What's missing from your hardware is a source of today's date. Either a realtime clock module, or even a way of just entering the day, month and year values to set the parameters in the time library. Without that it will always have 1/1/1970 as the date, as per the example above.

If the longitude and latitude aren't going to be hard-wired into the code, a means of entering those is also needed.

And of course you're going to need a solid 5V power supply able to output approx 12A.

I think your project is very possible, and quite straightforward though.

Cheers!
Geoff

m_nagy2
Posts: 13
Joined: Mon Jun 13, 2016 9:22 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by m_nagy2 » Tue Jun 14, 2016 12:03 pm

i have a realtime clock module and 5V power supply able to output approx 12A

ok now the result print on serialport
i need code to print on dot matrix display and Scheme of Wire

thank you stryker for your efforts

User avatar
stryker
Posts: 282
Joined: Sat Jan 14, 2012 2:44 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by stryker » Tue Jun 14, 2016 9:05 pm

This will be best done in multiple stages.

There are plenty of exampes online of how to use the RTC module, so follow one of those to set that up. Be careful your chosen connections for the RTC do not use any of the DMDCON pins. If you add the code to initialise the time from that Realtime clock and for initialising the time values from the RTC hardware to the existing prayer time demo you'll know it's working when the date is no longer 1/1/1970.

Since you have a Uno the DMDCON adaptor board will simply plug in on top, and the supplied ribbon cable will take the data to the last DMD in the chain. The other DMDs will daisy-chain to the next using the ribbon cables that were supplied with the DMD (you'll end up with two DMDCON adapter boards spare). Wire your 5V power supply directly a DMD module and I find it easiest to wire the other two across from the first. You can also take a 5V line from the power supply to VCC on the Uno (not VIN or through the 2.1mm power connector as they go via the onboard regulator).

The first video link uses a marquee to display the text. That is easy enough also on the DMD. Look to the DMD example code for how marquee functions work. Add that functionality to the sketch and you're done.

Cheers, Geoff

m_nagy2
Posts: 13
Joined: Mon Jun 13, 2016 9:22 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by m_nagy2 » Wed Jun 15, 2016 4:58 am

thank you stryker

I am a beginer

if you have time
Can you help me diagram for connection method
And the code compiler

statbat
Posts: 44
Joined: Tue Dec 22, 2015 10:53 am

Re: help to make prayer time clock by arduino and dot matrix display

Post by statbat » Wed Jun 15, 2016 7:33 am

m_nagy2 wrote:thank you stryker

I am a beginer

if you have time
Can you help me diagram for connection method
And the code compiler
Like Stryker said, you should make the project step by step.

First get the program til where you can get the correct times for your city. I believe that latitude and longitude you can hard code in your program.
Once you have the program this much then you can worry about display.

Display part is also easy, fear not. You said you have 3 displays, how will you show 5 times in 3 displays ?

m_nagy2
Posts: 13
Joined: Mon Jun 13, 2016 9:22 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by m_nagy2 » Wed Jun 15, 2016 3:01 pm

by editing the code i can make this result

Code: Select all

YEAR:1970
MONTH:0
DAY:0
Fajr  3:36Sunrise  4:41Dhuhr  10:9Asr  13:16Sunset  15:37Maghrib  15:37Isha  16:42
can display on 3 dot matrix display by sliding and moving text

on this video i can display prayer name on 8*8 dot matrix display

https://youtu.be/dIB11WYyMgE

m_nagy2
Posts: 13
Joined: Mon Jun 13, 2016 9:22 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by m_nagy2 » Sat Jun 25, 2016 1:20 pm

thank you my friends

Now It work correctly

but one thing need

Display text on led panel By Arabic Language

can any one HELP

User avatar
stryker
Posts: 282
Joined: Sat Jan 14, 2012 2:44 pm

Re: help to make prayer time clock by arduino and dot matrix display

Post by stryker » Sat Jun 25, 2016 1:34 pm

There's this forum post about how to do that. It's not straightforward as other fonts by the looks of things, but there is some support for it in a branch of the DMD library.

Cheers, Geoff


Post Reply