Contents
Part description
The heart of the alarm clock is an Atmel ATmega8535 microcontroller (MC). It is clocked at 11.0592 MHz to facilitate an RS-232 serial interface, should the need ever arise. Currently, this is not implemented, but the clock frequency would allow for easy timer configuration for the usual serial communication setup to link with personal computers or workstations.
For radio time synchronization, a DCF77 receiver module from Conrad Electronic, order code 641138, is used, which runs at a wide range of supply voltage, and has open-collector outputs for DCF pulse signals, both normal and inverted. Connection to an MC input pin therefore requires the use of a pullup resistor.
When not being received from DCF77, time is kept in a DS1307 real time clock (RTC) chip with I2C bus interface. This can be connected to the MC's TWI interface, which is essentially the same technology under another name. This bus is clocked at 100kHz in this device. The I2C bus also allows for easy extension at a later time, which is currently planned for an RGB LED controller yet to be developed.
An Anag Vision AV2040 module is used as a display. This is a 4 line, 20 character, backlit display module that can be connected through a 16-wire interface. However, if driven in 4-bit mode, it takes only 6 MC I/O pins which is an acceptable footprint. It would have been possible to also use an I2C interface here, but this display was the most readily available for me. Please note that even though the datasheet of AV2040 says it uses a KS0066 or compatible controller, an initialization sequence from the KS0073 is needed to enable 4-line display mode. KS0066 datasheet does not mention the "extended function" register that is listed for KS0073, however this module needs exactly that mode to enable all four display lines.
Revisions
CL-B01.02
Current development revision.
Images
|
|
|
|
Changes to previous revision
- Integrated CL-B02 (buzzer pulse circuit) and CL-B03 (RGB LED PWM controller) into CL-B01 main board.
- Therefore new external interfaces.
External interfaces, Rev.02
JP01 |
Connector to LCD |
JP01.01 |
LCD GND |
JP01.02 |
LCD Vcc +5V |
JP01.03 |
LCD drive |
JP01.04 |
LCD function select |
JP01.05 |
LCD read/write |
JP01.06 |
LCD enable |
JP01.07 |
LCD data 0 |
JP01.08 |
LCD data 1 |
JP01.09 |
LCD data 2 |
JP01.10 |
LCD data 3 |
JP01.11 |
LCD data 4 |
JP01.12 |
LCD data 5 |
JP01.13 |
LCD data 6 |
JP01.14 |
LCD data 7 |
JP01.15 |
LCD backlight +V |
JP01.16 |
LCD backlight GND |
JP02 |
Snooze/Display backlight switch, normally open |
JP03 |
Alarm bell power connector |
JP03.1 |
Alarm +5V |
JP03.2 |
Alarm GND |
JP04 |
Connector for DCF77 receiver module |
JP04.1 |
DCF data |
JP04.2 |
DCF +5V |
JP04.3 |
DCF GND |
JP05 |
Main controller ISP, AvrISP |
JP06 |
User input dial pulse input, normally open |
JP07 |
Power supply, DC 9V 200mA |
JP07.1 |
Power GND |
JP07.2 |
Power +9V |
JP08 |
RGB LED PWM ISP, AvrISP |
JP09 |
Dial backlight RGB LED connector |
JP09.1 |
LED GND |
JP09.2 |
LED red + |
JP09.3 |
LED green + |
JP09.4 |
LED blue + |
LED01 |
(red) Signals activity on the I2C bus |
CL-B01.01
Current stable revision.
External interfaces, Rev.01
JP01 |
Connector to LCD |
JP02 |
Snooze/Display backlight switch, closed when active |
JP03 |
Alarm bell power connector |
JP04 |
Connector for DCF77 receiver module |
JP05 |
In system programming connector, AVR 6-pin |
JP06 |
User input dial pulse input, closed when active |
LED01 |
(red) Signals activity on the I2C bus |
Images
|
|
THIS DATA IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All product and brand names mentioned on there pages and in the source code are registered names and/or trademarks of the respective owner and are mentioned for identification purposes only.
For a full copyright notice, please see this link. For imprint and contact information, please see http://www.thiemo.net/.