<<<<<<<=Go Back To Home <<<<<=Previous Week || Next Week>>>>>

Week 7 : Electronics Design



Objectives

  • Redraw the echo hello-world board to include at least an LED with a current limiting resistor and a Switch.
  • Then mill the board and solder the components and see if it is working.
  • The main objective is to tryout Design tools for Electronics and familirious with the Electronics tools and components of your Lab
  • firstboard1

    Basic Electronics and Components

    Current (I) is a flow of electricity which results from the ordered directional movement of electrically charged particles.
    Voltage (V), also called electromotive force, is a quantitative expression of the potential difference in charge between two points in an electrical field. It can be direct or alternating.
    Resistance is an electrical quantity that measures how the device or material reduces the electric current flow through it. The resistance is measured in units of ohms (Ω). If we make an analogy to water flow in pipes, the resistance is bigger when the pipe is thinner, so the water flow is decreased.

    One volt will drive one coulomb (6.24 x 1018) charge carriers, such as electrons, through a resistance of one ohm in one second.

    Electronic Components

    Active and Passive components

    Active electronic components are those that can control the flow of electricity, and they work according to the functions given to it. Some examples of active electronic components are transistors, vacuum tubes, silicon-controlled rectifiers.
    Passive electronic components are those that dont have the ability to control current by means of another electrical signal and they are only capable of doing specific function . Examples of passive electronic components are capacitors, resistors, inductors.

    Through hole components and Surface Mounted Devices

    Through hole components are those components manufactured in such a way that the stuffing to the board is done through a hole in the board


    Surface Mounted Devices or SMDs are those components that can be surface mounted to the board and soldered.

    In our FabLab we use SMD components

    DIODE

    A semiconductor device with two terminals, allowing the flow of current in one direction only. The two terminals are cathode and anode with the cathode end of the diode may have a line marked .

    Resistor

    A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element.

    Capacitor

    A device used to store an electric charge, consisting of one or more pairs of conductors separated by an insulator.

    Pull-up and Pull-up resistor

    Pull-up resistors are resistors which are used to ensure that a wire is pulled to a high logical level in the absence of an input signal. Pull-down resistors work in the same manner as pull-up resistors, except that they pull the pin to a logical low value

    Resonator - crystal oscillator

    A crystal oscillator is an electronic oscillator circuit that uses the mechanical resonance of a vibrating crystal of piezoelectric material to create an electrical signal with a precise frequency. When connected in an electronic oscillator circuit, resonant mechanical vibrations in the device generate an oscillating signal of a specific frequency

    Microcontroller

    Microcontroller is a small computer on a single integrated circuit. It has only a CPU inside them in one or few Integrated Circuits.

    PCB Designing

    EAGLE (Easily Applicable Graphical Layout Editor)

    eagle

    Autodesk EAGLEis a design software for designing schematic circuit diagrams and also the PCB .

    Once installed EAGLE you will need to add the Fab library to the Eagle, Fab Library is the whole list of components we use to build PCBs with the FAB standard dimensions and names.

    Download Fab Library fab.lbr

    Fab Library
    Fab Library Added

    Steps in Design

  • Adding the necessary components from the Library.
  • Designing the Schematic Circuit Diagram
  • Converting to board and assembling the components.
  • After arranging , routing the board
  • Checking the design rules , then Autorouting and checking ERC errors
  • Exporting the png file for both the board diagram and outline.
  • Basic designs

    I tried a simple design with a LED, Switch, Resistor, and a Pinheader.

    1


    Schematic diagram

    There are certain commands we can use in EAGLE. Add command can open the library and we could add any components available to the create the diagram.
    Then Move command to move items, Delete command to delete items.
    Net command to create wire connections.
    Root command used for creating the connection between the components manually
    Rotate command to rotate the oreintation of items.

    We have a tool box on the left side which have all the above command tools and also other tools like copy, paste, groups, select , layers etc.

    2


    Board Diagram

    In schematic diagram go to Files tab and click Switch to Board we get components spread with connections, we just have to assemble the components to get a good board diagram

    HelloWorld ECHO Board

    We will be using the schematic of the Hello Echo Board, and our task is to redraw this schematic to include an LED, a switch and a resistor.

    Hello Echo Board
    Helloworld Echo Board

    Components Required

    • ATtiny44-SSU: Datasheet
    • 20mhz resonator: ATtiny has an inbuilt 8mhz clock, but this one makes it faster and more accurate.
    • 6mm Omron Switch
    • AVR ISP SMD header 2x3 : for programming the board
    • FTDI SMD header 1x6: powers the board and allows it to speak to the computer
    • A 499ohm resistor for the LED and a 10k resistor for the switch
    • 1µF capacitor
    • GND: Ground
    • VCC: Power supply

    Drawing the Schematic Diagram

    Add the components and draw the circuit. Use add, move, rotate commands as necessary and also use net command to make connection wires

    4

    5




    After completing the schematic circuit , check for any ERC errors and then Switch to Board View



    last01


    In Board view we have to assemble all the components .

    7

    8



    Then we could auto route it to check for any errors

    9



    We could choose the top route

    Design Rules

    We use a mil as unit of measurement while designing and milling a PCB.
    1 mil = 0.0254 mm
    As our drill bit for tracing the PCB is 16mil , we change all the width and clearance to 16mil , see below

    11


    And for the cutting outline of PCB we use 18mil width, see below

    12


    Layers Tool

    We can use layers tool to filter and view different sections of the board for eg: Top Bottom

    13

    13


    Adding a extra two Pin header to the board

    14

    last01

    last1

    withpin new2

    with pin new33

    last2


    With the Text command i named and added a text to the below of board as ECHO BOARD

    last4


    Download the design files Echoboard Design Files

    Exporting the png file for the Milling Machine

    For the tracing file we have to select only the layers - Top and pads

    For the PCB outline or cutting file , we have to select the deminsions filter in layer tool.

    outline

    Then we have to export both the files separately as png files, see below for export as png settings

    outline

    See below the EchoBoard png and the Settings in Fab Module

    echoboardmono


    Download the trace file Echoboard File

    fabmod1

    fabmod2

    fabmod3

    See below the EchoBoard Cut File png and the Settings in Fab Module

    fabmod3


    Download the trace file Echoboard Outline File

    fabmod1

    fabmod2

    Board and Board Assembly

    After milling the PCB , i cleaned the board with a cloth and then scrubbed it with a blade to give a finishing touch

    See Below

    board

    Now I collected all the components necessary for the Board from our Store, See Below list

    Collecting Components

    Soldering

    Now i started soldering the board

    aTtinyonboard

    Now my board is ready

    firstboard1

    Checking the board

    I checked the connections of my board with a multimeter, it was then i realized it had some problem with the connections.

    After some checking, i found that there were some connections missing between the VCCs and some between the common Grounds. I had my schematic diagram correct but i had given common VCCs and Gnds to the circuit so when i switched it to the board view, the common VCCs and GND weren't connected. And when i milled the board, the traces joining the VCC pins(also GND) pins were missing.

    Now I have to make it work somehow, with the help of my Lab Instructor Vinod , I somehow managed to find a solution.

    First of all I decided to manually edit my PCB trace file, i draw the missing connections of VCCs and GNDs, See Below Image , i gave red colour for the GND connections and Blue for VCCs.

    firstboard1

    Then i tookout my board to the soldering station.

  • I got lucky that there was an outline of copper layer around my circuit , so i could connect my GND of FTDI to the outline trace by soldering & pouring some lead and then the connect the wire between switch and LED to the outline copper with some hot lead.
  • Now i took a jumper wire and soldered it to the outline copper trace and conected its otherend to the GND pin of ATtiny44, so that way my Ground connections were now okay.
  • And now connecting the VCCs, firstly i connected the Vcc pin of my AVRISP header to VCC pin of FTDI header with a jumper wire.
  • Now the last thing , the connection to the VCC pin of ATtiny44 will be hard as i can't give a jumper wire over the circuit through that distance but i found a solution. I connected the jumper wire to the VCC pin of FTDI and got my jumper wire through the back of my board and connected it to the trace between Capacitor and Resistor, and my circuit was complete.

    hackedboard1 hackedboard1

    Board with corrected connections

    Programming the Board

    Checking whether my board would work.

    I connect my FabIsp to the USB port of the computer and with a FRC cable i connected it to my Board(2x3pin header).

    There is an example of how to program in our Schedule Programming

    Downloaded the hello.ftdi.44.echo.c file and hello.ftdi.44.echo.c.make file

    Makefile

    makefuse

    makeusbtiny fuse

    makeusbtiny fuse

    Group Assignment

    We need to use the test equipment in our lab to observe the operations of a microcontroller circuit board

  • Multimeter
  • an instrument designed to measure electric current, voltage, and usually resistance, typically over several ranges of values.

    mukltimeter
  • Dual Channel Voltage Regulator
  • It is a Programmable Multiple Channel DCPower Supply Device

    voltageregulator   width=

    Later on I used this machine for testing the voltage and current flow in my boards and for getting the output volatage to run the DC motors.

  • Digital Osilloscope
  • An oscilloscope, CRO for cathode-ray oscilloscope, or DSO for digital storage oscilloscope, is a type of electronic test instrument that allows observation of varying signal voltages, usually as a two-dimensional plot of one or more signals as a function of time. Other signals like sound or vibration can be converted to voltages and displayed.

    DSO

    Later on I used it to test the output signals from the programs I flashed in my boards.

  • Arbitrary Function Generator
  • An arbitrary function generator is a piece of electronic test equipment used to generate electrical waveforms

    DSO

    Outcomes of the Week

  • I was a Noobie to the field of Electronics and this week i got promoted to a Level 2 in Electronics which is still amateur
  • Learned Electronics Designing and PCB Production like i never imagined i would ever
  • Boosted my confidence in doing more circuit boards , including the one for my project
  • \
  • I have to still improve and learn more softwares like Kikad , 123D Design , Kokopelli etc.
  • I am far from being good at soldering and designing, still have to improve.
  • Creative Commons License
    This work by Aby Michael is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.