Raspberry pi
Syntax:-
What is Raspberry pi
Types of this
How to install
light blink
traffic light project
IR sensor connect to pi
LDR sensor connect to pi
Camera connect to pi
Raspberry pi -
A Raspberry Pi is a small computer that can run a full operating system (usually Linux). It has more power and features than a microcontroller, like USB ports, HDMI output, Wi-Fi, and the ability to run complex software.
There are various types of Raspberry pi model
- Raspberry Pi 4 Model B
- Raspberry Pi 3 Model B+
- Raspberry Pi 3 Model B
- Raspberry Pi Zero 2 W
- Raspberry Pi Zero W
- Raspberry Pi 400
- Raspberry Pi Pico
How to install Raspberry pi 4
- insert SD card in card reader and connect to computer and click on choose storage.
- After process remove SD card and put in Raspberry pi
- And connect Raspberry pi to monitor/computer/laptop by HDMI cable and c-type cable, Now you can use Raspberry pi.
- insert SD card in card reader and connect to computer and click on choose storage.
- After process remove SD card and put in Raspberry pi
- And connect Raspberry pi to monitor/computer/laptop by HDMI cable and c-type cable, Now you can use Raspberry pi.
Light blink code for pi
from gpiozero import LED from time import sleep
led = LED(17) # Connect LED to GPIO 17
while True: led.on() sleep(1) led.off() sleep(1)
//gpiozero is a Python library that makes it very easy to use the GPIO (General Purpose Input Output) pins on a Raspberry Pi.
from gpiozero import LED
from time import sleep
led = LED(17) # Connect LED to GPIO 17
while True:
led.on()
sleep(1)
led.off()
sleep(1)
//gpiozero is a Python library that makes it very easy to use the GPIO (General Purpose Input Output) pins on a Raspberry Pi.
Comments
Post a Comment