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.

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

Making Electronic Fashion Welcome Pink Team!. Etiquette Creative Girls Technology Arts.
EducateNXT Enter the name “Sound Graphing” for your experiment. Real-time Data Logging Click the Switch to NXT Data Logging icon in the top-left corner.
Lab7: Introduction to Arduino
Introduction to Arduino 3 Introduction to Arduino With ArduBlock & LilyPad Dev One prebuilt of each circuit for each group, who has what experience?
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.
PIC Programming with Logicator
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
Potentiometer Electric circuit Cell or Battery Resistor Switch Bulb Earth/Ground LED.
Photos and Sensor Instructions
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
An Intro to Robots and Computer Programming
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.
Introduction.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
Electrical Components.  This supplies all the power to the robot. It is a single 12 V battery. They are sealed to prevent battery acid from leaking.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
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.
ProtoSnap Introduction to Arduino Casey Haskell, Pete Lewis, David Stillman, Jim Lindblom, Pete Dokter, Lindsay Levkoff, Trevor Zylstra.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
Photos and Sensor Instructions
WELCOME TO ARDUINO E-DAY CAR PROJECT MEETING – ITALY MARCH.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Arduino The Internet of Things: Using the Arduino to Teach Coding.
Arduino libraries Datatekniker Udvidet hardware/software.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
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.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
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.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Microcontroller basics
Microcontroller basics
Installing an Xbox 360.
An Arduino Workshop A Microcontroller.
Welcome to Arduino A Microcontroller.
Arduino Development for Beginners
Arduino Part 1 Topics: Microcontrollers Programming Basics
Introduction to Arduino Microcontrollers
Programming Scratch to Control a K’NEX Fairground Ride
Introduction to Arduino Microcontrollers
Programming Part 2 Mod Kit
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.
Raspberry Pi: External Inputs & Outputs
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
An Introduction to VEX IQ Programming with Modkit
The RGB LED.
Chapter 1 Introduction of Arduino
Photos and Sensor Instructions
CTY SAR FCPS Shawn Lupoli, Elliot Tan
An Introduction to VEX IQ Programming with Modkit
Aeroponic Engineering and Vertical Farming
Arduino Uno circuit basics
Introduction to Arduinos
Introduction to arduino
Objective of the lesson
Presentation transcript:

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

What is a LilyPad? People use Lily Pad to light up their jackets, wirelessly communicate between purses or stuffed animals, and create fashion that also helps blind people Sew it into a kite, a sweater, a backpack… or even your leather jacket!

How do you want your robot brain (also called a microcontroller) to talk with the input (that’s the sensors) and the output (LED lights and buzzers)?

NOTE: DO NOT SNAP APART THE LILYPAD BOARD YET! IF YOU DO, YOU WILL NOT BE ABLE TO EASILY PROGRAM IT!

Parts of the LilyPad board: microcontroller, input and output

The LilyPad Dev Board needs at least a 5V power supply to work. You can use 4 AA batteries or a 9V “wall wart.”

Look closely! Do you see the wires that are running to the sensors, LEDs, and buttons? The microcontroller can already talk to the inputs and outputs!

The Outputs (Can change the real world in some way) Outputs are like your hands and feet! Outputs can make a system walk, pick stuff up or simply turn an LED on or off! Outputs can NOT put things IN the brain (microcontroller)!

The Inputs (Takes real-world information and sends it back into microcontroller) Inputs are like your eyes and ears! Inputs take IN information and send it back to the brain!

Now we can start telling our robot brain what to do! 1) Open ModKit 2) Select the LilyPad board on the lower left.

Your screen should look like this!

Can your computer talk to your LilyPad? Click on the “Hardware” button.

Now it looks like this! CHECK: ✔ Type of Board you are programming ✔ COM Port the Board is plugged into Let’s make sure that the LilyPad Protosnap is selected.

Let’s make sure we are talking to the right connection! Click on “Select Port” at the top. Click on “usbserial-” Is your number different than the person’s next to you? Good!

Time to write some code! Click on “Blocks” view to get started

The All Important Forever Loop! We’ll need a “forever” loop in our sketch! (It’s in the YELLOW “Control” tab on the left side.”)

BLINK! Let’s program the green LED to blink ON and then OFF.

Click “Control” again Add 2 “delay” blocks

Guess What? You’re ready to upload code onto your LilyPad Dev Board!!! Click on the upload button. It looks kind of like a play button.

pinMode tells Pin 13 to act like an output forever makes the code repeat digitalWrite turns the LED on (or HIGH) Pause for a second digitalWrite turns the LED off (or LOW) Pause for another second Try changing the numbers in delay and uploading your code again. What happens?

DIGITAL SIGNAL: ON or OFF HIGH means on LOW means off

How can we make it light up halfway? Let’s change the Pin!  Most pins are digital, but you can’t turn digital pin 13 halfway off!  PWM pins can be a little on, halfway on, or all the way on! Like the volume control on my radio!

Let’s change from Pin 13 to Pin 5.

Switch to analog blocks. We can control how much electricity goes to each light. 255 is all the way on. 0 is all the way off.

PWM Signal: ON, everything in between, and OFF 255 means on 0 means off 127 means half on and half off

What if I want 2 LEDS to blink at once? Pin 5 Pin 6

This input uses the light sensor. The light sensor is an analog sensor. The light sensor goes up to 1023.

How do I use the digital inputs like the button? This code uses the button. To make your lights blink and change brightness you have to press the button.

This guy is weird. The Red, Green and Blue LED is backwards!

C HALLENGES, QUESTIONS, AND DISCUSSION