Internship Report on Embedded Systems
Internship Report on Embedded Systems
BELAGAVI
“A Internship report on
“EMBEDDED SYSTEMS”
Bachelor of Engineering
In
ELECTRONICS AND COMMUNICATION
“INTERNSHIP PROGRAM”
SUBMITTED BY
USN
2BL21EC093
2024-25
B.L.D.E. Association’s
INTERNSHIP CERTIFICATE
This is to certify that the Internship has been successfully carried out by SIDDARAM
SHRIMANT VAGDURAGI bearing USN 2BL21EC093, bonafide student of (V.P Dr P.G
Halakatti College of Engineering and Technology, Vijayapura) in partial fulfillment of the
requirements for the award of degree of (Electronics and Communication Engineering) of
Visvesvaraya Technological University, Belagavi during (2024-2025). It is certified that all
corrections/suggestions indicated for Internal Assessment have been incorporated in the
report. The Internship report has been approved as it satisfies the academic requirements in
respect of Internship for the said degree.
DECLARATION
I hereby declared that the INTERNSHIP work has been carried out at following partner
organizations :
1. TRIOX technologies
SIGNATURE
SIDDARAM SHRIMANT VAGDURAGI
2BL21EC093
ACKNOWLEDGEMNT
The satisfaction and euphoria that accompany the successful completion of any task would be
incomplete without the mention of people who made it possible, whose consistent guidance and
encouragement crowned our efforts with success. We consider it as our privilege to express the
gratitude to all those who guided in the completion of our Internship.
First and foremost, we wish to express our profound gratitude to our respected Principal Dr. V.G.
Sangam, B.L.D.E. Association’s VACHANA PITAMAHA Dr. P.G. HALAKATTI COLLEGE OF
ENGINEERING & TECHNOLOGY, Vijayapura, for providing us with a congenial environment to
work in.
We would like to express our sincere thanks to Dr. U D Dixit, the HOD of Electronics and
Communication Engineering, B.L.D.E. Association’s VACHANA PITAMAHA Dr. P.G.
HALAKATTI COLLEGE OF ENGINEERING & TECHNOLOGY, Vijayapura, for his continuous
support and encouragement.
The PIC microcontroller, developed by Microchip Technology, is widely used for real-
time control applications due to its robustness, low power consumption, and wide range
of built-in peripherals. On the other hand, the Arduino UNO, based on the ATmega328P
microcontroller, is known for its open-source nature, ease of programming, and
extensive community support, making it ideal for prototyping and educational purposes.
SL NO CONTENTS PAGE
NO
1 INTRODUCTION 1-9
3 METHODOLOGY 12-36
6 CONCLUSION 44-45
7 REFERENCES 46-47
INTRODUCTION
Special Characteristics:
Applications:
Hardware:
• Microcontroller or microprocessor
Software:
• Programming language.
• IDE(Integrated Development Environment).
• Programmer.
A microcontroller (MCU) is a small computer on a single integrated circuit that is designed to control specific
tasks within electronic systems. It combines the functions of a central processing unit (CPU), memory, and
input/output interfaces, all on a single chip.
Types of Microcontroller:
1. 8-bit Microcontrollers: These are the most basic type of microcontrollers, typically used in simple
applications such as toys, small appliances, and remote controls. They have a limited processing power
and memory capacity, but they are easy to use and cost-effective.
2. 16-bit Microcontrollers: These are more advanced than 8-bit microcontrollers and are capable of
performing more complex tasks. They are commonly used in applications such as medical devices,
automotive systems, and industrial control systems.
5. PIC Microcontrollers: These microcontrollers are manufactured by Microchip Technology and are
commonly used in a wide range of applications, including home appliances, automotive systems, and
medical devices[6].
There are some key features of 8051 that work as a foundation for students to learn microcontrollers.
8051 μc family member – 8051 μc have some family members 8052 microcontroller & 8031 microcontroller.
8052μc has 8K bytes of on-chip program ROM instead of 4K bytes, and 128 bytes of RAM. And 8031μc has
0K bytes of on-chip program ROM, and 128 bytes of RAM.
Block Diagram of 8051 μc:
Oscillator: This circuit provides the microcontroller with a clock signal. All of the microcontroller’s actions
are synchronized by means of the clock signal.
Timing: In order to control the timing of activities within the microcontroller and guarantee that each instruction
is performed at the appropriate moment, the timing circuit collaborates with the oscillator.
While the microcontroller is in operation, temporary data is stored in Random Access Memory (RAM), a form
of volatile memory. The 8051 has 128 bytes of inbuilt RAM.
Timers: Timer 0 and Timer 1 are the two 16-bit timers on the 8051. These clocks may be used for counting
events, monitoring time intervals, and creating time delays, among other things.
The microcontroller may interact with external memory or peripherals thanks to bus expansion control. It
facilitates the extension of control signals for external devices and the accessible memory area.
4. Programmable I/O
Programmable Input/Output Ports: The four I/O ports (Ports 0 through 3) of the 8051 microcontroller may be
configured to carry out a range of input and output operations.
Serial Port (UART): Serial communication is made possible via the Universal Asynchronous
Receiver/Transmitter (UART). It can send and receive data concurrently while operating in full duplex mode.
6. Synchronous Shifter
Data is shifted in and out of the microcontroller in synchrony using a synchronous shifter. It is frequently
employed in communication protocols when exact time is necessary.
7. 8051 CPU
Central Processing Unit (CPU): The microcontroller’s central processing unit (CPU) is responsible for carrying
out instructions read from program memory. It controls the other parts, handles data flow inside the
microcontroller, and executes arithmetic and logic operations[2].
PIC is an abbreviation of Peripheral Interface Controller. It is the smallest microcontroller and are
programmed to execute large number of operations.
The ADC is 10- bit and the number of ADC channels in each PIC chip varies from 5 to 16, depending on
the number of pins in the package. The PIC 18 can have up to 4 timers besides the watchdog timer. The
USART peripheral allows us to connect the PIC 18-based system to serial ports such as the COM port of
the IBM PC [2].
Resistors
Resistor is defined as. A passive electrical component with two terminals that are used for either limiting or
regulating the flow of electric current in electrical circuits. The main purpose of resistor is to reduce the current
flow and to lower the voltage in any particular portion of the circuit.
Fig 1.4
Capacitors
A capacitor is a two-terminal electrical device that can store energy in the form of an electric charge. It consists
of two electrical conductors that are separated by a distance. The space between the conductors may be filled
by vacuum or with an insulating material known as a dielectric.
Types of Capacitors:
• Ceramic capacitor
A ceramic capacitor is a fixed-value capacitor where the ceramic material acts as the dielectric. It is
constructed of two or more alternating layers of ceramic and a metal layer acting as the electrodes. The
composition of the ceramic material defines the electrical behavior and therefore applications.
Electrolytic capacitor
An electrolytic capacitor is a capacitor that uses an oxide film made of aluminum, tantalum or other oxidizable
metal as a dielectric. Because of its potential for large capacitance, this type of capacitor is used extensively
in power supply circuits and similar applications.
Fig 1.6
Transistor
A transistor is a miniature semiconductor that regulates or controls current or voltage flow in addition to
amplifying and generating these electrical signals and acting as a switch or gate for them.
Fig 1.7
Fig 1.8
Op-amp
An operational amplifier (op-amp) is an integrated circuit (IC) that amplifies the difference in voltage between
two inputs. It is so named because it was developed for perform arithmetic operations. Amplifiers, buffers,
comparators, filters, etc.
Diode : A diode is a semiconductor device that allows current to flow in one direction, while restricting it in the other
Fig 1.9
1. Embedded Systems
Embedded systems are specialized computing systems designed to perform dedicated functions within a larger
system. Over the years, their applications have grown rapidly across domains like industrial automation,
consumer electronics, automotive systems, and healthcare devices.
• Raj Kamal (2003) in Embedded Systems: Architecture, Programming and Design defines embedded
systems as hardware-software co-designed systems, emphasizing their importance in real-time
applications.
• David E. Simon (1999) in An Embedded Software Primer highlighted the need for efficient design
techniques and introduced key concepts such as real-time constraints, memory management, and I/O
interfacing.
• Recent research has shown embedded systems evolving into smart and networked systems, driven by
IoT and AI integration[1].
2. PIC Microcontroller
PIC (Peripheral Interface Controller) microcontrollers by Microchip Technology have been widely used in
industrial and academic projects due to their simplicity, efficiency, and wide range of features.
• Muhammad Ali Mazidi et al. in PIC Microcontroller and Embedded Systems provide a detailed
understanding of PIC architecture and assembly/C programming techniques.
• Studies show that PIC microcontrollers are particularly useful in real-time control applications, due to
built-in peripherals such as ADCs, timers, and UARTs.
• According to various IEEE papers, PIC16F877A has been a favorite for educational automation projects
because of its balance between features and ease of use.[2]
3. Arduino UNO
Arduino UNO is a popular open-source microcontroller board based on the ATmega328P. It is widely adopted
in education, prototyping, and hobbyist electronics due to its user-friendly nature and vast community support.
• Banzi & Shiloh (2014) in Getting Started with Arduino describe Arduino as a tool for creativity, allowing
users without a technical background to build interactive projects.
• Research shows Arduino UNO’s use in rapid prototyping, IoT systems, and DIY automation. Its plug-
and-play approach, combined with accessible programming (via Arduino IDE), makes it ideal for
beginners.
• Various case studies demonstrate its role in low-cost automation, including home automation,[2][3]
METHODLOGY
I. ANALOG CIRCUITS
3.1 POWER REGULATOR SUPPLY
Components:
• If your input is AC, pass it through a bridge rectifier to convert the AC voltage to pulsating DC.
• The bridge rectifier consists of four diodes arranged in such a way that they allow both halves of the
AC wave to pass through but in the same direction (i.e., as DC).
Components:
• The resistance of the LDR changes with the amount of light falling on it. In bright light, the resistance
of the LDR decreases, and in darkness, the resistance increases.
• By using an LDR in a voltage divider circuit, we can control the base of a transistor, which in turn will
switch the LED ON or OFF.
Circuit Design:
• Connect the LDR in series with a fixed resistor to form a voltage divider. This will convert the varying
resistance of the LDR into a varying voltage.
• The voltage at the junction of the LDR and the fixed resistor will control the transistor.
2. Transistor as a Switch:
• The transistor is used as a switch. When the base of the transistor receives enough voltage (from the
voltage divider), it allows current to flow from the collector to the emitter, turning the LED ON.
• If the base voltage is low (in bright light conditions), the transistor remains OFF, and the LED stays
OFF.
• A current-limiting resistor should be placed in series with the LED to prevent it from drawing too much
current.
Circuit Connections:
o One end of the LDR connects to VCC (positive supply), and one end of the resistor is
connected to ground (GND).
o The junction between the LDR and the resistor is connected to the base of the NPN transistor
through a current-limiting resistor (e.g., 1kΩ).
2. The collector of the NPN transistor is connected to the negative terminal of the LED.
3. The positive terminal of the LED is connected to VCC through a current-limiting resistor (typically
220Ω to 470Ω).
• In low light or darkness, the LDR's resistance increases, causing a higher voltage at the base of the
transistor. This turns the transistor ON, allowing current to flow through the LED, turning it ON.
• Resistor: 10kΩ for the voltage divider, 1kΩ for the base of the transistor, and 220Ω for the LED.
Circuit Diagram:
3. LED → Transistor Collector (through 220Ω resistor). Transistor Emitter → Ground. This simple
circuit will turn the LED ON when the LDR detects low light (or darkness) and turn it OFF when the
light level is high.
Components:
Working Principle:
• By connecting the thermistor in a voltage divider configuration, we can convert the change in resistance
to a change in voltage.
• This varying voltage can be used to control the base of a transistor, which in turn switches the LED ON
or OFF based on the temperature.
How It Works:
• At low temperatures, the NTC thermistor has high resistance, so the voltage at the transistor's base is
too low to turn it on. As a result, the transistor remains OFF, and the LED stays OFF.
• At high temperatures, the NTC thermistor’s resistance decreases, causing the voltage at the base of
the transistor to increase. When the voltage is high enough, it turns the transistor ON, allowing current
to flow through the LED, turning it ON.
Fig 3.4-Tuning voltage from 0 to 5v Using Op amp and NOT gate in proteus
• LM358 will act as a comparator, comparing the voltage from the thermistor with a reference voltage.
• The 7404 NOT gate will invert the output of the comparator, allowing us to control the output
behaviour.
• The thermistor will change resistance with temperature, allowing us to tune the temperature threshold
where the output changes between 0V and 5V.
Components:
Working Principle:
1. The thermistor's resistance changes with temperature. We'll create a voltage divider using the
thermistor and a fixed resistor to convert the changing resistance into a voltage that depends on the
temperature.
2. The LM358 comparator compares the thermistor voltage with a fixed reference voltage. When the
thermistor voltage crosses the reference threshold, the comparator output will change.
3. The NOT gate (7404) inverts the output of the comparator, giving us a 0V or 5V output based on the
temperature.
Circuit Design:
• Connect the thermistor in series with a fixed resistor (e.g., 10kΩ) to create a voltage divider.
2. Reference Voltage:
• Set a reference voltage using a simple voltage divider (two resistors or a potentiometer) connected to
the inverting input (-) of the LM358 comparator.
• This reference voltage sets the threshold for the temperature. For instance, when the thermistor voltage
is higher than the reference voltage, the comparator output will change.
• The LM358 compares the voltage at its non-inverting input (+) (from the thermistor) with the
reference voltage at its inverting input (-).
• When the thermistor voltage exceeds the reference voltage (indicating a certain temperature threshold),
the comparator output will go high (5V).
• When the thermistor voltage is lower than the reference voltage, the comparator output will go
low (0V).
• The output of the comparator is connected to the input of a 7404 NOT gate.
• The NOT gate inverts the output from the LM358. This means that:
• When the LM358 comparator output is high (5V), the NOT gate output will be low (0V).
• When the comparator output is low (0V), the NOT gate output will be high (5V).
• This allows us to invert the control logic of the circuit. For example, you might want the LED or output
device to turn ON when the temperature falls below a threshold, rather than above it.
5. LED (Optional):
• Connect an LED with a current-limiting resistor (e.g., 220Ω) to the output of the NOT gate to visually
indicate when the output is high (5V).
o One end of the thermistor is connected to 5V, and the other end is connected to a fixed resistor
(10kΩ).
o The junction of the thermistor and resistor is connected to the non-inverting input (+)
of the LM358.
o Use a voltage divider made from two resistors (e.g., two 10kΩ resistors) or a
potentiometer to create the reference voltage at the inverting input (-) of the LM358.
o The output of the LM358 is connected to the input of a 7404 NOT gate.
o The output of the 7404 NOT gate is your final 0V/5V output.
4. Power Supply:
Output Logic:
The output of the NOT gate will be 5V when the temperature is below the set threshold. The output
of the NOT gate will be 0V when the temperature is above the set threshold.
Basic Overview:
• IR Transmitter: Sends out infrared (IR) light (invisible to the human eye).
• IR Receiver: Detects the IR light sent by the transmitter and outputs a signal.
• Transmitting and Receiving Logic: The transmitter sends a pulse or signal, and when the receiver
detects this, it triggers the LED.
Components:
Working Principle:
• IR Transmitter: The IR LED will emit an infrared light signal when powered. This signal can be
modulated (pulsed) to ensure that only the correct IR frequency is detected by the receiver, avoiding
interference from ambient light.
• IR Receiver: The receiver module (like TSOP1738) will detect the modulated IR signal and output a
low signal (0V) when IR is detected.
• LED Control: The output of the receiver is used to drive an NPN transistor or directly control an LED.
When the receiver detects the signal, the output pin will go low, turning on the LED.
Circuit Design:
1. IR Transmitter Circuit:
o IR LED: One side of the IR LED is connected to a current-limiting resistor (typically 220Ω or 330Ω).
The other side of the resistor is connected to VCC (5V).
o The cathode of the IR LED is connected to ground.
o To modulate the signal, you can pulse the IR LED using a 555 timer in astable mode or a
microcontroller (such as Arduino) that generates a modulated 38kHz signal, which matches the
frequency of most IR receivers like the TSOP1738.
2. IR Receiver Circuit:
• The OUT pin of the receiver module is connected to the base of the transistor through a current- limiting
resistor (1kΩ).
• The emitter of the transistor is connected to ground, and the collector is connected to one side of the
LED.
• The other side of the LED is connected to VCC (5V) through a current-limiting resistor (typically
220Ω).
Circuit Connections:
IR Transmitter:
Optional: 555 Timer (or microcontroller) to modulate the signal at 38kHz, connected to the IR LED. IR
Receiver:
▪ VCC pin of the receiver → 5V
▪ GND pin of the receiver → Ground
▪ OUT pin of the receiver → Resistor (1kΩ) → Base of NPN transistor LED
Indicator:
▪ Collector of NPN transistor → Cathode of the LED
▪ Anode of the LED → Resistor (220Ω) → VCC (5V)
▪ Emitter of NPN transistor → Ground
Operation:
• The IR receiver (such as TSOP1738) detects the IR signal if it's within range and outputs a low signal
• This low signal turns ON the NPN transistor, which completes the circuit for the LED, causing it to
light up.
• When the transmitter stops sending the IR signal or the receiver doesn’t detect it, the output goes high
(5V), and the LED turns OFF.
1. Connect the positive terminal of the battery to one terminal of the relay coil.
2. Connect the other terminal of the relay coil to the collector (C) of the BC547 transistor.
• Transistor Connections: Connect the emitter (E) of the BC547 transistor to the ground (GND) of the
battery. Connect the base (B) of the BC547 transistor to one terminal of the resistor (1kΩ). Connect the
other terminal of the resistor to one terminal of the switch.
• Connect the Lamp: Connect one terminal of the lamp to the Common (COM) terminal of the relay.
Connect the Normally Open (NO) terminal of the relay to the positive terminal of the battery. Connect
the other terminal of the lamp to the ground.
When you connect the battery, the circuit is powered, but the relay is not activated because there is no
current flowing to the base of the transistor.
1 Activating the Relay: When the switch is closed (pressed), current flows through the resistor into the base
of the BC547 transistor. This turns the transistor on, allowing current to flow from the collector to the
emitter. This action energizes the relay coil, which closes the relay contacts, allowing current to flow
through the lamp.
2 Lamp Operation: The lamp turns on when the relay is activated. When the switch is released, the current
to the base of the transistor stops, turning it off, which de-energizes the relay and turns off the lamp.
Fig 3.7a-Turning on led using drivers ckt Fig 3.7b -Driving motor and LED ckt using relays of 12V
To create a relay driver circuit using the ULN2003A, you can utilize its capability to drive relays based on logic
states (from microcontrollers or logic circuits) while also allowing you to control LEDs. The ULN2003A is a
Darlington transistor array commonly used for driving high-current loads, including relays.
Components Required:
1 ULN2003A: Darlington transistor array. Relay: Suitable for the lamp or device you want to control.
LED: For indication (optional).
2 Resistor: Typically a 1kΩ resistor for the LED.
3 Power Supply: According to the relay and LED specifications (e.g., 5V, 12V).
4 Microcontroller or Logic Circuit: To control the relay (like Arduino).
5 Connecting Wires: For connections.
Step-by-Step Instructions:
• Connect the Microcontroller: Connect the control pin (logic HIGH or LOW) from your microcontroller
to one of the input pins of the ULN2003A (let’s say IN1).
• Connect the ULN2003A: Connect the corresponding output pin (OUT1) of the ULN2003A to one end
of the relay coil.
• Connect the other end of the relay coil to the positive voltage supply (Vcc) according to the relay's
specifications.
• Connect the LED (optional): Connect the LED in series with a resistor (e.g., 1kΩ) from the control
signal to the ground. This will turn on the LED when the control signal is HIGH, indicating the relay
is activated.
• Enable the Relay: When the microcontroller outputs a HIGH signal, the corresponding input on the
ULN2003A activates, allowing current to flow through the relay coil and energizing it. The relay will
then close its contacts and allow current to flow to the connected lamp or device.
Operation:
When the microcontroller sends a HIGH signal to the ULN2003A input pin, the corresponding output pin goes
LOW, allowing current to flow through the relay coil, activating the relay. If an LED is connected, it will light
up, indicating the relay is active. When the signal is LOW, the relay deactivates, and the connected device or
lamp turns off.
The Arduino UNO R3 is an open source microcontroller board based on the Microchip ATmega328P
microcontroller and developed by [Link]. The hound is equipped with sets of digital and analog input
(VO) pins that may be interfaced to various expansion boards(shield) and other circuit.
The board has 14 digital LO pins (six capable of PWM output), 6 analog VO pins, and is programmable with
the Arduino IDE (loegrated Development Environment, via a type B USB cable. It can be powered by the
USB cable or by an external 9-volt battery, though it accepts voltages between 7 and 20 volts. It is similar to
the Arduino Nano and Leonardo. The hardware reference design is distributed under a Creative Commons
Attribution Share-Alike 2.5 license and is available on the Archanwebsite Layout and production files for
some versions of the hardware are also available.
The word "UNO" means "one" in Italian and was chosen to mark the initial release of Arduino Software. The
Uno board is the first in a series of USB-based Arduino boards; and version 1.0 of the Arduino IDE were the
reference versions of Arduino, which have now evolved to newer releases. The ATmega328 on the board comes
preprogrammed with a bootloader that allows uploading new code to it without the use of an external
programme[1][8].
The main purpose of sensors is to collect data from the surrounding environment. Sensors, or 'things' of the
IoT system, form the front end These are connected directly or indirectly to loT networks after signal
conversion and processing. But all sensors are not the same and different IoT applications require different
types of seasons. For instance, digital sensors are straightforward and easy to interface with a microcontroller
using Serial Peripheral Interface (SPD) bus. But for analogue sensors, either analogue-to-digital converter
(ADC) or Sigma- Delta modulator is used to convert the data into SPI output.
An infrared (IR) sensor is an electronic device that measures and detects infrared radiation init samunding
environment. Infrared radiation was accidentally discovered by an astronomer med William Herschel in 1800,
While measuring the temperature of each colour of light (separated by a prism), he noticed that the temperature
beyond the red light was highest. It is invisible so the human eye, as its wavelength is longer than that of
visible light (though it is still on the same electmmagnetic spectrum) Anything that emits heat everything that
has a temperature above around five degrees Kelvin) gives off infrared radiation[8].
There are two types of infrared sensors: active and passive. Active infrared sensors both emit and detect
infrared radiation. Active IR sensors have two parts: a light emitting diode (LED) and a receiver. When an
object comes close to the sensor, the infrared light from the LED reflects off of the object and is detected by
the receiver. Active IR sensors act as proximity sensors, and they are commonly used in obstacle detection
systems (such as in robot).
• DHT11
The DHT11 is a basic and inexpensive digital temperature and humidity sensor module. It's commonly used in
various DIY electronics projects and is relatively easy to interface with microcontrollers like Arduino and
Raspberry Pi. Here's a basic introduction to the DHT11 sensor.
• DC MOTOR
A DC motor, or direct current motor, is an electrical device that converts electrical energy into mechanical
motion. It operates using direct current, where the flow of electric charge is in one direction. DC motors are
commonly used in various applications, including robotics, manufacturing machinery, and electric vehicles, due
to their controllability and efficiency. They come in various types, such as brushed and brushless DC motors
[12].
The Arduino software is provided to you “as is” and we make no express or implied warranties whatsoever
with respect to its functionality, operability, or use, including, without limitation, any implied warranties of
merchantability, fitness for a particular purpose, or infringement. We expressly disclaim any liability
whatsoever for any direct, indirect, consequential, incidental or special damages, including, without
limitation, lost revenues, lost profits, losses resulting from business interruption or loss of data, regardless
of the form of action or legal theory under which the liability may be asserted, even if advised of the
possibility or likelihood of such damages It can be powered by the USB cable or by an external 9-volt battery,
though it accepts voltages between 7 and 20 volts. It is similar to the Arduino Nano and Leonardo. The
hardware reference design is distributed under a Creative Commons Attribution Share-Alike 2.5 license and
is available on the Archanwebsite Layout and production files for some versions of the hardware are also
available[8].
Introduction
This project simulates a basic traffic light control system using an Arduino UNO. It demonstrates how
embedded systems can be used to manage traffic flow efficiently at road intersections.
Components Used
• Arduino UNO
• 220-ohm resistors
Working Principle
The Arduino controls the traffic light sequence by turning LEDs on and off in a timed loop:
Each LED stays on for a few seconds before switching to the next in the sequence.
Fig 3.10-Display light intensity in LCD Fig 3.11-Turn on LED ckt using BC547
Fig 3.12-Tuning Servo motor using Arduino Fig 3.13- Display light intensity and temperature in LCD
PIC stands for Peripheral Interface Controller. It is a family of microcontrollers made by Microchip
Technology, widely used in embedded systems due to their low cost, flexibility, and ease of use[2].
Key Features
Common Applications
• Home automation
• Robotics
• Consumer electronics
PIC IDE
➢ TRIOX
TriOX is a third-party software tool often used for simulating and programming microcontrollers, particularly
PIC microcontrollers. It's not as widely used or documented as MPLAB, but it provides a user-friendly
interface for beginners to test microcontroller programs and circuits virtually[9].
➢ MPLAB
MPLAB IDE (Integrated Development Environment) is the official software provided by Microchip
Technology for programming and debugging PIC and dsPIC microcontrollers.
Key Features
Fig 3.15-Tuning Servo motor using relay ckt Fig 3.16-Turning on buzzers using relay through PIC mic
Applications:
• Home Automation (smart thermostats, security systems)
• Automotive Systems (airbags, ABS, engine control)
• Consumer Electronics (washing machines, microwaves, smart TVs)
• Industrial Control (robotics, CNC machines)
• Medical Devices (heart rate monitors, infusion pumps)
2. Arduino
Advantages:
• Open Source: Wide community support and free resources.
• User-Friendly: Easy to program, ideal for beginners.
• Flexible: Works with a variety of sensors and modules.
• Cost-Effective: Affordable for students and hobbyists.
• Quick Prototyping: Rapid development for DIY and small-scale projects.
Applications:
• IoT Projects (home automation, weather stations)
• Educational Tools (robotics kits, electronics learning boards)
• Wearables (fitness trackers, health monitoring)
• Art Installations (interactive lights and sound)
• DIY Projects (smart plant watering, garage door control)
Advantages:
• High Performance: Efficient for real-time applications.
• Low Power Consumption: Suitable for battery-operated systems.
• Wide Variety: Available in multiple versions to suit different needs.
• Reliable and Robust: Proven in industrial and automotive applications.
• Peripheral Integration: Comes with built-in timers, ADCs, UARTs, etc.
Applications:
• Industrial Automation (sensor-based controls, machine interfaces)
• Home Appliances (microwaves, air conditioners)
• Medical Equipment (pulse oximeters, glucose meters)
• Consumer Electronics (remote controls, alarms)
• Automotive Electronics (dashboard systems, lighting control)[13].
• 1. Introduction
Q̇
Home automation refers to the control of household appliances automatically or remotely. This project
demonstrates a simple automation system using a PIC microcontroller and an Infrared (IR) sensor, which detects
motion and activates appliances such as lights or fans accordingly. The goal is to enhance energy efficiency,
comfort, and convenience within a home environment.[10]
☼
◦ 2. System Components
O
• PIC Microcontroller (e.g., PIC16F877A) – Central control unit for processing sensor data.
• IR Sensor – Detects the presence or movement of a person.
• Relay Module – Acts as a switch to control high-voltage appliances.
• Power Supply – Provides power to the microcontroller and other components.
• Home Appliance – Any electrical device (e.g., light, fan) controlled by the system.[11][12]
* 3. Working Principle
C
˛
The IR sensor continuously monitors for motion or presence. When it detects a person:
1. It sends a signal to the PIC microcontroller.
2. The microcontroller processes the signal and activates a relay.
3. The relay switches on the appliance connected to it.
4. If no motion is detected for a specific duration, the microcontroller switches off the appliance to save
energy.
This creates a hands-free, automated control system for home appliances.[13]
➢ Block Diagram:
PIC RELAY
IR SENSOR MICROCONTROLLER
POWER APPLIANCES
SUPPLY
SNAPSHOTS:
Fig 5.4 -Dumping the code to Arduino uno for LCD display Fig 5.5-Diplaying text in LCD using 5v supply
CONCLUSION
In conclusion, embedded systems are specialized computing systems designed to perform dedicated tasks
within larger systems. They are characterized by their efficiency, real-time operation, and specific
functionalities tailored to meet the requirements of the application. These systems are found in a wide range
of devices, from simple household appliances to complex industrial machinery and automotive systems.
1. Real-time operation: They often need to respond to inputs or events within strict timing constraints.
2. Resource constraints: Embedded systems typically operate with limited memory, processing power,
and energy resources.
3. Reliability: Many embedded systems are designed for high reliability, especially in critical
applications like medical devices and aerospace systems.
4. Customization: They are optimized for specific tasks, which can make them highly efficient but less
versatile than general-purpose computers.
Both analog and digital circuits complement each other in electronic systems. Analog circuits (like LDRs,
thermistors, and regulators) are vital for sensing, monitoring, and conditioning physical parameters, while
digital circuits (like relay switching and op-amps) excel in processing, controlling, and automating operations.
Together, they form the foundation of modern electronic devices and systems, enabling interaction between
the digital world and real-world phenomena [12].
[2] J. B. Peatman, Design with PIC Microcontrollers, Upper Saddle River, NJ, USA: Prentice Hall, 1997.
[3] K. V. Shibu, Introduction to Embedded Systems, 1st ed. New York, NY, USA: McGraw-Hill Education,
2009.
[4] Microchip Technology Inc., PIC16F877A Datasheet, DS39582C, 2003. [Online]. Available:
[Link]
[5] Microchip Technology Inc., MPLAB® X IDE User’s Guide, DS50002027D, 2018. [Online]. Available:
[Link]
[6] R. Kamal, Embedded Systems: Architecture, Programming and Design, 3rd ed. New Delhi, India: McGraw-
Hill, 2017.
[7] T. Noergaard, Embedded Systems Architecture: A Comprehensive Guide for Engineers and Programmers,
2nd ed. Burlington, MA, USA: Newnes, 2012.
[8] Arduino, IR Sensor Tutorial: Basics, Circuit, Working, 2021. [Online]. Available:
[Link]
[9] TRIOX Technologies, TRIOX Simulation Software Documentation, v2.4, 2021. [Online].
[10] F. Mazidi, R. McKinlay, and D. Causey, PIC Microcontroller and Embedded Systems: Using Assembly
and C for PIC18, Upper Saddle River, NJ, USA: Pearson, 2008.
[11] M. A. Mazidi and J. G. Mazidi, The 8051 Microcontroller and Embedded Systems Using Assembly and C,
2nd ed. Upper Saddle River, NJ, USA: Prentice Hall, 2008.
[12] R. Piyare and M. Tazil, "Bluetooth based home automation system using cell phone," Proc. IEEE 15th Int.
Symp. Consumer Electronics (ISCE), Singapore, 2011, pp. 192–195, doi: 10.1109/ISCE.2011.5973811