Professional Documents
Culture Documents
Internship Report Body PDF
Internship Report Body PDF
BDGtronix started in the year 2016 at Bangalore, India, by a professional team headed by
Mr. BL Gowda with his several years of hands on experience in the industry, with the
mission of designing innovative embedded electronic products to solve the real industrial
problems with optimized cost.
They handle electronic system hardware and software design for a wide range of
applications and believe in constant improvement and enhancement of their services by
setting up a separate technical and management team to better serve the customer.
Their product development life cycle provides a structured approach for revisiting,
reviewing and improving the internal effectiveness and efficiency of a product while also
evaluating and improving its value to the customer.
Their products include RF remote control system for lights and fans, remote operated
dental chairs, biometric security systems, integrated automation system which includes
fire alarm sensing and indication and sprinkler control, compound gate control using
remote control / mobile App, CCTV monitoring, water monitoring system for tank/Sump
etc.
Contact information:
Website: www.bdgtronix.com
Address: #33, 1st cross road, Krishna reddy layout, Bommanahalli, Bangalore-560068
CHAPTER 2: INTRODUCTION
1. SUMMARY
VTU mandates a compulsory internship of one month for B.E. final year students at a
reputed organisation. This report is a short description of the one-month long internship
carried out at BDGtronix, Bangalore from July 8th 2019 to August 7th 2019. Since the
company is involved in embedded electronic product design and manufacturing, the role
of a trainee embedded product development engineer was assigned to me.
The work was mainly concentrated on the embedded product development life cycle
which includes proof of concept, hardware / component selection, schematic design, PCB
soldering, programming and testing. In addition, a project on IR remote controlled light
bulb was assigned and successfully completed within the stipulated time
The microcontroller of choice was the PIC16F877A, which was chosen due to its
convenience and ease of programming. The code was written and compiled on the
MPLAB IDE and all circuit simulations were carried out in Proteus software. The
schematics were designed on OrCAD and the final proof-of-concept prototype was
soldered on a PCB and tested accordingly. Subsequently, a detailed report of the project
was prepared and submitted to the company.
At the beginning of the internship, a set of learning goals were formulated that included:
Regarding the scope of the internship, in a future where everything is going to be digital,
automatic and connected, the contribution of embedded systems engineers is going to be
tremendous. It is expected that the embedded systems industry will be valued at US$360
billion by the end of 2020. To enter into a career in embedded systems, the major
requirements are good understanding of theory and application of microcontrollers like
PIC, 8051, AVR etc and deep and sound knowledge in programming language C -
especially embedded C. The internship opportunity with BDGtronix which is involved in
embedded product development was a great chance for learning and developing these
skills.
This internship report in broad-spectrum contains four chapters which shall try to explain
the month-long experience at BDGtronix, Bangalore. In the following chapters, a
reflection of the work carried out during the internship period along with the learning
goals achieved are described. Also described in depth is the project on IR remote
controlled light bulb. Finally, a conclusion on the internship experience along with future
scope is given.
1. LITERATURE SURVEY
Examples of embedded systems include ATMs, printers, engine controllers, disk drives,
cell phones, TV set top boxes, washing machines, microwave ovens, air conditioners etc.
EDLC is essential for understanding the scope and complexity of the work involved in
any embedded product development. It defines the interaction and activities among
various groups of a product development sector including project management, system
design and development (hardware, firmware and enclosure design and development),
system testing, release management and quality assurance. The standards imposed by
EDLC on a product development provides uniformity in development approaches.
Its low cost combined with its advanced features like 2 Comparators, 8 channels of 10-bit
Analog-to-Digital (A/D) converter, 2 capture/compare/PWM functions, synchronous
serial port that can be configured as either 3-wire Serial Peripheral Interface (SPI) or the
2-wire Inter-Integrated Circuit (I²C) bus and a Universal Asynchronous Receiver
Transmitter (UART) make it ideal for more advanced level A/D applications in
automotive, industrial, appliances and consumer applications.
The maximum current each port can source or sink is around 100 mA. Therefore, current
limit for each GPIO pin of PIC16F877A is 20 mA.
Key Features:
CPU 8-bit
Number of Pins 40
Comparators 2
First thing you will notice is that it is split into two - Bank 0 and Bank 1. Bank 1 is used
to control the actual operation of the PIC, for example to tell the PIC which bits of Port A
are input and which are output. Bank 0 is used to manipulate the data. An example is as
follows: Let us say we want to make one bit on Port A high. First, we need to go to Bank
1 to set the particular bit, or pin, on Port A as an output. We then come back to Bank 0
and send a logic 1 (bit 1) to that pin.
The most common registers in Bank 1 we are going to use are STATUS, TRISA and
TRISB. The first allows us to come back to Bank 0, TRISA allows us to select which pins
on Port A are output and which are input, TRISB allows us to select which pins on Port B
are output and which are input. The SELECT register in Bank 0 allows us to switch to
Bank 1.
STATUS
To change from Bank 0 to Bank 1 we tell the STATUS register. We do this by setting bit
5 of the STATUS register to 1. To switch back to Bank 0, we set bit 5 of the STATUS
register to 0. The STATUS register is located at address 03h.
These are located at addresses 85h and 86h respectively. To program a pin to be an output
or an input, we simply send a 0 or a 1 to the relevant bit in the register.
So, on Port A we have 5 pins, and hence 5 bits. If We wanted to set one of the pins to
input, we send a ‘1’ to the relevant bit. If We wanted to set one of the pins to an output,
we set the relevant bit to ‘0’. The bits are arranged in exactly the same way as the pins, in
other words bit 0 is RA0, bit 1 is RA1, bit 2 is RA2 and so on. Let’s take an example. If
We wanted to set RA0, RA3 and RA4 as outputs, and RA1 and RA2 as inputs, we send
this: 00110 (06h).
Bit Number 4 3 2 1 0
Binary 0 0 1 1 0
To send one of our output pins high, we simply send a ‘1’ to the corresponding bit in our
PORTA or PORTB register. The same format follows as for the TRISA and TRISB
registers. To read if a pin is high or low on our port pins, we can perform a check to see if
the particular corresponding bit is set to high (1) or set to low (0).
Given below are the steps to create and load new projects on MPLAB.
Create Project:
1. Go to Project on the toolbar ► Project Wizard…
2. When a window appears, click Next.
3. Choose the type of device that you want to use and click Next. (choose
PIC16F877A)
4. Select “Simulator” under Hardware tools when asked to select a tool.
5. Open the XC8 plus box, if not already open, and select an installed version of the
XC8 compiler and click Next.
6. Choose a destination where the project you create can be saved and type the
project name. After that, click Next.
7. Add the existing file (source file, header file) to the project by selecting the
directory folder where the files are located and add to the project created. For
source file, it will be *.c file while header file will be *.h file.
8. Click Finish.
Load Project:
6. Select the components from categories or type the part name in Keywords text
box.
7. The selected components will appear in the devices list. Select the component and
place it in the design sheet by left-click.
8. Place all the required components and route the wires i.e., make connections.
9. After connecting the circuit, click on the play button to run the simulation.
#include <xc.h>
void main(void)
{
TRISB=0x00; // Set port B pins as OUTPUT
TRISC=0xFF; // Set port C pins as INPUT
while (1)
{
if (RC7==1) // when switch is pressed
{
RB7=1; // LED is ON (RB7 is connected to RB7 in port B)
}
else // when switch is pressed
{
RB7=0; // LED is OFF
}
}
return;
}
#include <xc.h>
void delay_ms (int k) // delay generation
{
int i,j;
for(i=0;i<k;i++)
{
for (j=0;j<5; j++);
}
}
int main () {
char seg_code [] ={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};
// 0xc0=0,0xf9=1,0xa4=2,0xb0=3,0x99=4,0x92=5,0x82=6,0xf8=7,0x80=8,0x99=9
int i;
TRISD = 0x00;
PORTD = 0x00;
while (1)
{
for (i = 0; i <= 9; i++)
{
PORTD = seg_code[i]; //initialize seg_code
delay_ms(1000);
}
}
}
The main aim of this system is to use it in existing domestic area for switching the LED
lamp ON/OFF through the conventional switches or the TV remote.
3.1.1 Applications
The main application of this circuit is that we can control any appliance by using a single
remote control. This is very helpful for elderly people as well as for those who are unable
to walk either due to physical disabilities or due to accidents.
Another major use of our project is that we can turn off the operating devices all together
at one shot by just pressing the power button. It is time saving as it is operated by a
remote. It is more secure as there is no direct contact with the appliance.
Main areas of application of this product are,
• Apartments
• Old age homes
• Commercial Shops
• Hospital wards
• Hostels
• Offices
• Hotels
• Single houses
• Farm houses
3.1.2 Features
• Universal remote control
• Compact
• Low cost
COMPONENT QUANTITY
PIC16F877A microcontroller 1
TSOP58456 IR sensor 1
TV/DVD/VCD remote 1
Relay 12 Volt 1
Bulb with holder 1
Voltage Regulator 7805 1
Voltage Regulator 7812 1
20 MHz crystal 1
Transistor BC848 1
LED 1
Diode 1N4007 1
Push button switch 1
Resistors (4.7k,1k,270,10k) 6
Capacitors (0.1uF,10uF,22pF,100nF,2200uF) 7
Transformer 12-0-12 1
Working:
Here we are giving 230V AC power supply. The AC voltage will go to the primary
winding of the step down transformer, then the output of the transformer will be given to
the bridge rectifier which will convert the AC voltage into DC voltage, after which the
DC voltage will be applied to the filter capacitor and then the output of capacitor will be
ripple free DC voltage. That output voltage is applied to the 7805 voltage regulator which
will give us constant +5V DC voltage for microcontroller and 7812 voltage regulator
which gives us constant +12V DC for relay. The outputs of the sensor interfacing circuits
and switch will be given to the microcontroller as inputs i.e. RD0 and RD7 and the
microcontroller will give the output to pin RB1.
IR sensor is an electronic device which is used to sense heat & objects. It works with the
sensing of IR radiations and variation in heat in its nearby surroundings. IR sensors are
classified into two types such as photo IR sensor and thermal IR sensor.
A thermal infrared sensor detects the change of heat from its nearby objects. The photo IR
sensor uses a photo diode to sense IR radiations.
To trigger the relay, we make use of transistors like BC848 which can act as an electronic
switch to turn ON/OFF the relay based on the signal from the PIC microcontroller.
Features:
• Improved immunity against HF and RF noise
• Low supply current
• Photo detector and preamplifier in one package
• Internal filter for PCM frequency
• Supply voltage: 2.5 V to 5.5 V
• Improved immunity against optical noise Figure 15: TSOP58456 IR Receiver
• Insensitive to supply voltage ripple and noise
Best choice for: (1) RC-5 (2) RC-6 (3) Panasonic (4) NEC (5) Sharp (6) r-step (7)
Thomson RCA
Typical characteristics:
Logic 0: 562.5µs pulse burst followed by a 562.5µs space, with a total transmit time of
1125µs (562.5 x 2).
Logic 1: 562.5µs pulse burst followed by a 1687.5µs (562.5 x 3) space, with a total
transmit time of 2250µs
3.2.6 Relay
The program flow is as follows- The controller waits for the arrival of IR pulses from
remote control. If the set of pulses are sensed by IR sensor, controller drives relay module
which in turn switches on the bulb. Similarly, another set of pulses will drive the relay to
switch off the bulb.
The above figures show the testing and results of the project. The hardware and software
implementations were successfully completed and the prototype was constructed. It was
tested for errors and debugged accordingly.
1. Conclusion
2. Future Scope
Remote controlled home automation has a vast and great scope with limitless
applications in this technology driven world. The system can be made more efficient
and handier by making it applicable for varied range of devices. The basic motive of the
system is to access the home appliances smartly and to reduce human efforts. This
system can be enhanced by using a radio frequency technology like Wi-Fi where the
operational range will be independent of line of sight distance with IR type of remote
control.
BIBLIOGRAPHY
1. All material & facts about the PIC16F877A: PIC16F87XA Data Sheet by Microchip
Technology, Inc. 2003
2. MPLAB X IDE User’s Guide by Microchip Technology, Inc. 2015
3. John B. Peatman, Design with PIC microcontrollers, Pearson, 2002
4. Vaibhava Mishra, Sumegha Sahu, Infrared Remote-Control Switch, International
Journal of advanced Research in Computer Science and Software Engineering, 2017
5. P. van der Linden; Expert C Programming, Prentice Hall, 1994
WEEKLY REPORT
WEEK 1
During the first week, following a detailed orientation about the company’s line of work
and its internship program which basically summarized the embedded product
development life cycle, the interns were divided into groups and assigned projects based
on different products that the company wanted to develop. It was here that the project on
developing an IR remote controlled bulb was assigned. This was followed by a survey
into the already existing products in the market and the target demographic for whom the
product would be developed for. The requirements of our product were listed which
included functional requirements, hardware requirements, electrical requirements,
environmental requirements and mechanical requirements. Keeping the requirements in
mind, a block diagram and wiring diagram were developed and drawn on a KG cardboard
sheet.
WEEK 2
The second week was spent on brushing up on the basic concepts of electronic circuits
which included KVL, KCL, transformer basics, BJTs, MOSFETs, voltage regulators,
filters, op-amps etc. and embedded systems which included microprocessors and
microcontrollers. A seminar on the software design life cycle was conducted which
included defining the software requirements, requirement analysis, design, coding,
testing, deployment and maintenance. The next few days were spent on revising C
programming (datatypes, operators, loops, functions & pointers) and practicing basic C
programs and introduction to embedded C. The microcontroller i.e. PIC16F877A was
finalised and its datasheet and programming model were studied in depth. Proteus circuit
design and simulation software was installed on our systems and schematics for a number
of circuits were created and simulated.
WEEK 3
The circuits that were simulated were verified by constructing them on the bread board.
MPLAB IDE was installed and a number of programs were written and compiled. The
code was then dumped to the microcontroller using PICKit 3 and verified, A seminar was
conducted on component selection by exploring the websites of distributers like DigiKey
and Mouser which dealt with applying various filters for part search and selection. There
was also a session on EMI/EMC consideration for a product and the various international
Dept. of ECE, JIT 2019-20 Page 27
Embedded Product Development
standards that an electronic product must adhere to before being introduced into the
market. Appropriate components like transistors, sensors, relay etc. for our project were
selected and their characteristics were studied by referring to their data sheets. A
functional circuit diagram was constructed and the circuit was soldered onto the PCB
board.
WEEK 4
A seminar was conducted on PCB manufacturing, assembly and testing which was highly
informative. Then, the flowchart for our project was constructed. The code for the
working of our project was written and debugged several times on MPLAB IDE. It was
dumped into the microcontroller and the circuit was tested and the results were verified.
We had another seminar on VLSI design flow which is the sequence of processes
involved in the making of an integrated circuit. We were shown how to create a detailed
database for our projects with separate sections like management, technical, testing and
deliveries which gave us an idea of how projects are managed in the industry. The block
diagram, wiring diagram and circuit diagrams were prepared using OrCAD. Finally, a
project report had to be prepared and submitted to the company.