AIM : To Study about the Power Converters & Digital Electronics.
OBJECTIVES :
-
a.) Why does the MATLAB PID auto tuner doesn’t work for a power converter? Show step wise process for a buck-boost converter circuit.
b.) Explain the importance of ADC and DAC blocks in closed loop control of power converters.
-
a.) What are the three basic boolean operators for the logic gates in digital electronics?
b.) Form the truth table for all the above boolean operations. Realize the operations in simulink using suitable logic gates from the library browser.
c.) Draw the circuit and truth table to implement the following logic in simulink.

-
Carry out the following binary operations. Verify the results in MATLAB.
a.) 11111 and 10101(AND operation)
b.) 111 and 000(OR operation)
c.) 1010111 and 0101100 (AND operation)
d.) 101110(NOT operation)
-
Prepare an organizational chart of people working at electric powertrain manufacturing companies.
STUDY - 1 :
a.) MATLAB PID auto tuner doesn’t work for a Power Converter -
- PID Tuner needs a linear model to design a PID controller. To get this linear model, when you press the "tune" button, it automatically linearizes a Simulink model using exact linearization method. This method results in zero linearization when a model has discontinuities such as MOSFET blocks and PWM logic.
- The result of this will be that when you simulate the model, you use your SimPowerSystems blocks with all MOSFETS, PWMs, etc., but when you do linear analysis of the model or PID Tuning, the converter subsystem is replaced with a transfer function automatically.
- PID auto tuner can only work for the plants which are linearized or which can be linearized. To work with the auto tuner, the MATLAB first linearizes the plant & then finds the PID gain values but in the case of power converter, it results in zero linearization because of the discontinuities such as MOSFET blocks & PWM logic & hence it cannot auto tune PID.
- To solve this issue use simulation input/output data to estimate a transfer function of the system and then tune the response.
- Let’s consider a boost converter with a closed loop PI converter -

Closed-Loop Controlled MOSFET Based Converter -
- Input Voltage Vs = 24 V dc
- Output Voltage Vo = 12 / 48 V dc
- Inductor L = 10 e-6 H
- Capacitor C = 20 e-3 F
- Load R = 100 ohm
- Switching Frequency = 10Khz
Simulink Model of Buck-Boost Converter :

PID Controller Subsystem with 5V Reference :


PID Controller Subsystem with 12V Reference :


PID Controller Subsystem with 48V Reference :


b.) Importance of ADC and DAC Blocks in Closed loop Control of Power Converters -
Analog to Digital Converter (ADC) :
- ADC stands for analog to digital converter. It is an electronic device used for converting an analog signal into a digital signal.

- The analog input signal of ADC is continuous time & continuous amplitude signal. The output of ADC is a discrete time and discrete amplitude digital signal.
- In the real world, every real quantity such as voice, temperature, weight etc exists in the analog state. And it cannot be processed by any digital device such as a computer or a cell phone.
- These analog quantities are converted into digital form so that a digital device can process it. This conversion is done using analog to digital converter.
Block Diagram of ADC :

The analog signal is first applied to the ‘sample‘ block where it is sampled at a specific sampling frequency. The sample amplitude value is maintained and held in the ‘hold‘ block. It is an analog value. The hold sample is quantized into discrete value by the ‘quantize‘ block. At last, the ‘encoder‘ converts the discrete amplitude into a binary number.
Analog To Digital Conversion Steps -
The conversion from analog signal to a digital signal in an analog to digital converter is explained below using the block diagram given above.
Sample :
- The sample block function is to sample the input analog signal at a specific time interval. The samples are taken in continuous amplitude & possess real value but they are discrete with respect to time.
- The sampling frequency plays important role in the conversion. So it is maintained at a specific rate. The sampling rate is set according to the requirement of the system.
Hold :
- The second block used in ADC is the ‘Hold’ block. It has no function. It only holds the sample amplitude until the next sample is taken. The hold value remains unchanged till the next sample.
Quantize :
- This block is used for quantization. It converts the analog or continuous amplitude into discrete amplitude.
- The on hold continuous amplitude value in hold block goes through ‘quantize’ block & becomes discrete in amplitude. The signal is now in digital form as it has discrete time & discrete amplitude.
Encoder :
- The encoder block converts the digital signal into binary form i.e. into bits.
- As we know that the digital devices operate on binary signals so it is necessary to convert the digital signal into the binary form using the Encoder.
- This is the whole process of converting an Analog signal into digital form using an Analog to Digital Converter. This whole conversion occurs in a microsecond.
Application of ADC :
In the modern world of growing technology, we are dependent on digital devices. These digital devices operate on the digital signal. But not every quantity is in digital form instead they are in analog form. So an ADC is used for converting analog signals into digital signals. The applications of ADC are limitless. Some of these applications given below:
- Cell phones operate on the digital voice signal. Originally the voice is in analog form, which is converted through ADC before feeding to the cell phone transmitter.
- Images and videos captured using camera is stored in any digital device, is also converted into digital form using ADC.
- Medical Imaging like x-ray & MRI also uses ADC to convert images into Digital form before modification. They are then modified for better understanding.
- Music from the cassette is also converted into the digital form such as CDs and thumb drives using ADC converters.
- Digital Oscilloscope also contains ADC for converting Analog signal into a digital signal for display purposes & different other features.
- Air conditioner contains temperature sensors for maintaining the room temperature. This temperature is converted into digital form using ADC so that onboard controller can read & adjust the cooling effect.
In today’s modern world almost every device has become the digital version of itself & they need to have ADC in it. Because it has to operate in digital domain which can be only acquired using analog to digital converter (ADC).
Digital to Analog Converter (DAC) :
- Digital to analog converter is an electronic circuit that converts any digital signal (such as binary signal) into an analog signal (voltage or current).
- The digital signal such as the binary signal exist in the form of bits & it is the combination of 1’s & 0’s (or High & low voltage levels). The DAC converts these bits into an analog voltage or current.
- The DAC has several digital inputs & a single analog output.
Need of DAC -
- The information exist in real world is in analog form. Why we convert them into digital form in the first place if we want to convert them back ?
- The processing speed of a digital computer is very fast & can compute or process any data in a matter of micro seconds. It conserves time & helps in processing complex data according to our need. But we cannot understand the digital data in real world.
- In order to understand the data that we process in a digital domain, we need to convert it into analog domain. An example of that would be the process of audio & video editing.
- We capture the data using our digital camera & microphone to convert the analog data into digital. We process it using our computers to edit it according to over needs. In order to view our edited work, we use DACs to convert it back into the analog domain to view & listen it through our screen & speakers.
PWM Based Conversion :
- It is another method used in digital to analog converter & microcontrollers such as Arduino can be easily programed to utilize its PWM function to generate an analog output.
- Pulse Width Modulation or PWM is a method of varying the average power of a signal by varying its duty cycle. He duty is the % turn on time of the signal, the % amount of time for which the signal remains high. Like 40% duty cycle signal means it stays high for 40% of time & stays low for 60%.
- We can use a binary number to generate such type signal whose duty cycle depends on the binary digit. The PWM wave is the filtered using a low pass filter to remove the fluctuations & provide a smooth analog voltage.
Applications of DAC -
Digital to analog converters are used in various applications to convert a digitally processed signal into an analog signal. Some of the various applications of a DAC are given below :
Audio :
- The audio signal is analog in nature but it is converted using ADC (analog to digital converter) into digital format to edit & store in storage devices in various digital formats such as mp3, wav etc.
- The audio amplifier or the sound card in a system contains DAC that converts the audio signal stored in digital device into an analog signal. The signal can be modified by the amplifier by varying its gain (volume), bass, treble etc. & then converted into analog signal because the speaker cannot support a digital signal.
Video :
- Digital video players utilize DAC to play any digital video using an analog monitor. These video players convert the digital signal from the digital source file into an analog signal.
- A digital video player has digital video ports such as DVI or HDMI. But if it has any analog output ports (composite port of yellow color), it contains a DAC whose job is to convert the video file into analog signal.
Motor Control :
- One of the most important components in controlling a motor using a digital device such as a microcontroller is a DAC.
- In various electronics projects, motor is embedded with a microcontroller. The microcontroller generates a digital signal to vary the speed of the motor which is converted into an analog signal using a DAC (Digital to Analog Converter).
STUDY - 2 :
a.) Three Basic Boolean Operators for the Logic Gates in Digital Electronics :
Basic Operators -
Digital logic has three basic operators, the AND, the OR and the NOT. These three operators form the basis for everything in digital logic. In fact, almost everything your computer does can be described in terms of these three operations. Fortunately, these operations are not difficult to understand, as their meanings resemble the meanings of the words as used in every day language.
Logic gates are an important concept in electronics. These are important digital devices that are mainly based on the Boolean function. Logic gates are used to carry out logical operations on single or multiple binary inputs and give one binary output. In simple terms, logic gates are the electronic circuits in a digital system.
Three Types of Basic Boolean Operators -
- NOT Gate
- AND Gate
- OR Gate
These three gates (NOT, AND and OR), when connected in various combinations, give us basic logic gates such as NAND, NOR gates, which are the universal building blocks of digital circuits.
In NOT gate the output of a NOT gate attains the state 1 if and only if the input does not attain the state 1.

The Boolean expression is Y = A' , read as Y equals NOT A.
The truth table of NOT gate is as follows :
AND Gate -
In AND gate the output of an AND gate attains the state 1 if and only if all the inputs are in state 1.

The Boolean expression of AND gate is Y = A . B
The truth table of a two-input AND basic gate is given as :
A |
B |
Y = A . B |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
OR Gate -
In OR gate the output of an OR gate attains the state 1 if one or more inputs attain the state 1.

The Boolean expression of OR gate is Y = A + B, read as Y equals A ‘OR’ B.
The truth table of a two-input OR basic gate is given as :
A |
B |
Y = A + B |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
b.) Form the truth table for all the above boolean operations. Realize the operations in simulink using suitable logic gates from the library browser :
NOT Gate Using Simulink Block :
In NOT gate the output of a NOT gate attains the state 1 if and only if the input does not attain the state 1.

The Boolean expression is Y = A' , read as Y equals NOT A.
The truth table of NOT gate is as follows :
AND Gate Using Simulink Block :

The Boolean expression of AND gate is Y = A . B
The truth table of a two-input AND basic gate is given as :
A |
B |
Y = A . B |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
OR Gate Using Simulink Block :
In OR gate the output of an OR gate attains the state 1 if one or more inputs attain the state 1.

The Boolean expression of OR gate is Y = A + B, read as Y equals A ‘OR’ B.
The truth table of a two-input OR basic gate is given as :
A |
B |
Y = A + B |
0 |
0 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
c.) The Circuit and Truth Table to Implement the following Logic in Simulink :

Truth Table :
A |
B |
A' |
B' |
(A + B) |
(A' + B') |
Y = (A + B) . (A' + B') |
0 |
0 |
1 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
0 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
Implementation of the Above Logic in Simulink :

STUDY - 3 :
Carry out the following Binary Operations Using MATLAB Commands :
a.) 11111 and 10101 ( AND operation )

b.) 111 and 000 ( OR operation )

c.) 1010111 and 0101100 (AND operation )

d.) 101110 ( NOT operation )

STUDY - 4 :
An Organizational Chart of people working at Electric Powertrain Manufacturing Companies :
- Also known as an org chart or organogram, it provides a detailed visual representation of an organization, key individuals, teams, and the relationship between them. These charts are mostly related to established firms, government sectors, or huge organizations with a complex hierarchy. Ideally, there can be all kinds of org charts, depending on their application and usability.
- Mostly, it acts as a useful tool for human resource professionals and corporate analysts. They can easily represent the overall breakdown of an organization, its workload, and identify the key individuals responsible for certain tasks. For instance, you can consider this organizational chart that represents the hierarchical employment flow in a firm.
- It might sound surprising, but organizational charts have been a part of engineering and management sector for over a century now. The concept was first introduced in 1854 by Daniel McCallum, who was an experienced engineer. While the concept was introduced by McCallum, the first chart was drawn by George Holt Henshaw.
- Shortly, all the essential guidelines and theory about the chart was also listed. Though, it took a while for organizational charts to become mainstream. Even till 1920, the concept was not fairly known by professionals. By the same time, Brinton focused on the wide application of the charts and came up with numerous examples to show their applications.
- Gradually, they found a way in business and administrative work. In the 1960s, they were known as “organigram” or “organogram”. Today, they have become an evident part of daily professional work in every major organization.



CONCLUSION :
-
Successfully discussed the MATLAB PID auto tuner function and Explained the importance of ADC and DAC blocks in closed-loop control of power converters.
-
Also, discussed the three basic boolean operators for the logic gates in digital electronics and Realized the operations in Simulink using suitable logic gates from the library browser.
-
Prepared an organizational chart of people working at electric powertrain manufacturing companies.
REFERENCES :
https://www.electricaltechnology.org/2019/02/analog-to-digital-converter-adc.html
https://www.electricaltechnology.org/2020/04/digital-to-analog-converter-dac.html
https://byjus.com/jee/basic-logic-gates/#application-of-logic-gates