Raspberry Pi: What Is A Raspberry Pi Its Component Project
Raspberry Pi: What Is A Raspberry Pi Its Component Project
Raspberry Pi: What Is A Raspberry Pi Its Component Project
● What is a Raspberry Pi
● Its Component
● Project
What is a
The Raspberry Pi is a low
cost,
credit - card sized compu
ter
that plugs into a compute
r
monitor or TV, and uses
a
Raspberry Pi?
standard keyboard and
mouse.
It is a capable little devic
e that
enables people of all ag
es to
explore computing, and
to learn
how to program in langua
ges
like Scratch and Python.
It’s
f s m a ll single- capable of doing everythin
g
i s a series o you’d expect a desktop
R a sp b er ry P i
d i n t h e United computer to do, from bro
The develope wsing
d c o m p u t e r s
P i F o u n dation to the internet and playing
high-
boar Raspberr
y n
o m b y t h e
m p u t e r science i definition video, to makin
g
Kingd n g o f basic co spreadsheets, word-proc
essing,
tea c h i untries.
promote p in g c o and playing games.
o ls an d i n d ev el o
scho What’s more
, the Raspb
the ability to erry Pi has
interact wit
world. h the outsid
e
PIs MODELS
Raspberry Pi
4 B
The Raspberry Pi 4 Model B is the latest version of the low-
cost Raspberry Pi computer. The Pi isn't like your typical
device; in its cheapest form it doesn't have a case, and is simply
a credit-card sized electronic board -- of the type you might find
inside a PC or laptop, but much smaller.
O
and python.
P R y Pi
Things I’ll need-:
pb e rr
R as 1. Raspberry Pi
Using 4 b
2. Solderless breadboard
3. Jumper wires
4. Red led
5. Resistor pack
Setting up the circuit
The first step in
this project is to
design a simple LED
circuit. Then we will
make the LED
circuit controllable
from the Raspberry
Pi by connecting the
circuit to the
general purpose
input/output (GPIO)
pins on the
Raspberry Pi.
PYTHON CODE
1. Before we start writing the software we first need to install the Raspberry Pi GPIO Python module.
To install the Python library open a terminal and execute the following
Sudo apt-get install python-rpi.gpio python3-rpi.gpio
2. To initialize the GPIO ports on the Raspberry Pi we need to first import the Python library, the
initialize the library and setup pin 8 as an output pin.
ledpin = 12 # GPIO 18
GPIO.setup(ledpin, GPIO.OUT)
For i in range(5) :
print(“LED turning ON”)
GPIO.output(ledpin, GPIO.HIGH)
time.sleep(0.5)