0% found this document useful (0 votes)
44 views32 pages

Slip Solution

The document contains questions and answers related to interfacing various sensors and devices like LEDs, switches, photocells, PIR sensors, RFID, Bluetooth modules, temperature & humidity sensors with microcontrollers like Raspberry Pi and Arduino. It provides circuit diagrams, algorithms and Python/Arduino code for collecting and displaying sensor data.

Uploaded by

sarikadanane2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views32 pages

Slip Solution

The document contains questions and answers related to interfacing various sensors and devices like LEDs, switches, photocells, PIR sensors, RFID, Bluetooth modules, temperature & humidity sensors with microcontrollers like Raspberry Pi and Arduino. It provides circuit diagrams, algorithms and Python/Arduino code for collecting and displaying sensor data.

Uploaded by

sarikadanane2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

slip no.

1
Q1.Draw the circuit / block diagram of LED/LED’s attached to GPIO Pins of
Raspberry Pi
Q2.Write an algorithm for interfacing LED/LED’s with GPIO pin. Show it to
Examiner.
Q3.Write Program in Python language to ON/OFF or Blink or Counter
action of LED/LED’s attached to GPIO pins

Q4.Write working principle of LED.


->LEDs work on the principle of Electroluminescence. On passing a current
through the diode, minority charge carriers and majority charge carriers
recombine at the junction. On recombination, energy is released in the form
of photons

Q5.What is RAM size used in Raspberry Pi-3?


->The Raspberry Pi 3 has 1 GB of RAM in the B and B+ models, and 512 MB
of RAM in the A+ model.

slip no.2
Q1. Draw circuit / block diagram of switch& LED attached to GPIO Pins of
Raspberry Pi.
Q2.Write an algorithm for Switch& LED interfaced to GPIO pins with
Raspberry Pi.
Q3. Write Program in Python language to get the feedback from Switch&
LED attached to GPIO pin. .

Q4.What are GPIO pins?


->GPIO refers to a set of pins on your computer's mainboard or add-on card.
These pins can send or receive electrical signals, but they aren't designed for
any specific purpose. This is why they're called "general-purpose" Input
Output.

Q5.What are different types of Switches?


->Basically, Switches can be of two types. They are:
Mechanical
Electronic
Mechanical Switches are physical switches, which must be activated
physically, by moving, pressing, releasing, or touching its contacts.

Electronic Switches, on the other hand, do not require any physical contact
in order to control a circuit. These are activated by semiconductor action.

slip no.3
Q1.Draw circuit/Block diagram of Photocell sensor interfacing with
Raspberry Pi
Q2.Write an algorithm /Flowchart of Photocell sensor interfacing with
Raspberry Pi.
Q3.Write a Program in Python language to detect room light from a
Photocell sensor connected to GPIO pins and display it on LCD /Monitor
Screen.
Q4.Explain Working Principal of Photocell
->The working principle of a photocell can depend on the occurrence of
electrical resistance & the effect of photoelectric. This can be used to change
light energy into electrical energy.
When the emitter terminal is connected to the negative (-ve) terminal &
collector terminal is connected to the positive (+ve) terminal of a battery.
The frequency radiation will be more than the material’s threshold
frequency in the emitter, and then photo ton emission will occur. The photon
electrons are involved in the direction of the collector. Here the collector
terminal is the positive terminal with respect to emitter terminal. Therefore,
the flow of current will be there within the circuit. If the radiation intensity is
enhanced, then the photoelectric current will be increased

Q5.What is the role of ADC when interfacing it with the Photocell sensor
->Analog-to-Digital Converters (ADCs) are used to convert analog signals into
digital representations that can be communicated and processed using
digital logic.

slip no.4
Q1.Draw block circuit /diagram of motion detection using Raspberry Pi.
Q2.Write an algorithm to detect motion using Raspberry Pi. Show it to
Examiner.
Q3.Write Program in Python language to detect motion using PIR and
presence indication through
LED /Buzzer.
Q4.On which Operating System, does the Raspberry Pi works?
->it runs Linux (a variety of distributions), and its main supported operating
system, Pi OS, is open source and runs a suite of open source software.
Q5.Write any 5 applications of PIR sensor?
->Home and Business Security Systems: – Integrated into security alarms for
motion detection.
Automatic Lighting Systems: ...
Industrial Machinery Monitoring: ...
Structural Health Monitoring: ...
Manufacturing Processes: .

Slip no 5
Q1.Draw block diagram of RFID system interfaced with Arduino
Q2. Write an algorithm for RFID system interfaced with Arduino. Show it to
Examiner
Q3.Write an Arduino Programfor RFID based Access control system with
LED or LCD indication
Q3.What is RFID stands for?
->Radio-Frequency IDentification
Q4.How many digital Input/Output pins are available on Arduino.
->14 digital input/output pins

Slip no 6
Q1.To access GPIO pins, which instructions are used?

Q2.Write aPython program to find Sum and difference of a=20,b= 11.


-># Python3 program to add two numbers
num1 = 20
num2 = 11

# Adding two nos


sum = num1 + num2

# printing values
print("Sum of", num1, "and", num2 , "is", sum)

Q3.Write a Python program to find area and perimeter of a triangle


->a = float(input('Enter first side: '))
b = float(input('Enter second side: '))
c = float(input('Enter third side: '))

# calculate the perimeter


s = (a + b + c)
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)

Q4Write a Python program to append name in the given below list?


Names = ["Joseph", "Peter", "Cook", "Tim"]
->names = ["Joseph", "Peter", "Cook", "Tim"]
print('Current names List is:', names)

new_name = input("Please enter a name:\n")

names.append(new_name) # Using the append() function


print('Updated name List is:', names)

Q5.Write a Python program to sort the given dictionary.


names = {1:'Alice' ,2:'John' ,4:'Peter' ,3:'Andrew' ,6:'Ruffalo' ,5:'Chris'}
->names = {1:'Alice' ,2:'John' ,4:'Peter' ,3:'Andrew' ,6:'Ruffalo' ,5:'Chris' }
#print a sorted list of the keys
print(sorted(names.keys()))

Q6.Write syntax for at least three data types of Python language.


->str()
int()
float()
Slip no 7
Q1.. Draw block diagram of Arduino based LED switching using Bluetooth
& Mobile.
Q2.Write an algorithm for Arduino with LED Switching using Bluetooth &
Mobile apps.
.

Q3.Write Program in Arduino to control LED using Bluetooth & Mobile


apps. .

Q4.What is the range of Bluetooth (HC-05) Device?.


->10 meters
Q5.How Arduino is different from Raspberry Pi.
->Arduino works on the basis of a microcontroller. Raspberry Pi, on the other
hand, works on the basis of a microprocessor

Slip no 8
Q1.Draw block diagram of Arduino based Temperature and Humidity
measurement using Arduino.
Q2.Write an algorithm/ Flowchart for Temperature & Humidity
measurement using Arduino
Q3.Write Program in Arduino to measure temperature and humidity using
DHT11 sensor and display it on LCD/Serial Monitor of Arduino IDE
Q4.How many Analog pins are available on Arduino Board?
->6 analog
Q5.. Explain working principle of DHT 11 sensor.
->DHT11 sensor consists of a capacitive humidity sensing element and a
thermistor for sensing temperature. The humidity sensing capacitor has two
electrodes with a moisture holding substrate as a dielectric between them.
Change in the capacitance value occurs with the change in humidity levels.
The IC measure, process this changed resistance values and change them
into digital form.

For measuring temperature this sensor uses a Negative Temperature


coefficient thermistor, which causes a decrease in its resistance value with
increase in temperature. To get larger resistance value even for the smallest
change in temperature, this sensor is usually made up of semiconductor
ceramics or polymers.

The temperature range of DHT11 is from 0 to 50 degree Celsius with a 2-


degree accuracy. Humidity range of this sensor is from 20 to 80% with 5%
accuracy. The sampling rate of this sensor is 1Hz .i.e. it gives one reading for
every second. DHT11 is small in size with operating voltage from 3 to 5 volts.
The maximum current used while measuring is 2.5mA.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy