Search Header Logo

Raspberry Pi and LDR Sensor

Authored by Robotic Schools

Computers

1st Grade

Used 1+ times

Raspberry Pi and LDR Sensor
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the working principle of an LDR sensor?

The sensor emits light to detect objects.

The sensor measures the temperature of the environment.

The sensor detects sound waves and converts them into electrical signals.

The resistance of the sensor changes with the amount of light falling on it.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name one component required for an automatic streetlight project.

temperature sensor

light sensor

motion sensor

sound sensor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the code for reading LDR sensor data in Raspberry Pi?

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.IN) sensor_value = GPIO.input(17) GPIO.cleanup()

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(22, GPIO.IN) sensor_value = GPIO.input(22) GPIO.cleanup()

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(27, GPIO.IN) sensor_value = GPIO.input(27) GPIO.cleanup()

import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(18, GPIO.IN) sensor_value = GPIO.input(18) GPIO.cleanup()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you control an LED using Raspberry Pi?

Connect the LED to a USB port and use a software to control its state.

Connect the LED to a GPIO pin and write a Python script to control the pin's state.

Connect the LED to the power supply directly and use a software to control its state.

Connect the LED to the HDMI port and use a software to control its state.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to the resistance of an LDR sensor when exposed to light?

The resistance decreases.

The resistance fluctuates.

The resistance increases.

The resistance remains the same.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an LDR sensor in an automatic streetlight project?

To detect ambient light levels and control the streetlights

To measure temperature and humidity levels

To detect motion and activate the streetlights

To monitor air pollution levels

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Name another component required for an automatic streetlight project.

light sensor

temperature sensor

motion sensor

timer

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?