Anwitha Report
Anwitha Report
Anwitha Report
By
G.Anvitha
(21711A0418)
2022-2023
Department of Electronics and Communication Engineering
CERTIFICATE
(21711A0418) during academic year 2022-2023, in partial fulfillment of the requirements for the
Professor
1.
2.
DECLARATION
I hereby declare that the internship entitled Programming with Ardunio Uno and
Raspberry pi with Radar Sensor for IOT Applications has been done by me and has
I also declare that this internship report has not submitted to any other institute
G.anvitha
(21711A0418)
Place: NELLORE
Date:
CERTIFICATION
Model certificate
ACKNOWLEDGEMENT
I am extremely thankful to Dr. P. NARAYANA, the Founder Chairman of
Narayana Group for his good initiation starting technical institution in Nellore. I also
extremely thankful to Mr. R. Sambasiva Rao, B.Tech, Registrar, Narayana Engineering
College, Nellore.
I would like to thank my Head of the Department Dr. K. Murali, M.Tech, Ph.D,
Professor & HOD, Department of Electronics and Communication Engineering,
Narayana Engineering College, Nellore for his constructive criticism throughout my
internship.
I would like to thank the CEO of Sri Shasha Prayathi Technologies, NITK,
Surathkal for giving me the opportunity to do an internship within the organization
through virtual mode. I also would like all the people that worked along with me in Sri
Shasha prayathi Technologies with their patience and openness they created an
enjoyable working environment. It is indeed with a great sense of pleasure and immense
sense of gratitude that I acknowledge the help of these individuals.
I am extremely great full to my department staff members and friends who helped me
in successful completion of this internship.
G.Anvitha
(21711A0418)
ABSTRACT
This internship aims to explore the use of Arduino Uno and Raspberry Pi platforms for
building IOT applications. The internship will focus on using radar sensors to detect
objects and collect data for analysis. The internship will involve programming the
sensors and devices using C++ and Python, and using cloud-based services for data
storage and analysis. The internship will demonstrate the potential for these platforms
to be used in a variety of IOT applications, including smart homes, industrial
automation, and environmental monitoring. Both Arduino Uno and Raspberry Pi are
popular microcontroller boards used in building IOT applications. The Arduino Uno is
typically used for sensing and data collection, control and automation, and prototyping,
while the Raspberry Pi is used for data processing, cloud connectivity, and multimedia
applications. The Arduino Uno is simpler and lower cost, making it a good choice for
applications that require real-time control and low power consumption, while the
Raspberry Pi is more powerful and versatile, making it a good choice for applications
that require data processing, cloud connectivity, and multimedia capabilities. Overall,
the choice of board depends on the specific requirements of the IOT application.
I
Organization Information / Industry Profile
II
Learning Objectives / Internship Objectives
Internships are generally thought of to be reserved for college students looking
to gain experience in a particular field. However, a wide array of people can
benefit from Training Internships in order to receive real world experience and
develop their skills.
An objective for this position should emphasize the skills you already possess
in the area andyour interest in learning more
III
Weekly Overview of Internship Activities
WEEK DATE DAY TOPIC COVERED
TOPIC COVERED
WEEK DATE DAY
15/05/2023 Introduction to Arduino IDE, Arduino
Monday software tools specifications
16/05/2023 Tuesday Introduction to Tinkercad,simulation of ultrasonic
sensor and servomotor with Arduino using Tinkercad
17/05/2023 Wednesday Introduction to 16x2 LCD , its pin
configuration. Simulation of LCD and
Temperature sensor with Arduino using
Tinkercad
18/05/2023 Thursday Introduction to Raspberry pi, some basic
programming.
19/05/2023 Raspberry pi based embedded system design.
Friday
IV
WEEK DATE DAY TOPIC COVERED
V
INDEX
VI
4.2 Arduino IDE 21
4.3 Tinkercad Software 25
5. Raspberry Pi 26
5.1 Creating GUI 29
5.2 Introduction to Thingspeak 31
6. Results and Discussion 33
7. Conclusion 34
References 34
VII
List of Figures
Layered Architecture of an
Figure 1.1 Embedded System 2
Figure 1.2 Hardware Architecture of an 3
Embedded System
Figure 2.1 LED Diagram 6
Figure 2.2 Stepper Motor 7
Figure 2.3 Unipolar Stepper Motor 8
Figure 2.4 Bipolar Stepper Motor 8
Figure 2.5 Relay 8
Figure 2.6 Piezo Buzzer 9
Figure 2.7 I2C Interface 10
Figure 2.8 SPI Interface 11
Figure 2.9 UART Interface 12
Figure 2.10 USB 12
Figure 3.1 IOT Overview 13
Figure 3.2 IOT Ecosystem 14
Figure 4.1 The Arduino Board 17
Figure 4.2 The Arduino Board starting at 18
the USB connector
Figure 4.3 ATMega328p Microcontroller 18
Figure 4.4 ATMega328p and Arduino Uno 19
pin mapping
Figure 4.5 Arduino Uno board mapping 19
Figure 4.6 Power and Analog sockets 20
Figure 4.7 Power and Digital sockets 20
Figure 4.8 On-Board LED 20
Figure 4.9 Reset Button 21
Figure 4.10 Arduino IDE 21
Figure 4.11 Installation of Arduino IDE 23
Figure 4.12 Tinkercad Software 25
Figure 5.1 Raspberry Pi Board 26
Figure 5.2 Raspberry Pi 3 model 27
Figure 5.3 Commands 28
Figure 5.4 Buzzer Experiment 28
Figure 5.5 Raspberry Pi connected to 29
Breadboard
VIII
List of Tables
IX
CHAPTER-1
INTRODUCTION
Embedded
system:
• An embedded system is one that has computer hardware with software embedded in it
as oneof its components.
• We can define an embedded system as "A microprocessor based system that does not
look like a computer".
• We can say that it is "A combination of computer hardware and software, and perhaps
additional mechanical or other parts, designed to perform a dedicated function. In some
cases,
embedded systems are part of a larger system or product, as is the case of an anti lock
braking
system in a car".
Architecture:
Every embedded system consists of custom-built hardware built around a Central
Processing Unit (CPU). This hardware also contains memory chips onto which the
software is loaded. The software residing on the memory chip is also called the
’firmware’.
The operating system runs above the hardware, and the application software runs above
the operating system. The same architecture is applicable to any computer including a
desktop computer.
➢ LED is a p-n junction diode and it contains an anode and a cathode. For proper
functioning of the LED, the anode of it should be connected to +ve termina1 of the
supply voltage and cathode to the —ve terminal of the supply voltage.
Based on the coil winding arrangements, a two-phase stepper motor is Classified into
two. They are:
• Unipolar
• Bipolar
4. Relay:
CHAPTER – 3
INTERNET OF THINGS
(IOT)
Introduction to IOT Systems:
1. IoT Devices
2. Communication technology
3. Internet
4. Data storage and processing.
Components Sensors:
These form the front end of the IoT devices. These are the so-called
“Things” of the system.
The main purpose is to collect data from its surroundings (sensors) or give
out data to its surrounding (actuators).
Why IOT?
Almost any industry could profit from the Internet of Things(IoT) devices
because the Internet of Things (IoT) enables objects to just be managed
remotely via the internet.
IoT devices have opened up possibilities for connecting directly and
integrating the real world with machine platforms via sensors and the
internet.
Those devices which have IoT in them are interconnected with other
devices and help to create automation for applications. With much
less human participation, the correctness, productivity, and financial
benefit improve even more.
The Arduino Board Starting at the Universal Serial Bus (USB) Connector.
the left side of the board, you’ll see two connectors, On the far left is the Universal
Serial Bus (USB) connector.
This connects the board to your computer for three reasons: to supply power to the
board, to upload your instructions to the Arduino, and to send data to and receive it
from a computer.
ATMega328p Microcontroller
The first row offers power connections and the ability to use an external
RESET button. The second row offers six analog inputs that are used to
measure electrical signals that vary in voltage.Pins A4 and A5 can also be used
for sending data to andreceiving it from other devices.
Open your first project. Once the software starts, you have two options Create a
new project. Open an existing project example. To create a new project, select
File New.
Step 4: Select your serial port. Select the serial device of the Arduino board.
Go to Tools → Serial Port menu. This is likely to be COM3 or higher (COM1
Tinkercad Software:
- It's a free tool that allows you to create and test circuits in a virtual environment.
- Tinkercad has a drag-and-drop interface that makes it easy to add components
and create circuits.- The software also includes a code editor, so you can
program your Arduino board to interact with your circuit. - Tinkercad is perfect
for beginners
Raspberry Pi:
A credit-card-sized computer
Runs on several operating systems
Raspbian we will use RASPBIAN Windows 10 loT core
RetroPie and OpenElec
Possible to connect with a variety of sensors to interact with the physicalworld.
Make decisions based on processing of gathered sensor data.
Programming in Python:
Using a
Buzzer:
There are two main types of buzzer:
Active and passive. A passive buzzer emits a tone when a voltage is
applied across it. It also requires a specific signal to generate a variety
of tones. The active buzzers are a lot simpler to use, so these are
covered here.
1. We will create a button that will switch the LED on and off
2. We also have to make an exit button so that when we exit the
program the LED turns off, and the GPIO port is reset to default as
input ports.
PIR Senso
rand Buzzer
Experiment
:
import RPi.GPIOas
GPIO import time
pirsensor = 11 piezo
=7
GPIO.setmode(GPIO.BOARD)
GPIO.setup(piezo,GPIO.OUT)
GPIO.setup(pir_sensor, GPIO.IN)
current_state = 0
Introduction to Thingspeak:
• Open https://thingspeak.com/ and click on the ‘Get Started Now’ button
on the center of the page .
• You will be redirected to the sign-up page(you will reach the same page
when you click the
‘Sign Up’ button on the extreme right).
• Now you should see a page with a confirmation that the account was
successfully created.
• The confirmation message disappears after a few seconds and the final
page should look as in the below screen
• Go ahead and click on ‘New Channel’. You should see a page like the
below:
- Both devices can be used for developing IoT applications, and there
are many libraries and tools available to support IoT development on both
platforms.
- Some popular programming languages for IoT development on
Arduino Uno include C, C++, and Python, while Raspberry Pi supports a wider
range of languages, including Python, Java, and Ruby.
- Both Arduino Uno and Raspberry Pi can be programmed using the
Arduino Integrated Development Environment (IDE), which is a free software
tool for writing and uploading code to Arduino boards.
- Raspberry Pi can also be programmed using other popular IDEs such
as Visual Studio Code and Eclipse.
- When developing IoT applications, it's important to consider factors
such as power consumption, memory usage, and network connectivity, as well as
security and privacy concerns.
- Overall, the choice between Arduino Uno and Raspberry Pi depends
on the specific requirements of the IoT application, such as the complexity of the
application, the required processing power, and the available resources.
• All the basic concepts of Electronic Devices and IoT devices are dicussed.
• Understanding the interfacing of Arduino Uno Board and programming
with Arduino IDE.
• Simulation of Different Circuits in Tinkercad Software.
• Developing different applications using Raspberry Pi.
• Able to use the Thingspeak.
REFERENCES
1. Upton, Eben (24 June 2019). "Raspberry Pi 4 on sale now from $35".
Raspberry Pi Foundation.
2. Upton, Eben (28 May 2020). "8GB Raspberry Pi 4 on sale now at
$75". Raspberry Pi Blog.
Retrieved 28 May 2020.
3. Upton, Eben (2 November 2020). "Raspberry Pi 400: the $70 desktop
PC". Raspberry Pi Foundation.
4. Upton, Liz (30 April 2015). "Windows 10 for IoT". Raspberry Pi Foundation.
5. Hattersley, Lucy (15 November 2018). "Raspberry Pi 4, 3A+, Zero W – specs,
benchmarks & thermal tests". The MagPi magazine. Raspberry Pi Trading Ltd.
Retrieved 28 May 2020.
6. "DATASHEET – Raspberry Pi Compute Module 3+" (PDF). Raspberrypi.org.
1 January 2019.
Retrieved 28 May 2020.
7. "Raspberry Pi 4 Tech Specs". Raspberry Pi. Retrieved 26 June 2019.
8. "Raspberry Pi Zero: the $5 Computer". Raspberry Pi Foundation. 26
November 2015. Retrieved 26 November 2015.
9. "Pi Bootmodes". Only Supports Pi 2 v1.2 and up.