Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

21. LED Chaser Using Potentiometer - RoboticSchools

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

What happens when you turn the potentiometer to its maximum position? 🎚️

a)

All LEDs will turn off ❌

b)

Only the 10th LED will turn on 🌟

c)

he first LED will blink rapidly ⚡

d)

All LEDs will light up at the same time 🎉

2.

Which code snippet correctly sets the LED pins from 2 to 11 as outputs? 🤖

a)

b)

c)

d)

3.

What happens if you accidentally connect the potentiometer to a digital pin instead of an analog pin? 🤔🔌

a)

The potentiometer will get damaged! ⚡️💔

b)

The potentiometer will only output 1s and 0s! ⚡️🔢

c)

The potentiometer will provide a range of values! 📊

d)

The potentiometer will light up! 🌟

4.

Which of the following connections are correct for connecting a potentiometer to an Arduino?

a)

b)

c)

d)

5.

What is it called when you connect all the LED grounds to one ground pin on the Arduino? ⚡️🔌

a)

Shared Ground 🤝

b)

Common Ground 🌍

c)

Ground Connection 🌐

d)

Ground Loop 🔄

6.

Which operator is needed to light up the LEDs connected from pin 2 to pin 11? 💡

a)

<=

b)

>=

c)

<

d)

==

7.

Why can't we use pins 0 and 1 to connect the LEDs in this project? 🚫💡

a)

They are reserved for serial communication. 📡

b)

They don't support digital output. ❌

c)

They can only be used for input devices. 🛑

d)

They have a different voltage level. ⚡

8.

Why do we usually add a resistor in series with each LED? 🔧 💡

a)

To limit the current and protect the LED 🛡️

b)

To slow down the blinking ⏱️

c)

To change the LED's color 🌈

d)

To make the LED brighter ✨

9.

If the potValue receives 512 from the potentiometer, how many LEDs will light up? 🧮

a)

4 🔢

b)

6 🖐️

c)

5 ✋

d)

10 🎉

10.

What is the most likely problem with this snippet? 🐛
( 10 LEDs are connected )

a)

LEDs never turn off once lit 🚫

b)

map() should end at 10, not 11 📐

c)

map() function doesn't work with analog pins 🚫

d)

analogRead() should be digitalRead() 📟