Tuesday, 21 June 2011

DAY5(21JUNE 2011)

Replaced the relay- based inverter  using a npn transistor based inverter.
Successfully tested the clone. 

DAY4(20JUNE 2011)

Tried uploading code by repeatedly pressing the reset button everytime the LED flashed(since the previous program was Blink sample code). The Code was successfully uploaded by this process. By making one of the pins of the ATmega high at the beginning of code execution,  inverting this signal and connecting it to the reset pin , it was ensured that ATmega 328 was reset everytime control was passed from the bootloader . This signal was given to a reset pin through a switch.Then was done using a relay due to the lack of a npn transistor or an inverter. 

DAY3(17JUNE 2011)

Got a usb to serial cable with an internal FTDI chip.Successfully setup serial communication between the clone and the PC. Was unable to upload the new code as the cable had only Rx, Tx and ground lines. In other words the ATmega328 was not getting reset to run the bootloader. 

DAY2(16 JUNE 2011)

Got the STK500 board for uploading the bootloader program on the ATmega328.The fuse settings were as follows :-
LOW - 0xFF
HIGH - 0xDA
EXTENDED - 0xFD
Successfully uploaded the bootloader on the new ATmega328 which was tested by uploading sample codes using the arduino board. The bootloader was found in the path                                                                   arduino -0022\hardware\arduino\bootloaders\optiboot

DAY1(15 JUNE 2011)

Went to Sadar Patrrapa Road (S.P. Road). Bought Components For The Clone.
Components Bought
1. ATmega328
2. 16MHz crystal
3. Two 22 pF capacitors
4. One IC7805
5. Push Button Switch
Also rigged up the circuit the same day