|
Laboratory 2 Electronic equipment architecture: hardware & software. Training boards |
[3/3] |
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.
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.
|
Fig. 1. Digital system. |
Find examples of block diagrams of digital equipment.
|
Fig. 2. Example of a system for controlling the position of an stepper motor. |
|
Fig. 3. The myriad of applications of electronic systems in automobile industry (ref.). A long list of projects. |
|
Fig. 4. Digital medical devices are fueling a revolution in health care. This is heartbeat monitoring and alert system (ref.). |
|
Fig. 5. Wind speed meter instrument (ref.) |
Find definitions and compare microcontroller and FPGA. Advantages and disadvantages.
(1) Arduino is one of the most well known and popular boards.
|
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.
Name and explain the function of the two microcontrollers. Which is the interface between them?
How does the OSC work? What is the OSC frequency?
How does the reset button work?
How many digital I/O contains the board? What is the maximum current that any of these outputs can sink or drain?
How many analogue input channels are included in the board?
More questions for LAB3 on power circuits:
How the board is powered?
In which way the USB power is disconnected when an external Vin is plugged?
What happens when a Vin = +12 V is connected to +5 V terminal?
What is the power rating for each power output?
Software development environment: Arduino IDE. Installed in LAB1.
(2) Raspberry Pi
This is another well known and popular computer card size board.
|
Fig. 7. Raspberry Pi 3 model B+ |
(3) micro:bit
Specially configured for introducing electronics and programming to young learners
|
Fig. 8. Micro:bit board |
(4) FPGA boards
Terasic Intel DE10-Lite. This FPGA-based training board can be used for two specific and differentiated purposes:
![]() |
Fig. 9. 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.
|
Fig. 10. 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.
|
Fig. 11. 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.
![]() |
Fig. 12. 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.
|
Fig. 13. 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_1. Try to find an example easy to be captured in our simulator Proteus (for example from the same samples examples included in Proteus).
|
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
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.
|
Fig. 2. Screen capture showing the application running interactively. |
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.
|
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 |
2. Planning
Let us imagine a simple non-inverter amplifier. R1 = 2.2 kW, R2 = 22 kW.
![]() |
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.
![]() |
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.
|
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.
![]() |
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?
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)
|
Fig. 7. Example template in Ultiboard and Multisim for making the PCB board for the amplifier. |
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:
Calculate the minimum input signals that can be distinguished from noise.
Calculate the output voltage maximum span and represent the Vo= f(Vi) function from X-Y
Measure the power consumed by this circuit.