In week 5 we are introduced to electronics Production. we are asked to make our FabISP board. for that we need to learn how to design our circuit board, we are introduced to the printed circuit board (PCB).
The printed circuit board is basically a fiberglass board coated with copper traces ( paths on the PCB board which connects different components of circuit board like power, resistor, diodes ). Copper traces are an
essential part in the design of PCB, you may have seen in circuit board every traces or copper wire are arranged in a nice manner, it is important because the length of copper wire controls time delay of communication.
Click Here! for more information.
PCB can be characterized by different layers:
Single Sided pcb
In Single-Sided PCB copper layer is coated only one side, in this type of board components and joints are connected only one side. Single-sided printed circuit boards are easily designed and quickly manufactured. They serve as the most cost-effective platform in the industry.
Benefits of Single Sided PCBs.
Double sided pcb
In Double-sided PCB copper layer is coated on both sides allowing connections on both sides of boards. Double-Sided PCBs (also known as Double-Sided Plated Thru or DSPT) circuits are the gateway to higher technology applications. They allow for a closer (and perhaps more) routing traces by alternating between a top and bottom layer using vias. Today, double-sided printed circuit board technology is perhaps the most popular type of PCB in the industry.
Benefits of Double Sided PCBs
Multilayer PCBs
In Multilayer PCBs circuit boards consist of more than two copper layers in which copper traces are interconnected two or different layers of the circuit board, these boards are very useful for making multi-functional circuit boards. Unlike a Double-Sided PCB which only has two conductive layers of material, all multilayer PCBs must have at least three layers of conductive material that are buried in the center of the material.
Benefits of multilayer Sided PCBs
Rigid PCBs
There are different types of layers in PCB, so their inflexibility can vary. Rigid printed circuit boards use a solid, rigid substrate material like fiberglass that remains the board from twisting.
Benefits of Rigid PCBs
flex PCBs
Generally, the substrate is a flexible board is a flexible plastic. This fundamental material permits the board to fit into forms that inflexible boards cannot & to turn or shift during use without harmful the circuits on the printed circuit board. Though flex boards tend to charge more to intend and create than rigid PCBs, they come with a number of advantages. For instance, they can restore heavy or bulky wiring in superior gear like satellites, where weight & space matter. Flex boards can also come in three formats, namely single-sided, double-sided or multilayer formats.
Benefits of flex PCBs
Rigid-flex PCBs
Rigid-flex boards merge technology from both flexible and rigid circuit boards. An easy rigid-flex board comprises of a rigid circuit board that joints to a flex circuit board. These boards can be more compound if design requests demand.
Benefits of Rigid-flex PCBs
An electronic component is any basic discrete device or physical entity in an electronic system used to affect electrons or their associated fields. They give the circuit the unique qualities that make it fit for
its intended purpose. Depending on the device or electronic item a PCB is designed for, different components will be needed for different circuits. These components can consist of a wide range of electronic parts.
Before understanding the different types of components its necessary to know the type of technology they are going to be used in. The technology is classified into two types as follows.
technologies
Through-hole technology (tht)
In SMT Components are placed or mounted directly on the PCBs.In the industry it has largely replaced the through-hole technology construction method of fitting components with wire leads into holes in the circuit board.
Surface-mount technology (SMT)
Refers to the mounting scheme used for electronic components that involves the use of leads on the components that are inserted into holes drilled in printed circuit boards (PCB) and soldered to pads on the opposite side either by manual assembly (hand placement) or by the use of automated insertion mount machines. Through-hole components are best used for high-reliability products that require stronger connections between layers.
switches
Switches can come in many forms such as pushbutton, rocker, momentary, and others. Their basic function is to interrupt electric current by turning a circuit on or off.
Resistor
Resistors are used to resist the flow of current or to control the voltage in a circuit. The amount of resistance that a resistor offers is measured in Ohms. Most resistors have colored stripes on the outside and this code will tell you it’s the value of resistance. You can use a multimeter or Digikey’s resistor color code calculator to determine the value of a resistor.
Variable Resistor (Potentiometer)
A variable resistor is also known as a potentiometer. These components can be found in devices such as a light dimmer or volume control for a radio. When you turn the shaft of a potentiometer the resistance changes in the circuit.
Light-Dependent Resistor (LDR)
A light-dependent resistor is also a variable resistor but is controlled by the light versus turning a knob. The resistance in the circuit changes with the intensity of the light. These are often found in exterior lights that automatically turn on at dusk and off at dawn.
Capacitor
Capacitors store electricity and then discharge it back into the circuit when there is a drop in voltage. A capacitor is like a rechargeable battery and can be charged and then discharged. The value is measured in F (Farad), nano Farad (nF) or pico Farad (pF) range.
Diode
A diode allows electricity to flow in one direction and blocks it from flowing the opposite way. The diode’s primary role is to route electricity from taking an unwanted path within the circuit.
Light-Emitting Diode (LED)
A light-emitting diode is like a standard diode in the fact that electrical current only flows in one direction. The main difference is an LED will emit light when electricity flows through it. Inside an LED there is an anode and cathode. Current always flows from the anode (+) to the cathode (-) and never in the opposite direction. The longer leg of the LED is the positive (anode) side.
Transistor
Transistors are tiny switches that turn current on or off when triggered by an electric signal. In addition to being a switch, it can also be used to amplify electronic signals. A transistor is similar to a relay except with no moving parts.
Relay
A relay is an electrically operated switch that opens or closes when power is applied. Inside a relay is an electromagnet that controls a mechanical switch.
Integrated Circuit (IC)
An integrated circuit is a circuit that's been reduced in size to fit inside a tiny chip. This circuit contains electronic components like resistors and capacitors but on a much smaller scale. Integrated circuits come in different variations such as 555 timers, voltage regulators, microcontrollers, and many more. Each pin on an IC is unique in terms of its function.
Schematic Diagram
When working with circuits, you will often find something called a schematic diagram. These diagrams use symbols to illustrate what electronic components are used and where they’re placed in the circuit. These symbols are graphic representations of the actual electronic components.
Printed circuit board milling (also: isolation milling) is the process of removing areas of copper from a sheet of printed circuit board material to recreate the pads, signal traces, and structures according to patterns from a digital
circuit board plan known as a layout file.
I started with learning ROLAND MDX-20 circuit milling machine!
STEP 1: Learning to use Roland milling machine
we have Roland MDX-20 for PCB milling. Roland Mdx -20 is able to do many operations like 3d milling, 2.5d cut, and simple 2d cutting. it can support many types of files like DXF, VRML, STL, IGES, Grayscale, BMP. Specifications are written below. Click here to know source of image.
SPECIFICATIONS:
XY Table size : 220mm * 152.4mm * 60.5mm
interface : Serial (RS-232c) hardwere flow control
Modeling function
TOOl chuck : 6 mm
Spindle motor : 10W
Softwere resolution : 0.025mm/step
Mechanical resolution : 0.00625mm/step
RPM : 6000 rpm
Feed rate : 0.1 mm to 15mm/sec
Export file formats : DXF,VRML, STL, IGES, Grayscale, BMP
Acceptable tool : Endmill, Drill
Click here for more imformation.
STEP 2: Controls
These are the controllers of the milling machine.
Start: To start the Machine
View: By clicking view machine went to its origin.
Up and Down controls: to control tools vertical position (Z axis)
Cutting tools
These are the two main cutting tools we used for tracing and Cutting.
Fixing tool with machine
In milling, machine key is used to fix the tool in the rotating shaft, since milling machine rotates about 6500 rpm it is Dangerous to keep it loose.
Tracing
In-circuit design, Tracing is clearing the unnecessary portion in the circuit board, portion without copper paths called Traces.
Cutting
Cutting is the process of simply cutting the border of the designed circuit to make it apart from the board at the end of circuit design.
ISP ATTINY 45
Below is an example of ( ISP ATTINY 45 ) designed by Brian.
Milling machine works on the principle of monochrome. the machine will generate a tool path on basis of Black and white intersection, on the edges of black and white colors machine will cut and it will only cut towards black color if
some offset is given on settings, That's why traces should always be in white one.
Design of ISP (In-system programming) board
The FabISP is an in-system programmer for AVR microcontrollers, designed for production within a FabLab. It allows you to program the micro-controllers on other boards you make.
Original Files : PNG file for tracing, PNG file got Cutting.
Board and Schematics
This board contains an ATTiny 45 microcontroller with six head ISB pins.
Download Board Diagram and SCHEMATIC diagram.
Board diagram of circuit
schematic diagram of circuit
Making PSB using fab-modules : TRACING operation
I have used a Linux based system for my PCB milling. to run the fab modules, your machine should have some things preinstalled, click here for guidance. I've posted the work of fab-modules here. I've posted the work of fab-modules here.
Import .png Image
Output format
Set output format to .rml.
Machine set to MDX-20
After setting up machine to MDX-20. These are the other settings to keep in the machine, Tracing these images are fine, but it can be different for the machine to machine depending on coper cover on the board.
Climb - it gives the ability to Tool for moving in the z-direction and start cutting from one particular side, it is favorable.
Cut depth - Cut depth is how deep you want your tool to go in the Fiber-copper board. 0.1 is good for tracing operations and 0.6 is good for cutting operations
Tool Diameter - Write the tool's diameter
Number of offset - It decides How Many times the tool will pass from that path keeping some offsets.
Offset overlap - Offset overlap is the value given to the tool path to overlay the cutting portion. If I'm giving 80% overlap then the tool will pass 80% of the portion of the cut area. Only 20% of the new area will be cut.
Number of offset feature
The number of offsets is an important feature in PCB milling, it will determine how much copper will cut around the trace so it will define the time limit also. keeping offset lower sometimes causes thinner traces because it can affect adjacent traces thought it will never show on the preview. below is a gif of decreasing the offset from 4 to 1 and observing the toolpath around traces.
Number of offset value : 0 or -1
When the number of the offset will be 0 or -1, it will trace on the whole black are, see below
Offset overlay
Offset overlay is a great feature also, it will reduce the cut area, but it will give more clean-cut it increased. see below decreasing the offset overlay will Increase the chances of uncut material on board because the adjacent tool path will go far from each other. Offset overlay is the measure of milling bit diameter.
Settings for 1/64 bit
cut depth : 0.1
Tool diameter : 0.4mm
Offset : 4
overlap : 50 %
And then click calculate.
after calculating it will generate a path from an Online server and creates images like this Click send to Cut the traces on the board but before clicking send Remember one has to set one origin first from where you want to start your cutting. See below
Tracing starts :
Cutting operation on Copper board
Import image for cutting The Board.
change the tool to 1/32
cut depth : 0.6
Tool diameter : 1/32
Offset : 1
overlap : 50 %
Set same Origin
Here! you have to give same X and Y positions you gave in Tracing.
Step 6 : OUTPUT
Tools :
solder : material for joining the components to circuit board
solder-iron : it is used to melt the solder-coil
solder-iron stand : for placing solder iron at safe place
solder-wick : to remove the extra solder from board
Tweezers : To place the components in circuit board
Components for Fabtinyisp :
solder
Components
ATtiny45 microcontroller 3.3v Zener diodes * 2 1K Ohms register * 2 499 Ohms register * 1 49 Ohms register * 2 LEDs * 2 6 Pin header
I am demonstrating how to do solder here, I was doing solder on vinyl cut PCB one that my friend Samuil made. but It was not strong enough and broke, you can still learn to solder below.
First melt solder on coper path
To melt solder, Heat coper path with iron and then Let solder be in contact with copper, copper will melt it. It is not good practice to have direct contact between solder and solder-iron. it vaporizes solder and goes inside of our body by breathing it.
Place BIG> components first
Always place big components or components which have specific orientation FIRST !, solder only one pin of the micro-controller first
Orient after soldering one pin
Then place solder on the second pin
Then solder small components
solder One side then Align and then give solder to another side.
Don't forget soldering the remaining pins of Micro-controller
ISP-board is ready
After solder my copper board I was able to make my ISP.
Final images
Hoping After doing a few times I was becoming good at soldering.
removing extra solder coil
Removing extra Tin with a copper wick ! after solder it was time for removing the extra solder coil from circuit to avoid short-circuit ! it is good practice to do.
Validating circuit (SMOAK TEST! & BUZZER TEST)
Samiul teaching us How to use instrument for validating our Circuits.
Smoak Test
In electronics and electrical engineering, the term smoke test or power on test is used to refer to the first time a circuit under development is attached to power, which will sometimes produce actual
smoke if a design or wiring mistake has been made. Most often, this smoke comes from burning resistors, which produce a unique smell.
Smoak test should not be done before buzzer test.
Buzzer test or Continuity testing
Continuity is the presence of a complete path for current flow. A circuit is complete when its switch is closed.
A digital multimeter’s Continuity Test mode can be used to test switches, fuses, electrical connections, conductors and other components. A good fuse, for example, should have continuity.
See below, By placing two connectors in power and ground, I checked for any leakage or short, if the circuit is not fine, it will be red light below on instrument. if the light is green your circuit is safe.
Short IF Red
See ! if I'm connecting two connectors directly it turns out red, means it is shorted.
Good for firmware upload
After both tests are successfully done, isp can be programmed.
Programming the ISP-Board
Before starting the programming the ISP-Board I solders, I Connected my junctions! it is a necessary process for the programming ISP Board. After validating the ISP I started programming it. I follow Adhitya-ss's page for programming isp. I used Linux for that.
Use solder to create a bridge on the jumper near the ISP header (J1). This temporarily connects VCC to the Vprog pin on the ISP header so that the header can be used to program the tiny45. (The programmee supplies voltage on this pin and the programmer detects it). Once it's programmed, we'll remove this bridge to turn the board into the programmer rather than the programmee.
Installing prerequisites
First I opened the terminal and downloaded GCC and lib for compilation. in my machine I have already GCC-avr so didn't download but here are the links for download.
Followed this step by step instruction to install GCC-avr.
sudo apt-get update
sudo apt-get upgrade all
sudo apt-get install gcc-avr binutils-avr avr-libc
sudo apt-get install gdb-avr
sudo apt-get install avrdude
You can also install all everything by
sudo apt-get install avrdude gcc-avr binutils-avr avr-libc make
Once all the lib and avrdude is set up, its time to download the firmware. The firmware can be downloaded from the following link
Go to firmware location
Then I navigated to desktop by using
cd ~/ desktop
Then unzip the firmware at desktop
unzip fts_firmware_bdm_v1.zip
cd ~/ fts_firmware_bdm_v1
Connect it to Programmer
I connected my ISP to the programmer. Plugged one end to the USB and the other on the header.
Green Light: means that the header is soldered correctly
Yellow Light: means that the board is getting power, but most likely the 6-pin programming header is not soldered correctly(reflow solder joints, check for correction)
Red Light: means that the board is not getting power - check for shorts(Buzzer test and Power test).
Light on avrisp2 is green, so my ISP is ready to be programmed.
Editing Make file
This will build the .hex file that will get programmed onto the ATtiny45. First, update the Makefile for the type of programmer you're going to use to program your board. The Makefile, by default, assumes that you're
going to use a programmer in the usbtiny family (e.g. another FabISP board). Other familiar names are: avrisp2, jtag2isp
If you want to program isp with another module keep this settings or give name of ("PROGRAMMER ?=)" to programmer's microcontrollers name.
If you want to program another ISP then change It To
"USBtinyspi".
Make flash
make fuses
This will set up all of the fuses except the one that disables the reset pin.
lsusb
Then plug out ISP from the programmer and check it on the USB port then type lsusb, If you see a "Multiple Vendors USBtiny" device, it worked! If it didn't, the dmesg command might provide more info on what went wrong.
plugged in into laptop
Then I unsoldered the junction and plugged in into my pc to see if it recognize! and yes it recognized it.
Then I solder it again and connected isp to the board second time and run the code make rstdisbl. This
does the
same thing as
the make fuses command, but this time it's going to include that reset disable bit as well. You should see some progress bars, and with that, avrdude will never be able to talk to this chip again through the ISP header.
now, we need to disconnect VCC from the Vprog pin on the ISP header by removing the bridge on the solder jumper. Sometimes the excess solder will stick to a clean soldering iron tip; if not, use the desoldering braid to remove the solder from the jumper, thus breaking the connection.
Programming another ISP
Then I checked my isp by connecting another one, and it was working.
this week's group assignment was to characterize the machine. Since pcb milling was very new to most of us , we started with understanding from the beginning , before going to machine we liked to see the specifications of this machine and
how we can use fab modules to use the Modela mdx-20.
in group work I especially focus on the machine specifications and its modeling capabilities, I was intended to test the parameters and see their effects on the final output. I saw how I can do a clean cut by just increasing the offset and overlap. I knew it as low chances of breaking because it will cut lesser material in comparison. The link for group work is Here.
This week was totally focused on learning new things, many new things I was applying in my Assignment specially Milling the circuit board, observing and understanding the Mdx-20, then doing soldering it was a very good experience. I am still confused about Linux commands and about programming the microcontrollers but I will figure out that in up-coming weeks.