- 1、本文档共12页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Propeller Analog/Digital Clock
History
I got this idea by browsing the web. I found by hazard? Mr. Bob Blicks page who make the first propeller clock.? I began to check how can I build one myself.? Base on AVR AT90S2313 I saw rapidly that my MCU must be clocked very fast to make all the calculations needed to light the leds at the right place.? The speed is at 16Mhz,? 4 times faster than Atmels specifications. Its working without any problems.
Each time the PCB passed at 12h00 an hall effect sensor sensed the magnet and generated an interruption. At this time, we have to check the counter to se how many ticks had been passed from this rotation since? the last rotation tooks this value and divide it by 360. This calculation will gives you the time between each degree.? Now, you have to set an interruption to occur at each degree and after you will be able to light leds whenever you want at any of 360 degrees.? At this MCU speed, there is no jitter everything is just FIXED!!!
A simple IR sensor is used to take the signal from the remote control (set to a Sony protocol).
Dont forget to use HIGH BRIGHTNESS LEDS 1600mcd.? Leds are not lighted very long so the mcds power must be high.
?
Features
Analog clock mode Digital clock mode Infrared clock setting with a standard universal remote control ?
Pictures
Click to enlarge
Anoalog mode Digital mode Stopped with flash at 1/60 sec
?
Sources codes Shematics
-Shematic in PDF format
?
//**************************************
// Clock 16Mhz
// Version 1.0 Janvier 2002
// Sylvain Bissonnette
//**************************************
//**************************************
// I N C L U D E
//**************************************
#include io2313v.h
#include macros.h
//**************************************
// D E F I N E
//**************************************
#define TRUE 0x01
#define FALSE 0x00
#define ANALOG 0x01
#define DIGITAL 0x02
//**************************
文档评论(0)