Week6- Electronics design

Introduction

Currently I am attending both fab-academy and fabzero. Since Bhutan is under lockdown, I had to work in containment zone along with Fran, Sibu and the SFL team in superFablab to set up the lab. So luckily for me, I had access to all the machines (Lots and lots of machines) but sadly we dont have Roland SRM20 with us but we have jake's clank machine.

Assignment

group project:

individual project:

Group assignment

The group assignment is here

Milling machine


The machine: Jake's clank machine

image

Softwares: KiCAD, mods CE, inkscape, Clank controller

Designing a PCB board

I used Eagle during the pre-fabacademy and started using kiCAD during the fab-zero program. After using both the softwares, i personally prefer kiCAD. So for this week, i used kiCAD to design my hello-world board. KiCAD is an open source software and i personally found it easier to design board in kiCAD than in eagle.

Tutorial on kicad= kiCADtutorial

Here are some of the keyboard shortcuts in KiCad

Editing a schematic

Editing a PCB layout

Hello-world board

Steps for creating a schematic file

  1. Click on file-> new project or click new project on the top menu and name the file

  2. Open the schematic

  3. Add the components

  4. Connect the components using add a wire

  5. Right click on the components and click properties and assign values

  6. Click on tools ->assign footprints and select footprints for each components

    image

  7. Click on inspect-electrical rules checker to check if there are any errors

    image

Steps for creating a PCB layout

  1. Click on PCB in board editor on the top menu and a blank page opens up

  2. Click on update PCB with changes made to schematic and update the PCB

  3. Arrange the components #Grid-5mm

  4. Click on edit board setup-> design rules->constraints and set the parameters

    image

  5. Click on predefined sizes under design rules and set the parameters

    image

  6. Click on route tracks on right side of menu and route the track connections (Click on route->interactive route setting and select shove option)

    image

  7. Click on draw a line on the right menu and draw the edge.

  8. Right click on the edge line and select properties and choose the line width 0.8mm(for fablab machine)

  9. Click on view- 3D viewer to see the board in 3D version

  10. Route the tracks. Press W while routing the tracks to change the width

  11. Click on inspect->design rules checker to see if there are any errors

    image

To save the file

Click on file->plot

  1. To save gerber file
  1. To save svg file
  1. Inorder to have a file in png (mods accept png files), open the svg file in inkscape

The traces of the board

image

The edge of the board

image

Mods

  1. Go to mods

  2. Right click-> programs-> open grograms-> g-code-> mill 2D PCB

  3. Open the png image and then calculate to get the g-code file for traces

    image

  4. Open the png image and then calculate to get the g-code file for edge

    image

Jake's clank LLZ machine

I had to use Jake's clank LLZ machine in place of Roland SRM20 because some of the machines have still not reached the super fablab and Roland machine is among one of them. But it was fun to use a different machine. Although the Jake's machine was vibrating alot while milling and since it doesnot have a lid and i had to keep vaccuuming in between. It is not very user friendly, but at the end of the day, my weekly assignment is done thanks to the Clank LLZ machine.

  1. End mill
  1. Copper board

    image

Milling the board

After getting g-code file from the mods, i started milling the board

image

I used V-bit to mill the traces

image

I used 1/32 end-mill to mill the traces

image

#Note: While milling, ensure to keep a vacuum cleaner near the jake's clank machine since alot of dust is produced and the machine doesnot have an enclosing lid. So, vacuum while the machine is in operation.

image

image

Soldering

  1. List the materials and assemble them. Solder the components one by one (Tip- Start with soldering the microcontroller first)

    image

    image

Programming the Hello-world board

  1. First test to see if your hello-world board is working properly and do not have any short circuits. For that, try to connect to a power bank rather than connecting to the usb port of your laptop as it can damage the usb port of your laptop. The red LED indicates the power supply is present.

    image

  2. To prgram the hello-world board, i am using arduino software. To add the attiny to the arduino, follow the instructions here.

  3. I programed the blink program to the hello-world board but the green LED wouldnot blink.

    Trouble shooting:

    • When i measured the voltage between the VCC and the GND of the ATTINY 44 microcontroller, i found that the volatge was 2.2V instead of 5V.

      image

    • I looked under the microscope and found that the ground of the ATTINY 44 microcontroller was just floating in the air. I rectified it.

      image

    • But it still wasnot working, so I performed continuity test using multimeter and found that the PB2 pin and PA7 pin was cold soldered. I kept the soldering iron on the PB2 pin and PA7 pin so let the soldering iron melts downwards.

      image

  4. As I connected the hello-world board to the supply, the Green LED started blinking.

😊

The design files

The files of the following list is here

  1. The schematic of hello-world board
  2. The PCB file of hello-world board
  3. Gerber file of hello-world board
  4. SVG file of hello-world board
  5. PNG images of traces and edge
  6. G-code file of hello-wrold board