This sketch assumes you have a DS1307 RTC attached to your Arduino wit translation - This sketch assumes you have a DS1307 RTC attached to your Arduino wit Thai how to say

This sketch assumes you have a DS13

This sketch assumes you have a DS1307 RTC attached to your Arduino with the time set.

You can specify at the start of the sketch the start and end hour and minute.
If you wanted, you can add seconds and adjust the logic statement to check that too.

As the RTC doesn't return hour, minute, or seconds with a leading zero, you need to declare them without.
For example:

If you wanted something to start at 5 minutes past the hour

byte startMinute = 5;

not

byte startMinute = 05;


Also, make sure you enter the hour in the 24-hour clock format, again observing a lack of leading zero:

If you wanted something to start at 7a.m:

byte startHour = 7;

not

byte startHour = 07;


And for 9p.m, enter:

byte startHour = 21;

not

byte startHour = 9;


This sketch has an LED connected to digital pin 2. You don't have to control an LED, it's just there to show functionality. When the start time or end time is reached, turnLightsOn() or turnLightsOff() respectively are called. In reality, this can be any function you wish to call at the specified time. It's useful for way beyond just turning a light on and off!
0/5000
From: -
To: -
Results (Thai) 1: [Copy]
Copied!
ร่างนี้ถือว่า คุณมีตัว RTC DS1307 ที่แนบของคุณสืบด้วยเวลาตั้งคุณสามารถระบุที่เริ่มร่างเริ่มต้น และสิ้นสุดชั่วโมง และนาทีถ้าคุณต้องการ คุณสามารถเพิ่มวินาที และปรับยอดตรรกะเพื่อตรวจสอบว่าเกินไปเป็น RTC ไม่กลับชั่วโมง นาที หรือวินาที มีศูนย์นำ คุณจำเป็นต้องประกาศได้โดยไม่ต้องตัวอย่าง: ถ้าคุณต้องการให้เริ่มต้นที่นาทีที่ 5 ชั่วโมงที่ผ่านมา startMinute ไบต์ = 5 ไม่ startMinute ไบต์ = 05ยัง ให้แน่ใจว่า คุณป้อนชั่วโมงในรูปแบบเวลา 24 ชั่วโมง สังเกตไม่มีศูนย์นำหน้าอีกครั้ง: ถ้าคุณต้องการให้เริ่มต้นที่ 7a.m: startHour ไบต์ = 7 ไม่ startHour ไบต์ = 07 และสำหรับ 9p.m : startHour ไบต์ = 21 ไม่ startHour ไบต์ = 9ร่างนี้มี LED เชื่อมต่อกับขาดิจิตอล 2 คุณไม่จำเป็นต้องควบคุม LED มี จะมีเพียงแสดงฟังก์ชัน เมื่อเริ่มต้นหรือเวลาสิ้นสุดของเวลา turnLightsOn() หรือ turnLightsOff() ตามลำดับเรียกว่า ในความเป็นจริง สามารถฟังก์ชันใด ๆ คุณต้องโทรตามเวลาที่ระบุ เป็นประโยชน์สำหรับทางเหนือเพียงเปิดไฟ และปิด
Being translated, please wait..
Results (Thai) 2:[Copy]
Copied!
ร่างนี้จะถือว่าคุณมี DS1307 RTC ที่แนบมากับ Arduino ของคุณด้วยชุดเวลา. คุณสามารถระบุจุดเริ่มต้นของร่างเริ่มต้นและสิ้นสุดชั่วโมงและนาที. ถ้าคุณต้องการคุณสามารถเพิ่มวินาทีและปรับคำสั่งตรรกะในการตรวจสอบว่า เกินไป. ในฐานะที่เป็น RTC ไม่กลับชั่วโมงนาทีหรือวินาทีกับศูนย์นำคุณจะต้องประกาศให้โดยไม่ต้อง. ตัวอย่างเช่นถ้าคุณต้องการสิ่งที่จะเริ่มต้นที่ 5 นาทีที่ผ่านมาชั่วโมงไบต์ startMinute = 5; ไม่byte startMinute = 05; ยังให้แน่ใจว่าคุณป้อนชั่วโมงในรูปแบบนาฬิกา 24 ชั่วโมงอีกครั้งสังเกตขาดศูนย์นำ: หากคุณต้องการสิ่งที่จะเริ่มต้นที่ 7 การพบปะดังกล่าว: ไบต์ startHour = 7; ไม่byte startHour = 07; และ 9 p.m ป้อน: ไบต์ startHour = 21; ไม่byte startHour = 9; ร่างนี้มีไฟ LED ที่เชื่อมต่อกับขาดิจิตอล 2. คุณไม่ได้มีการควบคุมไฟ LED ก็แค่มีการแสดงการทำงาน เมื่อเวลาเริ่มต้นเวลาสิ้นสุดหรือถึง turnLightsOn () หรือ turnLightsOff () ตามลำดับจะเรียกว่า ในความเป็นจริงนี้จะมีฟังก์ชั่นที่คุณต้องการที่จะเรียกในเวลาที่กำหนด มันเป็นประโยชน์สำหรับวิธีกว่าเพียงแค่การเปลี่ยนแสงและปิด!




































Being translated, please wait..
Results (Thai) 3:[Copy]
Copied!
รูปนี้ถือว่าคุณมี ds1307 RTC ที่แนบมากับ Arduino กับเวลาตั้ง

คุณสามารถระบุที่เริ่มต้นของร่างต้นชั่วโมงปลายและนาที .
ถ้าคุณต้องการ คุณสามารถเพิ่มวินาที และปรับข้อความตรรกะเพื่อตรวจสอบเหมือนกัน

เป็น RTC ไม่กลับชั่วโมง , นาที หรือ วินาที พร้อมนำศูนย์ คุณต้องประกาศให้ไม่ได้ เช่น


:ถ้าคุณต้องการสิ่งที่จะเริ่มต้นที่ 5 นาทีที่ผ่านมาชั่วโมง

ไบต์ startminute = 5 ;

ไม่ได้

) startminute = 05 ;


ยังให้แน่ใจว่าคุณระบุชั่วโมงในรูปแบบนาฬิกา 24 ชั่วโมงอีกครั้ง สังเกต การขาดนำศูนย์ :

ถ้าคุณต้องการสิ่งที่จะเริ่มต้นที่ 0 M :

ไบต์ starthour = 7 ;

ไม่ได้

) starthour = 07 ;


และ 9P . M , ระบุ :

ไบต์ starthour = 21 ;

ไม่ได้

) starthour = 9

;รูปนี้มีการเชื่อมต่อกับขา LED ดิจิตอล 2 เธอไม่ต้องควบคุม LED มีเพียงแสดงการทํางาน เมื่อเวลาเริ่มต้นหรือสิ้นสุดเวลามาถึง turnlightson() หรือ turnlightsoff() ตามลำดับเรียกว่า ในความเป็นจริงนี้สามารถเรียกฟังก์ชันใด ๆที่คุณต้องการในเวลาที่กำหนด มันมีประโยชน์สำหรับเกินกว่าแค่การเปลี่ยนไฟและปิด !
Being translated, please wait..
 
Other languages
The translation tool support: Afrikaans, Albanian, Amharic, Arabic, Armenian, Azerbaijani, Basque, Belarusian, Bengali, Bosnian, Bulgarian, Catalan, Cebuano, Chichewa, Chinese, Chinese Traditional, Corsican, Croatian, Czech, Danish, Detect language, Dutch, English, Esperanto, Estonian, Filipino, Finnish, French, Frisian, Galician, Georgian, German, Greek, Gujarati, Haitian Creole, Hausa, Hawaiian, Hebrew, Hindi, Hmong, Hungarian, Icelandic, Igbo, Indonesian, Irish, Italian, Japanese, Javanese, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Korean, Kurdish (Kurmanji), Kyrgyz, Lao, Latin, Latvian, Lithuanian, Luxembourgish, Macedonian, Malagasy, Malay, Malayalam, Maltese, Maori, Marathi, Mongolian, Myanmar (Burmese), Nepali, Norwegian, Odia (Oriya), Pashto, Persian, Polish, Portuguese, Punjabi, Romanian, Russian, Samoan, Scots Gaelic, Serbian, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenian, Somali, Spanish, Sundanese, Swahili, Swedish, Tajik, Tamil, Tatar, Telugu, Thai, Turkish, Turkmen, Ukrainian, Urdu, Uyghur, Uzbek, Vietnamese, Welsh, Xhosa, Yiddish, Yoruba, Zulu, Language translation.

Copyright ©2025 I Love Translation. All reserved.

E-mail: