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
  1. Raspberry Pi 4 Model B
  2. Raspberry Pi 3 Model B+
  3. Raspberry Pi 3 Model B
  4. Raspberry Pi Zero 2 W
  5. Raspberry Pi Zero W
  6. Raspberry Pi 400
  7. Raspberry Pi Pico
How to install Raspberry pi 4 
  •  Go to google and paste this link https://www.raspberrypi.com/softwar
  • Clink on Download
















  • 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.



Comments

Popular posts from this blog

Class 8

Class 6

Class 7