0% found this document useful (0 votes)
3 views7 pages

Iot Record

The document explains the working of the Raspberry Pi, a small, low-cost computer designed for educational purposes, featuring models A and B with different specifications. It highlights the Raspberry Pi's capabilities, including high performance, connectivity options, and versatility for various projects. Additionally, it provides examples of controlling an LED and interfacing a light sensor with the Raspberry Pi, including required components and source code for each project.

Uploaded by

Hola
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)
3 views7 pages

Iot Record

The document explains the working of the Raspberry Pi, a small, low-cost computer designed for educational purposes, featuring models A and B with different specifications. It highlights the Raspberry Pi's capabilities, including high performance, connectivity options, and versatility for various projects. Additionally, it provides examples of controlling an LED and interfacing a light sensor with the Raspberry Pi, including required components and source code for each project.

Uploaded by

Hola
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/ 7

Ex.

No : 1

Explain working of Raspberry Pi.

Aim:

Working of Raspberry Pi.

The Raspberry pi is a single computer board with credit card size, that can be used for
many tasks that your computer does, like games, word processing, spreadsheets and also to play
HD video. It was established by the Raspberry pi foundation from the UK. It has been ready for
public consumption since 2012 with the idea of making a low-cost educational microcomputer
for students andchildren. The main purpose of designing the raspberry pi board is, to encourage
learning, experimentation and innovation for school level students. The raspberry pi board is a
portable and low cost. Maximum of the raspberry pi computers is used in mobile phones.

Raspberry Pi Technology

The raspberry pi comes in two models, they are model A and model B. The main
difference between model A and model B is USB port. Model a board will consume less power
and that does not include an Ethernet port. But, the model B board includes an Ethernet port and
designed in china. The raspberry picomes with a set of open source technologies, i.e.
communication and multimedia web technologies.In the year 2014, the foundation of the
raspberry pi board launched the computer module that packages a model B raspberry pi board
into module for use as a part of embedded systems, to encourage their use.

4
 processor and graphics processor: 700MHz ARM RAM: 512MB
 HDMI port, Ethernet port, USB ports : 3.5mm
 audio jack and a microSD card slot for storage.
 Runs: Linux OS
 USB power: 5V

5
Features of Raspberry Pi
 Small form factor: The small size gives us very high computing power in the palm of
our hands.
 High Performance: The Raspberry Pi has a 1.4GHz 64-bit quad-core ARM Cortex-A53
processor and 1GB RAM, allowing it to handle multiple tasks at once and run demanding
programs.
 Connectivity: The Raspberry Pi has multiple ports for connecting to the Internet,
Bluetooth, USB, Ethernet, and other peripherals.
 Low Cost: The Raspberry Pi is one of the most affordable computers on the market,
making it a great choice for us budget-conscious users.
 Open Source: The Raspberry Pi is an open-source platform, that allows us to customize
and create our applications and hardware.
 Versatile: The Raspberry Pi can be used in a variety of projects, from robotics and home
automation to making our own media centres and gaming consoles.
 Flexible connectivity: The Raspberry Pi can connect with external monitors, keyboards,
mice, etc.
 Programming: Wide range of programming languages and development tools, thus
making it easier to learn automation. Wide range of third-party accessories to help
expand its capabilities.

RESULT

Thus the program has been verified and completed successfully.

6
Ex.No : 2

Controlling LED with Raspberry Pi

Aim:

To control LED with raspberry pi board.

1. Required Components:
2. An LED
3. A 330 ohm resistor
4. 2x Male to Female jumper wires
5. Raspberry pi

Circuit diagram:

LED Anode --- Gpin 5

LED Cathode--- Resistor+GND

Source Code:

from machine import Pin

from utime import sleep


7
led = Pin(5, Pin.OUT)

while True:

led.toggle()

sleep(1.5)

Output:

Result:

Thus the program has been verified and completed successfully.

8
Ex.No : 3

Interfacing Light Sensor with Raspberry pi

Aim:

To interface light sensor with raspberry pi board

Required components:

 LDR sensor
 Raspberry pi
 Jump wires

Circuit Diagram:

LDR VCC-- Raspberri pi 3.3 v

LDR GND-- Rspberri pi GND

LDR D0 ---- Raspberri pi GPIN 27

Source Code:

from machine import Pin

from utime import sleep


9
ldr = Pin(27, 0, 65537)

while True:

value = ldr.value()

print('value = {}'.format(value))

sleep(3)

Output:

Result:

Thus the program has been verified and completed successfully.

10

You might also like