Micro:Bit Inputs and Outputs

Worksheet by Joseph Ryan
Micro:Bit Inputs and Outputs worksheet preview image
Subjects
Science
Grades
8
Language
ENG
Assignments
91 classrooms used this worksheet

Instructions Complete each step below to learn more about inputs, outputs, and how they work on the Micro:Bit. 1. Watch: Inputs and Outputs Watch the video below, then answers question 2 about inputs and outputs. (Having trouble viewing the video, click here).Inputs are basically the computer's senses: buttons, light sensors, and microphones can all be thought of as touch, sight, and hearing!Outputs are parts that a computer can control: think of them like actions. Lights, speakers, and motors are all examples of outputs. 2. Sorting: Inputs vs. Outputs Decide whether each item on the Micro:Bit is an Input or an Output. Input Button Light sensor Shake sensor Temperature sensor Touch-Pad Output LEDs Speaker Motor (if you attached one to the Micro:Bit) 3. Tutorial 1: Smiley Butttons Learn how to use buttons as inputs in order to control LEDs as outputs!Go to the MakeCode homepage and complete the tutorial "Smiley Buttons." Then, answer question 4. 4. Knowledge Check: In your "Smiley Buttons" code, what happens when press A + B at the same time? A frowny face appears. A smiley face appears. An animated face that looks side to side appears. 5. Tutorial 2: Dice Learn how to use the shake sensor (accelerometer) as an input to create virtual dice.Go to the MakeCode homepage and complete the tutorial "Dice." Then, answer question 6. 6. Knowledge Check: Look at the image below. How is this program different from your own dice program? They are the same program. My own dice program picked a random number between 1 and 6. This dice program will always show a 6! Both programs look different, but will work exactly the same. 7. Tutorial 3: Love Meter Learn how to use the touch pad as an input to create a digital love meter.Go to the MakeCode homepageand complete the tutorial "Love Meter." Then, answer question 8.Hint: To get the Love Meter to work, touch the GND pin with one finger and pin 0 with the other finger. This completes the circuit! 8. Knowledge Check: What block would you add to your "Love Meter" code so when you press Pin 2, it shows a number between 90 and 100? Choice a: Choice b: Choice c: Choice d: 9. Explore Other Inputs So far you have learned how to program the following inputs: buttons, accelerometer, and pins.Let's learn how to use more inputs: light sensor, compass, and temperature!Create the code below and send it to your Micro:Bit, then answer questions 10, 11 and 12. 10. Knowledge Check: Light Level Answer the following questions:1. Shine a bright light at the Micro:Bit and press the "A" button. What number appears?2. Cover the Micro:Bit with your hands and press the "A" button. What number appears?3. What are the highest and lowest numbers you can get? 11. Knowledge Check: Compass Answer the following questions:1. Press the "B" button. Why do you think the Micro:Bit asks you to tilt the device to fill the screen?2. Hold your Micro:Bit flat and point it North. Press the "B" button. What number appears?3. What number appears when you point the Micro:Bit South? 12. Knowledge Check: Temperature Answer the following questions:1. Press "A+B" together. What number appears?2. Hold the Micro:Bit in your hands for 1 minute, then press "A+B" together. What number appears? 13. Challenge: Design a Survival Device When VilBot is exploring other planets, she needs a survival device to give her important information. Code the Micro:Bit so that:-When you shake the Micro:Bit, it says "Warning: Rough Terrain."-When you press the A Button, it says "The temperature is _(temperature)_"-When you press the B Button, it says "You are walking _(compass direction)_"Share your code and paste the link below! Great work! You're all finished. Remember to click "Hand in Work" and complete the rest of the Mission.

Use This Worksheet