6.Electronics Design:

03-03-2021 | Jai Hanani

1. Objectives:

2.Group Assignment: use the test equipment in your lab to observe the operation of a microcontroller circuit board.

3.Individual Assignment:

4. Files, Planning, Tools:

Files:

Planning:

Tools:


5.Initial Stages:

  1. Right off the bat, I started going through Micky's Documentaiton.
  2. Some basic fact:There can be voltage without current passage.
  3. Then, I went through Autodesk PCB Design/Placing/Routing documentation for an overview.
  4. Autodesk Routing Overview Autodesk Component Placement Overview
  5. VCC (Voltage Common Collector) is the higher voltage with respect to GND (ground).
  6. VCC is the power input of a device
  7. Capacitor vs Resistor: Can Capacitors Replace Resistors?
  8. Purpose of the capacitor: Filtering the voltage fluctuations in the circuit.
  9. Purpose of the Resistor: To guard against high voltage.
  10. Some helpful hueristics: Think of Voltage as the velocity of the ball thrown upwards, Current as the mass of the ball, and air resistance/gravity as the resistance.
  11. We were advised by our instructors to choose Autodesk Eagle, over KiCad, even though I preffered the latter. Thus, I downloaded Eagle.

6. Setting up Eagle, and designing the basic schematic:

  1. Downloading Autodesk Eagle is straight-forward, you can go here for further instructions: Here
  2. Standard eagle interface.

  3. Download the components that are in standard-FabLab inventory for Autodesk Eagle from here.
  4. Load the library up in Eagle.
  5. Start choosing components.
  6. Load up all the necessary components on the schematic, and connect them using 'net' command, accordingly.
  7. 'Net' command.

    Arranging the components in a schematic.

  8. Switch to Board.
  9. The interface of Board:
  10. The next task is tracing. It can be done, either manually or by autorouter.
  11. Quick_Route_Airwire tool in Eagle

    Autorouting workflow.

  12. One more additional parameter to consider is DRC. Keeping in mind our milling machine, I set Clearance:16 mils, and Size:16 mills.

7. Replicating the ftdi.44 hello_world board:

  1. My next task was to replicate this board: here
  2. Components:
  3. Choose all these components from previously-loaded Fab library from the library manager.
  4. Place them in the schematic, accordingly.
  5. Autoroute, thereafter.

8. Adding a LED&Switch:

  1. Preliminarily, I consulted the ATTiny44 documentations
  2. Then, I looked up some instructables to see where people placed LEDs on a ATTiny44 chip
  3. https://www.instructables.com/Program-an-ATtiny44458485-with-Arduino/
  4. Then, I added a LED, and a 0.5K resistor to the schematic, yet again from the aforementioned library.
  5. I had to do 'net/delete/re-net' plenty times, before I could come up with a stable one.
  6. Then, I readily switched to the board interface, without realizing their lies the hardest part.
  7. I spent a whole day trying to route the components, both manually and autoroute.
  8. There was atleast one net that I could not route, and I had to re-align the components in a better place, and try doing it again.
  9. Upon my mentor's advice, I deleted the extra connections to newly added components, and tried auto-routing. It worked.
  10. But, I encountered this:
  11. ERC errors. Lost consistency.

  12. Then, I had to go through an entire workflow of resolving this, which included exporting the 'Netscript' from the schematic, ripping up the existing board traces, and loading the 'netscript' file directly in the board interface, through SCR.
  13. Consult this, if you encounter the same problem.
  14. I auto-routed my board, afresh. It looked like it worked. Once I closed the auto-route window, there was still one net that wasn't routed. Some compromise had to be made.
  15. I chose to reduce the minimum_width to 12 from 16.
  16. It got routed. The board is connected.
  17. Done.

  18. I exported the board as a monochrome image with 2000 dpi.
  19. I made a cut file too, and exported it, also, as a monochrome image with 2000 dpi.
  20. Here are the final results:
  21. The Mill File

    The Cut File

9. Milling & Programming:

  1. I replicated the milling process of Electronics Production week, as detailed here
  2. Here is the result:
  3. Soldered it up:
  4. Next, Go to File >> Preferences in Arduino IDE
  5. Paste this link in "https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json" Additional Board Manager URLs
  6. In the Board Manager, Search for ATTiny44 and install it.
  7. In Menu >> Tools, Select Board >> ATTiny24/44/84, Processor >> ATTiny84, Clock >> External 20MHz
  8. I flashed it using ISP, I made in Electronics Production week.
  9. There was some problem with the LED. The polarity was wrong. I corrected it.
  10. The bulb was on, indefinitely.
  11. It was, then, programmed to not light-up when the switch was pressed.
  12.                 
                         
    void setup() {
        DDRA = (1 << PA2);//OUTPUT LED on PA2
      }
      
      void loop() {
        PORTA = (1 << PA2);//LED is ON
        delay(500);
        PORTA &= ~(1 << PA2);//LED is OFF
        delay(500);
      }
                    
                
  13. Video:

10. Auxillary Stuff:

  1. Learning Morse code:
  2. Smartphone cameras can record IR light: https://www.businessinsider.in/latest/use-this-cool-phone-trick-to-see-a-color-humans-cant-see/articleshow/49050579.cms
  3. We programmed Arduino Uno to output morse code using LED. No, we are planning to decode the said morse code using IR Led
  4. The kind of sensors that a standard smartphone carries is mind-boggling: https://developer.android.com/guide/topics/sensors/sensors_overview
  5. Using android in-built sensor to detect light fluctuations: https://play.google.com/store/apps/details?id=com.keuwl.lightsensorcounter

Group Assignment:


This week's assignment was to use the test equipment in your lab to observe the operation of the various electrical characteristics of a microcontroller.


FLUKE 101 Pocket Digital Multimeter

A multimeter is a tool for testing different parameters of an electronic circuit board. Here are the tests which can be conduced using a multimeter:


FLUKE 101 Pocket Digital Multimeter


Specifications:


Using multimeter we had checked the voltage and got a voltage of 5.35V.

INSTEK GPD-3303D Power Supply

Instek GPD-3303D is a Multiple Output Programmable Linear D.C. Power Supply. The GPD-X303 Series offers digital panel control, large display, bright LED indicators, high output resolution, 4 sets of setup memory, USB remote control and smart cooling fan control. Additionally , the GPD-X303S Series provides easy operation , a wide selection of panel setting and operation.

Features:


INSTEK GPD-3303D Power Supply



UNISOURCE DS-1100 100 MHZ, 2 CH, Digital Storage Oscilloscope

The digital storage oscilloscope is an instrument which gives the storage of a digital waveform or the digital copy of the waveform. It allows us to store the signal or the waveform in the digital format, and in the digital memory also it allows us to do the digital signal processing techniques over that signal. The maximum frequency measured on the digital signal oscilloscope depends upon two things they are: sampling rate of the scope and the nature of the converter. The traces in DSO are bright, highly defined, and displayed within seconds.

UNISOURCE DS-1100 100 MHZ, 2 CH, Digital Storage Oscilloscope




Features:



Here we used oscilloscope for checking the frequency generated by the Resonator and got 20MHz as the frequency.



Oscilloscope Readings



AFG-2100/2000 SERIES ARBITRARY FUNCTION GENERATOR

A function generator is a specific form of signal generator that is able to generate waveforms with common shapes. Unlike RF generators and some others that only create sine waves, the function generator is able to create repetitive waveforms with a number of common shapes. The AFG-2100/2000 Series Arbitrary Function Generator is a DDS (Direct Digital Synthesized) based signal generator designed to accommodate the Educational and Basic Industrial requirements for an accurate and affordable signal source covering the output of Sine, Square (Pulse), Ramp (Triangle), Noise and Arbitrary waveforms.

AFG-2100/2000 SERIES ARBITRARY FUNCTION GENERATOR


Features:




BK PRECISION 9123a series Programmable DC Power Supply

The 9120A series are laboratory grade, programmable DC Power Supplies providing great performance and features not found in other supplies in this price category. The power supplies were designed to meet the needs of today's applications in R&D design verification, production testing or university labs that require clean and reliable power, high resolution/accuracy and fast transient response time.

BK PRECISION 9123a series Programmable DC Power Supply



Features:




This test has been conducted to to calculate current, in the circuit.



The power of vacuum cleaner was calculated as 69W from the power supply by setting rated voltage of 15.6V