oit
oit
B.
Hardware Guide
1. Raspberry Pi (latest Model) 2. Monitor or TV 3. HDMI
cable 4.
Ethernet cable 5. USB keyboard 6. USB mouse 7. Micro
USB power
supply 8. 8GB or larger microSD card 9. SD Card Reader
Raspberry Pi 3 Model B:
The Raspberry Pi 3 is the third generation Raspberry Pi. It
replaced the Raspberry Pi 2 Model B in February 2016.
Compared to the Raspberry Pi 2 it has:
A 1.2GHz 64-bit quad-core
ARMv8 CPU
802.11n Wireless LAN
Bluetooth 4.1
Bluetooth Low Energy (BLE)
USB ports :— these are used to connect a mouse and
keyboard. You can also connect other components,
such as a USB drive.
SD card slot :— you can slot the SD card in here. This is
where the operating system software and your files
are stored.
Ethernet port :— this is used to connect Raspberry Pi to a
network with a cable. Raspberry Pi can also
connect to a network via wireless LAN.
Audio jack :— you can connect headphones or speakers
here.
HDMI port :— this is where you connect the monitor (or
projector) that you are using to display the output
from the Raspberry Pi. If your monitor has speakers, you
can also use them to hear sound.
Micro USB power connector :— this is where you connect a
power supply. You should always do this last,
after you have connected all your other components.
GPIO ports :— these allow you to connect electronic
components such as LEDs and buttons to Raspberry Pi.
PR 2 >Pratical 2
AIM:-SDCardFormatandBurningRaspbian
Step1:DownloadtheRequiredSoftwareandFiles
Step2:GettheSDCardandtheCardReader
Getaminimum8GBclass10SDcardwithacardreader.Insertth
atcardintothecardreaderand plugthattotheUSBport.
Step3:ChecktheDriveinWhichtheSDCardIsMounted
*Go to my computer orMyPCand find the drive name
where the SD card ismounted.
Step4:FormattheSDCard
*•OpenSDCardFormatterandselectthedriveyounoticedinthe
previousstep.
•Clickonformatanddon'talteranyotheroptions.
•Whenformattingiscompleted,clickonOK.
Step5:WritetheOSontheSDCard
*.Open win32diskimager.
*Browse the .img file of Raspbian OS that was extracted
from the downloaded file.
Step6:EjecttheSDCard
*NowyourOSininstalledonyourRaspberryPi.
Pratical 3A
AIM:-
INSTALLINGTHERASPBIANOSONRASPBERRYPIANDCONNEC
TINGCOMPONENTS.
InstallRaspberryPiOS
The Raspberry Pi boots from a microSD card. You need to
install Raspberry Pi OS (formerly called Raspbian) on the
microSD card you will use with your Pi:
1. Connect the microSD card to your computer.
2. Download theRaspberry Pi Imagerand launch it.
3.Click CHOOSE DEVICE. Select your model of Pi.
Step2.SelectCustomConfigurationwizard
You can choose either Typical or Custom Wizard. We
recommend selecting Custom if you want toinstall with all
the configurations. If you are okay with default
configurations then go ahead with Typical configuratio
Step4.SelecttheOperatingSystemMedia
*Select 'I will install the operating system later' for an
interactive installation.
Step5.SelectGuestOperatingSystem
time.sleep(1)
GPIO.output (7, False) print("LED IS OFF")
camera.start_recording('/home/pi/Desktop/video1.h264')
camera.wait_recording(15)
camera.stop_recording()
print("Finished Recording")
Step 6: Execute above script using python (record.py)
Q Pratical 7
Hardware Requirements
Power supply
Ethernet Cable / Wi Fi
Step2: download the library and script for the given link.
import thread
try:
print "Starting clock in the background (press CTRL + C to
stop):"
Display. StartClock(military_time=False)
sleep(5)
Display. ShowDoublepoint(False)
sleep(5)
loops = 3
Display.SetBrightness(i / 10.0)
sleep(0.5)
loops -= 1
Display StopClock()
thread.interrupt_main()
except KeyboardInterrupt: