Search Header Logo

IoT MicroPython

Authored by HS Mok

Computers

9th - 12th Grade

Used 5+ times

IoT MicroPython
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the device displayed on the image ?

Speaker

Color Sensor

Ultrasonic Sensor

Temperature Sensor

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

Please explain what is Trig, Echo, VCC and GND pin.

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

See carefully there are 'T' (left-bottom side) and 'R' (right-bottom side). Explain them.

Evaluate responses using AI:

OFF

4.

OPEN ENDED QUESTION

5 mins • 1 pt

trigger = Pin(TRIGGER_PIN, Pin.OUT)

echo = Pin(ECHO_PIN, Pin.IN)

led = Pin(LED_PIN, Pin.OUT)

Please explain the differences between trigger.value(0) and trigger.value(1).
What's 1 and 0 for ?
Why trigger using Pin.OUT and echo is Pin.IN ?

Evaluate responses using AI:

OFF

5.

OPEN ENDED QUESTION

3 mins • 1 pt

trigger.value(1)

sleep_us(10)

trigger.value(0)

pulse_time = time_pulse_us(echo, 1)

distance = (SPEED * pulse_time) / 2

How long the wave is sent ?
what is the distance unit we got from the formula at the last line ?

Evaluate responses using AI:

OFF

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

buzzer = Pin(SPEAKER_PIN, Pin.OUT)

buz = PWM(buzzer)

What's the following code do ?

buz.freq(1047)

buz.duty(20)

sleep(0.5)

buz.duty(0)

Long beep sound

No sound

One beep sound

One tone sound and no stop

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

buzzer = Pin(SPEAKER_PIN, Pin.OUT)

buz = PWM(buzzer)

What's .freq( ) function for if we use the command buz.freq(1000) ?

Play note for 1 second

mute any sound

Play the note for 1000 times

Play frequency 1000 note until we mute it

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?