After that, I created a new project. Go to Prejects >> right click >> New Project. I name it sara_pcb1.
Then I downloaded the Fablab Eagle Library. Which includes a bunch of electronic components that we can use in designing PCBs.
After that, I started reading the Datasheet of the microcontroller I will use "ATtiny44".
The folowing picture shows the pin configuration of ATtiny44. I used it to find power and ground pins. Also, digital and analog input and output pins, in addition to transmit Tx and receive Rx pins.
I designed a PCB that includes two LEDs. One of them will light ON immidiatly as the microcontroller is powered. I used it as a power LED to check if power reaches the microcontrller or not. The other LED will be controlled by the button. The microcontroller reads from the button, if it is ON the LED will be ON, and if the button is OFF, the LED will be OFF.
I put 1μF capacitor between VCC and GND to reduce frequency noise.
The following image shows the schematics.
As shown in the schematic design. I added a limiting current ressistor for each LED to avoid burning the LEDs. The resistance of limiting current resistor is calculated as follows:
Voltage (V) = Current (I) x Resistance (R)
V = I x R >> R = V/I
Supply Voltage (Vs) = 5V (in my PCB)
SMD Yellow LED Forward Voltage (VF) = 2.5 V
Forward Current (IF) = 20 mA = 0.02 A
Therefore, the limiting current resistance equals to:
R(LED) = (Vs - VF) / IF
R(LED) = (5 - 2.6) / 0.02
R(LED) = 120 Ohm
I can use a resistor of 120 ohm or greater as a current limiting resistor, and since the smallest value we have in the lab is 499 ohm I used it.
I used the Bivar Surface Mount 0805 package LED datasheet to find the forward voltage and forward current.
After I finished the schematics, I clicked on the icon Generate/Switch to Board to fix the places of the components and to connet them.
Before connecting I went to DRC to fix design rules.
I put the clearance to 17 mil, the size to 12 mil and the supply to 17 mil.
The image below shows the board after connecting all the components.
To put the board design in the milling machine, I should save it as a PNG image.The stepts of saving PCB design as PNG image:
This is layer settings icon
Then I opened the images in Fab modules to convert them to rml file which is the file formula that Milling machines understands
I took the rml files to the milling machine
And here is my board after milling and soldering.
At the end, I used the multimeter to check that all the components are connected properly.
In Embedded Programming week, I uploaded a program to the board to test if my board works
I had no problems, I did each step once without any mistake or problem.
For the group assignment, first I checked the continuety between components by using the Digital Multimeter. The beep sound means pins are connected and when there is no sound means the two pins are not connected.
Then I measured the supllied voltage by connecting my board with the laptop. I used the Digital Mutlimeter and I touched the VCC pin with the positive probe and the negative probe on the GND.
I also used the digital probe to check the pins that are connected to VCC and pins connected to GND. If the Level LED lights up means this pin is connected to VCC and vice versa if connected to GND. First two pins in the video connected to GND and last pin connnected to VCC.