micro:bit: External Inputs & Outputs

Slides:



Advertisements
Similar presentations
JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
Advertisements

In this presentation you will:
Introduction to electronics lab ENGRI 1810 Using: Solderless prototype board (white board) Digital multimeter (DMM) Power Supply Signal Generator Oscilloscope.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Bug Session One. Session description In this session, pupils are introduced to a programming sequence which will make a light pattern on their Bug. Objectives.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
Introduction The goal of this project was to create device similar to a DJ mixing board. Features: Controlling the input and output buffers Applying sound.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
4) Design the logic to control the motor on a simple remote control car. There are two buttons on the remote control for the motor. If neither button is.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
CIRCUITS AND. Standards SPI Identify how simple circuits are associated with the transfer of electrical energy when heat, light, sound, and chemical.
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
Lesson 1 Sequencing.
BBC MICRO:BIT Lesson 6 Networking. Digital devices can be networked together to exchange data. You are going to create a very simple network using two.
Lesson 5 Music.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
NXT Mindstorms Kit Programming
Starter What is BBC micro:bit?
Bbc microbit Lesson 3 – Temperature hot medium.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Computer Hardware – System Unit
Model NO: MTZ-A0003.
Starter Activity Instructions: Complete the starter sheet Planner
Arduino Development for Beginners
You have 5 minutes to look over your homework and with a green pen answer the question in your book or make a correction Start Timer 5 mins
COMP211 Computer Logic Design Introduction to the DE2 Board
Programming Scratch to Control a K’NEX Fairground Ride
Learning Objective: to be able to design programs that use sequencing.
ELEC 1041 Digital Electronics Tutorial: Word Problems
Android Screen Mirroring to TV with few Steps
BBC Microbit.
Music Cards Music Cards
Music Cards Music Cards
Raspberry Pi: External Inputs & Outputs
Music Cards Music Cards
BBC Microbit.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
All very logical I think!
Music Cards Music Cards
Welcome to Digital Electronics using the Arduino Board
Music Cards Music Cards
BBC Microbit.
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
Game Controller Lesson Two.
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
Global Challenge Flashing Wheels Lesson 3.
Lab 1. Introduction to the DE2 Board
Global Challenge Flashing Wheels Lesson 3.
Music Cards Music Cards
How electronic systems work using the Systems approach.
Lecture 4. Introduction to the DE2 Board
Music Cards Music Cards
Arduino Uno circuit basics
Global Challenge Flashing Wheels Lesson 3.
Music Cards Music Cards
Task 1 You are going to use the Makey Makey arrow inputs to create a joystick / games controller. Step 1: Connect Makey.
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
Interface ckt for demo Outputs Inputs V PIN 0 10K PIN 4 GND GND
Objective of the lesson
Music Cards Music Cards
Global Challenge Flashing Wheels Lesson 3.
2019 Investing Now Summer Program
Presentation transcript:

micro:bit: External Inputs & Outputs Objective: to be able to program the micro:bit to make use of external inputs and outputs.

External Inputs & Outputs The micro:bit has a range of built-in input and output devices. You can do even more with the micro:bit by connecting it other input and output devices. This simple Input/Output board will help you learn how to work with external components. It features 3 LEDs, 3 switches, a button and a speaker.

Activity 1 In pairs, look at the program below and write out what you think might happen when it runs on a micro:bit: What would you expect the micro:bit to do?

Activity 2 Download and flash the starter program onto your micro:bit. Connect the Input/Output board to the pins on your micro:bit using crocodile clips as shown below:

Give an example of how selection is used in the starter program. Activity 3 In pairs answer the following questions: Question Answer Give an example of how selection is used in the starter program. Does anything happen to the LEDs when the button is pressed? If so what happens?

Place a screenshot of your completed code here Activity 4a The starter program could be considered a basic alarm system, with the Button representing a pressure pad under a mat. However, a single red LED won’t attract much attention, so let’s improve it by making it flash. Place a screenshot of your completed code here Adapt the program to make the red LED flash on and off while the button is pressed and stop when the button is released.

Place a screenshot of your completed code here Activity 4b Connect pin 1 to LED 3 and adapt your program so that the green LED is on when the button is NOT being pressed. This will indicate that the alarm is on but hasn’t been activated. Place a screenshot of your completed code here

Place a screenshot of your completed code here Activity 4c Move the wire that is connected to LED 1 to the Speaker strip on the INPUT/OUPUT board. Change the program so that when the alarm is activated a sound is played instead of flashing the red LED. Tip: to play sound you need to import the music module at the top of your code: This example code will play the tune called BADDY. Place a screenshot of your completed code here Available Sounds: music.DADADADUM music.ENTERTAINER music.PRELUDE music.ODE music.NYAN music.RINGTONE music.FUNK music.BLUES music.BIRTHDAY music.WEDDING music.FUNERAL music.PUNCHLINE music.PYTHON music.BADDY music.CHASE music.BA_DING music.WAWAWAWAA music.JUMP_UP music.JUMP_DOWN music.POWER_UP music.POWER_DOWN

Place a screenshot of your completed code here Activity 4d Move the wire connected to LED 3 to the Switch 1 strip and use a new crocodile lead to connect the 3V pin on the micro:bit to the 3V strip on the Input/Output board. Adapt your program so that the alarm is only active when Switch 1 is closed. There is no longer a need to turn the green LED on when the Button isn’t being pressed. Tip: the example code below will display different images on the micro:bit depending on whether Switch 1 is open or closed. Place a screenshot of your completed code here

Challenge Create a new program for a music player. It should be able to play 5 different tunes. Each time the Button on the Input/Output board is pressed the next tune should be played. When all 5 tunes have been played it should cycle back round to the first tune the next time the Button is pressed. The green LED should be on whenever a tune is playing.