Browse Source

Added documentations and instructions to set up

BinHong Lee 7 years ago
3 changed files with 84 additions and 0 deletions
  1. +46
  2. BIN
  3. +38

+ 46
- 0 View File

@@ -0,0 +1,46 @@
# AVR - Sunrise Alarm Clock

The program is written for an ATMEGA168 programmed through an AVR.

**For a comprehensive guide (or hardware side tutorial), please go to [](**

### Requirements

This program requires the following stuffs to work on your computer:
- avrdude
- make
- cmake
- UART terminal

### Installation

1. Clone this repository
$ git clone

2. (Optional) Check the Makefile to see if it fits your microcontroller and controller.

3. Open your UART terminal.

4. Make sure your UART terminal is connected to your USART component.

5. Flash the microcontroller
$ make flash

### Removal

To remove this program from your computer, do the following:

1. Uninstall every other thing you installed from the requirements that you no longer need.

2. Delete this folder
$ cd ../
$ rm -rf AVR---Sunrise-Alarm-Clock

###### Author's note :
Most of the program has line by line comments written so it shouldn't be too hard to understand and to tweak it for your use.

diagram.png View File

Before After
Width: 831  |  Height: 469  |  Size: 46 KiB

+ 38
- 0 View File

@@ -0,0 +1,38 @@
# AVR - Sunrise Alarm Clock

This documentation is written around an ATMEGA168 programmed through an AVR. It might (should) be compatible with other microcontrollers but you will need to tweak the program and the set up a little bit here and there.

**For software side installation instruction, please go to [](**

### Requirements

The parts that is used in building the project includes:
- [ATMEGA168](
- Long breadboard
- Active Buzzer
- Photoresistor
- Button Interrupt
- 100uF 50V capacitor
- Resistor
- [USBtinyISP]( - AVR programmer & SPI interface
- UART serial port
- Bunch of wires

- Additional Resistor

### Putting it together

1. Solder your USBtinyISP according to the tutorial.

2. Put all the parts onto the breadboard according to this diagram. (If you do not have any LEDs or Resistors, ignore them)

3. Connect everything together onto your computer.

4. (Optional) If you have the LEDs and Resistors connected, make sure the LEDs is lightened up.

5. Proceed to flash the microcontroller with the program following the instructions [here](

6. Congratulations, you have it all put together!