micro:bit game controller with Scratch

Size: px
Start display at page:

Download "micro:bit game controller with Scratch"

Transcription

1 Raspberry Pi Learning Resources rpf.io/learn 1 micro:bit game controller with Scratch What you will learn By creating a micro:bit game controller with a micro:bit and your Raspberry Pi, you will learn: How to send data between the micro:bit and Scratch How to control a Scratch sprite using the micro:bit How to make a cool Spaceship game in Scratch How to create custom images to display on the micro:bit What you will need Hardware As well as a Raspberry Pi with an SD card and the usual peripherals, you ll need: x1 x1 This learning resource is provided for free by the Raspberry Pi Foundation under a Creative Commons licence. See more at raspberrypi.org/resources and github.com/raspberrypilearning.

2 2 micro:bit game controller In this resource, you ll use a micro:bit as a game controller in Scratch, and help regain control of the galaxy! Finding the USB port For the micro:bit to be able to communicate with Scratch, you need to know how the micro:bit is connected to the Raspberry Pi. With the micro:bit disconnected from the Raspberry Pi, open a terminal and type the following: ls /dev/ttya* Plug your micro:bit in via the USB cable and type the command again: ls /dev/ttya* There should be a new entry in the output, probably something like dev/ttyacm1. You need to note this down.

3 3 Setting up the micro:bit Open Python 3 (IDLE) (Menu > Programming > Python 3), create a new file (File > New File), and copy the code below into the file. Save it as rpi.py. import serial from time import sleep import scratch scr = scratch.scratch() ## THE NEXT LINE MIGHT NEED TO BE CHANGED - TYPE ls /dev/ttya* into the terminal to see which port is needed. PORT = /dev/ttyacm1 ## BAUD = s = serial.serial(port) s.baudrate = BAUD s.parity = serial.parity_none s.databits = serial.eightbits s.stopbits = serial.stopbits_one while True: data = s.readline().decode( UTF-8 ) data_list = data.rstrip().split( ) try: x, y, z, a, b = data_list scr.sensorupdate({ x : x}) scr.sensorupdate({ y : y}) scr.sensorupdate({ z : z}) scr.sensorupdate({ a : a}) scr.sensorupdate({ b : b}) except: pass s.close()

4 4 This file, once running, will listen to any data being sent out from the micro:bit, and send it over to Scratch. You may have to change this line: PORT = /dev/ttyacm1 It needs to be the same as the port you noted down earlier. Coding the micro:bit The micro:bit needs to run some code that will constantly print out its accelerometer readings and button pushes. Open mu by going to Menu > Programming > mu. Now copy the code below into the editor: from microbit import * def get_sensor_data(): x, y, z = accelerometer.get_x(), accelerometer.get_y(), accelerometer.get_z() a, b = button_a.was_pressed(), button_b.was_pressed() print(x, y, z, a, b) while True: sleep(100) get_sensor_data() You can flash this file into your micro:bit straight away.

5 5 Setting up Scratch Open Scratch on the Raspberry Pi (Menu > Programming > Scratch). Go to Sensing, then right-click on slider sensor value near the bottom of the screen and choose enable remote sensor connections from the context menu. Click on OK when the dialogue box opens. Now switch back over to Python 3 (IDLE) and press F5 to run your rpi.py script. In Scratch, you should now be able to view the values from the micro:bit s sensors. Simply click on the arrow on the slider sensor value block, choose a and then check the box:

6 6 If you repeat this for sensors b, x, y, and z, then your Scratch stage should look something like this: If you tilt the micro:bit you should see the x, y, and z values changing. Pushing the buttons will switch a and b from False to True. If the readings aren t working, check the micro:bit port again, and make sure the code is running on both the micro:bit and the Raspberry Pi. Making the assets You re going to need three new sprites for this game. Delete the cat sprite and then find a rocket sprite, a UFO sprite, and a missile sprite. You can search on the web, or even draw your own.

7 7 Import each of your sprites into Scratch: Rename the sprites by changing the name in the scripts pane: The sprites will also need to be resized. You can use the shrink sprite tool to do this: Lastly, you should rotate the rocket and missile sprite, so they both point towards the right-hand side of the screen. You can do this by editing the sprite in the costume tab and choosing the rotate tool:

8 8 Coding the rocket To code your game, you can start by adding some scripts to the rocket. Because you want the game to be able to be played over and over again, you should start it by using a broadcast block. You ll also need to make a variable called score and set it to 0 at the start of the game: To start the game, the rocket needs to be placed in the centre of the screen, pointing towards the right: Next, you need to control the rotation of the rocket. This is going to be decided by the accelerometer reading from the micro:bit, in particular from the x sensor value. At the moment, this is a value between about and 1000, so it needs to be reduced a little. Create a new variable called turn and set it as shown below:

9 9 Test out your game so far: when you tilt the micro:bit left and right, the rocket should spin around. If it s not working, try restarting the Python 3 program on your Raspberry Pi and re-flashing the micro:bit with its program. You might also have to check that the micro:bit hasn t reconnected to a different port; you can check by using the command ls /dev/ttya*. Next, you want the rocket to move. The speed can be determined by how far forwards or backwards the micro:bit has been tilted. You can use the y sensor value for this, but as before, you ll need to reduce the value a little (and in this case reverse it). Test your flight controls now by tilting the micro:bit left and right, forwards and backwards. Coding the UFO The UFO needs to start in a random location and then chase after the rocket. This is fairly easy to set up. The Scratch stage stretches from about -250 to 250 horizontally (the x-axis) and -180 to 180 vertically (the y-axis), so picking two random numbers in these ranges will enable you to position the rocket:

10 10 Next, you can use a forever loop to get the UFO to chase the rocket: In a minute, you ll code the missile to launch at the UFO. If the missile hits the UFO, the game should restart and the player s score should go up by one. A new script is needed for this: To finish off the UFO, the game needs to end if it catches the rocket:

11 11 Coding the missile To make the missile always point in the correct direction, you can make it turn exactly the same way as the rocket: Next, whenever the a button is pressed on the micro:bit, the missile should fire. To do this, you can move it to the location of the rocket, tell it to show and then move forwards until it hits either the UFO or the edge of the screen. It will need to carry on turning as it flies, otherwise the missile s rotation will become out of sync with the rocket. Test out your rocket s new ability to shoot missiles.

12 12 What next? The game has plenty of potential to be improved. Can you add in some obstacles for the rocket and UFO to avoid? You still have to find a use for the b button. Maybe this could start a turbo mode where the rocket flies faster? Could the UFO shoot a laser beam at the rocket every now and then? You can learn more about the micro:bit by visiting rpf.io/microbit. This learning resource is provided for free by the Raspberry Pi Foundation under a Creative Commons licence.find more at raspberrypi.org/resources and github.com/raspberrypilearning.

13 Raspberry Pi Learning Resources Teacher's guide rpf.io/learn The micro:bit game controller teacher's guide Objectives Understand that two devices can send data to each other using serial communication Understand that Python and Scratch can communicate with each other Implement a MicroPython program to read the accelerometer data from the micro:bit Relate accelerometer data to the motion of sprites in Scratch Experiment with physical inputs, to implement new sprite behaviours Software installation For this lesson, your students will need access to the mu IDE. To install mu, open the terminal on the Raspberry Pi and type: sudo apt-get update && sudo apt-get install mu -y They will also need the Python Scratch library. You can install this by typing the following into the terminal: sudo pip3 install --pre scratch Hardware requirements Hardware As well as a Raspberry Pi with an SD card and the usual peripherals, you ll need: x1 x1 x1 This learning resource is provided for free by the Raspberry Pi Foundation under a Creative Commons licence. See more at raspberrypi.org/resources and github.com/raspberrypilearning.

Lost in Space. Introduction. Step 1: Animating a spaceship. Activity Checklist. You are going to learn how to program your own animation!

Lost in Space. Introduction. Step 1: Animating a spaceship. Activity Checklist. You are going to learn how to program your own animation! Lost in Space Introduction You are going to learn how to program your own animation! Step 1: Animating a spaceship Let s make a spaceship that flies towards the Earth! Activity Checklist Start a new Scratch

More information

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist.

Lost in Space. Introduction. Scratch. You are going to learn how to program your own animation! Activity Checklist. Scratch 1 Lost in Space Introduction You are going to learn how to program your own animation! Activity Checklist Test your Project Save your Project Follow these INSTRUCTIONS one by one Click on the green

More information

Teacher Cheat Sheet - Game Coding Challenges

Teacher Cheat Sheet - Game Coding Challenges Teacher Cheat Sheet - Game Coding Challenges Challenge #1 Movement: Make your sprite move across the screen. When it hits the walls, it must bounce off and keep moving. 1. The When Flag is clicked is your

More information

Lineup. Introduction. What you will need. Import your costumes. What you will make. What you will learn. Hardware. Software

Lineup. Introduction. What you will need. Import your costumes. What you will make. What you will learn. Hardware. Software Raspberry Pi Projects Lineup Introduction In this project you will be making a game using Scratch 2.0. The game will involve nding a stamped sprite on the stage, hidden amongst a huge group of other stamps.

More information

Quick Reference Tables

Quick Reference Tables Quick Reference Tables Chapter 1 Raspberry Pi Startup Command Quick Reference Table Command startx sudo sudo shutdown -h now sudo shutdown -r now Launches the Raspbian desktop environment (GUI). Gives

More information

Lesson 3 Creating and Using Graphics

Lesson 3 Creating and Using Graphics Lesson What you will learn: how to delete a sprite and import a new sprite how to draw using the pen feature of Scratch how to use the pen up and pen down feature how to change the colour of the pen how

More information

Add in a new balloon sprite, and a suitable stage backdrop.

Add in a new balloon sprite, and a suitable stage backdrop. Balloons Introduction You are going to make a balloon-popping game! Step 1: Animating a balloon Activity Checklist Start a new Scratch project, and delete the cat sprite so that your project is empty.

More information

S3 Scratch Programming

S3 Scratch Programming LOREM ST LOUIS IPSUM DOLOR ST LOUIS SCHOOL S3 Computer Literacy S3 Scratch Programming Dominic Kwok CHAPTER 1 Scratch After studying this chapter, you will be able to create a simple Scratch program upload

More information

Scratch Lesson 2: Movies Made From Scratch Lesson Framework

Scratch Lesson 2: Movies Made From Scratch Lesson Framework Scratch Lesson 2: Movies Made From Scratch Lesson Framework Scratch makes it easy to program your own interactive stories, games, and animations and share your creations on the web. As you create and share

More information

ICS 61 Game Systems and Design Introduction to Scratch

ICS 61 Game Systems and Design Introduction to Scratch ICS 61, Winter, 2015 Introduction to Scratch p. 1 ICS 61 Game Systems and Design Introduction to Scratch 1. Make sure your computer has a browser open at the address http://scratch.mit.edu/projects/editor/.

More information

Make a game in which you play the notes of a song as they scroll down the stage.

Make a game in which you play the notes of a song as they scroll down the stage. Raspberry Pi Projects Binary Hero Introduction Make a game in which you play the notes of a song as they scroll down the stage. What you will make Click the green ag to play. Use z, x, c and v to play

More information

Scratch Programming for Primary School Teachers Quiz Game

Scratch Programming for Primary School Teachers Quiz Game Scratch Programming for Primary School Teachers Quiz Game For Scratch Version 2 Stewart Watkiss PenguinTutor.com www.penguintutor.com/teachers January 2014 About this guide During my preparation for an

More information

Key Stage 2 Scratch, Python and Kodu (Beginners)

Key Stage 2 Scratch, Python and Kodu (Beginners) Key Stage 2 Scratch, Python and Kodu (Beginners) The Aims By the end of this session, you will have: Explored a progression of beginner activities in Scratch a visual programming language Programmed new

More information

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional

Meet the Cast. The Cosmic Defenders: Gobo, Fabu, and Pele The Cosmic Defenders are transdimensional Meet the Cast Mitch A computer science student who loves to make cool programs, he s passionate about movies and art, too! Mitch is an all-around good guy. The Cosmic Defenders: Gobo, Fabu, and Pele The

More information

Teaching Kids to Program. Lesson Plan: Catch the Ball

Teaching Kids to Program. Lesson Plan: Catch the Ball Teaching Kids to Program Lesson Plan: Catch the Ball Step 1: 1. Open your web browser and go to SCRATCH (http://scratch.mit.edu/ ) 2. Sign in to your Scratch account by clicking on the button on the top

More information

Animate a Name Cards

Animate a Name Cards Animate a Name Cards Animate the letters of your name, initials, or favorite word. Animate Your Name 1 Set of 7 cards Animate a Name Cards Try these cards in any order: Color Clicker Spin Play a Sound

More information

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite.

In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite. Drawing Program In this lesson you are going to create a drawing program similar to Windows Paint. 1. Start with a new project and remove the default cat sprite. 2. Create a new sprite. 3. The new sprite

More information

Computer Science Concepts in Scratch

Computer Science Concepts in Scratch Computer Science Concepts in Scratch (Supplement for Scratch 2.0) Version 1.0 Michal Armoni and Moti Ben-Ari c 2013 by Michal Armoni, Moti Ben-Ari, Weizmann Institute of Science. This work is licensed

More information

Computer Science Concepts in Scratch

Computer Science Concepts in Scratch Computer Science Concepts in Scratch (Supplement for Scratch 2.0) Version 1.0 Michal Armoni and Moti Ben-Ari c 2013 by Michal Armoni, Moti Ben-Ari, Weizmann Institute of Science. This work is licensed

More information

Scratch Lesson 11: Mini Mario Game Part II - Sprites

Scratch Lesson 11: Mini Mario Game Part II - Sprites Scratch Lesson 11: Mini Mario Game Part II - Sprites In Lesson 11, we will create all necessary sprites for Mini Mario game. Especially, we will focus on Mario and show how to make him walk, jump, and

More information

micro:bit Lesson 1. Using the Built-in Sensors

micro:bit Lesson 1. Using the Built-in Sensors micro:bit Lesson 1. Using the Built-in Sensors Created by Simon Monk Last updated on 2018-03-02 05:46:13 PM UTC Guide Contents Guide Contents Overview Magnetometer Magnet Detector High-strength 'rare earth'

More information

Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher

Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher Digital Devices in the Digital Technologies curriculum (F-10) Steve Allen VCAA Digital Coding Specialist Teacher A digital system that students can program: create an algorithm accept user input store

More information

Introduction to Scratch Programming v1.4 (Second Ed) Lesson 6 Calculator

Introduction to Scratch Programming v1.4 (Second Ed) Lesson 6 Calculator Lesson What you will learn: how to perform simple calculations using Scratch how to use variables how to develop a design how to use the else if function how to create animated buttons Contents Exercise

More information

You can delete the default blank background by clicking on its Delete button.

You can delete the default blank background by clicking on its Delete button. Quiz Project In this project, the application presents the user with an electronic quick made up of five questions. Before you start scripting, you need to have your questions ready. Create 5 trivia questions

More information

TTS Scratch Controller. Teacher Guide. 1 TTS Scratch Controller - Teacher Guide. Product Code: EL00530

TTS Scratch Controller. Teacher Guide.  1 TTS Scratch Controller - Teacher Guide. Product Code: EL00530 1 TTS Scratch Controller - Teacher Guide Product Code: EL00530 TTS Scratch Controller Teacher Guide www.tts-shopping.com 2 TTS Scratch Controller - Teacher Guide TTS Scratch Controller Using the Scratch

More information

M O T I O N A N D D R A W I N G

M O T I O N A N D D R A W I N G 2 M O T I O N A N D D R A W I N G Now that ou know our wa around the interface, ou re read to use more of Scratch s programming tools. In this chapter, ou ll do the following: Eplore Scratch s motion and

More information

All Blocks of Scratch

All Blocks of Scratch All Blocks of Scratch Scratch has over 100 coding blocks, and each one has a unique use. They are all colour-coded into 9 different categories as seen below: You can also create your own block under More

More information

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING AN INTRODUCTION TO SCRATCH (2) PROGRAMMING Document Version 2 (04/10/2014) INTRODUCTION SCRATCH is a visual programming environment and language. It was launched by the MIT Media Lab in 2007 in an effort

More information

We created a few different effects and animations using this technique as applied to clones.

We created a few different effects and animations using this technique as applied to clones. Contents Scratch Advanced: Tick technique and Clones... 1 The tick-technique!... 1 Part 1: The Game Time Loop... 1 Part 2: The setup... 2 Part 3: The sprites react to each game tick... 2 The Spinning Shape

More information

GETTING STARTED WITH RASPBERRY PI

GETTING STARTED WITH RASPBERRY PI GETTING STARTED WITH RASPBERRY PI Workshop Handout Created by Furtherfield Commissioned by Southend Education Trust GETTING STARTED WITH RASPBERRY PI INTRODUCTION Introduce Raspberry Pi and answer some

More information

Lesson 6 page 1. If you look at the bottom right of the Scratch color choices, you will see it say MORE BLOCKS in Purple.

Lesson 6 page 1. If you look at the bottom right of the Scratch color choices, you will see it say MORE BLOCKS in Purple. Lesson 6 page 1 LESSON 6: Feb 17-24 Hello everyone! We are going to learn about BYOB this week. This acronym stands for Build Your Own Blocks. If you look at the bottom right of the Scratch color choices,

More information

Motion Creating Animation with Behaviors

Motion Creating Animation with Behaviors Motion Creating Animation with Behaviors Part 1: Basic Motion Behaviors Part 2: Stacking Behaviors upart 3: Using Basic Motion Behaviors in 3Do Part 4: Using Simulation Behaviors Part 5: Applying Parameter

More information

Making a maze with Scratch

Making a maze with Scratch Making a maze with Scratch Can you make it to the end? Student guide An activity by the Australian Computing Academy Let s go! Step 0: Get started Go to www.scratch.mit.edu Sign in with the username and

More information

SCRATCH MODULE 3: NUMBER CONVERSIONS

SCRATCH MODULE 3: NUMBER CONVERSIONS SCRATCH MODULE 3: NUMBER CONVERSIONS INTRODUCTION The purpose of this module is to experiment with user interactions, error checking input, and number conversion algorithms in Scratch. We will be exploring

More information

Controlling the Robotic Arm using the BBC micro:bit

Controlling the Robotic Arm using the BBC micro:bit Controlling the Robotic Arm using the BBC micro:bit You need to plug the BBC micro:bit into a computer using a USB cable or sync to it using Bluetooth after downloading the correct app from your app store.

More information

Department of Physics & Astronomy Lab Manual Undergraduate Labs. A Guide to Logger Pro

Department of Physics & Astronomy Lab Manual Undergraduate Labs. A Guide to Logger Pro A Guide to Logger Pro Logger Pro is the main program used in our physics labs for data collection and analysis. You are encouraged to download Logger Pro to your personal laptop and bring it with you to

More information

INTRODUCTION TO THE MATLAB APPLICATION DESIGNER EXERCISES

INTRODUCTION TO THE MATLAB APPLICATION DESIGNER EXERCISES INTRODUCTION TO THE MATLAB APPLICATION DESIGNER EXERCISES Eric Peasley, Department of Engineering Science, University of Oxford version 4.6, 2018 MATLAB Application Exercises In these exercises you will

More information

Session 4 Starting the Air Raid Game

Session 4 Starting the Air Raid Game Session 4 Starting the Air Raid Game Authored by Brian Cullen (bcullen@rossettschool.co.uk/@mrbcullen) (c) Copyright 2011 Computing At School. This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike

More information

SAMLab Tip Sheet #4 Creating a Histogram

SAMLab Tip Sheet #4 Creating a Histogram Creating a Histogram Another great feature of Excel is its ability to visually display data. This Tip Sheet demonstrates how to create a histogram and provides a general overview of how to create graphs,

More information

Digital Technologies in focus:

Digital Technologies in focus: Digital Technologies in focus: Supporting implementation of Digital Technologies Scratch tutorial Initiative of and funded by the Australian Government Department of Education and Training Acknowledgements

More information

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi Created by Simon Monk Last updated on 2016-12-03 03:20:15 AM UTC Guide Contents Guide Contents Overview You Will Need Downloading

More information

Unit 1, Lesson 1: Moving in the Plane

Unit 1, Lesson 1: Moving in the Plane Unit 1, Lesson 1: Moving in the Plane Let s describe ways figures can move in the plane. 1.1: Which One Doesn t Belong: Diagrams Which one doesn t belong? 1.2: Triangle Square Dance m.openup.org/1/8-1-1-2

More information

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics Lesson 4 A m In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Advanced Scratch Sports Day Jyoti and Tejas are planning to create a

More information

VISUAL PROGRAMMING BY SCRATCH

VISUAL PROGRAMMING BY SCRATCH Faculty of Information Technology VISUAL PROGRAMMING BY SCRATCH Dr. Nguyen Chi Trung Faculty of Information Technology Hanoi National University of Education Chapter 1. Getting Started What is the Scratch?

More information

1st ESO: Technology, Programming and Robotics. Unit 5: Programming. Autor: Guillermo Gómez

1st ESO: Technology, Programming and Robotics. Unit 5: Programming. Autor: Guillermo Gómez 1st ESO: Techlogy, Programming and Robotics Unit 5: Programming Autor: Guillermo Gómez Contents Prior kwledge... 2 Keywords... 2 Mindmap of the unit... 2 5.1. Programming basics... 3 5.2. Example of IDE:

More information

Studuino Programming Environment Manual

Studuino Programming Environment Manual Studuino Programming Environment Manual Created 04//0 Revised 07/0/3 Version History Date Content 04//0 First version 07/0/6 Updated for new Studuino website 07/03/8 Revised with added features for Windows

More information

FLASH ANIMATION TUTORIAL

FLASH ANIMATION TUTORIAL FLASH ANIMATION TUTORIAL This tutorial will show you how to make a simple flash animation using basic graphic elements and sounds. It will also work as the display page for your Bullet Movie soundtrack

More information

SCRATCH. Introduction to creative computing with Scratch 2.0

SCRATCH. Introduction to creative computing with Scratch 2.0 SCRATCH Introduction to creative computing with Scratch 2.0 What is Scratch? Scratch is a visual programming language that allows you to create your interactive stories, games and animations by using blocks

More information

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile.

Sigma Tile Workshop Guide. This guide describes the initial configuration steps to get started with the Sigma Tile. Sigma Tile Workshop Guide This guide describes the initial configuration steps to get started with the Sigma Tile. 1 Contents Contents... 2 Chapter 1: System Requirements... 3 Chapter 2: Configure Your

More information

Creating the Tilt Game with Blender 2.49b

Creating the Tilt Game with Blender 2.49b Creating the Tilt Game with Blender 2.49b Create a tilting platform. Start a new blend. Delete the default cube right click to select then press X and choose Erase Selected Object. Switch to Top view (NUM

More information

Animating the Page IN THIS CHAPTER. Timelines and Frames

Animating the Page IN THIS CHAPTER. Timelines and Frames e r ch02.fm Page 41 Friday, September 17, 1999 10:45 AM c h a p t 2 Animating the Page IN THIS CHAPTER Timelines and Frames Movement Tweening Shape Tweening Fading Recap Advanced Projects You have totally

More information

Mach4 CNC Controller Screen Editing Guide Version 1.0

Mach4 CNC Controller Screen Editing Guide Version 1.0 Mach4 CNC Controller Screen Editing Guide Version 1.0 1 Copyright 2014 Newfangled Solutions, Artsoft USA, All Rights Reserved The following are registered trademarks of Microsoft Corporation: Microsoft,

More information

SSC32 SERVO SEQUENCER GUIDE

SSC32 SERVO SEQUENCER GUIDE SSC32 SERVO SEQUENCER GUIDE C O N T E N T S CHAPTER 1 1 Overview 3 INTRODUCTION... 4 USER INTERFACE... 5 CONNECTING... 6 CONNECTING VIA SERIAL CABLE...6 SERVO CONTROLS... 7 SERVO CONFIGURATION...8 CONTROL

More information

We ll be making starter projects for many of the examples, to get people started. Those should be appearing at

We ll be making starter projects for many of the examples, to get people started. Those should be appearing at Marty Scratch Examples This document shows a selection of things you can do with Marty through the Scratch interface, from the very basic to the fairly complicated. Everything here is in prototype stage,

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Scratch. Creative Computing

Scratch. Creative Computing Scratch Creative Computing Section 1 INTRODUCTION TO SCRATCH Scratch Browser based Created at MIT Creative Computing Using a tool to easily create a computer program. Typically a drag-and-drop tool. Emphasizes

More information

Add the backgrounds. Add the font.

Add the backgrounds. Add the font. To find all sprites, font, and backgrounds look in your resources folder under card game. Pick sprites for the following: The Mouse Desired Objects A disappearing animation for the desired objects Clutter

More information

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy Introduction to Unreal Engine Blueprints for Beginners By Chaven R Yenketswamy Introduction My first two tutorials covered creating and painting 3D objects for inclusion in your Unreal Project. In this

More information

The Environment. Scratch Programming. The Environment. The Environment. The Environment. The Environment. Lesson 1: Introduction THE STAGE

The Environment. Scratch Programming. The Environment. The Environment. The Environment. The Environment. Lesson 1: Introduction THE STAGE Scratch Programming Lesson 1: Introduction Jt Scratch Lesson 1 Fall 2011 slide 2 THE STAGE Code Executes Here Default Sprite Jt Scratch Lesson 1 Fall 2011 slide 3 Jt Scratch Lesson 1 Fall 2011 slide 4

More information

Pong in Unity a basic Intro

Pong in Unity a basic Intro This tutorial recreates the classic game Pong, for those unfamiliar with the game, shame on you what have you been doing, living under a rock?! Go google it. Go on. For those that now know the game, this

More information

XLink Kai Raspberry Pi Beginners Tutorial

XLink Kai Raspberry Pi Beginners Tutorial XLink-Kai-Raspberry-Pi-Beginners-Tutorial.md XLink Kai Raspberry Pi Beginners Tutorial Hi! This tutorial will guide you through setting up XLink Kai on a Raspberry Pi to play multiplayer system link Xbox

More information

Handout Objectives: a. b. c. d. 3. a. b. c. d. e a. b. 6. a. b. c. d. Overview:

Handout Objectives: a. b. c. d. 3. a. b. c. d. e a. b. 6. a. b. c. d. Overview: Computer Basics I Handout Objectives: 1. Control program windows and menus. 2. Graphical user interface (GUI) a. Desktop b. Manage Windows c. Recycle Bin d. Creating a New Folder 3. Control Panel. a. Appearance

More information

animation, and what interface elements the Flash editor contains to help you create and control your animation.

animation, and what interface elements the Flash editor contains to help you create and control your animation. e r ch02.fm Page 43 Wednesday, November 15, 2000 8:52 AM c h a p t 2 Animating the Page IN THIS CHAPTER Timelines and Frames Movement Tweening Shape Tweening Fading Recap Advanced Projects You have totally

More information

Logger Pro Resource Sheet

Logger Pro Resource Sheet Logger Pro Resource Sheet Entering and Editing Data Data Collection How to Begin How to Store Multiple Runs Data Analysis How to Scale a Graph How to Determine the X- and Y- Data Points on a Graph How

More information

Creating Breakout - Part 2

Creating Breakout - Part 2 Creating Breakout - Part 2 Adapted from Basic Projects: Game Maker by David Waller So the game works, it is a functioning game. It s not very challenging though, and it could use some more work to make

More information

Crossley Fields - Computing Vocabulary

Crossley Fields - Computing Vocabulary Crossley Fields - Computing Vocabulary Glossary of terms taken from Kirklees Guidance, CAS/NAACE Computing in the National Curriculum & MIT Scratch Reference Guide. A Algorithm an unambiguous procedure

More information

Programming Scratch to Control a K NEX Fairground Ride

Programming Scratch to Control a K NEX Fairground Ride Programming Scratch to Control a K NEX Fairground Ride Raspberry Pi and K NEX System K NEX Model PiFace Motor Raspberry Pi Speaker LED Lights Switch Computer Control Parts Scratch Raspberry Pi PiFace How

More information

Adafruit WebIDE. Created by Tyler Cooper. Last updated on :29:47 PM UTC

Adafruit WebIDE. Created by Tyler Cooper. Last updated on :29:47 PM UTC Adafruit WebIDE Created by Tyler Cooper Last updated on 2018-03-12 08:29:47 PM UTC Guide Contents Guide Contents Overview Installation Easy installation: Manual Installation: Uninstallation: Getting Started

More information

Micro:bit - an Educational & Creative Tool for Kids

Micro:bit - an Educational & Creative Tool for Kids Micro:bit - an Educational & Creative Tool for Kids SKU:DFR0497 INTRODUCTION micro:bit is a pocket-sized microcontroller designed for kids and beginners learning how to program, letting them easily bring

More information

You are going to code your micro:bit to read the future! Simply ask the micro:bit a quesition, and press a button to find out the answer!

You are going to code your micro:bit to read the future! Simply ask the micro:bit a quesition, and press a button to find out the answer! Fortune Teller Introduction You are going to code your micro:bit to read the future! Simply ask the micro:bit a quesition, and press a button to find out the answer! Step 1: Scrolling text Let s start

More information

BBC Micro:Bit. Year 7. Teacher Guide and Planning

BBC Micro:Bit. Year 7. Teacher Guide and Planning BBC Micro:Bit Year 7 Teacher Guide and Planning Micro:Bit Block Editor Planning Support - Teacher help to complete the steps required for the Micro:Bit to run successfully - 1:1 peer help and partner working.

More information

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts.

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts. Fundamentals Training Kit Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY 10001 212.736.6350 f 212.736.6353 presentationproducts.com Table of Contents Getting Started How Does the SMART

More information

Game Design Unity Workshop

Game Design Unity Workshop Game Design Unity Workshop Activity 2 Goals: - Creation of small world - Creation of character - Scripting of player movement and camera following Load up unity Build Object: Mini World and basic Chase

More information

Anjuli Kannan. Google Earth Driving Simulators (3:00-7:00)

Anjuli Kannan. Google Earth Driving Simulators (3:00-7:00) Google Earth Driving Simulators (3:00-7:00) An example of what you can do by learning the GoogleEarth API, once you know how to write code Google has published such an API so that people can make programs

More information

Activity 2 Making an accurate watch. Aim To make a watch that will be accurate to within a minute (or even better one second) The activities

Activity 2 Making an accurate watch. Aim To make a watch that will be accurate to within a minute (or even better one second) The activities Introduction The Micro:bit has been conceived so that there are endless possibilities with it. Just as Alan Turing postulated; the computer is a Universal Machine, it can change its use depending on the

More information

What Is a Program? Pre-Quiz

What Is a Program? Pre-Quiz What Is a Program? What Is a Program? Pre-Quiz 1. What is a program? 2. What is an algorithm? Give an example. 2 What Is a Program? Pre-Quiz Answers 1. What is a program? A program is a sequence of instructions

More information

Raspberry Pi GPIO Zero Reaction Timer

Raspberry Pi GPIO Zero Reaction Timer Raspberry Pi GPIO Zero Reaction Timer Tutorial by Andrew Oakley Public Domain 1 Feb 2016 www.cotswoldjam.org Introduction This Python programming tutorial, shows you how simple it is to use an LED light

More information

Measuring in Pixels with Scratch

Measuring in Pixels with Scratch In the Primary division, a big mathematical idea is understanding how to measure correctly, using both non standard and standardized measurements. Many students struggle with measuring because they fail

More information

SL-6397 DECUS GAMING MOUSE

SL-6397 DECUS GAMING MOUSE Profile selection and configuration, lighting effects You can switch between 5 different profiles at the top of the left-hand column. A default profile is configured when the driver is installed for the

More information

AppyBuilder Beginner Tutorials

AppyBuilder Beginner Tutorials AppyBuilder Beginner Tutorials Four Simple Tutorials for Getting Started with AppyBuilder 1 TalkToMe: Your first AppyBuilder app 03 2 TalkToMe Part 2: Shaking and User Input 21 3 BallBounce: A simple game

More information

The Python Mini-Degree Development Environment Guide

The Python Mini-Degree Development Environment Guide The Python Mini-Degree Development Environment Guide By Zenva Welcome! We are happy to welcome you to the premiere Python development program available on the web The Python Mini-Degree by Zenva. This

More information

roboturtle Documentation

roboturtle Documentation roboturtle Documentation Release 0.1 Nicholas A. Del Grosso November 28, 2016 Contents 1 Micro-Workshop 1: Introduction to Python with Turtle Graphics 3 1.1 Workshop Description..........................................

More information

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi Nick Antipa, Li-Hao Yeh, based on labs by Jon Tamir and Frank Ong January 24, 2018 This lab will walk you through setting up your Raspberry Pi

More information

Theo. Miles. Olivia. Joseph. Nina. Kishan. The Richard Pate School, Cheltenham

Theo. Miles. Olivia. Joseph. Nina. Kishan. The Richard Pate School, Cheltenham Theo Miles Olivia Joseph Nina Kishan Summary We have developed a system to help old/disabled people answer the door, especially people who have difficulty walking or walk slowly. The system uses the Raspberry

More information

Learning Objectives. Math Prerequisites. Technology Prerequisites. Materials. Math Objectives. Technology Objectives

Learning Objectives. Math Prerequisites. Technology Prerequisites. Materials. Math Objectives. Technology Objectives Learning Objectives Parametric Functions Lesson 2: Dude, Where s My Football? Level: Algebra 2 Time required: 60 minutes Many students expect a falling object graph to look just like the path of the falling

More information

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts.

Fundamentals. Training Kit. Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY f presentationproducts. Fundamentals Training Kit Presentation Products, Inc. 632 W 28th St, 7th fl New York, NY 10001 212.736.6350 f 212.736.6353 presentationproducts.com How Does the SMART Board Interactive Whiteboard Work?

More information

Let s Make a Front Panel using FrontCAD

Let s Make a Front Panel using FrontCAD Let s Make a Front Panel using FrontCAD By Jim Patchell FrontCad is meant to be a simple, easy to use CAD program for creating front panel designs and artwork. It is a free, open source program, with the

More information

Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Teacher. 45 minutes

Module 2, Add on lesson Introduction to the NXT and Mindstorms software. Teacher. 45 minutes Module 2, Add on lesson Introduction to the NXT and Mindstorms software Teacher 45 minutes Purpose of this lesson Write a basic program using LEGO Mindstorms Download and run programs on the NXT Materials

More information

2015/08 Hideo Nakano PAPER TUBE ROCKET (revised)

2015/08 Hideo Nakano PAPER TUBE ROCKET (revised) 2015/08 Hideo Nakano nh1886@yahoo.co.jp PAPER TUBE ROCKET (revised) Introduction The paper tube rocket consists of a tubular rocket body and a set of stabilizer fins. Teachers and students can print out

More information

Velocity: A Bat s Eye View of Velocity

Velocity: A Bat s Eye View of Velocity Name School Date Purpose Velocity: A Bat s Eye View of Velocity There are a number of ways of representing motion that we ll find useful. Graphing position, velocity, and acceleration vs. time is often

More information

Creating and Triggering Animations

Creating and Triggering Animations Creating and Triggering Animations 1. Download the zip file containing BraidGraphics and unzip. 2. Create a new Unity project names TestAnimation and set the 2D option. 3. Create the following folders

More information

Creating a Histogram Creating a Histogram

Creating a Histogram Creating a Histogram Creating a Histogram Another great feature of Excel is its ability to visually display data. This Tip Sheet demonstrates how to create a histogram and provides a general overview of how to create graphs,

More information

A Beginners Guide to Raspberry Pi

A Beginners Guide to Raspberry Pi A Beginners Guide to Raspberry Pi WHAT IS THE RASPBERRY PI? Features It is a low-cost, credit-card sized computer developed in the UK by the Raspberry Pi Foundation. It has been designed with education

More information

Polygons and Angles: Student Guide

Polygons and Angles: Student Guide Polygons and Angles: Student Guide You are going to be using a Sphero to figure out what angle you need the Sphero to move at so that it can draw shapes with straight lines (also called polygons). The

More information

IAT 445 Lab 10. Special Topics in Unity. Lanz Singbeil

IAT 445 Lab 10. Special Topics in Unity. Lanz Singbeil IAT 445 Lab 10 Special Topics in Unity Special Topics in Unity We ll be briefly going over the following concepts. They are covered in more detail in your Watkins textbook: Setting up Fog Effects and a

More information

SLAMWARE. RoboStudio. User Manual. Shanghai Slamtec.Co.,Ltd rev.1.1

SLAMWARE. RoboStudio. User Manual. Shanghai Slamtec.Co.,Ltd rev.1.1 www.slamtec.com 2017-11-06 rev.1.1 SLAMWARE RoboStudio User Manual Shanghai Slamtec.Co.,Ltd Contents CONTENTS... 1 INTRODUCTION... 3 USER GUIDE... 4 OFFLINE/ONLINE MODE... 4 CONNECT/DISCONNECT ROBOT...

More information

Autodesk Inventor - Basics Tutorial Exercise 1

Autodesk Inventor - Basics Tutorial Exercise 1 Autodesk Inventor - Basics Tutorial Exercise 1 Launch Inventor Professional 2015 1. Start a New part. Depending on how Inventor was installed, using this icon may get you an Inch or Metric file. To be

More information

seminar learning system Seminar Author and Learning System are products of Information Transfer LLP.

seminar learning system Seminar Author and Learning System are products of Information Transfer LLP. seminar learning system Seminar Author and Learning System are products of Information Transfer LLP. Burleigh House 15 Newmarket Road Cambridge UK CB5 8EG E-mail: support@seminar.co.uk Phone: +44 (0)1223

More information

INTRODUCTION TO MATLAB INTERACTIVE GRAPHICS EXERCISES

INTRODUCTION TO MATLAB INTERACTIVE GRAPHICS EXERCISES INTRODUCTION TO MATLAB INTERACTIVE GRAPHICS EXERCISES Eric Peasley, Department of Engineering Science, University of Oxford version 3.0, 2017 MATLAB Interactive Graphics Exercises In these exercises you

More information