0% found this document useful (0 votes)
75 views20 pages

Iot Remaining Experiment

The document describes an experiment to interface a Bluetooth module with an Arduino/Raspberry Pi board and send sensor data to a smartphone. The circuit connects a DHT22 temperature and humidity sensor to an Arduino along with an HC-05 Bluetooth module. An Android app is used to display the sensor readings received over Bluetooth from the Arduino.

Uploaded by

kingkha7278
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views20 pages

Iot Remaining Experiment

The document describes an experiment to interface a Bluetooth module with an Arduino/Raspberry Pi board and send sensor data to a smartphone. The circuit connects a DHT22 temperature and humidity sensor to an Arduino along with an HC-05 Bluetooth module. An Android app is used to display the sensor readings received over Bluetooth from the Arduino.

Uploaded by

kingkha7278
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Pankaj Kumawat (20EC41)

Experiment-6

OBJECTIVE: To interface motor using relay with Arduino/Raspberry Pi and write a program to turn
ON motor when Push-button is pressed.
RESOURCE REQUIRED: Tinkercad

THEORY:

CODE:

const int buttonPin = 12; const int transistorPin = 7; int buttonState = 0;


void setup()
{ pinMode(buttonPin, INPUT_PULLUP); pinMode transistorPin, OUTPUT);
}
void loop()
{ buttonState = digitalRead(buttonPin); if (buttonState == LOW)
{ digitalWrite (transistorPin, HIGH);
}
else
{
digitalWrite (transistorPin, LOW);
}
}
We can control high voltage electronic devices using relays. A Relay is actually
a switch which is electrically operated by an electromagnet.
Working Principle of the Project:

The intention behind the project is to explain how a microcontroller (in this case, an Arduino) can be used
to control a high voltage and high current devices using a relay. When the system is powered on, the
Arduino waits for the button to be pressed (as per the code written). The button terminal is pulled up
internally. Hence, when the button is pushed, the Arduino detects Logic 0 (LOW).This will send a Logic
1 (HIGH) signal to Pin 7,which is connected to the base of the transistor. As a result, the transistor is
switched ON. As one of thecoil terminals of the relay is connected to the collector of the transistor (which
is switched ON), a conduction path between the supply, coil and collector – emitter terminals of transistor
is formed. Because of this, the coil in the relay gets energized and acts as an electromagnet. As a result, the
movingcontact of the coil, which was initially in the Normally Closed (NC) position, will be attracted
towardsthe electromagnet and moves to the Normally Open (NO) position. This action will complete the
motor circuit and hence, the motor starts rotating. The motor keeps on rotating as long as the button is
pushed.Once the button is released, the transistor is switched OFF and the coil in the relay is de energized.
Hence, the contact goes back to the Normally Closed position and the motor is turned OFF.

CIRCUIT DIAGRAM
Pankaj Kumawat (20EC41)

OBSERVATIONS:
When pushbutton is pressed, then the motor rotates due to amount of current provided required to turn
on relay by the pushbutton.

RESULT:
Continuous motor operation with a momentary start switch is possible if a
Normally-open―seal-in‖ contact from the contactor is connected in parallel with the start switch so that
once the contactor is energized it maintains power to itself and keeps itself latched on. Time delay relays
are commonly used in large motor controlcircuits to prevent the motor from being started (or reversed)
until a certain amount of time has elapsed from an event.
Pankaj Kumawat (20EC41)

EXPERIMENT-7

OBJECTIVE: To Interface OLED with Arduino/Raspberry Pi and write a program


to print temperature and humidity readings.

RESOURCE REQUIRED: Raspberry Pi 3B+ set up,128×64 OLED display Module


(SSD1306), breadboard and connecting wires.

THEORY:
Miniature OLED display modules are a great way to add a small screen to your
Raspberry Pi projects. They are available in various sizes but common sizes include
128×32 and 128×64 pixels. The cheaper ones have single colour pixels that are either
white, yellow or blue.

The OLED Module


OLED display module is a 0.96″ I2C IIC SPI Serial 128X64 OLED LCD LED
Display Module.
It has four pins. Two are power (Vcc and Gnd) and two are for the I2C interface
(SDA and SCL). The header may need to be soldered on before we can use it.
Display Module Setup
It has four pins, two for power and two for the I2C interface.

We connected them directly to the Raspberry Pi‟s GPIO header using the following
scheme :
OLED Pin Pi GPIO Pin Notes
Vcc 1* 3.3V
Gnd 14 ** Ground
SCL 5 I2C SCL
SDA 3 I2C SCA
We can connect the Vcc pin to either Pin 1 or 17 as they both provide 3.3V. We can connect the Gnd
pin to either Pin 6, 9, 14 , 20, 25, 30, 34 or 39 as they all provide Ground.
Enable I2C Interface
The I2C interface is disabled by default so you need to enable it. You can do this
within the raspi-config tool on the command line by running :
sudo raspi-config
The following libraries may already be installed but run these commands anyway to
make sure:
Pankaj Kumawat (20EC41)

sudo apt install -y python3-dev


sudo apt install -y python-smbus i2c-tools
sudo apt install -y python3-pil
sudo apt install -y python3-pip
sudo apt install -y python3-setuptools
sudo apt install -y python3-rpi.gpio
Finding the OLED Display Module‟s Address
With the I2C libraries installed I used the i2cdetect command to find the module on
the I2C bus.

Install OLED Python Library


In order to display text, shapes and images you can use the Adafruit Python library. It
should work with all SSD1306 based displays including their own 128×32 and
128×64 devices.
To install the library we will clone the Adafruit git repository. Ensure git is installed
by running :
sudo apt install -y git
Then clone the repository using the following command :
git clone https://github.com/adafruit/Adafruit_Python_SSD1306.git
Once that completes navigate to the library‟s directory :
cd Adafruit_Python_SSD1306

Circuit Diagram :
Pankaj Kumawat (20EC41)

RASPBERRY PI CODE:
import time
import Adafruit_GPIO.I2C as I2C
import Adafruit_SSD1306
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
# Raspberry Pi pin configuration:
RST = 0
# Note the following are only used with SPI:
#DC = 23
#SPI_PORT = 0
#SPI_DEVICE = 0
# Beaglebone Black pin configuration:
# RST = 'P9_12'
# Note the following are only used with SPI:
# DC = 'P9_15'
# SPI_PORT = 1
# SPI_DEVICE = 0
# 128x32 display with hardware I2C:
disp = Adafruit_SSD1306.SSD1306_128_32(rst=RST)
# Initialize library.
disp.begin()
# Clear display.
disp.clear()
disp.display()
# Create blank image for drawing.
# Make sure to create image with mode '1' for 1-bit color.
width = disp.width
height = disp.height
image = Image.new('1', (width, height))
draw = ImageDraw.Draw(image)
padding = 2
shape_width = 20
top = padding
bottom = height-padding
# Move left to right keeping track of the current x position for drawing shapes.
x = padding
# Load default font.
font = ImageFont.load_default()
draw.text((x, top), 'Hello', font=font, fill=255,)
draw.text((x, top+10), 'IOT LAB', font=font, fill=255)
# Display image.
disp.image(image)
disp.display()
Pankaj Kumawat (20EC41)

OBSERVATIONS:

RESULT:
We have understood the working of OLED SSD 1306 and how to interface it
with Raspberry Pi. Results are verified by varying the text of display.
Pankaj Kumawat (20EC41)

EXPERIMENT-8

OBJECTIVE: To interface Bluetooth with Arduino/Raspberry Pi and write a program


to send sensor data to smartphone using Bluetooth.

RESOUIRCE REQUIRED: Arduino Uno, Arduino IDE, Smartphone, HC05 bluetooth


module, USB cable, DHT22 sensor.

THEORY: In this experiment, the temperature request can be sent to the Arduino at any
time. It also has a feedback system. The command is sent wirelessly to the Arduino Uno,
the Arduino once receive the command then replay back with the temperature
and humidity values. Here, DHT11 temperature and humidity module are used for
monitoring the temperature and humidity.
The data pin of the DHT11 sensor is connected with the Arduino‟s digital pin. While
the power supply pins are connected with the Arduino‟s 5V and GND pins.
The Bluetooth module HC-05 or HC-06 is connected with the Arduino‟s pins 0 and 1.
The RX pin of the Bluetooth module is connected with the Arduino‟s pin TX. The TX
pin of the Bluetooth module is connected with Pin RX of the Arduino Board, while the
Power supply pins are connected with the Arduino‟s power supply.

The android phone connects via Bluetooth interface with a transmitter section having
the sensor circuit. For this purpose, HC-05 Bluetooth module is being used. The sensor
used in the project is DHT-11 which relays ambient temperature and humidityvalues
to the microcontroller. The microcontroller digitizes the sensor readings using inbuilt
ADC and send them to Android phone via Bluetooth.
On the Android phone, an app Bluetooth Serial Control is used. This app can read
data over the Bluetooth interface like a serial monitor application on the desktop
computer. The serially read data is displayed within the main activity of the app.
On the transmitter side, the DHT 11 temperature and humidity sensor are interfaced
to an Arduino Uno. The Arduino board reads data from the temperature sensor, digitize
it and transmit it through the Bluetooth module. The Arduino sketch is written on
Arduino IDE and burnt to the board. Smartphone display the received sensor on a
terminal window of the app.
Pankaj Kumawat (20EC41)

CIRCUIT DIAGRAM:

ARDUINO CODE:
#include <DHT.h>
#define DHTPIN 6 // The data pin of DHT11/DHT22 should be connected to the
digtal pin 9 of Arduino.
#define DHTTYPE DHT22
DHT dht ( DHTPIN, DHTTYPE ) ;
char val;
void setup ( ) { // Void setup is the function which technically created at the top of
the program. It is used to initialize variables, pin modes, start using libraries, etc.
Serial.begin ( 9600 ) ;
dht.begin ( ) ;
}
void loop ( ) { // The loop is ran again and again and consists the main code.
float humidity = dht.readHumidity ( ) ;
float Temprature = dht.readTemperature ( ) ;
if ( isnan ( Temprature ) || isnan ( humidity ) ) {
Serial.println ( " Sensor is not avaliable right now " ) ; }
else
{ Serial.print ( " Temprature is " ) ;
Serial.print ( Temprature ) ;
Serial.println ( " *C " ) ;
delay(2000);
Serial.print ( " Humidity in % is : " ) ;
Serial.print ( humidity ) ;
Serial.print ( " % \t " ) ;
}
}

OBSERVATION:

RESULT:
The Bluetooth device and DHT 11 sensor have been interfaced with
Arduino Uno successfully and sent sensor data to smart phone.
Pankaj Kumawat (20EC41)

EXPERIMENT-9
OBJECTIVE: To interface Bluetooth with Arduino/Raspberry Pi and write a
program to turn LED ON/OFF when 1„/„0„ is received from smartphone using
Bluetooth.

RESOURCE REQUIRED:Arduino Uno, Arduino IDE, Smartphone, HC05


bluetooth module, USB cable, DHT22 sensor, LED and resistor.

THEORY:
HC 05/06 works on serial communication. The Android app is designed to send serial
data to the Arduino Bluetooth module when a button is pressed on the app. The
Arduino Bluetooth module at the other end receives the data and sends it to the
Arduino through the TX pin of the Bluetooth module (connected to RX pin of
Arduino). The code uploaded to the Arduino checks the received data and compares
it. If the received data is 1, the LED turns ON. The LED turns OFF when the received data is 0. We can
open the serial monitor and watch the received data while connecting.
There are three main parts to this project. An Android smartphone, a Bluetooth
transceiver, and an Arduino.

CIRCUIT:

ARDUINO CODE:
#define LED 8
char val;
void setup()
{
pinMode(LED , OUTPUT);
Serial.begin(9600);
}
void loop()
{
if (Serial.available())
{
val = Serial.read();
switch(val)
{
case &#39;1&#39;: digitalWrite(8, HIGH);break; // when 1 is pressed on the app on
your smart phone
case &#39;2&#39;: digitalWrite(8, LOW);break; // when 2 is pressed on the app on
your smart phone
case &#39;3&#39;: digitalWrite(8, HIGH);break; // when 3 is pressed on the app on
your smart phone
case &#39;4&#39;: digitalWrite(8, LOW);break; // when 4 is pressed on the app on
your smart phone
default : break;
}
Serial.println(val);
}
delay(50);
Pankaj Kumawat (20EC41)

}
{
case &#39;1&#39;: digitalWrite(8, HIGH);break; // when 1 is pressed on the app on
your smart phone
case &#39;2&#39;: digitalWrite(8, LOW);break; // when 2 is pressed on the app on
your smart phone
case &#39;3&#39;: digitalWrite(8, HIGH);break; // when 3 is pressed on the app on
your smart phone
case &#39;4&#39;: digitalWrite(8, LOW);break; // when 4 is pressed on the app on
your smart phone
default : break;
}
Serial.println(val);
}
delay(50);
}

Installing the Android Application


Download the application from Google Play Store.
Pair your device with the HC 05/06 Bluetooth module:
Turn ON the HC 05/06 Bluetooth module by powering the Arduino.
Scan your smartphone for available devices.3. Pair your smartphone to
the HC 05/06 by entering default password 1234 OR 0000.
Open the application and go to button palette.
After connecting successfully, press the buttons accordingly to turn the
LED on /off as mentioned in code.
Disconnect the button to disconnect the Bluetooth module
OBSERVATION:

RESULT:
The Bluetooth device and LED have been interfaced with Arduino Uno and LED has
been operated using smart phone. In this way, we can control the devices using
smartphone wirelessly.
Pankaj Kumawat (20EC41)

EXPERIMENT-10
OBJECTIVE: Write a program on Arduino/Raspberry Pi to upload temperature
and humidity data to thingspeak cloud.

RESOURCE REQUIRED: Raspberry Pi, Thingspeak Cloud, DHT22 Sensor,


Breadboard and Jumper Wires

THEORY:
DHT22 sensor will collect the temperature and humidity data and send it to
Raspberry Pi. Later Raspberry Pi will send it to Thingspeak channel.
Before starting, you need a ThingSpeak account. Create an account by clicking on this
link here. After creating the account login and click on New Channel to create a
channel.

We will define the channels by entering a proper name, description, and up to 8


fields can be used to name the parameter. For the Field 1 and Field 2 we have named
Temperature and humidity. These field values that we set can be modified later. These
values will be in Degree Centigrade and Relative Humidity in %. Once we update the
name, click on Save.

Once we have saved the channel, we will be automatically redirected to the “Private
View” tab. Here the mapped fields are shown as a diagram. We will find the
“Channel ID” (we will need it later). Below we will also see API Keys option.

Later, click on the “API Keys” tab. The two values of “Write API key” and “Read
API key” are equally necessary for us to write or retrieve data. Copy these keys and
keep it safe as we need to put it in the code.
Pankaj Kumawat (20EC41)

Connection Diagram
This is how we have to make the connection with the sensor to the Pi board. Data or
signal pin of DHT11 sensor is connected with GPIO 4 with Raspberry Pi.

Installing Required Libraries


Before installing the libraries we need to update the packages installed in Raspberry
Pi. For installing the basic updates run these commands in a terminal window on your
Raspberry Pi
sudo apt - get update
sudo apt - get install build - essential python - dev python - openssl git
Now we install the library to read the DHT11 or DHT22 sensors. Below library will work for both the
sensor types. git clone https://github.com/adafruit/Adafruit_Python_DHT.git && cd
Adafruit_Python_DHT We have to run the below command to install Python sudo python setup.py
install Installing Raspberry Pi Thingspeak Library sudo pip install thingspeak. The python script will
read the DHT11 temperature and humidity every 15 seconds and send it to our channel. sudo nano
thingspeak_DHT11.py

CIRCUIT DIAGRAM:

RASPBERRY PI CODE:
from time import sleep
import Adafruit_DHT
from urllib.request import urlopen
myAPI_key = &quot;KROC48HI5D3YIDLX&quot; # your Write API Key
Pankaj Kumawat (20EC41)

DHT_pin = 4 # the sensor is connected in GPIO4


baseURL =
(&#39;https://api.thingspeak.com/update?api_key=%s&#39;%
myAPI_key)
while True:
humidity, temp = Adafruit_DHT.read_retry(Adafruit_DHT.DHT22,
DHT_pin) humidity = &quot;%.1f&quot; % humidity # Formatting to two
decimal placestemp = &quot;%.1f&quot; % temp
conn = urlopen(baseURL + &quot;&amp;field1=%s&amp;field2=%s&quot;
%(humidity, temp))
# Sending the data to
thingspeakprint(conn.read())
conn.close() # Closing the connection
print(&quot;Temperature = %s Humidity = %s&quot; % (temp,
humidity))sleep(0.5)

OBSERVATION:

RESULT:
Account is created on thingspeak cloud and got API Key successfully.
Temperatureand humidity data have been uploaded on thingspeak successfully.
Pankaj Kumawat (20EC41)

EXPERIMENT-11

OBJECTIVE: Write a program on Arduino/Raspberry Pi to retrieve temperatureand humidity data


from thingspeak cloud.

RESOURCE REQUIRED: Raspberry Pi, Thingspeak Cloud, DHT22


Sensor,Breadboard and Jumper Wires.

THEORY:
DHT22 sensor will collect the temperature and humidity data and send it to Raspberry Pi. Later
Raspberry Pi will send it to Thingspeak channel.
“EXACTLY SAME THEORY AS PREVIOUS EXPERIMENT”

CIRCUIT DIAGRAM:

RASPBERRY PI CODE:
import json
from urllib.request import urlopen
READ_API_KEY='0WTY8S1HC2UP74
G4'
CHANNEL_ID=1329570
def main():
conn = urlopen("http://api.thingspeak.com/channels/%s/feeds/last.json?api_key=%s" \
% (CHANNEL_ID,READ_API_KEY))
response = conn.read() print( "http status code = %s" % (conn.getcode()))
data=json.loads(response)print (data['field1'],data['created_at'])
print (data['field2'],data['created_at'])
conn.close() if name == ' main ':
main()OBSERVATION:

RESULT:
Temperature and humidity data have been downloaded from thingspeak successfully.
Pankaj Kumawat (20EC41)

EXPERIMENT-12

OBJECTIVE: To install MySQL database on Raspberry Pi and perform basic


SQLqueries.
RESOURCE REQUIRED: Raspberry Pi 3B+ setup
THEORY:
Procedure and commands:
A. Installing MySQL to Raspberry Pi:
1. Before we get started with installing MySQL to our Raspberry Pi, we
mustfirst update our package list and all installed packages.
We can do this by running the following two commands.
Terminal$
sudo apt update
sudo apt
upgrade
2. The next step is to install the MySQL server software to your Raspberry Pi.
Installing MySQL to the Raspberry Pi is a simple process and can be done with
thefollowing command.
Terminal$
sudo apt install mariadb-
serverapt search mariadb | grep
"\[install" apt search mysql | grep
"\[install" sudo apt-get install
mariadb-server sudo su
mysql -u root -p
CREATE DATABASE nm;
USE nm;
show databases;
CREATE TABLE testtable (
-> id char(5) PRIMARY KEY,
-> name varchar(40)
-> );
SHOW TABLES;
INSERT INTO testtable VALUES (1,
'Alice');INSERT INTO testtable VALUES
(2, 'Bob'); SELECT * from testtable;
SELECT name FROM testtable;
UPDATE testtable SET name = 'Carl' WHERE id =
'2';SELECT * FROM testtable;
OBSERVATION:

RESULT:
MySQL database has been installed successfully and performed queries.
Pankaj Kumawat (20EC41)

EXPERIMENT-13
OBJECTIVE: Write a program to create UDP server on Arduino/Raspberry Pi and
respondwith humidity (or any string) data to UDP client when requested.

HARDWARE REQUIRED: Raspberry Pi 3B + setup

THEORY: User Datagram Protocol (UDP) – a communications protocol that


facilitates the exchange of messages between computing devices in a network. It’s
analternative to the transmission control protocol (TCP). In a network that uses
the Internet Protocol (IP), it is sometimes referred to as UDP/IP. UDP divides
messages into packets, called datagrams, which can then be forwarded by the
devicesin the network – switches, routers, security gateways – to the
destination application/server. While UDP does not number or reassemble the
datagrams, it does include port numbers in the datagram header that help distinguish
different user requests and an optional checksum capability that can help verify the
integrity of the data transferred.

Code:
## We import the necessary socket python
moduleimport socket
## Here we define the UDP IP address as well as the port number that we
have## already defined in the client python script.
UDP_IP_ADDRESS = "192.168.43.254"
UDP_PORT_NO = 6789
## declare our serverSocket upon
which ## we will be listening for UDP
messages
serverSock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)## One difference is that we will have to
bind our declared IP address ## and port number to our newly
declared serverSock serverSock.bind((UDP_IP_ADDRESS,
UDP_PORT_NO))
while True:
data, addr =
serverSock.recvfrom(1024)
print("Message: ", data)
Client Code:
import socket
UDP_IP_ADDRESS = "192.168.43.254"
UDP_PORT_NO = 6789
Message = "Hello, Server"
clientSock = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)clientSock.sendto(Message,
(UDP_IP_ADDRESS, UDP_PORT_NO))
OBSERVATION:

RESULT:
In this experiment, we have created UDP server on raspberry pi and respond
withhumidity (or any string) data to UDP client when requested.
Pankaj Kumawat (20EC41)

EXPERIMENT-14
OBJECTIVE: Write a program to create TCP server on Raspberry Pi and respond
with humidity (or any string) data to TCP client when requested.
HARDWARE REQUIRED: Raspberry Pi 3B + setup
THEORY: The Transmission Control Protocol (TCP) is one of the main protocols of
the Internet protocol suite. The TCP Server origin listens at the specified port numbers,
establishes TCP sessions with clients that initiate TCP connections, and then processes
the incoming data. The origin can process data from tables with simplenumeric primary
keys. The origin cannot process data from tables with compound or non-numeric
primary keys. The TCP Server can process data from multiple clients simultaneously,
creating separate batches for each client, and sending acknowledgements to the
originating client after parsing each record or committing each batch. When you
configure the TCP Server origin, you specify the ports to use and the TCP mode that
indicates the type of data the origin will receive. Then you configure mode-related
properties, such as the characters that separate records.
Code:
pi@raspberrypi:~ $ sudo nano TCPServer.py
write the code
# -*- coding: utf-8 -*-
from socket import *
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_STREAM)
serverSocket.bind(('', serverPort))
serverSocket.listen(1)
print("Server is Listening for incoming Client Requests!!!")
while True: connectionSocket, addr = serverSocket.accept()
messagefromclient = connectionSocket.recv(1024)
print ("Message from Client: ", messagefromclient)
messagefromserver = raw_input("Enter reply message for client: ")
connectionSocket.send (messagefromserver)
pi@raspberrypi:~ $ sudo python TCPServer.py
Output is :
Server is Listening for incoming Client Requests!!!
('Message from Client: ', 'hii')
Enter reply message for client: how r u
('Message from Client: ', 'where are avewnger')
Enter reply message for client: yes
Client code
pi@raspberrypi:~ $ sudo nano TCPClient.py
# -*- coding: utf-8 -*-
from socket import *
serverName = "192.168.43.254"
serverPort = 12000
clientSocket = socket(AF_INET, SOCK_STREAM)
clientSocket.connect((serverName, serverPort))
messagetoserver = raw_input("Enter Message for Server: ")
clientSocket.send(messagetoserver)
replyfromserver = clientSocket.recv(1024)
print("Reply Message from Server:", replyfromserver)
clientSocket.close()
pi@raspberrypi:~ $ sudo python TCPClient.py
Output Message:
Enter Message for Server: where are avewnger
Pankaj Kumawat (20EC41)

this is universe
('Reply Message from Server:', 'yes')
pi@raspberrypi:~ $ this is universe

RESULT:
In this experiment, we have created TCP server on Arduino and respond with any
string data to TCP client when requested.
ENGINEERING COLLEGE AJMER
Department of Electronics and Communication Engineering

Ajmer, Rajasthan

IOT Lab File


8th sem

Submitted By:
Pankaj Kumawat

(20EEAEC041) (EC-2)
LIST OF EXPERIMENT
Exp. no List of Experiment
Exp: 1 Study the fundamental of IOT softwares and components.

Exp: 2 Familiarization with Arduino/Raspberry Pi and perform necessary software.

Exp: 3 To interface LED/Buzzer with Arduino/Raspberry Pi and write a program to turn


ON LED for 1sec after every 2 seconds.
To interface Push button/Digital Sensor (IR/LDR) with Arduino/Raspberry pi and
Exp: 4 write a program to turn ON LED when Push button is pressed or at senor
detection.

Exp: 5 To interface DHT11 sensor with Arduino/Raspberry Pi and write a program to


print temperature and humidity readings.

To interface motor using relay with Arduino/Raspberry Pi and write a program to


Exp: 6
turnON motor when Push-button is pressed.

Exp: 7 To interface OLED with Arduino/Raspberry Pi and write a Program To print


temperature and humidity readings.

Exp: 8 To interface Bluetooth with Arduino/Raspberry Pi and write a program to send


sensor data to smartphone using Bluetooth.

Exp: 9 To interface Bluetooth with Arduino/Raspberry Pi and write a program to turn LED
ON/OFF when 1/0 is received from smartphone using Bluetooth.

Exp: 10 Write a program on Arduino/Raspberry Pi to upload temperature and humidity data


to thingspeak cloud.

Exp: 11 Write a program on Arduino/Raspberry Pi to retrieve temperature and humidity data


to thingspeak cloud.

Exp: 12 To install MySQL database on Raspberry Pi and perform basic SQL


queries
Exp: 13 Write a program to create UDP server on Arduino/Raspberry Pi and
respond with humidity data to UDP client when requested.
Exp: 14 Write a program to create TCP server on Arduino/Raspberry Pi and
respond with humidity data to TCP client when requested

You might also like