اطلاعیه

Collapse
No announcement yet.

برنامه اذان گو

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    #16
    پاسخ : برنامه اذان گو

    اگه دستگاه شما توی جای ثابتی قراره کار بکنه؛ همین زمانها رو توی یه حافظه بریزین(EEPROM داخلی یا خارجی یا هرچی! ) و چون اذان هرسال با سال بعد در حد زیر1دقیقه تفاوت داره؛ پس دیگه ماجرا حله؟! نیاز به تغییر زمان اذان هم وجود نداره.میمونه قسمت صوتی که اون هم ببین خیر و صلاحت تو چی هست؟ من تجربه م رو عرض کردم خدمتتون.

    دیدگاه


      #17
      پاسخ : برنامه اذان گو

      نوشته اصلی توسط محمد فلاحی
      اونطوری هر سال باید بنویسم؟
      جناب فلاحی جهت اطمینان و احتیاط میتونین اوقات شرعی یه روز مشخص رو توی چند سال نگاه بکنین و اختلافش رو در نظر بگیرین ببینین پدیت تایم اذان چقدر ارزش داره؟
      البته یه نکته ی بسیار مهم اینه که این اذان گو قراره کجا نصب بشه؟ مهمترین وقت سال برای زمان اذان ماه رمضان هست که اذان صبح و مغرب باید دقیقٍ دقیق باشه وگرنه.... (اینطرف هم نشد، اون دنیا باهات حساب میکنن!! ) اگه این اذان گو توی محیطی هست(مثلا اداره ی فلان) اون موقع خیالت راحته که اون موقع کسی توی اداره نیست. البته یه کار هم میشه واسه احتیاط انجام داد که اذان صبح رو از وقت شرعی 30 ثانیه یا یک دقیقه زودتر بگه و اذان مغرب رو قبلش دعا پخش بشه تا مثل اذان صبح البته برعکس،1دقیقه دیر اذان پخش بشه.

      دیدگاه


        #18
        پاسخ : برنامه اذان گو

        خوب اگر بخوام ثانیه هم در بیارم چطور؟
        این ساعت هایی که تو مسجد نصب می شه چطور این قدر دقیق
        و برای چند سال تنظیم میشه؟
        واقعا چطوریه؟
        من آن گلبرگ مغرورم که می میرم ز بی آبی ولی با خفت و خواری پی شبنم نمی گردم.

        دیدگاه


          #19
          پاسخ : برنامه اذان گو

          اذان های مساجد رو دقیق خبر ندارم.اما احتمال خیلی خیلی زیاد اونها از GPS برای تنظیم زمان اذان اون شهر استفاده میکنن. البته اونها هم مختصر تاخیر زمانی بینشون هست.(اگه موقع اذان دقت بکنین متوجه میشین که با همدیگه اختلاف دارن-بعضاً از 1 دقیقه هم بیشتر!!)
          عرض کردم، زمان اذان های یک روز خاص رو توی چند سال با هم مقایسه بکنین میبینین که خیلی به هم نزدیک هستن.
          ضمنا از نظر شرعی(که البته اینجا جاش نیست!) به اذان های مساجد که اتوماتیک هست100% نباید اطمینان کرد و این باید اطلاع رسانی بشه بین عموم مردم که.... :NO:

          دیدگاه


            #20
            پاسخ : برنامه اذان گو

            بیشتر ساعت ها از gps استفاده می کنن یه راه دیگه ای هم هست که خودتون طول و عرض جغرافیایی رو به دست بیارید و تو فرمولش قرار بدید تو این حالت دیگه لازم نیست که اوقات شرعی یه سالو بنویسید و نگران سالهای بعدی باشید اینو من از اینترنت پیدا کردم شما هم یه نگاهی بکنید
            کد:
            Prayer Times Calculation
            By: Hamid Zarrabi-Zadeh
            Muslims perform five prayers a day. Each prayer is given a certain prescribed time during which it must be performed. This document briefly describes these times, and explains how they can be calculated mathematically. 
            Contents
            [hide]
            •	1 Definitions
            •	2 Astronomical Measures
            •	3 Calculating Prayer Times 
            o	3.1 Dhuhr
            o	3.2 Sunrise/Sunset
            o	3.3 Fajr and Isha
            o	3.4 Asr
            o	3.5 Maghrib
            o	3.6 Midnight
            •	4 Higher Latitudes
            •	5 Implementation
            •	6 References
            
            Definitions 
            To determine the exact time period for each prayer (and also for fasting), we need to determine nine points of time per a day. These times are defined in the following table: 
            Time 	Definition 
            Imsak 	The time to stop eating Sahur (for fasting), slightly before Fajr. 
            Fajr 	When the sky begins to lighten (dawn). 
            Sunrise 	The time at which the first part of the Sun appears above the horizon. 
            Dhuhr 	When the Sun begins to decline after reaching its highest point in the sky. 
            Asr 	The time when the length of any object's shadow reaches a factor (usually 1 or 2) of the length of the object itself plus the length of that object's shadow at noon. 
            Sunset 	The time at which the Sun disappears below the horizon. 
            Maghrib 	Soon after sunset. 
            Isha 	The time at which darkness falls and there is no scattered light in the sky. 
            Midnight 	The mean time from sunset to sunrise (or from Maghrib to Fajr, in some schools of thought). 
            The next section provides information on how to calculate the above times mathematically for any location if the coordinates of the location are known. 
            Astronomical Measures
            There are two astronomical measures that are essential for computing prayer times. These two measures are the equation of time and the declination of the Sun. 
            The equation of time is the difference between time as read from a sundial and a clock. It results from an apparent irregular movement of the Sun caused by a combination of the obliquity of the Earth's rotation axis and the eccentricity of its orbit. The sundial can be ahead (fast) by as much as 16 min 33 s (around November 3) or fall behind by as much as 14 min 6 s (around February 12), as shown in the following graph: 
             
            The Equation of Time (Ref)
            The declination of the Sun is the angle between the rays of the sun and the plane of the earth equator. The declination of the Sun changes continuously throughout the year. This is a consequence of the Earth's tilt, i.e. the difference in its rotational and revolutionary axes. 
             
            The Declination of Sun
            The above two astronomical measures can be obtained accurately from The Star Almanac, or can be calculated approximately. The following algorithm from U.S. Naval Observatory computes the Sun's angular coordinates to an accuracy of about 1 arcminute within two centuries of 2000. 
             
              d = jd - 2451545.0; // jd is the given Julian date 
            
              g = 357.529 + 0.98560028* d;
              q = 280.459 + 0.98564736* d;
              L = q + 1.915* sin(g) + 0.020* sin(2*g);
            
              R = 1.00014 - 0.01671* cos(g) - 0.00014* cos(2*g);
              e = 23.439 - 0.00000036* d;
              RA = arctan2(cos(e)* sin(L), cos(L))/ 15;
            
              D = arcsin(sin(e)* sin(L)); // declination of the Sun
              EqT = q/15 - RA; // equation of time
            
            Calculating Prayer Times
            To calculate the prayer times for a given location, we need to know the latitude (L) and the longitude (Lng) of the location, along with the local Time Zone for that location. We also obtain the equation of time (EqT) and the declination of the Sun (D) for a given date using the algorithm mentioned in the previous section. 
            Dhuhr 
            Dhuhr can be calculated easily using the following formula: 
            Dhuhr = 12 + TimeZone - Lng/15 - EqT. 
            The above formula indeed calculates the midday time, when the Sun reaches its highest point in the sky. A slight margin is usually considered for Dhuhr as explained in this note. 
            Sunrise/Sunset 
            The time difference between the mid-day and the time at which sun reaches an angle α below the horizon can be computed using the following formula: 
            
             
            
            Astronomical sunrise and sunset occur at α=0. However, due to the refraction of light by terrestrial atmosphere, actual sunrise appears slightly before astronomical sunrise and actual sunset occurs after astronomical sunset. Actual sunrise and sunset can be computed using the following formulas: 
            Sunrise = Dhuhr - T(0.833),
            Sunset = Dhuhr + T(0.833). 
            If the observer's location is higher than the surrounding terrain, we can consider this elevation into consideration by increasing the above constant 0.833 by 0.0347 × sqrt(h), where h is the observer's height in meters. 
            Fajr and Isha 
            There are differing opinions on what angle to be used for calculating Fajr and Isha. The following table shows several conventions currently in use in various countries (more information is available at this page). 
            Convention 	Fajr Angle 	Isha Angle 
            Muslim World League 	18 	17 
            Islamic Society of North America (ISNA) 	15 	15 
            Egyptian General Authority of Survey 	19.5 	17.5 
            Umm al-Qura University, Makkah 	18.5 	90 min after Maghrib
            120 min during Ramadan 
            University of Islamic Sciences, Karachi 	18 	18 
            Institute of Geophysics, University of Tehran 	17.7 	14* 
            Shia Ithna Ashari, Leva Research Institute, Qum 	16 	14 
            * Isha angle is not explicitly defined in Tehran method. 
            For example, according to Muslim World League convention, Fajr = Dhuhr - T(18) and Isha = Dhuhr + T(17). 
            Asr
            There are two main opinions on how to calculate Asr time. The majority of schools (including Shafi'i, Maliki, Ja'fari, and Hanbali) say it is at the time when the length of any object's shadow equals the length of the object itself plus the length of that object's shadow at noon. The dominant opinion in the Hanafi school says that Asr begins when the length of any object's shadow is twice the length of the object plus the length of that object's shadow at noon. 
            The following formula computes the time difference between the mid-day and the time at which the object's shadow equals t times the length of the object itself plus the length of that object's shadow at noon: 
            
             
            
            Thus, in the first four schools of thought, Asr = Dhuhr + A(1), and in Hanafi school, Asr = Dhuhr + A(2). 
            Maghrib
            In the Sunni's point of view, the time for Maghrib prayer begins once the Sun has completely set beneath the horizon, that is, Maghrib = Sunset (some calculators suggest 1 to 3 minutes after Sunset for precaution). In the Shia's view, however, the dominant opinion is that as long as the redness in the eastern sky appearing after sunset has not passed overhead, Maghrib prayer should not be performed. It is usually taken into consideration by assuming a twilight angle like Maghrib = Dhuhr + T(4). 
            Midnight
            Midnight is generally calculated as the mean time from Sunset to Sunrise, i.e., Midnight = 1/2(Sunrise - Sunset). In Shia point of view, the juridical midnight (the ending time for performing Isha prayer) is the mean time from Sunset to Fajr, i.e., Midnight = 1/2(Fajr - Sunset). 
            Higher Latitudes
            In locations at higher latitude, twilight may persist throughout the night during some months of the year. In these abnormal periods, the determination of Fajr and Isha is not possible using the usual formulas mentioned in the previous section. To overcome this problem, several solutions have been proposed, three of which are described below. 
            Middle of the Night
            In this method, the period from sunset to sunrise is divided into two halves. The first half is considered to be the "night" and the other half as "day break". Fajr and Isha in this method are assumed to be at mid-night during the abnormal periods. 
            One-Seventh of the Night
            In this method, the period between sunset and sunrise is divided into seven parts. Isha begins after the first one-seventh part, and Fajr is at the beginning of the seventh part. 
            Angle-Based Method
            This is an intermediate solution, used by some recent prayer time calculators. Let α be the twilight angle for Isha, and let t = α/60. The period between sunset and sunrise is divided into t parts. Isha begins after the first part. For example, if the twilight angle for Isha is 15, then Isha begins at the end of the first quarter (15/60) of the night. Time for Fajr is calculated similarly. 
            In case Maghrib is not equal to Sunset, we can apply the above rules to Maghrib as well to make sure that Maghrib always falls between Sunset and Isha during the abnormal periods. 
            Implementation
            The formulas described above are implemented completely and can be obtained in various programming languages from this page. 
            References
            •	The Determination of Salat Times, by Dr. Monzur Ahmed. 
            •	Approximate Solar Coordinates, by U.S. Naval Observatory. 
            •	The Islamic Prayer Times, by Professor Tariq Muneer. 
            •	Wikipedia, the free encyclopedia.

            دیدگاه


              #21
              پاسخ : برنامه اذان گو

              اینم لینک دانلود فایلی برای پیدا کردن اوقات شرعی
              http://uploadtak.com/images/i9992_Prayer_Times_Calcula.docx

              دیدگاه


                #22
                پاسخ : برنامه اذان گو

                برنامه رو یکم تغییر دادم تا اوقات هر روز رو توی ال سی دی نشون بده اما فقط عدد اول جدولو برمی داره
                از دوستان می خوام نگاه کنن به برنامه ببینن اشکال از کجاست
                کد:
                $regfile = "m16def.dat "
                $crystal = 1000000
                Config Lcd = 16 * 2
                Config Lcdpin = Pin , Db4 = Porta.4 , Db5 = Porta.5 , Db6 = Porta.6 , Db7 = Porta.7 , E = Porta.3 , Rs = Porta.2
                Config Clock = Soft
                Config Date = Ymd , Separator = /
                Enable Interrupts
                Config Porta = Output
                Config Portb = Output
                Date$ = "92/08/15"
                Time$ = "12:10:12"
                
                
                '-------------------------------------------------------------------------------
                Dim Y As Byte
                Dim M As Byte
                Dim D As Byte
                Dim A As Long
                Dim B As Long
                Dim C As Long
                Dim E As Long
                Dim G As Long
                Dim F As Long
                Main:
                '-------------------------------------------------------------------------------
                Do
                
                Cursor Off
                Cls
                Home
                Lcd "Time: " ; Time$
                Lowerline
                Lcd "Date: " ; Date$
                Waitms 100
                Cls
                '-------------------------------------------------------------------------------
                If M < 6 Then Goto A1
                If M > 6 Then Goto A2
                
                
                
                
                
                 Loop
                End
                
                A1:
                
                
                
                
                A = M - 1
                B = A * 31
                C = D + G
                F = Lookup(c , Azansobh)
                Locate 2 , 1
                Lcd F
                Waitms 500
                
                 Goto Main
                
                
                
                A2:
                
                A = M - 7
                B = A * 30
                C = B + D
                E = C + 186
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                F = Lookup(e , Azansobh)
                Locate 2 , 1
                Lcd F
                Waitms 500
                 Goto Main
                
                
                
                
                
                Azansobh:
                Data 600& , 559& , 557& , 555& , 554& , 552& , 540& , 549& , 547& , 545& , 544& , 542& , 540& , 538& , 537& , 535& , 533& , 532& , 530& , 528& , 526& , 525& , 523& , 521& , 520& , 518& , 516& , 514& , 513& , 511& , 509&    ' 1
                Data 508& , 506& , 504& , 503& , 501& , 459& , 458& , 456& , 455& , 453& , 451& , 450& , 448& , 447& , 445& , 444& , 442& , 441& , 439& , 438& , 437& , 435& , 434& , 432& , 431& , 430& , 429& , 427& , 426& , 425& , 424&    ' 2
                Data 423& , 422& , 421& , 420& , 419& , 418& , 417& , 416& , 415& , 415& , 414& , 413& , 412& , 412& , 411& , 411& , 410& , 410& , 409& , 409& , 409& , 409& , 408& , 408& , 408& , 408& , 408& , 408& , 408& , 408& , 409&    ' 3
                Data 409& , 409& , 409& , 410& , 410& , 411& , 411& , 412& , 412& , 413& , 413& , 414& , 415& , 416& , 417& , 417& , 418& , 419& , 420& , 421& , 422& , 423& , 424& , 425& , 426& , 427& , 429& , 430& , 431& , 432& , 433&    ' 4
                Data 434& , 436& , 437& , 438& , 439& , 441& , 442& , 443& , 444& , 446& , 447& , 448& , 450& , 451& , 452& , 453& , 455& , 456& , 457& , 459& , 500& , 501& , 502& , 504& , 505& , 506& , 507& , 509& , 510& , 511& , 512&    ' 5
                Data 513& , 515& , 516& , 517& , 518& , 519& , 520& , 522& , 523& , 524& , 525& , 526& , 527& , 528& , 529& , 530& , 531& , 533& , 534& , 535& , 536& , 537& , 538& , 539& , 540& , 541& , 542& , 543& , 544& , 545& , 446&    ' 6
                
                Data 447& , 448& , 449& , 450& , 451& , 451& , 452& , 453& , 454& , 455& , 456& , 457& , 458& , 459& , 500& , 501& , 502& , 503& , 504& , 505& , 505& , 506& , 507& , 508& , 509& , 510& , 511& , 512& , 513& , 514&    ' 7
                Data 515& , 516& , 516& , 517& , 518& , 519& , 520& , 521& , 522& , 523& , 524& , 525& , 526& , 527& , 528& , 529& , 529& , 530& , 531& , 532& , 533& , 534& , 535& , 536& , 537& , 538& , 539& , 540& , 541& , 541&    ' 8
                Data 542& , 543& , 544& , 545& , 546& , 547& , 548& , 549& , 549& , 550& , 551& , 552& , 553& , 553& , 554& , 555& , 556& , 557& , 557& , 558& , 559& , 559& , 600& , 601& , 601& , 602& , 602& , 603& , 604& , 604&    ' 9
                Data 605& , 605& , 606& , 606& , 606& , 607& , 607& , 607& , 608& , 608& , 608& , 608& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 609& , 608& , 608& , 608& , 608& , 607&    ' 10
                Data 607& , 607& , 606& , 606& , 605& , 605& , 604& , 604& , 603& , 602& , 602& , 601& , 600& , 559& , 559& , 558& , 557& , 556& , 555& , 554& , 553& , 553& , 552& , 551& , 549& , 548& , 547& , 546& , 545& , 544&    ' 11
                Data 543& , 542& , 540& , 539& , 538& , 537& , 535& , 534& , 533& , 531& , 530& , 528& , 527& , 526& , 524& , 523& , 521& , 520& , 518& , 517& , 515& , 514& , 512& , 510& , 509& , 507& , 506& , 504& , 502& , 500&    ' 12
                '***************************************************************************

                دیدگاه


                  #23
                  پاسخ : برنامه اذان گو

                  کسی نظری نداره ؟
                  :angry:

                  دیدگاه


                    #24
                    پاسخ : برنامه اذان گو

                    دوست من من سیستمی طراحی کردم که به صورت شبکه مساجد بادقت 0.02 هم زمان شروع به پخش هم زمان اذان میکنند یعنی یک صدا همه با هم به خاطر تکنیکش ثبت اختراع هم گرفتم ولی روحانیت عزیز فرمودند کار خوبی نکردی! یعنی برای چی اینکار رو کردی؟ و ... من هم پشیمان از عمل انجام شده
                    خودت رو اذیت نکن !

                    دیدگاه


                      #25
                      پاسخ : برنامه اذان گو

                      اینجا قصدمون یاد گرفتن علمه اگه کسی در این زمینه کار کرده کمک کنه

                      دیدگاه

                      لطفا صبر کنید...
                      X