Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Overig

Internet of things

Beoordeling
-
Verkocht
-
Pagina's
20
Geüpload op
06-09-2023
Geschreven in
2023/2024

Internet of things

Instelling
Vak

Voorbeeld van de inhoud

MAHARAJA INSTITUTE OF TECHNOLOGY MYSORE
Department of Computer Science and Engineering
Module 5 Question Bank
8th Semester
Subject: Internet of Things Subject Code: 15CS81
Section: ‘A’ Compiled by: Prof. Honnaraju B

1. Give a brief note on Arduino UNO. 4M
Answer:
Arduino is an open-source advancement prototyping platform which depends on simple to-utilize
equipment and programming. Arduino can read inputs- such as detecting the power of light, events
triggered by a Button or a twitter message and can respond into a yield, for example, run the engine, on
the LED, send data though online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board. It is like the brain of a project.
The Arduino is a small computer that you can program to read information from the world around
you and to send commands to the outside world. All of this is possible because you can connect several
devices and components to the Arduino to do what you want. You can do amazing projects with it, there is
no limit for what you can do, and using your imagination everything possible.
Arduino is a tiny computer that you can connect to electrical circuits. This makes it easy to read inputs
– read data from the outside – and control outputs- send a command to the outside. The brain of this board
(Arduino Uno) is an ATmega328p chip where you can store your programs that will tell your Arduino what
to do
The major components of Arduino UNO board are as follows:
 USB connector
 Power port
 Microcontroller
 Analog input pins
 Digital pins
 Reset switch
 Crystal oscillator
 USB interface chip
 TX RX LEDs

2. With a neat diagram, explain Raspberry Pi board. 4M
Answer:
The Raspberry Pi is a series of credit card sized single-board computers developed in the United
Kingdom by the Raspberry Pi Foundation to promote teaching of basic computer science in schools and
in developing countries. The original model became far more popular than anticipated, selling outside
its target market for uses such as robotics. It now is widely used even in research projects, such as for
weather monitoring because of its low cost and portability. It does not include peripherals (such
as keyboards and mice) or cases. However, some accessories have been included in several official and
unofficial bundles.
All models feature a Broadcom system on a chip (SoC) with an integrated ARM-compatible central
processing unit (CPU) and on-chip graphics processing unit (GPU).
Processor speed ranges from 700 MHz to 1.4 GHz for the Pi 3 Model B+ or 1.5 GHz for the Pi 4; on-board
memory ranges from 256 MiB to 1 GiB random-access memory (RAM), with up to 4 GiB available on the Pi
4. Secure Digital (SD) cards in MicroSDHC form factor (SDHC on early models) are used to store the operating
system and program memory. The boards have one to five USB ports. For video output, HDMI and composite
video are supported, with a standard 3.5 mm tip-ring-sleeve jack for audio output. Lower-level output is
provided by a number of GPIO pins, which support common protocols like I²C. The B-models have
an 8P8C Ethernet port and the Pi 3, Pi 4 and Pi Zero W have on-board Wi-Fi 802.11n and Bluetooth.
Below figure shows the pinout diagram iog Raspberry Pi.

,3. With a neat diagram, explain wireless temperature monitoring system using Raspberry Pi. 8M
Answer:
Monitoring temperatures around your house can be done fairly easily and there is a range of
commercial products out there.
To build a simple wireless temperature monitor with ESP8266 and Raspberry Pi using WiFi and
UDP protocols.




PARTS LIST
 ESP8266 (ESP-07 used here)
 FT232 converter to program the ESP
 Raspberry Pi zero W (Used for it‘s built-in WiFi capability)
 ili9341 SPI LCD to display temperature
 DS18B20 sensor
 4.7 k resistor
 IoTbear ESP breakout board (Optional)
 A router to which both the Pi and the ESP will be connected to.

, The idea is that a DS18b20 sensor is connected to the ESP8266 and the temperature readings are
sent to a Raspberry Pi using UDP through WiFi. The Raspberry Pi then processes that temperature data
and displays it on an TFT LCD screen. Of course, both, the ESP8266 and the Raspberry Pi are connected to
the same router or are on the same network. It is also possible to send data across network/over the
internet if you configure your DNS properly to make the devices visible to each other. In this post, they are
simply connected to the same router.
CONNECTING DS18B20 TO THE ESP8266
To keep thing simple, we are going to use the Arduino environment and the One Wire library to
program the ESP8266.
The wiring of the DS18d20 is as follows, with the DS18d20 wired to GPIO 0:




UPLOADING CODE TO THE ESP8266
// Including the ESP8266 WiFi library
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <WiFiUDP.h>
// Replace with your network details
const char* ssid = "Your_Router_SSID";
const char* password = "Your_Router_Password";
boolean wifiConnected = false;
// Data wire is plugged into pin D1 on the ESP8266 12-E - GPIO 0
#define ONE_WIRE_BUS 0
IPAddress broadcastIp(192,168,1,255);
// UDP variables
unsigned int localPort = 8888;
WiFiUDP UDP;
boolean udpConnected = false;
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
// Setup a oneWire instance to communicate with any OneWire devices (not just
Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature DS18B20(&oneWire);
char temperatureCString[6];
char temperatureFString[6];
// Web Server on port 80
WiFiServer server(80);
// only runs once on boot
void setup() {
// Initializing serial port for debugging purposes
Serial.begin(115200);
delay(10);
// Initialise wifi connection
wifiConnected = connectWifi();
// only proceed if wifi connection successful
if(wifiConnected){
udpConnected = connectUDP();
if (udpConnected)

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
6 september 2023
Aantal pagina's
20
Geschreven in
2023/2024
Type
OVERIG
Persoon
Onbekend

Onderwerpen

$9.29
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
priyankasharabha

Maak kennis met de verkoper

Seller avatar
priyankasharabha
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
2 jaar
Aantal volgers
0
Documenten
1
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen