Week 10
Week 10
Week 10
To make a voltage supply for Sensor, we need a transformer which can make 220VAC to 15VAC.
1. Reasons for choosing a transformer from a 220VAC source to obtain a 15VAC output instead of
using an inverter:
• Higher Efficiency: Transformers operate directly at the AC power source frequency, offering
higher efficiency compared to the energy losses in the DC to AC conversion process in inverters.
• Enhanced Stability: Transformers provide a more stable output, minimizing fluctuations caused
by power source variations, unlike inverters that may introduce frequency oscillations.
• Cost-effectiveness and Simplification: Using a transformer directly from a 220VAC source
reduces costs and simplifies the system by eliminating the need for a complex inverter circuit
and electronic control components.
• Higher Maintenance Capability: Transformers are less complex and more reliable than
inverters, leading to lower maintenance costs and improved system stability.
About Transformer:
Power (P) = 30W
2. Calculations:
a) Current (I):
I=P/V
30W /0.9
I Primary = ≈0.1515A (for the primary side)
220 V
30 W
Assuming an ideal transformer, I Secondary = ≈2A (for the secondary side)
15 V
b) Voltage Ratio (Turns Ratio):
Turns Ratio: n=
V ¿ 220 V
= =14 ,67
V out 15 V
Choose N ¿ =748=¿ N out =51
3. Wiring diagram:
SPI (Serial Peripheral Interface):
Structure:
SS/CS (Slave Select/Chip Select): Selects which slave will perform data transmission.
Advantages:
Separate MISO and MOSI lines allow for simultaneous data transmission and reception.
Disadvantages:
Structure:
Disadvantages:
Summary:
SPI: Suitable for applications requiring high data transmission speed, unconcerned about the
number of connecting wires, and not requiring data acknowledgment.
I2C: A good choice for applications needing a reduction in the number of wires, supporting
multiple masters and slaves, and providing a data acknowledgment mechanism. Particularly
useful in embedded systems and microcontroller applications.