A Project Based Learning Report
A Project Based Learning Report
A Project Based Learning Report
On
OF
IN
Submitted by
SCHOOL OF ENGINEERING
1
MOHAN BABU UNIVERSITY
ELECTRONICS AND COMMUNICATION ENGINEERING
CERTIFICATE
This is to certify that the project report entitled
Vaddamani Dhanujayareddy-24301A030034
2
ABSTRACT
Current sensing circuits play a crucial role in various electronic systems, enabling precise
measurement and control of electrical currents. This report delves into the fundamental principles,
design considerations, and practical implementation of current sensing techniques.
We explore three primary methods: resistive shunt-based, Hall effect, and current transformer-
based sensing. Each technique offers distinct advantages and limitations, influencing the choice
based on factors like accuracy, bandwidth, isolation, power consumption, and cost.
The report emphasizes the importance of sensor selection, circuit design, calibration, and noise
reduction techniques. By carefully considering these factors, it is possible to design and implement
reliable current sensing circuits for a wide range of applications, from power monitoring to motor
control.
3
Table of
Contents
CHAPTER-1
Introduction
o Background
o Problem Statement
o Project Objectives
Literature Review
o Existing Smart Fan Systems
o Sensor Technologies
o Microcontroller Applications
Chapter 2
System Design
o Hardware Components
Microcontroller (e.g., Arduino, Raspberry Pi)
PIR Motion Sensor
Relay Module
Power Supply
o Software Design
Flowchart
Code Implementation (e.g., Arduino IDE)
Chapter 3
Circuit Implementation
o Circuit Diagram
o Component Selection and Connections
o Power Supply Considerations
Testing and Calibration
o PIR Sensor Calibration
o Relay Module Testing
o System Integration Testing
Chapter 4
Chapter 5
Conclusion
o Summary of Findings
o Overall Project Assessment
References
4
List out figures
A high-level overview of the system, showing the major components and their
A visual representation of the decision-making process and control flow of the system.
A graph showing the relationship between sensor output and distance, used to optimize
the system's sensitivity.
A graph illustrating the time taken by the system to react to changes in human
A chart comparing the power consumption of the smart fan with a traditional
A screenshot or sketch of the user interface, if any, used to control the fan remotely
or monitor its status.
5
Chapter-1
1.1 INRODUCTION
Background
In today's era of automation and smart technology, there is a growing demand for energy-efficient
and user-friendly solutions for everyday appliances. Fans, a common household appliance, have
traditionally been manually operated, leading to energy wastage and inconvenience. This project
aims to address these issues by developing a smart fan system that can automatically adjust its
operation based on human presence.
Problem Statement
Manually operated fans often lead to energy wastage, as they continue to run even when the room is
unoccupied. Additionally, the manual adjustment of fan speed and direction can be inconvenient,
especially for elderly individuals or those with mobility impairments.
Project Objectives
This project aims to design and implement a smart fan system that can:
1. Detect Human Presence: Accurately sense human presence in the room using a
suitable sensor.
2. Automatic Fan Control: Automatically turn the fan on when a person enters the room
and off when the person leaves.
4. User-Friendly Interface: Provide a simple and intuitive interface for manual control
and customization.
By achieving these objectives, this project seeks to provide a more comfortable, convenient,
and energy-efficient solution for fan usage.
6
Scheduling: The fan can be programmed to automatically turn on or off at specific
times, creating personalized comfort schedules.
Smart Modes: Preset modes like "Sleep," "Study," or "Turbo" can be activated for
optimal airflow and noise levels.
While these features offer significant convenience, they often lack advanced functionalities like
automatic operation based on human presence.
Sensor Technologies
Several sensor technologies can be employed to detect human presence:
1. Passive Infrared (PIR) Sensors:
These sensors detect changes in infrared radiation emitted by moving objects.
They are widely used in security systems and smart home devices due to their low cost,
low power consumption, and simplicity.
PIR sensors can be used to detect human presence in a room and trigger the fan to turn
on or off accordingly.
2. Ultrasonic Sensors:
These sensors emit high-frequency sound waves and measure the time taken for the
echoes to return.
By analyzing the reflected sound waves, ultrasonic sensors can detect objects within
a certain range, including humans.
However, they may be less accurate in detecting subtle movements and can be susceptible
to interference from background noise.
3. Camera-Based Systems:
Computer vision techniques can be employed to analyze video feeds from cameras to
detect and track human movement.
This approach offers high accuracy and can provide additional information such as
the number of people in the room and their activities.
However, camera-based systems raise privacy concerns and require significant
computational resources.
Microcontroller Applications
Microcontrollers, such as Arduino and Raspberry Pi, are versatile devices that can be used to
implement various control and automation tasks. They can be programmed to:
Read sensor data: Process the input from the PIR sensor or other sensors to
determine human presence.
Control the fan: Use relay modules to switch the fan on or off, adjust its speed, and
change its direction.
Implement advanced features: Incorporate features like scheduling, smart modes,
and energy-saving algorithms.
Interface with smart home systems: Integrate the smart fan with other devices in the
home, such as voice assistants or home automation hubs.
By leveraging the capabilities of microcontrollers, it is possible to create sophisticated smart
fan systems that can adapt to various user needs and environmental conditions.
Human-Computer Interaction
The user interface plays a crucial role in the overall user experience of a smart fan system.
Effective human-computer interaction can enhance usability and satisfaction. Some common
approaches include:
Physical Buttons: Simple buttons can be used to control basic functions like power
on/off and fan speed.
7
Remote Controls: Infrared or Bluetooth remote controls can provide remote
control capabilities.
Smartphone Apps: Mobile apps allow users to control the fan remotely, set schedules,
and monitor energy consumption.
Voice Control: Voice assistants, such as Amazon Alexa or Google Assistant, can be used
to control the fan through voice commands.
8
CHAPTER-2
1. Microcontroller
3. Relay Module
9
4. Power Supply
Detailed Explanation:
1. Microcontroller:
Role: The brain of the system, responsible for decision-making and control.
Functionality:
o Sends a control signal to the relay module to turn the fan on or off.
Functionality:
3. Relay Module:
Functionality:
o Switches the power supply to the fan on or off based on the received signal.
4. Power Supply:
Functionality:
o Supplies the necessary voltage and current to the microcontroller, sensor, and
relay module.
System Operation:
o The PIR sensor detects human motion and sends a signal to the microcontroller.
1
2. Microcontroller Processing:
3. Fan Control:
o The relay module switches the power supply to the fan, turning it on or off.
Placement:
o Typically mounted on the ceiling or wall, pointing towards the area to be monitored.
o Avoid placing near heat sources or air vents to prevent false triggers.
1
Placement:
o Mounted on the wall or ceiling, away from direct sunlight, heat sources, and
air vents.
temperature and humidity sensor mounted on a wall, away from direct sunlight
3. Light Sensor:
Placement:
o Mounted on the ceiling or wall, away from direct sunlight and artificial light sources.
o Consider the sensor's field of view and sensitivity to ensure accurate readings.
1
light sensor mounted on a ceiling, pointing towards a window
Purpose: Measures air quality parameters like PM2.5, CO2, and VOCs.
Placement:
1
o Mounted on the wall or ceiling, away from direct sunlight, heat sources, and
air vents.
Response Time: The sensor should have a fast response time to ensure timely
adjustments to fan settings.
Sensor Location: Place sensors in locations that provide a clear view of the area to
be monitored.
Sensor Maintenance: Clean sensors periodically to remove dust and other contaminants.
1
Current sensing circuits are essential for monitoring and controlling electrical systems. They allow
us to measure the flow of current in a circuit, which can be used for various applications such as
power monitoring, overcurrent protection, and motor control.
When current flows through the load, a voltage drop is developed across the shunt
resistor, proportional to the current.
Circuit Diagram:
Advantages:
Disadvantages:
Power dissipation in the shunt resistor can be significant for high currents.
A Hall effect sensor generates a voltage proportional to the magnetic field produced by
the current flowing through a conductor.
1
The sensor is placed near the conductor, and the induced voltage is measured.
Circuit Diagram:
Advantages:
Non-invasive measurement.
Disadvantages:
The primary winding of the CT is connected in series with the load, and the secondary
winding is connected to a burden resistor.
The voltage drop across the burden resistor is proportional to the primary current.
Circuit Diagram:
1
current transformerbased current sensing circuit
Advantages:
Disadvantages:
Power Dissipation: The amount of power that can be dissipated in the sensor.
1
CHAPTER-3
3.0 IMPLEMENTATION
Implementation of Current Sensing Circuits
Components:
Power supply
Circuit Diagram:
Implementation Steps:
o Select a shunt resistor with appropriate resistance and power rating based on
the expected current range.
o A higher resistance will give a larger voltage drop, but it will also dissipate
more power.
1
o Configure the op-amp as a differential amplifier to amplify the voltage drop
across the shunt resistor.
o Choose appropriate resistor values for the gain and offset of the amplifier.
o Connect the op-amp's input terminals to the two ends of the shunt resistor.
Components:
Power supply
Circuit Diagram:
Implementation Steps:
o Connect the sensor's power supply and output pins to the microcontroller or
data acquisition system.
o Place the sensor near the conductor carrying the current to be measured.
o Use the microcontroller or data acquisition system to read the output voltage
from the sensor.
Components:
Burden resistor
1
Operational amplifier (optional)
Power supply
Circuit Diagram:
Implementation Steps:
2
o Connect the secondary winding to the burden resistor.
o Measure the voltage across the burden resistor using an op-amp or directly
connect it to the microcontroller's ADC input.
o Calculate the primary current using the turns ratio of the CT and the voltage
across the burden resistor.
Additional Considerations:
Safety: Follow safety guidelines when working with high-voltage or high-current circuits.
Data Acquisition: Use appropriate data acquisition techniques to capture and store
the current data.
Signal Conditioning: Use amplifiers and filters to condition the sensor output signal
for accurate measurement.
Here's a step-by-step guide on how to assemble a resistive shunt-based current sensing circuit:
Required Components:
1. Shunt Resistor: Select a resistor with appropriate resistance and power rating based on
your current measurement range.
Assembly Steps:
o In-line Placement: Physically insert the shunt resistor in series with the load
circuit. Ensure proper heat dissipation if high currents are involved.
2
o External Connection: Connect the shunt resistor to the load circuit using
appropriate connectors.
o Input Connections: Connect one end of the shunt resistor to the non-inverting
input of the op-amp and the other end to the inverting input through a resistor
(R1).
o Feedback Resistor: Connect a resistor (R2) between the output of the op-amp
and the inverting input to set the gain of the amplifier.
o Output Connection: Connect the output of the op-amp to the input of your
microcontroller's ADC or other data acquisition system.
Circuit Diagram:
2
Tips for Successful Assembly:
Secure Connections: Ensure all connections are secure to avoid loose contacts and
potential errors.
Proper Grounding: Ground the circuit properly to minimize noise and interference.
Noise Reduction: Use shielded cables and filtering techniques to reduce noise in
the measurement.
Note: This is a basic guide. The specific implementation details may vary depending on the
application and the components used. Always refer to the datasheets of the components for detailed
information and recommended practices
Testing Procedures
DC Current Measurement:
o Apply a known DC current to the load and measure the voltage across the
shunt resistor using a multimeter.
o Compare the calculated current with the actual current to verify the accuracy of
the circuit.
AC Current Measurement:
o Calculate the RMS value of the AC current using the measured voltage and the
shunt resistance.
o Compare the calculated RMS current with the actual RMS current.
DC Current Measurement:
o Calibrate the sensor using a known current and the measured output voltage.
2
o Compare the calculated current with the actual current.
AC Current Measurement:
o Calibrate the sensor using a known AC current and the measured output voltage.
o Compare the calculated RMS current with the actual RMS current.
AC Current Measurement:
o Measure the voltage across the burden resistor using a multimeter or oscilloscope.
o Calculate the primary current using the turns ratio of the CT and the
measured voltage.
o Compare the calculated primary current with the actual primary current.
Calibration Techniques
Offset Calibration: Adjust the zero point of the sensor to compensate for any offset voltage.
Gain Calibration: Adjust the gain of the amplifier or the sensor's sensitivity to match
the desired output.
Noise and Interference: Use shielding, filtering, and grounding techniques to minimize noise.
Drift: Calibrate the sensor regularly to compensate for drift over time.
Power Supply Noise: Use a regulated power supply to minimize noise in the sensor's output.
Sensor Placement: Place the sensor away from magnetic fields and other sources
of interference.
2
CHAPTER-4
Performance Metrics
To evaluate the performance of a current sensing circuit, several key metrics can be considered:
1. Accuracy: How closely the measured current matches the actual current.
4. Bandwidth: The range of frequencies that the sensor can accurately measure.
Evaluation Methodology
1. Calibration:
2. Static Testing:
o Apply a range of DC currents to the circuit and measure the output voltage.
3. Dynamic Testing:
o Measure the output voltage and calculate the frequency response and phase shift.
4. Noise Measurement:
o Use a spectrum analyzer to measure the noise floor of the sensor's output.
o Compare the noise level to the desired signal level to assess the signal-to-noise
ratio (SNR).
2
o Measure the power consumption of the sensor and associated circuitry using
a power meter.
Noise:
Offset Voltage:
Temperature Drift:
Non-linearity:
Accuracy refers to how closely the measured value matches the true value of the current. Factors
affecting accuracy include:
Power Supply Variations: Fluctuations in power supply voltage can impact the
sensor's output.
Component Tolerances: The tolerance of components like resistors and op-amps can
affect accuracy.
To improve accuracy:
Calibrate the Sensor: Use a high-precision current source to calibrate the sensor.
2
Sensitivity Analysis
Sensitivity refers to the ability of the sensor to detect small changes in current. Factors affecting
sensitivity include:
Optimize Sensor Placement: Place the sensor in a location with minimal interference.
Offset Voltage:
Non-linearity:
Temperature Drift:
CHAPTER-5
Current sensing circuits play a vital role in various applications, from power monitoring to motor
control. By understanding the fundamental principles of current sensing and the characteristics of
different sensor technologies, it is possible to design and implement accurate and reliable current
sensing systems.
2
This report has explored three common current sensing techniques: resistive shunt-based, Hall
effect, and current transformer-based methods. Each technique has its own advantages and
disadvantages, and the choice of technique depends on factors such as accuracy, bandwidth,
isolation, power consumption, and cost.
Future Work
While significant advancements have been made in current sensing technology, there are still areas
for further research and development:
5. Power Quality Monitoring: Expand the capabilities of current sensing systems to monitor
power quality parameters such as power factor, harmonic distortion, and voltage sags
and swells.
o Current Transformers: High accuracy and isolation, but can be bulky and expensive.
o Consider factors like accuracy, sensitivity, bandwidth, power consumption, and cost.
o Place sensors in locations with minimal interference and ensure proper grounding.
2
o Calibrate the circuit to ensure accurate measurements.
2
Testing and Calibration:
o Compensate for factors like temperature, power supply variations, and noise.
Performance Evaluation:
APPENDIX
A. CIRCUIT DIAGRAM
Appendix A: Circuit Diagrams
[Insert circuit diagrams for the current sensing circuit and the overall system]
2
Fig-1.3 hardware connection circuit diagram
3
Fig-1.4 hardware thinckercad connection circuit
3
CONCLUSION
In conclusion, current sensing circuits are essential components in various electronic systems,
enabling accurate measurement and control of electrical currents. This report has explored the
fundamental principles, design considerations, and practical implementation of current sensing
circuits.
We have discussed three primary techniques: resistive shunt-based, Hall effect, and current
transformer-based methods. Each technique has its strengths and weaknesses, and the choice of
technique depends on factors such as accuracy, bandwidth, isolation, power consumption, and cost.
Key considerations for designing and implementing current sensing circuits include:
Circuit Design: Optimize the circuit for noise reduction, accuracy, and stability.
Power Supply: Use a stable power supply to minimize noise and drift.
Signal Conditioning: Use filters and amplifiers to condition the sensor output signal.
Data Acquisition: Use appropriate data acquisition techniques to capture and store
the current data.
By following these guidelines and considering the specific requirements of the application, it is
possible to design and implement effective current sensing circuits that provide accurate and
reliable measurements.
3
REFERENCES
A. https://www.tinkercad.com/things/j2J3AcauHyZ-alarm-system
B. https://streampowers.blogspot.com/2014/02/build-faulty-car-indicator-alarm.html
C. https://www.researchgate.net/figure/Circuit-diagram-showing-the-motor-connection-to-the-
microcontroller_fig3_347384307
D. https://www.digikey.com/en/articles/fundamentals-of-current-measurement-part-2-current-
sense-amplifiers
E. https://www.researchgate.net/figure/Dissipated-EHT-and-application-of-
vehicle_fig5_371264620
F. https://dewesoft.com/blog/what-is-can-bus
G. https://www.learningaboutelectronics.com/Articles/Current-sensor-circuit.php