Document

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

EX.

NO: 4

DATE:23/08/2023

AIM:

To study about Rasberry pi and how it is used in IOT based applications.

Rasberry Pi:

The Raspberry Pi is a series of small, affordable, single-board computers developed by the


Raspberry Pi Foundation, a UK-based charity. The primary goal of the Raspberry Pi project
is to promote computer science education and enable people, especially students, to learn
programming and electronics in an accessible and cost-effective way. Here are some key
points about Raspberry Pi:

Affordable Hardware: Raspberry Pi computers are designed to be low-cost, making them


accessible to a wide range of users. They are typically priced significantly lower than
traditional computers, making them ideal for educational purposes and various projects.

Compact Form Factor: Raspberry Pi boards are quite small and compact, often about the size
of a credit card. This portability makes them suitable for various applications where space is
limited.

General-Purpose Computing: Despite their small size, Raspberry Pi computers are capable
of performing general-purpose computing tasks, running various operating systems, and
supporting programming languages like Python, Scratch, C++, and more.

GPIO Pins: One of the distinguishing features of Raspberry Pi is its GPIO (General Purpose
Input/Output) pins. These pins allow users to interface with external electronic components
such as LEDs, sensors, buttons, and motors, making it a popular platform for electronics
projects and learning about hardware.

Operating Systems: Raspberry Pi supports a range of operating systems, with Raspberry Pi


OS (formerly Raspbian) being the official and recommended operating system. However,
other Linux distributions and even Windows 10 IoT Core can also run on Raspberry Pi.

Educational Tool: The Raspberry Pi Foundation's mission is centered around education.


They provide a wealth of educational resources, tutorials, and project ideas to help
individuals, especially students, learn about programming, electronics, and computer science
concepts.

Project Diversity: Raspberry Pi is used in a wide variety of projects, ranging from simple
programming exercises to complex robotics, home automation, media centers, retro gaming
consoles, weather stations, and more. Its versatility allows users to experiment and create
diverse projects.

21I242 RAGUL T
Community and Support: The Raspberry Pi community is active and supportive. Users can
find forums, online communities, and resources to seek help, share their projects, and
collaborate with others.

Different Models: Over the years, multiple versions of Raspberry Pi have been released,
each with improvements in processing power, memory, connectivity options, and other
features.
Examples include Raspberry Pi 4, Raspberry Pi 3, Raspberry Pi 2, and so on.

GPIO Pins:

21I242 RAGUL T
LED BLINK USING RASBERRY PI CIRCUIT DAIGRAM:

CODE FOR LED BLINK:


import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library from time import sleep # Import the sleep
function from the time module
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(8, GPIO.OUT, initial=GPIO.LOW) # Set pin 8 to be an output pin and set initial value to low (off)

while True: # Run forever


GPIO.output(8, GPIO.HIGH) # Turn on sleep(1) # Sleep for 1
second GPIO.output(8, GPIO.LOW) # Turn off sleep(1) # Sleep for
1 second

21I242 RAGUL T
RESULT:

Thus Rasberry Pi’s applications are studied successfully.

21I242 RAGUL T

You might also like