Electronics Design
Assignment 
-Redraw the echo hello-world board, 
add (at least) a button and LED (with current-limiting resistor) 
-Check the design rules, make it, and test it 
-Extra credit: simulate its operation 
-Extra credit: measure its operation


I usually like to start the electronic design on paper rather than diving straight into the EDA tools.

For this assignment, I am going to do a minimalist microconroller board with a button and a LED.

The microcontroller I am going to use is a Attiny 45/85, I find this suitable because only 2 pins are  required for the button and LED respectively. Another 2 pins will required for TX and RX for the FTDI connector. to work on the LED and button, the internal clock of suffices so I don't need to install a external crystal.

It is always a good idea to get hold of a copy of the Attiny45/85 datasheet and study it.

      http://www.atmel.com/images/atmel-2586-avr-8-bit-microcontroller-attiny25-attiny45-attiny85_datasheet.pdf

Like all microcontroller, Attiny 45/85  requires a VCC (power input) and a GND(ground).
As a good practice, always add a de-coupling capacitor(or noise filtering capacitor) between VCC and GND. In this case I use a 1 uF capacitor.

For Attiny45/85 microcontroller, depends on school of though, most would add a 10K ohm resistor to pull up the RST(reset) pin externally, this is to prevent accdental reset due to pin floating. It is a  reliability improvement feature, the system 
probably would work without it but I will just add it in for peace of mind.

To  program the Attiny45/85, an ISP(In System Programmer) connnector is required. This is a 2x3 header. And to provide USB serial connector to DTE(Data Terminal Equipment) device such as PC, a 6x1 header FTDI connector is required.

A current limiting resistor for LED is must, otherwise power thru the LED is as good as shorting VCC to GND. in this case a 1K ohm. For input I use a button, I will also use the internal pull up resistor, it can be enabled in software using the "Portx" command. 

Finally the circuit  should look something like the one shown below.