WEEK06-ELECTRONICS DESIGN

Part 1 Design

1. Schematic design.
The assignment of this week is design a PCB and make it. Use software EAGLE to design. EAGLE is a convenient electronic design software. We need a chip as the brain of unit, ISP connect to programmer, FTDI for powering, and some components like resistor capacitor for protect or stable, and some other I/O elements like led, button. Download the software EAGLE and setup, open it and click on new project.
800x600
Click on new schematic.
800x600
Find the library name fab, there are all of components we can use in the lab.
800x600
Add chip we use ATTINY44, there are three in the library click on ATTINY44-SSU and click on use.
800x600
Add a resonator it contain a crystal and two capacitor, it can regulate voltage.
800x600
Add a capacitor. There are two kinds choose C1206FAB.
800x600
Add a resistor. Choose R1206FAB.
800x600
Add FTDI HEADER.
800x600
Add a pinhead choose PINHD-2X3-SMD.
800x600
Add a led choose LED1206FAB.
800x600
Add a resistor for led also choose R1206FAB.
800x600
Add a 6mm switch, actual it is a button.
800x600
Add a resistor for switch.
800x600
Search GND and choose supply GND.
800x600
Add where you need and right-click can change the direction of GND.
800x600
Search VCC and choose supply VCC.
800x600
Add where you need and right-click can change the direction of VCC.
800x600
Rename the components. Click on rename and click on the component and enter a new name.
800x600
Set the value of components.
800x600
Resonator is 20MHz, capacitor is 1 μF, resistor1 is 10k, resistor2 is 500, resistor3 is 10k, LED is blue.
800x600
Add wire on the pin and then add label for pin.
800x600
Rename the label and make the same label connect. The schematic was completed.
800x600
2. BRD desgin.
Click on SCHBRD icon it wil ask you if you want to build a brd, click on yes.
800x600
The BRD was build, but it should be adjust.
800x600
Set the clearance, distance and sizes. All parameters in clearnance should set as 16 mil.
800x600
Adjust the position of componets.
800x600
Click on autorouter, the software will routing. Change the bottom to N/A and Effort choose High. Click on continue, and click on start.
800x600
Routing completed find if there is 100%. If not adjust the position and try again.
800x600
No 100% was found, the highest is 96.2%. And one GND pin wasn't connected. I use 0 Ω resistor to connect so the VCC wire can go under the resistor and the GND can connect.
800x600
Adjust the size of brd.
800x600
Click on view and only show top pads and dimension.
800x600
Export a png and it can be recgonized by famodules. Click on export and choose png, name the png with traces and click on black and white, set DPI as 1000, area choose full. Then click on OK.
800x600
Open the picture with a picture editor. I use Snagit. add the a wire and a posion for resistor. Save it.
800x600
Delete the picture and leave the boarder at least 1 mm. Save as outline.png.
800x600
3. Check and export.
I am confused why no 100% routing. So checked my work with instructor Saverio, the problem is the size of width of line setting.I set the minimum width in sizes setting as 30 mil almolst 0.762mm, it is two large. So I change it to 13 mil.
800x600
800x600
Repeat autorouting. There is a 100% route.
800x600
Setting the size.
800x600
Export the png and do some edit on it.
800x600
Make a outline png.
800x600

TRACES Download

OUTLINE Download

Eagle File Download

Part 2 Cut

1. Generate code.
Open the fabmodules input the png and choose the output format as rml set pcb traces 1/64. Choose the machine as SRM20. Set speed as 2mm/s and x0 y0 z0 should be 0. Caculate and check if it is ok save it. Generate code of outline.png as the same but the mill head should be 1/32, the speed set as 3mm/s.
800x600
2. Cut with Roland SRM20.
Send the code to machine contrlled computer, and cut it.
800x600
Clean the pcb and make sure it is cut well.

Part 3 Soldering

1. Preparing components.
Find the components in the lab, we need these components as follow.
ATTINY44-SSU X1
PINHD2*3 X1
RESONATOR 20MHz X1
CAPASITOR 1μF X1
RESISTOR 10k X2
RESISTOR 500 X1
BUTTON 6MM X1
LED BLUE X1
FTDI-SMD-HEADER X1
800x600
2. Soldering
Take some mins to solder it.
800x600
3. Test.
Before programming, I need a .c and make file go to the websiste. The hello.ftdi.44.echo.c and hello.ftdi.44.echo.c.make are the codes we need.
800x600
Click it it show as web, save it as .c and .make.
800x600
Then rename the flile as hello.ftdi.44.echo.c and Makefile, then put them to a new folder called hellworld on desktop.
800x600
Open Git Bash and cd to the helloworld folder, enter the command make. Before make connect the board and ISP to computer.
800x600
Then two files was build in helloworld folder .hex and .out.
800x600
According to the make file type command make program-usbtiny-fuses.
800x600
Type command make program-usbtiny. It shows avrdude done Thank you. It is succeed.
800x600
Programming test have done.
800x600