项目作者: GuanYu914

项目描述 :
The digital clock based on avr microcontroller
高级语言: C
项目地址: git://github.com/GuanYu914/WoodyClock.git
创建时间: 2018-03-15T17:28:40Z
项目社区:https://github.com/GuanYu914/WoodyClock

开源协议:

下载


WoodyClock

Introduction

This is digital clock with avr microcontroller, it provides 3 modes to check time, date and tmeperature. To change mode by
pressing push button, the information of modes will show on the 7 segment display. Another feature is charging, it can power
with Li battery, maintain the power for 3 days at least.

Development Environment

The design of whole PCB is under Kicad 4.0.7, and the source code is under debian linux. You can extract rar which locate in pcb directory, then open this project with Kicad IDE.

You can use below instruction to setup AVR-GCC ToolChain

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install gcc-avr binutils-avr gdb-avr avr-libc avrdude
## Preview Display ### Information of Time Uses 24 hour for displaying. ### Information of Date Uses cross-displaying. ### Information of Temperature Uses degrees Celsius ## Layout of PCB ## How to set clock time and date manually. ### Step 1 Remove the module which surround with the red area, and connect USBASP programmer to ICSP pins. If you don't have USBASP programmer, buy it online. It doesn't very expensive to get.

The pinout of USBASP from internet.

If board is like this, you are ready to program it.

### Step 2

Download this repository.
Move into "src" directory.
Edit "main.c" source code.
PS. You must install vim before you edit it.

  1. git clone https://github.com/GuanYu914/WoodyClock.git
  2. cd src
  3. vim main.c

Step 3

Uncomment this fuction.



This statement will set year to 2018/6/11, set time to 15:8.

You can modifly function parameter to adjust time correctly.

Step 4

Compile and upload code.

Move into “src” directory.

Type “make flash”.

  1. make flash

Step 5

Don’t forget to comment this function, then upload again.