UPC EETAC Bachelor's Degree in Telecommunications Systems and in Network Engineering. Bachelor's Degree in Aerospace Systems Engineering EEL

Lab1

  

Laboratory 2

Electronic equipment architecture: hardware & software. Training boards. Prototyping.

Lab3

[20/2]

1. Specifications

We propose three objectives for this lab session that will imply studying initial theory on electronic equipment architectures and working on two projects.

Analysis project:

(1) Discuss the typical standard electronic equipment architecture found in most of applications: data acquisition and control systems, data loggers, digital instruments, digital controllers, dedicated processors and all kind of subsystems.

(2) Review common training boards for prototyping electronic circuits. Run and analyse an Arduino application example on Proteus virtual laboratory.

Design project:

(3) Calculate, mount and solder a sample circuit in an universal PCB. For instance, an analogue voltage amplifier with G = -10. Power it using (a) dual power supply voltage VCC = +5 V and VEE = -5 V, (b) single VCC = +5 V.

 


Electronic equipment. State of the art. Context.

Many electronic equipment are digital and organised around these three main sections:

(1) inputs: sensors, buttons, switches, keyboards.

(2) microcontroller or FPGA board.

(3) outputs: LED, displays, gauges, sound devices, data memories, motors and other actuators.

Chip and electronic components

Fig. 1. Digital system.

Find examples of block diagrams of digital equipment.

Motor position controller

Fig. 2. Example of a system for controlling the position of an stepper motor.

 

Automobile

Fig. 3. The myriad of applications of electronic systems in automobile industry (ref.). A long list of projects.

 

Heart beat

Fig. 4. Digital medical devices are fueling a revolution in health care. This is heartbeat monitoring and alert system (ref.).

 

Anemometer

Fig. 5. Wind speed meter instrument (ref.)

 


Find definitions and compare microcontrollers and FPGA. Advantages and disadvantages.

 


Training boards

(1) Arduino is one of the most well known and popular boards.

Arduino UNO board

Fig. 6. Arduino UNO board.

Hardware Print the circuit schematic and start examining it. This is an article reference from an online magazine  Tawil, Y. Understanding Arduino UNO Hardware Design, All About Circuits, 2016.

Software development environment: Arduino IDE. Installed in LAB1.


(2) Other Arduino software based boards. For instance: Digispark Attiny85 board (1). You can even build yourself using KiCad as shown in this video (2).

ATtiny85 digispark

Fig. 7. Digispark ATtiny85 microcontroller board can be connected directly to the computer USB port. This is the microcontroller ATtiny85 from Microchip.


(3) Raspberry Pi

This is another well known and popular computer card size board.

Raspberry Pi

Fig. 8. Raspberry Pi 3 model B+

 


(4) micro:bit

Specially configured for introducing electronics and programming to young learners

micro:bit

Fig. 9. Micro:bit board

 


(5) FPGA boards

Terasic Intel DE10-Lite. This FPGA-based training board can be used for two specific and differentiated purposes:

Intel Terasic DE10-Lite

Fig. 10. Terasic DE10-Lite with a MAX10 FPGA from Intel.

(4.1) Learn basic digital electronics, as we currently propose at the EETAC (Digsys). This is the platform where to synthesise combinational circuits and sequential systems at RTL (register-transfer level) using VHDL techniques.

MAX10 based board

Fig. 11. DE10-Lite diagram when used as a platform for learning digital circuits around MAX10 Intel FPGA.

(4.2) Learn advanced embedded system-on-chip design. We can integrate a μC in the FPGA fabric.

NIOS II CPU and SoC

Fig. 12. DE10-Lite diagram when used for learning embedded systems based on microcomputers. A this introductory level, NIOS II soft processor is offered as CPU (ref.)

 

(4.1) Another example of this kind is Digilent Arty board including the Xilinx (AMD) Artix -7 FPGA.

Arty board

Fig. 13. Digilent Board Arty with an Artix -7 FPGA  XC7A35T-1CSG324-1L from Xilinx (now AMD).

(4.2) In the FPGA fabric a soft processor such Microblaze can be synthesised and used in introductory designs and applications.

Microblaze

Fig. 14. Microblaze embedded CPU or MicroBlaze Soft Processor Core block diagram (ref.) 

 

Some questions intended to review these materials:

- Compare the main features of the three training boards. Find another training board of the same kind and analyse its architecture.

- Find examples of sensors, actuators and peripherals used in aeronautics or other industries.

 


 

Analysis project 1 on training boards

 

2. Planning

Browse some books or internet pages to find a sample Arduino project application and rename it Circuit_1pdsprj. Try to find an example easy to be captured in our simulator Proteus (for example from the same samples examples included in Proteus).

Arduino sample projects

Fig. 1. Proteus list of examples circuits including Arduino or other microcontrollers. We have bought a school license for running Arduino and PIC18F microcontroller applications. 

Project folder:

C:\EMC\LAB2\Circuit_1\(files)

 

3. Development and 4. Test

Developing

Circuit_1: For example Circuit_1.pdsprj captured in Proteus. Using this initial circuit we will verify that the software is correctly installed and capable of simulating microcontroller applications.

Circuit_1A

Fig. 2. Screen capture showing the application running interactively.

 

Testing

Run Circuit_1 interactively and step by step execution modes, show ATmega328P and program variables, open a watch window for the variables of interest, etc.

Step-by-step

Fig. 3. Screen capture of the source code showing the step-by-step mode execution.

 

5. Prototyping

Download the configuration file (*.hex) to the Arduino board from the Proteus programmer interface or directly from Arduino IDE.

Mount the circuit in the breadboard and verify the design.

Measure parameters and waveforms using the instrument VB8012.

 

6. Report and presentation

Reporting this project will look like these pages. Organise it in the same five sections in at least five sheets of paper.

(1) Specifications. As the theory accompanying the specifications, you can:

- Find an example of digital equipment for aerospace systems. Study its architecture and compare with the example architectures given in this lab.

- Find a sensor in Proteus libraries. Print the schematic and its features from the datasheet.

- Find an actuator in Proteus libraries. Print the schematic and its features from the datasheet.

(2) Planning. Print your Proteus example that includes a microcontroller. Analise the C code and draw its equivalent flowchart.

(3) Development and (4) Testing. Print an example image showing how the circuit works interactively including the watch window with some RAM variables of interest.  Print/a> the software listing and analyse and draw its flowchart.

((5) Prototyping. Print a picture of your circuit running in the Arduino platform. Print the instrument screen representing signals.

 


 

Design project 2 on analogue circuits

 

1.Specifications

Design a dual power supply smal signal analogue amplifier. Voltage gain = -10.

Get used to basic laboratory components and equipment.

 

2. Planning

Let us imagine an OpAmp simple non-inverter amplifier. R1 = 2.2 kW, R2 = 22 kW.

inverter amplifier

Fig. 1. Inverter amplifier sketch.

This amplifier project will be located at:

C:\EMC\LAB2\Amplifier\(files)

 

3. Development

Build and solder an inverter amplifier with voltage gain G = Vo/Vi = -10 based on operational amplifiers.

Discuss how to adapt the circuit to single or dual power supply.

Capture the circuit Proteus or Multisim.

 

Fig. 2. Circuit captured in Proteus using the LM258 OpAmp circuit.

 

4. Test

Run simulations using oscilloscopes and measure its bandwidth.

Choose different OpAmp components and observe how they work when large signals reach power supply rails.

 

Fig. 3. Example of frequency response using graphic analysis.

 

5. Prototyping

Mount the circuit in a prototyping board or in a PCB. Characterise the circuit using the VB8012 instrument.

Prototype

Fig. 4. Prototype for an inverter amplifier. R1 = 22 kW built using a universal board. 

Find the circuit's bandwidth BW-3dB using sinusoidal waveforms and the function generator. Find the circuit rising time Tr using square waves.

Measure using 1:1 probes. Measure using 10:1 probes.

Circuit running

Fig. 5. Picture of the example circuit soldered in a universal PCB for prototyping purposes. 

Print outputs from instruments and simulators to demonstrate that the circuit works as expected within its bandwidth and output dynamic range.

Waveforms

Fig. 6. Measured waveforms when input is 0.3 Vp and fin = 1 kHz

Think about on how to reduce the noise captured by the input CH1. Which is the frequency of the interference? What may it be its cause? What components can be added to this prototype to shield the circuit against electrical noise?

 


PCB design

Use for instance this example project as a template Ultiboard and  Multisim. Modify it adding and deleting components. Learn how PCB and schematic windows are connected.

This PCB project will be located at:

C:\EMC\LAB2\Amplifier\PCB\(files)

Example circuit

Fig. 7. Example template in Ultiboard and  Multisim for making the PCB board for the amplifier.

 


Topics in EMC

Find additional components in the Arduino board placed to prevent electromagnetic interferences (EMI). 

Start to figure out how to shield the amplified in Fig. 4 against EMI. How to reduce coupled noise and improve the circuit's signal/noise ratio?

What about the resistor values? What are the tradeoffs if the gain ratio is solved using MW resistors or kW resistors? What is and how to calculate thermal noise associated to resistors?

 Identify noise signals and measure the amplifier sensitivity: which is the minimum input signal above noise floor?

 

6. Reporting and post-lab assignments

Studying and reporting this LAB2 means designing and characterising the amplifier. Your report contains at least five sections of handwritten sheets of paper and printed images from circuits.

(1) Specifications. Use diagrams and sketches, represent the symbol and model of the amplifier. Draw an example timing diagram using sinusoidal waveforms. Explain how a microfon can be connected to such amplifier.

(2) Planning. Propose a circuit and calculate its components. Propose alternative circuits discussing advantages and drawbacks.

(3) Developing. Simulate your circuit and check that it works as expected in the specifications. Take pictures or print graphics from simulators and analyse and discuss the results.

(4) Run simulations and test your circuit. Add or modify component values if necessary. Analise and discuss your results.

(5) Prototyping. Solder the circuit in an universal protoboard or in a PCB. Experiment performing measurements to characterising the circuit. Discuss how the circuit adjust to the specifications.

 

Additional questions to be included in the report discussion: