Objective of the lesson

Slides:



Advertisements
Similar presentations
Log In with RF LCD Clickers Channel 65. Log In with your Clicker This is what the clicker looks like Here are the steps: 1.Click on CH button 2.The light.
Advertisements

Lab7: Introduction to Arduino
Embedded Sumo 1T4 – 1T5 UTRA.
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.
ENGR 101: Robotics Lecture 2 – Text Programming Outline  Introduction to PBASIC  Variables, I/O, Arithmetic  Controlling the LEDs References 
Bug Session Two. Session description In this session the use of algorithms is reinforced to help pupils plan out what they will need to program on their.
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 14 Animation Slides To run the animations you must.
Meet Me on Mars Lesson 7 Variables and Messages. Events and Variables 1. Click the _________ button 2. When ________ clicked, set ______ to ____ 3. Now,
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.
chipKit Sense Switch & Control LED
1 Chapter 07 Animation Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. To run the animations you must.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 3 Animation Slides To run the animations you must.
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 08 Animation Slides To run the animations you must.
FIRST GADGETEER PROJECT. Where are you? Making a VS project Parts of a C# program Basics of C# syntax Debugging in VS Questions? 2.
1 Chapter 14 Animation Slides Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. To run the animations you must.
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.
1 Chapter 20 Animation Slides Copyright © McGraw-Hill Education. Permission required for reproduction or display. To run the animations you must be in.
The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.
Arduino libraries Datatekniker Udvidet hardware/software.
:Blink Blink: Er. Sahil Khanna
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Using Office Mix Click and Play. Insert Audio Recording Click Record button in Office Mix tab Turn off camera in Office Mix screen if it’s on Click Record.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Chapter 06 Animation Slides
Chapter 08 Animation Slides
Arduino.
Programming Scratch to Control a K’NEX Fairground Ride
MMoM - Lesson 4.
BBC Microbit.
BBC Microbit.
Stopwatch Cards Stopwatch Cards
BBC Microbit.
Chapter 2 Animation Slides
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
Game Controller Lesson Three.
Game Controller Introduction.
BBC Microbit.
Objective of the lesson
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Objective of the lesson
Game Controller Lesson Two.
Objective of the lesson
Stopwatch Cards Stopwatch Cards
PowerPoint Triggers ICTGAMES.TK Previous Next.
Chapter 1 Animation Slides
Objective of the lesson
Scratch Summer Session 2
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
An Introduction to VEX IQ Programming with Modkit
Aeroponic Engineering and Vertical Farming
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Game Controller Lesson Four.
CHAPTER 52 ANIMATION To run the animations you must be in Slideshow View. Use the buttons on the animation to play, pause, and turn audio/text on or off.
Stopwatch Cards Stopwatch Cards
Lesson 1 – using the LED lights
1 If a Delegate wishes to request to take the floor, please press the black button located to the right of the microphone ONLY ONCE. A red light will.
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Ecology Lab Instructions
Presentation transcript:

Objective of the lesson Use Blockly to create blinking lights All of you will: Control individual LEDs on the Codebug Most of you will: Animate individual LEDs on the Codebug Some of you will: Use buttons to control the LEDs on the Codebug

Go to www.codebug.org.uk Click on CREATE and then on the Blockly Tab You will see a simulation of the Codebug. The Triangular Play button can be used to run your program and view what will happen once you download to your Codebug

We can turn on individual LEDs The LEDs are called pixels We can turn on individual pixels or LEDs at coordinates x and y To turn ON an LED we set it to 1

The problem is that all of the lights come on at once We need to add pauses inbetween lights coming on Pauses are in milliseconds (ms). 1000ms = 1 second

Add a forever loop so that the lights Make it so that the same message plays if the B button is pressed Make it so that a different message plays when the B button is pressed

Challenge Loop the program so that the animation continues forever (using a while True loop) Add an ‘if do on button A pressed’ loop so that the animation only shows when the button is pressed Change the x, y coordinates to change the direction or pattern of the animation Turn pixels ON and OFF one at a time by setting the pixel to 0