Electronics Design

We can make Almost Anything..

Weekly Task

Group assignment

    Use the test equipment in your lab to observe the operation of a microcontroller circuit board

Individual assignment
  •  Redraw the echo hello-world board
  •  add (at least) a button and LED (with current limiting resistor)
  •  check the design rules, make it, test it, simulate its working and render it

This is electronic design week in which we have to learn the circuit design software and redraw the hello board and add a LED and a button. It sounds simple, but I knew it will take lots of study to understand where to put them.

What is Eagle

EAGLE (Easily Applicable Graphical Layout Editor) is a flexible and expandable EDA schematic capture, PCB layout, autorouter and CAM program. EAGLE is popular among hobbyists because of its freeware license and rich availability of component libraries on the web.

Neil provided several images for the hello board.png. then I downloaded Eagle software and installed it on my windows OS.The procedure is very simple and one can dowwnload the free software from the official Autodesk website.

In this software 2 main steps in designing a PCB in Eagle.

1.Schematic section- In this section we can add components our PCB and specify the connection between them. we can also add the values of componenets.

2.Board section - In this section we will decide the route of connections of various components of the PCB.

Basic Electronic
1.Capacitor-C: A capacitor is a passive electronic component that stores energy in the form of an electrostatic field.

Resistor: A resistor is an electrical component that limits or regulates the flow of electrical current an electronic circuit. Resistors can also be used to provide a specific voltage for an active device such as a transistor.

Current- I: Current is a flow of electrical charge, usually electrons or electron-deficient atoms.

Volt/Voltage-V: A quantitative expression of the potential difference in charge between two points in an electrical field, for example a battery. The greater the voltage, the greater the flow of electrical current.

Ground-GND A ground is a direct electrical connection to the earth, a connection to a particular point in an electrical or electronic circuit.

Positive-VCC VCC stands for "voltage at the common collector." The letter "V" on a circuit stands for the supply voltage. The letters "CC" indicate that the supply voltage is positive or negative. If the charge is positive, its circuit is a Negative-Positive-Negative circuit, and if negative, it is a Positive-Negative-Positive circuit.

Diode: HA diode is a specialized electronic component with two electrodes called the anode and the cathode. The fundamental property of a diode is its tendency to conduct electric current in only one direction.

LED: A light-emitting diode (LED) is a semi-conductor device that emits visible light when an electric current passes through it. The light is not particularly bright, but in most LED's it is monochromatic, occurring at a single wavelength.

Battery: Batteries are a collection of one or more cells whose chemical reactions create a flow of electrons in a circuit. All batteries are made up of three basic components: an anode (the ‘-’ side), a cathode (the ‘+’ side), and some kind of electrolyte (a substance that chemically reacts with the anode and cathode).

A useful thing to remember which will come in handy when having to calculate the components, to be put on a circuit, is the following equation: R=V/I or I= V/R or V=R*I

After Completing my basic electronic lesson, I started to learn about how to design electronic circuit by eagle,(a cad design software). I learned eagle basic watching a tutorial in Youtube. Here click for tutorial.. Before starting my schematic design I follow some previous student assignment how they done their design. Then i fix up my board design how is made.

Egale VS KiCAD

Eagle- I read on CircuitDigest that time I understood Eagle has two editors; Schematic editor and PCB layout editor. The schematic editor is used to add all components and connect according to the circuit requirement. This schematic file has unique features like modular design block, multi-sheet schematic, electronic rule checking and real-time design synchronization. After this, schematic is directly converted into PCB layout editor, in which we can set components according to less complexity. This PCB layout editor also has some good features like alignment tools, obstacle avoidance, routing engine.These features are available in free version.

KiCad - KiCAD also have their own library, which contains most of all electrical components. This software is also available in 19 different languages and it can run in windows, Linux and MAC.KiCAD is divided into five parts; KiCAD that is project manager; Eeschema that is the schematic capture editor; pcbnew that shows layout of PCB in both 2D and 3D; gerbfile is used to generate Gerber file; bitmap2component can convert images to footprint.

Everyone in Vigyan Ashram uses Eagle exclusively, and also my instructor Miss.Komal suggested to me for used Eagle software making PCB Circuit diagram.also eagle has a good features and advanced tools.So,I decided learn Eagle Software.

PCB Design-Hello Board

1.I opened Eagle.clicked on New and selected Schematic.

I downloaded the Fab labs Component Library. and add it into your Eagle components library.

For this type "use" in command line of schematic section and search the folder in which you dowanload the fab library and open it.and for this type "add" in command line of schematic section and find the fab library.

After "add" command.Clicked on open library Manager then opened a New window called library Manager.Go to Available and selected on browse.and add library.

To ensure that the library has been added, type add in the command line and find the fab library.

Checked components list.You have to choose all SMD components which are having pads.

We started with schematic, here add all the components you want in the PCb, in my case I added, capacitor, resistor, two connectors and Attiny 44.For my hello board I added a LED with limiting resistor and a switch. Current Limiting as the name suggests, helps to control and limit the current flowing through the circuit. I used

Ohms' law to find the approx value of limiting resistor. V = I*R. For the maximun current supported through 1206 LEDs I went through the Datasheet .I think, 10 milliampere is more than enough for any smd led.
Therefore, 5v = (0.01ampere)*R. The value of resistance is 500 Ohms.

Then add the add the components required for your board.So, all components are in schematic section and its time to connect them.

Now I connected all components by using net(green). If two wires connected in a diagram, they are shown with a dot at the intersection.

Our instructor Mrs.Supriya kadam was took a session on Eagle.For more learning I followed the tutorials given on Fab Academy website and joined the extra components as shown.Before switchig to board we have to take an ERC, this is a check which will give us warnings and errors related to the elecrical connections.

In this Schematic I got Intersection and cross over connection.so,I tried to make another method.I gave a name In this Schematic I got Intersection and cross over connection.so,I tried to make another method.I connected with name. After finishing schematic design.Clicked on SCH BRD.

We move switch to board in Eagle, All componenets are outside the boundary which we have to drag into box. We can drag one by one or in group.

This software has two options to route the board, manual routing and auto routing. It all depends on user. I prefer a manual routing beacuse autoroute makes a very bad route.

We have to check the dimension and clearance of our circuit and for this click on the DRC.

Clear all errors.

I also added some text called "Hello World".

we have to click on layer settings and adjust the dimension layer according to PCB we want. Now we have to save seperate .PNG file for Traces and border. For traces in layer setttings select the Top layer and deselect all other layers.

So,my hello board looks like this....
After completing my board Export file in Image

This .png files ready to mill..

I have .png file which I loaded in fab module and for trace I changed the endmill i.e 1/64 and 4 is offset.

For outline I changed the endmill i.e 1/32 and 4 is offset.

PCB Milling-Hello Board

I already study on milling process in electronics production week. So, I started milling of my board.First I set origin.Then I set the gravity.

After milling I Checked that the first PCB I milled had a track thickness of 0.508mm which was very hard,thus I decided to change the thickness of the tracks. There was no clearance in the paddings of the IC This time I decreased the trace width to 0.2mm.

Thus I again went back to Machine and Milling board.

PCB Soldering-Hello Board

I soldered the board as maintain the soldering rules.I collect all the required components i.e
  • 1. A capacitor of 1 micro fahrad
  • 2. A resistor of 499 ohms across the LED (so you don't burn it out)
  • 3. Two resistors 10K ohm each across the Button and Reset respectively
  • 4. A resonator of 20 mHz
  • 5. An LED
  • 6. Pin headers
  • 7. A switch
  • 8. Attiny 44(IC)

  • This Components I collected from our fab inventory.

    and finally I soldered it.

    After soldering....

    For checking Connections in Board, I used a continuity check with the multimeter to ensure that the legs had connections to all the traces.

    I also checked for continuity between VCC and GND. The button's housing was also touching the VCC line, but it didn't seem to touch any other parts of the circuit, so I think everything's fine.

    PCB Programming-Hello Board

    Here,I Stared programming on my "Hello eco Board"My first step to make sure that the toolchain software are available for programming avrdude and avr-gcc. Then I downloaded the example source code C and make file and then I follow this Tutorial to compile the code, set the fuses and program the board.

    1.make -f hello.ftdi.44.echo.c.make

    C code and makefile in my root directory, I compiled the code.so,This Cammand creating a Hex file.

    2.make -f hello.ftdi.44.echo.c.make program-usbtiny-fuses
    then setting the fuses, to set the clock to 20MHz using the external crystal.

    3.make -f hello.ftdi.44.echo.c.make program-usbtiny

    For Python reader,I downloaded term.py file.selected term.py COM8 115200 as the serial port and opened up the Serial Monitor with a 115200 baudrate.

    then run this command 3.Python term.py COM8 115200 when I runed this command I got the Error is No module named serial then runed

    Python -m pip install pyserial

    Again I then run this command 3.Python term.py COM8 115200
    here is the Output...

    Group Assignment

    For this assignment we are testing our hello board by oscilloscope, and saw in the monitor that how the voltage are passes in the board and how is looking the proper voltage curve. Generally the good soldering board are giving the rectangular curve.

    we did a simple testing using DSO, (Digital Storage Oscilloscope). We tested jaydeep's hello world board.we tested resonator on his board.We were observing the voltage curves on his board.Good soldering should give rectangular curve.

    Oscilloscopes are used to observe the change of an electrical signal over time.With the help of oscilloscope we tested a hellow world board designed by one of us and had achieved the results as below....

    This Result shows the good soldering...

    You can Download Original Files HERE.

    learning Outcome

    In this assignment, firstly I learn the Eagle software for circuit designing. I choose Eagle because it has user friendly interface.this was really new for me.I enjoyed this assignment for sortouting errors and all.