Smiley Buttons Activity
Learn how to send and receive data in this activity!
This project introduces sending and receiving data to and from micro:bits.
The students can:
- Understand data can be transfer between micro:bits using “packets” of data
- Create a forever loop sending a pack of data to a second micro:bit
- Send and receive data on both micro:bits
Standards Alignment (United Kingdom: CAS)
- Designs simple algorithms using loops, and selection i.e. if statements. (AL)
- Uses logical reasoning to predict outcomes. (AL)
- Detects and corrects errors i.e. debugging, in algorithms. (AL)
- Creates programs that implement algorithms to achieve given goals. (AL)
- Understands that programming bridges the gap between algorithmic solutions and computers.(AB)
- Understands data transmission between digital computers over networks, including the internet i.e. IP addresses and packet switching. (AL) (AB)
Place a on button pressed block to run code when button A is pressed.
Place a show leds block inside on button pressed to display a smiley on the screen.
Click Download to transfer your code in your micro:bit and try pressing button A.
Add on button pressed and show leds blocks to display a frowney when button B is pressed.
Click Download to transfer your code in your micro:bit and try pressing button A or B.
Add a secret mode where A and B are pressed together. In that case, add multiple show leds blocks to create an animation...
Click Download to transfer your code in your micro:bit and show it off to your friends!
Try to add the following functionality:
- Send a written message to the second micro:bit.
- Allow the user to choose a picture and send it to the second micro:bit
- Allow a third micro:bit to send and receive data
The 'Rock Paper Scissors' activity teaches you how to make a cool game for the micro:bit!