#Exercise_6

2/03/2016


Assignment

Electronics design

Redraw the echo hello-world board and add at least a button and LED with current-limiting resistor or design your own.



Design the hello-board


Tools

For the assignment I have decided to use Eagle electronic cad software and the plug-in pcbgcode to make the board. I have redraw the original board and added a button and two smd led, one green and the oder one red.



Draw the board on Eagle

Source file



1rst step: I started to spent some time to make the BOM and consult the components datasheets.


  • ATTINY44A-SSU-ND datasheet
  • CER RESONATOR 20Mhz
  • n.2 RESISTOR 10K
  • n.2 RESISTOR 390 OHM
  • PUSH BUTTON SMD
  • CAPACITOR 1 uF
  • CAPACITOR 0.1 uF
  • RED LED
  • GREEN LED
  • FEMALE STRIP HEADER
  • SPI 2x3 MALE HEADER

Saizing the traces width:

The most stressed trace must support 80mA of current, so to sizing the traces I used the robot Italy ruler. With a 35um of copper thickness at 25ºC and ^10ºC/A I could use the smollest 6mil trace. But this dimension is too small to mill so I decided to use 16mil traces and when nedeed 12 mil traces.



2nd step: in order to proceed I have saizing the components that I will use to make board.


Saizing the smd led resistors:

I have applied the first Ohm law's; from datasheet both the SMD led PLCC-2 Vf = 1.9V and if = 20mA, the Vs = 5V. I decided to use less current of max Vf, near 12mA.

R =
Vs - Vf / i
= Ohm
R =
5V - 1.9V / 0.012A
= 258Ohm

I will use the nearest standar resistor of the serie taht we have in the lab, so a 390Ohm 5%.


Saizing the push button:

in order to obtain a good performance I decide to use a little capacitor of 0.1uF to obtain an antibounce solution; and I used a 10Kohm resistor for a pull-down solution instead of the integreted one of the attiny pin.

Power input:On the power line we have a 1uF capacitor in order to stabilize the power input.



b_3



b_2



b_4

3rd step: adding some libraries (fabacademy lirary, sparkfun and adafruit libraries) to Eagle in order to have available all the needed components, I have followed this tutorial.

Useful Eagle tutorials.



b_6

4th step: create a new project and schematics, after add all the components of the boards to the canvas.



b_5

Tip: to add a component using the add command, could be usefull to use the * before and after the search word, in order to obtain a good result (thanks to Gianfranco for the tip).



b_7

5th step: add the lable with Xref on for each pin that we must connect, in order to obtain an ordered shematics.



e_0

6th step connect all the components at the right place and obtain the schematic.



e_1

7th step: run the ERC function and check for errors, if needed correct the errors.



e_2

8th step: generate the board, positioning all the components and draw the milling ouyline.

I took a lot of time to make the final rooting, so I learned that the position of the components are very important to obtain good results and an easy work at the routing time.



b_0

9th step: I started to use the autorute function, but I not reached sadisfactorily results. So I ruted all the PCB manually, and this took a lot of time.



b_1

10th step run the ERC function and check for errors, if needed correct the errors.



e_3

11th step: run the DRC function and check the distance between each traces, pads and ect to make sure that we have at least the thickness of the head of our v shape bit.



Mill and solder the Hello board

Source file



s_1

1st step: in order to make the board I used the pcbgcode Eagle plug-in, following the same process described and experimentate in the module number 4, Electronics production please see this link.



s_0

2nd step: results after milling and soldering.



s_3

Errors: after the PCB milling as usual I sended the board with send paper, but during the process I push a little bit too much and I washed-up a couple of traces; so I repared these soldering a jumper wire. The washed-up traces was very thin 11mil.



s_4

Errors: when I designed the schematic I have used a wrong package for the resonator, a little bit too small! I realized the error only at the end, because was the last component that I soldered.

Soldering the resonator was very hard, a surgical operation but I have no shorts, and work.



s_2

the FTDI connected to the board.



s_2

Testing the board: I connected the board to the laptop through the FTDI and I have got no smoke, in the next days I will program it.