Raspberry Pi and LDR Sensor

Raspberry Pi and LDR Sensor

1st Grade

10 Qs

quiz-placeholder

Similar activities

mblock

mblock

1st - 4th Grade

7 Qs

CHAPTER 5 - COLLISION DETECTION

CHAPTER 5 - COLLISION DETECTION

1st - 12th Grade

10 Qs

Mobile  Ad Hoc Network

Mobile Ad Hoc Network

1st Grade

10 Qs

iGCSE ICT: Chapter 1

iGCSE ICT: Chapter 1

KG - University

12 Qs

Basic Bot Review

Basic Bot Review

1st Grade

13 Qs

robot seguidor de línea

robot seguidor de línea

1st - 5th Grade

7 Qs

Ақылды үй

Ақылды үй

1st - 5th Grade

10 Qs

Robotics

Robotics

1st Grade

9 Qs

Raspberry Pi and LDR Sensor

Raspberry Pi and LDR Sensor

Assessment

Quiz

Computers

1st Grade

Easy

Created by

Robotic Schools

Used 1+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?