
IoT MicroPython
Authored by HS Mok
Computers
9th - 12th Grade
Used 5+ times

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
What is the device displayed on the image ?
Speaker
Color Sensor
Ultrasonic Sensor
Temperature Sensor
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Please explain what is Trig, Echo, VCC and GND pin.
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?