Objective of the lesson

Slides:



Advertisements
Similar presentations
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.
Advertisements

Loops (Part 1) Computer Science Erwin High School Fall 2014.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Embedded Programming and Robotics
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.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
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.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
chipKit Sense Switch & Control LED
Looping forever Reading/observing sensors (inputs) Reacting to sensors Obstacle sensors.
Jeff Branson Education Outreach Coordinator Derek Runberg Curriculum Curator Getting.
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.
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 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Hacking Minecraft on the Raspberry Pi using Python
MAKE: AN ELECTRONICS WORKSHOP
Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and.
Microcontroller basics Embedded systems for mortals.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
:Blink Blink: Er. Sahil Khanna
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Control Technology START What is control technology? What is this diagram called? In which program have you used these before? Lets Go!
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.
Sensor Information: while loops and Boolean Logic.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Welcome to Arduino A Microcontroller.
Starter Activity Instructions: Complete the starter sheet Planner
Robotics Programming Using Shaft Encoders
WORKSHOP LED CONTROL.
Programming Scratch to Control a K’NEX Fairground Ride
Objective of the lesson
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Continuing with LED’s and Arduino
BBC Microbit.
BBC Microbit.
Raspberry Pi: External Inputs & Outputs
BBC Microbit.
INTERMEDIATE PROGRAMMING LESSON
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Sensors and Logic Switches
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
BBC Microbit.
micro:bit: External Inputs & Outputs
Welcome to Digital Electronics using the Arduino Board
Objective of the lesson
BBC Microbit.
The RGB LED.
Objective of the lesson
Objective of the lesson
Recap the basics Lesson 1.
Objective of the lesson
Chapter 1 Introduction of Arduino
Game Controller Lesson Two.
Using the sensor Lesson 5.
Objective of the lesson
Arduino Part 4 Let there be more light.
INTERMEDIATE PROGRAMMING LESSON
Objective of the lesson
Stem Discovery Week at Kareas High School in Greece
Aeroponic Engineering and Vertical Farming
Recap the basics Lesson 1.
Using the sensor Lesson 5.
Arduino Uno circuit basics
Intro to Arduino Part 2 The Breadboard
Task 1 You are going to use the Makey Makey arrow inputs to create a joystick / games controller. Step 1: Connect Makey.
Lesson 1 – using the LED lights
Presentation transcript:

Objective of the lesson Use Blockly to light an external LED All of you will: Make an external LED come on Most of you will: Make an external LED blink Some of you will: Wire in further LEDs

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

You will be used a Light Emitting Diode or LED An LED has 2 legs. One is shorter than the other The short leg is Ground or GND where the current comes out of the LED The long leg is where the current goes into the LED

Click the cog next to the Codebug Tick ‘Show Leg Options’. Click APPLY

The legs on the Codebug now become Labelled. A blue arrow coming in means that the leg is an input A blue arrow coming out means that the leg is an output An input will check to see if something is happening. It is a sensor An output will send electrical current out GND stands for Ground. Current always returns to here

Click on the blue cog in the block Tick legs 0 input/outputs Click on the cog again to apply the changes You now have control over whether leg 0 is an Input or an output

The LED will be joined from leg 0 to GND We need to send electrical current to the LED to make it come on, Electrical current will be sent from leg 0 through the LED and back to GND Therefore leg 0 needs to be an output Set leg 0 to be a digital output. It will send electrical current out of leg 0

We want it to make the LED come on forever We need a repeat while True loop

We will turn on leg 0 to send electrical current to the LED

Connect a crocodile clip to leg 0 Connect the other end of the crocodile clip to the long leg on the LED Connect another crocodile clip to GND Connect the other end of the crocodile clip to the short leg on the LED Download your code to the Codebug and the LED should come on

Challenge Make a lighthouse - Make the LED stay on for 1000ms (1 second) and then go off for 1000ms (1 second) Make a bike light - Make the LED stay on for 100ms (0.1 second) and then go off for 100ms (0.1 second) Make a happy face appear when the light is on and a sad face appear when the light is off Change your wiring and code so that leg 0 controls the LED Add in another LED. One LED is controlled by leg 0 and one LED is controlled by leg 0. Make the LEDs i) flash at the same time ii) flash a t different times Use the Codebug to control the Christmas lights

Answers