小钊电子出品 http://dk3chao.taobao.com 第7 页共14 页 每种设置模式下长按MODE键3秒或10秒内无任何按键按下 ...
The time read by MCU from the clock chip and the temperature collected by thermistor are displayed by digital tube, and the parameters ...
http://dk3chao.taobao.com EC1515S Instructions for the Use of Electronic Clocks V1.02 Because this clock has many functions, please read this manual carefully. Thank you for your cooperation. I. Brief Introduction to the Principle of the Clock...................................................................................................................................2 II. Introduction of Functions................................................................................................................................................................... 2 1. Digital tube display......................................................................................................................................................................2 2. LED Display.................................................................................................................................................................................. 2 3.Clock accuracy.............................................................................................................................................................................. 2 4.time setting.................................................................................................................................................................................. 2 5.Automatic clock calibration......................................................................................................................................................... 2 6.Voice output................................................................................................................................................................................. 2 7.ringtone download.......................................................................................................................................................................2 8.hourly chime................................................................................................................................................................................ 2 9.Alarm clock...................................................................................................................................................................................3 10.Temperature display...................................................................................................................................................................3 11.Brightness Adjustment Function............................................................................................................................................... 3 12.12/24 hours system....................................................................................................................................................................3 13.Sunday display............................................................................................................................................................................3 14.Restore Factory Defaults............................................................................................................................................................3 15.Some possible errors..................................................................................................................................................................3 III.Introduction of Hardware................................................................................................................................................................... 4 IV. Electrical Performance....................................................................................................................................................................... 5 V. Electronic clock display and key function........................................................................................................................................... 6 1. Time Display................................................................................................................................................................................ 6 2. Time Settings...............................................................................................................................................................................6 3. Integral alarm and alarm clock setting....................................................................................................................................... 6 4. Function Settings.........................................................................................................................................................................9 VI. Download function of ringtone....................................................................................................................................................... 11 1.Tools to be used..........................................................................................................................................................................11 2.Serial Communication Software................................................................................................................................................ 11 3. Writing Music............................................................................................................................................................................ 12 4.Download Music........................................................................................................................................................................ 13 1 14 http://dk3chao.taobao.com I. Brief Introduction to the Principle of the Clock The time read by MCU from the clock chip and the temperature collected by thermistor are displayed by digital tube, and the parameters displayed when setting parameters are displayed. Sixty light emitting diodes display the seconds of the clock.The parameters of time and clock are set by keys.The clock chip is powered by backup batteries so that the clock can still run normally after power off without setting the time every time it is powered on.The single chip computer collects the brightness of the environment through the photoresistor, and controls the time when the digital tube turns on and off, so as to realize the automatic brightness display.The MCU reads the internal music data, converts it into frequency signal and outputs it to the buzzer, so that music can be played. II. Introduction of Functions 1. Digital tube display There are red, green, blue and white digital tubes to choose from. Users can also switch to other color digital tubes by themselves. Power-on defaults to the time, temperature, year, month, day, week display, through the button can be set only to show time or only show time and temperature (set in the "time display settings". 2. LED Display There are three combinations of red green LED, red blue LED and blue white LED to choose from. Users can also switch to other color combinations of LED. There are 13 kinds of display, which can be switched by keys.It can also be set as automatic switching display (set in "LED automatic switching display settings"). When the switching display parameter x is less than 60, the switching display time is x*1 minute, when it is more than 60, the switching display time is (x-60)*60 minute, and when x=0, the switching display is not automatically switched. For example, when set to 30, switch to the next display every 30 minutes. When set to 62 (greater than 60), switch to the next display every (62-60) * 60 minutes (that is, 2 hours). 3.Clock accuracy Using DS1302 as clock chip, it can use clock auto-calibration function to improve travel time accuracy. 4.time setting You can set the time by pressing the button. When the clock chip is properly equipped with backup batteries, even when the clock is powered off, it will go normally without resetting the time every time the power is turned on. 5.Automatic clock calibration Because this clock is a suite, the clock will inevitably have errors after welding, in order to maximize the accuracy of the clock, so do this function. Clock error can be corrected by setting error time and error amount. For example, if the clock is 2 seconds faster every 24 hours, then the error time is set to 24, and the error amount is set to -2. If every 24 hours is 8 seconds slow, the error time can be set to 3, and the error is set to 1. 6.Voice output Use a passive buzzer to output music. 7.ringtone download There are 7 bells built-in when the kit leaves the factory. It can also download the bell to the clock by itself. It can be set as the alarm for the whole time and the alarm clock. See the bell download tutorial in Part 6 for details. 8.hourly chime It can be turned on or off. When it is turned on, it can ring when the current time satisfies the whole time and the alarm time. It can set the alarm time (for example, it can be set from 8 a.m. to 22 p.m. and not at other times). 2 14 http://dk3chao.taobao.com 9.Alarm clock There are four independent alarm clocks, which can be closed or opened separately. The alarm time, alarm tone and alarm mode can be set separately. When the alarm clock is turned on and the current time satisfies the alarm clock's hour, minute and mode at the same time, the alarm will ring. When the loud time exceeds the set loud time or when loud, press the MODE button to stop the loud. Sleeping greedily function: Press PLUS key when the noise is loud, pause the noise, and then resound after five minutes. Six alarm clock modes to meet various needs. Alarm mode 0: Ordinary alarm clock will ring every day. Alarm mode 1: Workday alarm clock 1, Monday to Friday ring, Saturday, the day does not ring. Alarm mode 2: weekend alarm clock 1, on Saturdays and Sundays, Monday to Friday no alarm. Alarm mode 3: Workday alarm 2, Monday to Saturday, Sunday no alarm. Alarm mode 4: weekend alarm 2, Sunday alarm, Monday to Saturday no alarm. Alarm mode 5: A single alarm clock will automatically turn off the alarm clock after one alarm. 10.Temperature display The ambient temperature is measured by a thermistor. Can be set to Celsius or Fahrenheit display, when the clock is showing temperature, press the MODE key to switch to Fahrenheit or Celsius display. Temperature calibration can be done when the temperature is not correct (set in "Temperature Calibration Settings") (for example, when the display temperature is 3 degrees higher than the actual temperature, set the temperature calibration value to - 3). 11.Brightness Adjustment Function The ambient brightness is measured by a photoresistor. When the automatic brightness function is turned on, the brightness of the clock can be automatically changed with the brightness of the ambient light. When the automatic brightness function is turned off, the clock brightness can be manually adjusted. Whether manual or automatic brightness, there are 100 levels of brightness. 12.12/24 hours system The default is 24-hour system, which can be set to 12-hour system by keystrokes (set in 12/24 setting mode). 13.Sunday display It's incorrect to show Sunday as Wednesday 7. The correct display should be `', but it increases in order to take care of some people's habits and foreigners may not know Sunday. When the clock is showing Sunday, press the MODE key to set Sunday to Sunday or Sunday 7. 14.Restore Factory Defaults Turn off the clock and remove the memory battery. Wait for about two minutes, then turn on the clock. 15.Some possible errors 1.Display "Err1". The clock module is not welded properly or incorrectly. 2.Display "Err2". Thermistor (temperature measuring circuit) is not well welded or wrong welded. 3.Display "Err3". Photoresistor (photoelectric circuit) has not been welded well or has been welded incorrectly. 3 14 http://dk3chao.taobao.com III.Introduction of Hardware Size: 4 14 http://dk3chao.taobao.com Weight: The finished product does not contain shell:47g The finished product contains a housing:128g IV. Electrical Performance Power supply:DC5V Working current:<50MA Noise current:<100mA Working temperature:0~40 5 14 http://dk3chao.taobao.com V. Electronic clock display and key function 1. Time Display Time display mode (power-on default mode) Display description There are three display modes: 1. Time, temperature, year, month, day and week. 2. Wheel display of time and temperature. 3. Display time only. MODE Key Function 1. Press 1 second for a long time to enter the time setting mode. 2. Press 3 seconds long to set the alarm clock and alarm clock. 3. Press 5 seconds to enter the function settings. 4. When displaying Sunday, the displaying mode of Sunday can be changed. 5. When displaying temperature, it can be switched to Celsius or Fahrenheit. PLUS Key Function 1. Lunar temperature, year, month, day and week. 2. Hold down the MODE key and press the PLUS key to switch the LED display mode. 3. When the alarm rings, enter the sleepy mode (the alarm clock is suspended and will ring again in 5 minutes). 2. Time Settings This setting can modify the time of the clock. If there is no button to press for 10 seconds under each setting, the time display will be automatically returned and the time before it will be restored. Mode Display description MODE Key Function PLUS Key Function Time display mode Long press 1 second into Year Setting Year Setting Four digital tube flashing shows Set "Year", long press can Into Month Setting "Year" quickly set Month Setting front two tube flashing shows Set "Month", long press "Month", after two tube always Into Day Setting can quickly set shows "Day" Day Setting Front two tube always shows Set "Day", long press can "Month", after two tube flashing Into Hour Setting quickly set shows "Day" Front two tube flashing shows Hour Setting "Hour", after two tube always Set "Hour", long press can shows "H" when 24 hour system, Into Minute Setting quickly set when 12 hour system shows "A" in am, shows "P" in pm. Minute Setting Front two tube always shows Set "Minute", long press "Hour", after two tube flashing Into Second Setting can quickly set shows "Minute" Second Setting Front two tube always shows "--", If there is a time to adjust, save the Set "Second", long press after two tube flashing shows settings, otherwise not save the can quickly set "Second" settings, and return time display mode. For example, we should set the clock to 12:00 minutes and 00 seconds on January 1, 2019, the value of "year" to 2029, the value of "month" to 1, the value of "day" to 1, the value of "time" to 12, the value of "minute" to 0, and the value of "second" to 0. 3. Integral alarm and alarm clock setting 6 14 http://dk3chao.taobao.com MODE 3 10 Mode Display description MODE Key Function PLUS Key Function Time display mode Long press 3 second into hourly chime switch setting Front two tube always shows When hourly chime is turned on, hourly chime switch "01", after two tube flashing Open or close the hourly into Hourly Chime Star Time Setting setting shows "On" or "OF" to express chime When hourly chime is turned off, open or close the hourly chime enter alarm clock 1 switch setting. Set star time(for example: the Hourly Chime Star Time Setting Front two tube always shows "02", after two tube flashing shows hourly chime star time start time is set to 8, the end time is set to 22, hourly chime will happen from 8 o'clock to 22 o'clock every Into Hourly Chime End Time Setting day) Set ending time(for example: Front 2 bits of digital tube the start time is set to 8, the Hourly Chime End Time Setting always shows"03"after two end time is set to 22, hourly Enter the hourly chime bell setting tube flashing shows ending chime will happen from 8 time. o'clock to 22 o'clock every day) Front 2 bits of digital tube Hourly chime bell setting always shows"04",after two Set the bell of Hourly chime tube flashing shows The name Enter alarm clock 1 switch setting of the bell. When the alarm clock 1 is turned on Front 2 bits of digital tube enter Alarm clock 1's hour Alarm clock 1 switch setting always shows"10",after two setting. Turn on or off the alarm clock tube flashing shows"ON"or When the alarm clock 1 is turned 1 " OF"indicates Turn on or off off the alarm clock 1. enter the alarm clock 2 switch setting. Front 2 bits of digital tube Alarm clock 1's hour always shows"11",after two Set Alarm clock 1's hour Enter the alarm clock 1's minute setting tube flashing display shows Long press can be set quickly. setting Alarm clock 1's hour. Front 2 bits of digital tube Alarm clock 1's always shows"12",after two Set alarm clock 1's minute Enter the alarm clock 1's bell rings minute setting tube flashing display shows Long press can be set quickly. time length setting Alarm clock 1's minute Front 2 bits of digital tube Alarm clock 1's bell always shows"13",after two Set the alarm clock 1's bell rings time length tube flashing display shows rings time length ,Set the Enter the alarm clock 1's bell setting setting alarm clock 1's bell rings time range from 1 to 20 minute. length Front 2 bits of digital tube Alarm clock 1's bell always shows"14",after two Set the alarm clock 1's bell setting tube flashing display shows Enter the alarm clock 1's mode setting alarm clock 1's bell name . 7 14 http://dk3chao.taobao.com Front 2 bits of digital tube Alarm clock 1's mode always shows"15",after two setting tube flashing display shows alarm clock 1's mode Alarm clock 2 switch setting Front 2 bits of digital tube always shows"20,after two tube flashing display shows "ON"or"OF"indicates Turn on or off the alarm clock 2. Alarm clock 2's hour setting Alarm clock 2's minute setting Alarm clock 2's bell rings time length setting Alarm clock 2's bell setting Alarm clock 2's mode setting Alarm clock 3switch setting Front 2 bits of digital tube always shows"21",after two tube flashing display shows Alarm clock 2's hour. Front 2 bits of digital tube always shows"22",after two tube flashing display shows Alarm clock 2's minute Front 2 bits of digital tube always shows"23",after two tube flashing display shows alarm clock 2's bell rings time length Front 2 bits of digital tube always shows"24",after two tube flashing display shows alarm clock 2's bell name . Front 2 bits of digital tube always shows"25",after two tube flashing display shows alarm clock 2's mode Front 2 bits of digital tube always shows"30",after two tube flashing shows"ON"or " OF"indicates Turn on or off the alarm clock 3. Set the alarm clock 1's mode Enter alarm clock 2 switch setting Turn on or off the alarm clock 2 When the alarm clock 2 is turned on enter the alarm clock 2 setting. When the alarm clock 2 is turned off enter the alarm clock 3 setting Set Alarm clock 2's hour Enter the alarm clock 2's minute Long press can be set quickly. setting Set alarm clock 2's minute Enter the alarm clock 2's bell rings Long press can be set quickly. time length setting Set the alarm clock 2's bell rings time length ,Set the Enter the alarm clock 2's bell setting range from 1 to 20 minute. Set the alarm clock 2's bell Enter the alarm clock 2's mode setting Set the alarm clock 2's mode Enter alarm clock 3 switch setting Turn on or off the alarm clock 3 When the alarm clock 3 is turned on enter the alarm clock 3 setting. When the alarm clock 3 is turned off enter the alarm clock 4 setting. Alarm clock 3's hour setting Alarm clock 3's minute setting Alarm clock 3's bell rings time length setting Front 2 bits of digital tube always shows"31",after two tube flashing display shows Alarm clock 3's hour. Front 2 bits of digital tube always shows"32",after two tube flashing display shows Alarm clock 3's minute Front 2 bits of digital tube always shows"33",after two tube flashing display shows alarm clock 3's bell rings time length Set Alarm clock 3's hour Long press can be set quickly. Set alarm clock 3's minute Long press can be set quickly. Set the alarm clock 3's bell rings time length ,Set the range from 1 to 20 minute. Enter the alarm clock 3's minute setting Enter the alarm clock 3's bell rings time length setting Enter the alarm clock 3's bell setting 8 14 http://dk3chao.taobao.com Front 2 bits of digital tube Alarm clock 3's bell always shows"34",after two setting tube flashing display shows alarm clock 3's bell name . Front 2 bits of digital tube Alarm clock 3's mode always shows"35",after two setting tube flashing display shows alarm clock 3's mode Front 2 bits of digital tube Alarm clock 4 switch setting always shows"40",after two tube flashing shows"ON"or " OF"indicates Turn on or off the alarm clock 4. Front 2 bits of digital tube Alarm clock 4's hour always shows"41",after two setting tube flashing display shows Alarm clock 4's hour. Front 2 bits of digital tube Alarm clock 4's always shows"42",after two minute setting tube flashing display shows Alarm clock 4's minute Front 2 bits of digital tube Alarm clock 4's bell always shows"43",after two rings time length tube flashing display shows setting alarm clock 4's bell rings time length Front 4 bits of digital tube Alarm clock 4's bell always shows"44",after two setting tube flashing display shows alarm clock 4's bell name . Front 2 bits of digital tube Alarm clock 4's mode always shows"45",after two setting tube flashing display shows alarm clock 4's mode Set the alarm clock 3's bell Enter the alarm clock 3's mode setting Set the alarm clock 3's mode Enter alarm clock 4 switch setting Turn on or off the alarm clock 4 When the alarm clock 4 is turned on enter the alarm clock 4 setting. When the alarm clock 4 is turned off,Return time display mode. Set Alarm clock 4's hour Enter the alarm clock 4's minute Long press can be set quickly. setting Set alarm clock 3's minute Enter the alarm clock 4's bell rings Long press can be set quickly. time length setting Set the alarm clock 4's bell rings time length ,Set the Enter the alarm clock 4's bell setting range from 1 to 20 minute. Set the alarm clock 4's bel Enter the alarm clock 4's mode setting Return to time display mode and Set the alarm clock 4's mode save settings 4. Function Settings In each setting mode, if the MODE key is pressed for 3 seconds or 10 seconds without any buttons, the time display mode will be returned automatically and the settings will be saved. Mode Display description MODE Key Function PLUS Key Function Press the MODE for 5 Time display mode seconds to Enter automatic brightness switch settings . Front 2 bits of digital tube When Automatic brightness always shows"1-",after two function is turned offEnter tube flashing display shows Turn on or off Automatic brightness brightness settings. Automatic brightness "ON"or"OF"to express turn function. When Automatic brightness switch setting on or off Automatic brightness function is turned onEnter function. temperature calibration settings. 9 14 http://dk3chao.taobao.com Brightness setting Front 2 bits of digital tube always shows"2-",after two tube flashing display shows Optical control class parameters. Temperature calibration setting Front 2 bits of digital tube always shows"4-",after two tube flashing display shows Temperature calibration value Brightness settingRange from 01 to 100 and when 100 is shown to be 00). This feature is not effective until the automatic brightness function is turned off. Setting temperature calibration values The range is -9 10.For example, when the display temperature is 3 degrees higher than the actual temperature, Set the calibration value to -3. temperature settings. Enter 12/24 setting calibration hour Display 12/24 hour Switch setting Time display mode setting LED auto switch display mode settings Error time setting Error amount setting Front 2 bits of digital tube always shows"6-",after two tube flashing display shows "ON"or"OF"to express 12 hour or 24 hour display. Front 2 bits of digital tube always shows"7-",after two tube flashing display shows time display mode Front 2 bits of digital tube always shows"8-",after two tube flashing display shows LED Variation time parameter Front 2 bits of digital tube always shows " C- " ,after two tube flashing shows Clock's error time. Front 2 bits of digital tube always shows " d- " ,after two tube flashing shows Clock's error amount 12/24 hours display setting Enter time display mode setting Set display mode(3 kinds in total )0 Display time only.1:Time, Enter LED auto switch temperature, year, month, day, week display mode settings display in turn.2Time, temperature in turn. Setting time parameters for LED display modes changes 0 is fixed display .For example, when set to 30,Switch to the next display every 30 minutes. Enter error time setting When set to 62 More than 60 every62-60 *60minuteThat is 2 hoursSwitch to the next displayRange0~84. Set error time (range:0~96).for example The clock speeds up to 2 seconds every 24 hours,Then the Enter error amount setting. error time is set to 24,The error amount is set to -2. Set error amount (range:-6~6).for example The clock speeds up to 2 Return time display mode seconds every 24 hours,Then the and save settings error time is set to 24,The error amount is set to -2. 10 14 http://dk3chao.taobao.com VI. Download function of ringtone The clock can download a ring tone to the clock by connecting the computer through the serial port. The specific operation is as follows, please follow the order, otherwise the download may not be successful. 1.Tools to be used Because computers nowadays generally do not have serial ports, it is necessary to prepare a USB to TTL. There are many of them on the market. The following picture is a kind of USB to TTL in our store. 2.Serial Communication Software There are many serial communication software, among which STC official download software STC-ISP has serial debugging function, so use this software. The latest software can be downloaded from STC's official website. The software interface is as follows: 11 14 http://dk3chao.taobao.com 3. Writing Music Because the ringtone is placed in the internal storage of MCU, it is impossible to download a music file directly, so we need to write music and send it to MCU. Write music?! Isn't it necessary to be musical proficient? You can rest assured that you don't need to be very proficient in music, as long as you follow the simple score to write it. Because I don't know anything about music, I don't teach you how to read the short music. I need to consult professionals who know the short music. Now let's tell you how to write music according to the music sheet. All characters must be entered in English. Numbers on the chart are written directly. The underscore below the number on the spectrum represents half-beat, and the underscore "_" is added after the number when compiling. The point above the number on the spectrum indicates an increase of a tone, and a single quotation mark "'" is added in front of the number when it is written. The point below the number on the spectrum represents a tone reduction, and a point "." is added after the number when it is written. There is a "#" sign in front of the number on the notation to indicate the rising half tone, and a "#" sign is added before the number when it is written. There is a "-" sign at the back of the number on the spectrum, which means that the sound is prolonged by a beat, and "-" is added after the number when it is written. There is a dot "." after the number on the simplified spectrum, which means that the sound is extended by half beat, and it is written with "*". Add a space at the end of each note to indicate the end of a note. Add "R+" to the front of the music and tell the MCU that it is a bell. Write the playing time of each note, for example, 500 milliseconds for each note. Add "25" after "R+" (1 means 20MS, ending with a space). With these rules, you can basically write a song that is not very complicated. Because there are only 510 bytes of storage space used to store music in MCU, it can't store too long music. But don't underestimate the 510 bytes. Each note takes 2 bytes and can store 255 notes. If each note plays 500 milliseconds, it can play for 2 minutes, which is also longer. Let's practice the following: 12 14 http://dk3chao.taobao.com The above spectra are compiled according to the rules as follows: R+25 5- 5_ 3_ 2_ 1_ 3--- 6- 6_ 4_ 2_ 1_ 7.-- 0_ 5._ 1* 3_ 5* 1_ 7.* 3_ 5 0_ 5_ 6* 7_ '1* 6_ 6_ 5_ 5- 3_ 2_ 1* 1_ 1 3_ 2_ 1* 1_ 1 2_ 3_ 2* 1_ 6. 2_ 3_ 2-- 0_ 5_ 1* 3_ 5* 1_ 7.* 3_ 5 0_ 5_ 6* 7_ '1* 6_ 6_ 5_ 5- 3_ 2_ 1* 1_ 1 3_ 2_ 1* 1_ 1 2_ 3_ 2* 6._ 7. 1_ 2_ 1-- 3_ 5_ 3* 2_ 1 5 7.-- 6._ 7._ 6.* 7._ 6. 5. 3-- 5 3* 2_ 1 5 7.-- 6._ 7._ 1* 1_ 1 2_ 3_ 2-- 0_ 5._ 1* 3_ 5* 1_ 7.* 3_ 5 0_ 5_ 6* 7_ '1* 6_ 6_ 5_ 5- 3_ 2_ 1* 1_ 1 3_ 2_ 1* 1_ 1 2_ 3_ 2* 6._ 7. 1_ 2_ 1-- 5. 1* 3_ 5* 1_ 7.* 3_ 5* 5_ 6* 7_ '1* 6_ 5-- 3_ 2_ 1* 1_ 1 3_ 2_ 1* 1_ 1 2_ 3_ 2* 6._ 7. 1_ 2_ 1-- 3_ 5_ 1-- 3_ 2_ 1--- 6. 7._ 6._ 6.5--Send the above music to the single-chip computer, and let's teach you how to send it. In addition, some people may ask, there are other symbols on Jane Pop, why not write them? These symbols have little effect on the integrity of the whole song, so you don't need to write them in, just write a few basic parameters. 4.Download Music Firstly, the RXD line from USB to TTL is connected to the position of P31 on the clock, the TXD line is connected to the position of P30 on the clock, and the GND is connected to the position of GND on the clock. If the clock needs to be powered by USB to TTL, the 5V on the TTL is connected to the 5V position on the clock. It can also be powered by power lines. Hold down the MODE key and power on the clock. The digital tube shows "A001", indicating that the clock has entered the bell download mode. 13 14 http://dk3chao.taobao.com Press the PLUS key again, and the digital tube will display "A002", indicating that the clock is ready to receive the ringtone. Open the serial communication software, as follows: Configure the serial port according to the parameters on the diagram, find the serial port to connect the clock, and open the serial port. Then the compiled music is copied to the sending buffer, and the point sending is OK. After the MCU receives the data, it will play the received music. If you feel that the music is unsatisfactory, you can press the PLUS key (showing "A002") and download the music again. When the download is completed, the clock will be re-energized, and the clock will enter the normal display state. Choosing the music numbered 7 in the whole time or the alarm bell is the music just downloaded. 14 14WPS 文字