Org Report
Org Report
INTERNSHIP REPORT
ON
Submitted by
DHANUSH GOWDA H
4AI21EC028
CERTIFICATE
This is to certify that DHANUSH GOWDA H bearing USN 4AI21EC028 has submitted
the INTERNSHIP report entitled “Design and Development of System Using IOT and Machine
Learning on Raspberry Pi Platform and Python Enterprise Applications” . He/she has
satisfactorily completed the Internship work prescribed by Visvesvaraya Technological University,
Belagavi, for 4th sem Electronics and Communication Engineering during the year 2022-23.
MR .MADHUPRAKASH MRS.MEGHASHREE M
Assistant Professor Assistant Professor
Dept. of E&CE Dept. of E&CE
SL- PAGE-
INDEX
NO: NO:
1 INTRODUCTION
TOPICS COVERED :-
3.1. PROGRAMMING WITH C-LANGUAGE
3
3.2. PYTHON PROGRAMMING
3.3. EMBEDDED-C PROGRAMMING
PROJECT DISCRIPTION :-
4.1. C-PROGRAMMING EXAMPLES
4 4.2. PYTHON PROGRAMMING EXAMPLES
4.3. HARDWARE COMPONENTS
4.4. ARDUINO SOFTWARE
REFLECTION :-
5.1. SKILLS ACQUIRED
5
5.2. PILL REMAINDER
5.3. AUTOMATIC COOLER USING UNO-R3
6 CONCLUSION
Internship Title
1. INTRODUCTION
I had the incredible opportunity to take part in a 10-day internship that focused on
learning three important programming languages: Python, C, and Embedded C. The
internship took place in a beautiful location in Karnataka, India.
During the internship, we started by diving into Python, a versatile language known for its
simplicity. We learned about variables, control flow, and data structures, and got to
practice writing code and solving problems with Python.
Next, we delved into C programming, a language valued for its efficiency and widespread
use. We explored functions, arrays, pointers, and memory management, and participated
in coding challenges to enhance our problem-solving skills.
The most exciting part of the internship was exploring Embedded C programming. This
area allowed us to interact with hardware and IoT devices, giving us the chance to see our
code come to life and interact with the physical world.
Throughout the program, we worked on hands-on projects that tested our skills and
creativity. Collaborating in teams, we built applications and systems, putting our newly
acquired knowledge to practical use.
Beyond technical skills, the internship emphasized soft skills like communication and
teamwork. Through group discussions and presentations, we honed our ability to work
effectively with others.
In just 10 days, this internship provided a solid foundation in Python, C, and Embedded
C, and prepared us to tackle real-world challenges in the tech industry. It was a
transformative experience that left us with cherished memories and a passion for
programming.
2.1 INTRODUCTION
Loginware Softtec Pvt. Ltd is an emerging startup established in the year 2016 and based
in Hassan, tier II city of Karnataka State. Loginware is a knowledge-driven company that
values cutting edge technology practices and provides comprehensive solutions to help
our customers achieve their goals. Loginware is changing the world by changing the way
knowledge can be shared. Loginware has the dedicated young minds striving to connect
individuals with each other and with technology.
Loginware Sofftec Pvt. Ltd. is a proactive player covering the full spectrum of software
services, from design, development, implementation, Validation, support and corporate
training.
Loginware provides solutions that enable its customers to deliver state-of-the-art
technological solutions. Leveraging a variety of platforms from embedded engineering to
application development with system software support.
2.2 HISTORY
2.3 VISION
2.4 MISSION
Bringing out the best in everyone we touch, motivate, inspire and empower each other to
do things they never thought were possible.
2.5 OBJECTIVES
The primary purpose of this company will be to utilize a carefully designed and integrated
set of training programs, entrepreneurship development components, cooperative
concepts and technology services to select and train individuals of tier II and tier III cities
to become new generation skilled workers cum entrepreneurs and community builders.
The programs carried out in Loginware will attract, screen, motive, prepare and assist
individuals of tier II and tier III cities to effectively utilize the new generation technology.
1) Creating a one-stop technology platform or a knowledge hub to support all kinds of
technology needs of Tier II and III cities.
2) Make available at one location all of the essential technology facilities, training and
support services needed by individuals of tier II and tier III cities.
3) Systematically create substantial number of new modern small business enterprises and
worker cooperatives.
4) Generate economic growth and employment opportunities for youth and poor people in
tier II and tier III cities.
3. TOPICS COVERED
3.1. PROGRAMMING WITH C-LANGUAGE:-
INTRODUCTION
C is a procedural programming language initially developed by Dennis Ritchie in the
year 1972 at Bell Laboratories of AT&T Labs. It was mainly developed as a system
programming language to write the UNIX operating system.
C is an imperative procedural language, supporting structured programming, lexical
variable scope and recursion, with a static type system. It was designed to be compiled to
provide low-level access to memory and language constructs that map efficiently to
machine instructions, all with minimal runtime support.
FEATURES OF C-LANGUAGE
*General Purpose and Portable
*Low-level Memory Access
*Fast Speed
*Clean Syntax
These features make the C language suitable for system programming like an operating
system or compiler development.
COMPONENTS OF C PROGRAM
1. Header Files Inclusion – Line 1 [#include <stdio.h>]
The first and foremost component is the inclusion of the Header files in a C program. A
header file is a file with extension .h which contains C function declarations and macro
definitions to be shared between several source files. All lines that start with # are
processed by a preprocessor which is a program invoked by the compiler. In the above
example, the preprocessor copies the preprocessed code of stdio.h to our file. The .h files
are called header files in C.
Some of the C Header files:
returned by the main indicates the status of program termination. See this post for more
details on the return type.
ADVANTAGES OF C-PROGRAM
C is medium level language. It has both, the lower level and higher level
functionality. We can use C to make driver or kernel level programs as well as programs
for different software.
Readability - Python programs use clear, simple, and concise instructions that are
easy to read even by those who have no substantial programming background.
Programs written in Python are, therefore, easier to maintain, debug, or enhance.
Higher productivity - Codes used in Python are considerably shorter, simpler, and
less verbose than other highlevel programming languages such as Java and C++.
In addition, it has well-designed built-in features and standard library as well as
access to third party modules and source libraries. These features make
programming in Python more efficient.
Less learning time - Python is relatively easy to learn. Many find Python a good
first language for learning programming because it uses simple syntax and shorter
codes.
Runs across different platforms - Python works on Windows, Linux/UNIX, Mac
OS X, other operating systems and smallform devices. It also runs on
microcontrollers used in appliances, toys, remote controls, embedded devices, and
other similar devices.
4. PROJECT DISCRIPTION
4.1. EXAMPLES OF C-PROGRAMMING (WITH OUTPUT)
program:1
#include<stdio.h>
void main()
{
int var=23;
float var1=3.339;
char var2='m';
printf("the values are\n var=%d\n var1=%f\n var2=%c\n",var,var1,var2);
}
output:
the values are
var=23
var1=3.339
var2=m
program:2
#include<stdio.h>
void main()
{
int a=5,b=10,sum;
sum=a+b;
printf("the sum of %d and %d is %d \n",a,b,sum);
}
output:
the sum of 5 and 10 is 15
program:3
#include<stdio.h>
void main()
{
int a,b;
float c;
printf("enter the values");
scanf("%d%d%f",&a,&b,&c);
printf("%f",a+b+c);
}
output:
enter the values 3
2
1
6.00000
#include<stdio.h>
void main()
{
int a,b;
float c;
printf("enter the values");
scanf("%d%d%f",&a,&b,&c);
printf("%.2f",a+b+c);
}
output:
enter the values4
3
2.43
9.43
program:5
#include<stdio.h>
void main()
{
float a,b;
int mod;
printf("enter the values of a and b\n");
scanf("%f%f",&a,&b);
printf("addition=%f\n",a+b);
printf("suntraction=%f\n",a-b);
printf("multiplication=%f\n",a*b);
if(b==0)
printf("invalid values for division\n");
else
printf("division=%f\n",a/b);
mod=(int)a%(int)b;
printf("modulus=%d",mod);
}
output:
a]enter the values of a and b
2
2
addition=4.000000
suntraction=0.000000
multiplication=4.000000
division=1.000000
modulus=0
b]enter the values of a and b
2
3
addition=5.000000
suntraction=-1.000000
multiplication=6.000000
division=0.666667
modulus=2
program:6
#include<stdio.h>
void main()
{
int a,b,c;
printf("enter the values of a b and c\n");
scanf("%d%d%d",&a,&b,&c);
if(a>b&&a>c)
output:
enter the values of a b and c
4
3
6
the biggest value is c that is =6
program:7
#include<stdio.h>
void main()
{
int a,b,c;
printf("enter the values of a b and c\n");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
if(a>c)
printf("the biggest is a %d",a);
if(b>a)
if(b>c)
printf("the biggest is b %d",b);
else
printf("the biggest is c %d",c);
output:
enter the values of a b and c
3
2
1
the biggest is a 3
program:8
#include<stdio.h>
void main()
{
int a,b,c;
printf("enter the values of a b and c\n");
scanf("%d%d%d",&a,&b,&c);
(a>b&&a>c)?printf("a is bigger\n"):((b>a&&b>c)?printf("b is bigger\n"):printf("c
is bigger\n"));
}
output:
enter the values of a b and c
5
8
2
b is bigger
program:9
#include<stdio.h>
void main()
{
int a=100,b=15,c=20,big;
big=a>b?(a>c?a:c):(b>c?b:c);
printf("bigger value=%d",big);
}
output:
bigger value=100
program:10
#include<stdio.h>
void main()
{
int k=30;
printf("%d%d%d",k<=30,k=40,k==30);
return 0;
}
output:
0 40 1
program:11
#include<stdio.h>
void main()
{
printf("%d\n",sizeof(int));
printf("%d\n",sizeof(char));
printf("%d\n",sizeof(double));
printf("%d\n",sizeof(float));
}
output:
4
1
8
4
program:12
#include<stdio.h>
int main()
{
int a[5][5],i,j,n,m;
printf("enter the no of rows and colloms\n");
scanf("%d%d",&n,&m);
printf("enter the values for array\n");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
scanf("%d",&a[i][j]);
}
}
printf("the stored value is\n");
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
printf("%d\t",a[i][j]);
}
printf("\n");
}
}
output:
1. a = int(3.5)
b = str(3.14)
print(a)
print(type(a))
print(b)
print(type(b))
2. a = 10
print(id(a))
b=4
print(id(b))
3. x,y=10,30
if x<y:
print(x)
else:
print(y)
print('is the minimum')
4. x,y=10,30
if (x>y):
print("x is greater then y")
else:
print("y is greater than x")
5. x,y=45,1
if (x>y):
print("x is greater then y")
else:
print("y is greater than x")
6. x, y, z = [10,21,30]
if (x > y and x>z):
print("x is greater then y and z")
8. def function1(a,b,c):
print(a+b)
print(c)
a=int(input("enter the value of a"))
b=int(input("enter the value of b"))
c=input("enter your company name")
function1(a,b,c)
10. name=[1,2,3,'python']
print(name)
print(name[0:3])
name.append('AIT')
print(name)
name.append(2)
print(name)
label1=Label(root,text='preethi',bg='pink')
label1.place(x=50,y=50)
label2=Label(root,text='sinchu',bg='blue')
label2.place(x=100,y=100)
root.mainloop()
An IR sensor is an electronic device, that produces in order to detect some parts of the
environs. An infrared sensor can measure the heat of an object as well as detects the
motion. These sensors are used to measure only IR radiation, rather than producing it that
is called as a passive infrared sensor. Generally in the IR spectrum, all the surrounding
objects generate different form of thermal radiation.These kinds of radiations are not
observable to our eyes, that can be sensed by an IR sensor. The emitter of the sensor is
infrared LED and the sensor is an IR photodiode which is sensitive to infrared light of the
same wavelength as that produced by the infrared LED. When infrared light drops on the
photodiode, the resistances and o/p voltages change in proportion to the received
magnitude of the infrared light.
IR sensor is an electronic device which is used to sense heat & objects. 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. In this article as an
infrared sensor a photo IR sensor is used to build the circuit.
Applications
Advantages
They have greater accuracy than many other methods at measuring thickness and
distance to a parallel surface
Their high frequency, sensitivity, and penetrating power make it easy to detect
external or deep objects
Our SCXL-MaxSonar-WR Product line is self-cleaning. Which allows for
continuous running and less downtime
Our ultrasonic sensors are easy to use and not dangerous during operation to
nearby objects, people or equipment
Our sensors easily interface with microcontrollers or any type of controller
Applications
Anti-Collision Detection
People Detection
Contouring or Profiling
Presence Detection
Box Sorting using a Multi-Transducer System
Easy Control of Trash Collection Vehicles
Pallet Detection with Forklifts
Bottle Counting on Drink Filling Machines
LED
Working principle
A P-N junction can convert absorbed light energy into a proportional electric current. The
same process is reversed here (i.e. the P-N junction emits light when electrical energy is
applied to it). This phenomenon is generally called electroluminescence, which can be
defined as the emission of light from a semiconductor under the influence of an electric
field. The charge carriers recombine in a forward-biased P-N junction as the electrons
cross from the N-region and recombine with the holes existing in the P-region. Free
electrons are in the conduction band of energy levels, while holes are in the
valence energy band. Thus the energy level of the holes is less than the energy levels of
the electrons. Some portion of the energy must be dissipated to recombine the electrons
and the holes. This energy is emitted in the form of heat and light.
The electrons dissipate energy in the form of heat for silicon and germanium diodes but
in gallium arsenide phosphide(GaAsP) and gallium phosphide (GaP) semiconductors, the
electrons dissipate energy by emitting photons. If the semiconductor is translucent, the
junction becomes the source of light as it is emitted, thus becoming a light-emitting diode.
However, when the junction is reverse biased, the LED produces no light and—if the
potential is great enough, the device is damaged.
Applications
BUZZER
TYPES
Electrochemical
Early devices were based on an electromechanical system identical to an electric
bell without the metal gong. Similarly, a relay may be connected to interrupt its own
actuating current, causing the contacts to buzz. Often these units were anchored to a wall
or ceiling to use it as a sounding board. The word "buzzer" comes from the rasping noise
that electromechanical buzzers made.
Mechanical
A joy buzzer is an example of a purely mechanical buzzer and they require drivers. Other
examples of them are doorbells.
Piezoelectric
A piezoelectric element may be driven by an oscillating electronic circuit or other audio
signal source, driven with a piezoelectric audio amplifier. Sounds commonly used to
indicate that a button has been pressed are a click, a ring or a beep.
A piezoelectric buzzer/beeper also depends on acoustic cavity resonance or Helmholtz
resonance to produce an audible beep.
Applications
Judging panels
Educational purposes
Annunciator panels
Electronic metronomes
architects build interactive prototypes, musicians and artists use it for installations and
to experiment with new musical instruments. Makers, of course, use it to build many of
the projects exhibited at the maker faire, for example. Arduino is a key tool to learn new
things. Anyone - children, hobbyists, artists, programmers - can start tinkering just
following the step by step instructions of a kit, or sharing ideas online with other
members of the arduino community.
There are many other microcontrollers and microcontroller platforms available for
physical computing. Parallax basic stamp, netmedia's bx-24, phidgets, mit's
handyboard, and many others offer similar functionality. All of these tools take the
messy details of microcontroller programming and wrap it up in an easy-to-use
package. Arduino also simplifies the process of working with microcontrollers, but it
offers some advantage for teachers, students, and interested amateurs over other
systems:
Inexpensive - arduino boards are relatively inexpensive compared to other
microcontroller platforms. The least expensive version of the arduino module can be
assembled by hand, and even the pre-assembled arduino modules cost less than \$50
Cross-platform - the arduino software (ide) runs on windows, macintosh osx, and linux
operating systems. Most microcontroller systems are limited to windows.
Simple, clear programming environment - the arduino software (ide) is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. For
teachers, it's conveniently based on the processing programming environment, so
students learning to program in that environment will be familiar with how the arduino
ide works.
Open source and extensible software - the arduino software is published as open source
tools, available for extension by experienced programmers. The language can be
expanded through c++ libraries, and people wanting to understand the technical details
can make the leap from arduino to the avr c programming language on which it's based.
Similarly, you can add avr-c code directly into your arduino programs if you want to.
Open source and extensible hardware - the plans of the arduino boards are published
under a creative commons license, so experienced circuit designers can make their own
version of the module, extending it and improving it. Even relatively inexperienced
users can build the breadboard version of the module in order to understand how it
works and save money.
5. REFLECTION
5.1. SKILLS ACQUIRED
Programming skills in Python, C, C++. Arduino is built around straightforward
and easy-to-understand programming languages such as C#, Python, ArduBlock,
and Snap4Arduino. It also uses a subset of C/C++ with the code compiled with
avr-g++.
Sensor operator skills. Sensors are small electronic devices that can be placed on
boards to get input from environmental factors such as light and temperature. You
can then program the board to respond to certain specific conditions.
Circuit design. Many experts in Arduino are also engineers who develop
electronic circuitry commonly found in devices such as computers, televisions,
and smartphones. You’ll need to have such skills to work on advanced Arduino
projects.
Computer skills. Computer skills are vital when working on Arduino projects.
Other than proficiency in programming basics, you’ll need mathematical skills for
complex algorithms, skills in writing programs, and skills in writing and
debugging code.
Microprocessor and microcontroller skills. Microcontrollers are fused into
Arduino boards. Knowing what to do with microcontrollers will enable you to
read those different inputs while controlling outputs.
• Or if the pill have already taken and the person wants to know about it ,then also
the SMS or some message will be sent to the person .
• And to take the pills on time will have used piezo buzzer for alerting the patient
and have set it up so that it acts as A alarm to the patient. And This concludes the
working of our project
• But the same program can be used for higher voltage and higher rpm motor
where the external power supply should be connected to the IC which has the
capacity of 32v and as for the microcontroller we have to use 9v supply or
over supply can damage the microcontroller.