CS12020 (Computer Graphics, Vision and Games) Worksheet 1
|
|
- Gyles Welch
- 5 years ago
- Views:
Transcription
1 CS12020 (Computer Graphics, Vision and Games) Worksheet 1 Jim Finnis (jcf1@aber.ac.uk) 1 Getting to know your shield First, book out your shield. This might take a little time, so be patient. Make sure your name, address and the serial number of the shield have been logged. Your shield is a circuit board which sits on top of your Arduino, connecting to its pins. Pins which the shield doesn t use can still be accessed, by connecting to them on the shield rather than the Arduino they are passed through to connectors on the shield. In fact, you can connect to pins the shield uses as well, but don t it could stop the shield working! The shield itself is shown in Figure 1. Your Arduino, plugged in underneath Digital pin 13 LED y x LED display Buttons 1-5 headers passed though from the Arduino Figure 1: The CGVG shield You should be able to see how your Arduino fits underneath, but don t connect it yet. It has the following parts: An 8x8 LED display. Each pixel has two LEDs, red and green. This means we can show four different colours: black (all off), red, green and yellow (both on). An LED which is connected to digital pin 13, like the LED on the Arduino itself (which will be hidden by the shield). Five push buttons. 1
2 Some connectors called headers in the electronics trade. These are female headers, and they connect directly to the Arduino s pins. With this shield we can write simple games, responding to the buttons. We can also connect the Arduino to other Arduinos to play multiplayer games using serial communications. You ll be provided with a library to help you control the LED and read the buttons with a fairly simple API (Application Programming Interface). 1.1 Connecting your shield Now you can connect your shield to your Arduino. Always do this with the Arduino disconnected from the PC. The connection is shown in Figure 2. Make sure you line everything up correctly the six pins on the right should slot neatly into the headers for the analog pins A0-A5, which should be labelled on your newer Arduinos. The rest should slide into place once you have those lined up. Don t force it ask for help if there s a problem. Figure 2: Connecting your shield Once you re set up, get a demonstrator to look at your shield to check you ve connected it correctly to your Arduino. 1.2 Making sure you can save your programs (if on a public workstation) The Macs in the Orchard and the public Windows workstations both use Documents/Arduino as your sketchbook directory. However, the Linux machines C56 are configured differently. This is easily fixed in the Arduino IDE, open File/Preferences... in the menu and edit the sketchbook directory to be /home/xxx/documents/arduino (where xxx is your user ID). Now quit and restart the IDE. 1.3 Installing the library The AberLED library can be downloaded as a Zip file from cs120.shtml. To install it, open your Arduino IDE and from the menu select Sketch/Import Library.../Add Library... Then select the downloaded file. 2
3 1.4 Running a test Now you are ready to run a test. Connect your Arduino and shield to the PC, and enter the following code into the IDE: #include <AberLED. h> void setup ( ) { AberLED. begin ( ) ; AberLED. c l e a r ( ) ; for ( int i =0; i <8; i ++){ AberLED. s e t ( i, i,yellow) ; AberLED. swap ( ) ; void loop ( ) { You should see a yellow diagonal line on your display. Here s how the code works: #include <AberLED. h> // This i s t h e s e t up f u n c t i o n, which runs once. I t s // t h e only code which runs, because our l o o p ( ) f u n c t i o n // i s empty. void setup ( ) { // s t a r t up t h e l i b r a r y so we can use t h e LED AberLED. begin ( ) ; // c l e a r t h e BACK b u f f e r ( which i s n t d i s p l a y e d ) AberLED. c l e a r ( ) ; // now draw y e l l o w d o t s to t h e back b u f f e r at ( 0, 0) // ( 1, 1 ), ( 2, 2 ) and so on up to (7, 7 ). for ( int i =0; i <8; i ++){ AberLED. s e t ( i, i,yellow) ; // f i n a l l y, swap t h e f r o n t and back b u f f e r s so t h a t t h e // back b u f f e r we j u s t drew i s b e i n g d i s p l a y e d. AberLED. swap ( ) ; // This i s t h e l o o p f u n c t i o n, which runs over and over again // f o r e v e r once t h e s e t u p f u n c t i o n i s complete. In t h i s case // i t s empty so i t does nothing. void loop ( ) { 3
4 2 A moving dot Start a new sketch, and import the AberLED library as before. Put a call to AberLED.begin() in the setup() code. Now, you re going to be working mainly inside the loop() function. First, write a program to just draw one dot. You need to: clear the buffer draw the dot swap the buffers. It s going to look quite like the program above, apart from the drawing part. Make sure this runs. Now modify your program to make the dot move from left to right, wrapping round to the left again once it reaches the right hand edge. Things you ll need to think about: What variables you need, where they should be declared and what initial values they should have. How they change in each tick (i.e. time round the loop). What happens to them when they get to the edge. 2.1 Bouncing the dot Once you ve got that working, try to make the dot fly back and forth between the two edges. Hint: you may need an extra variable here. 4
5 3 Input You can get the current state of a button using AberLED.getButton() with the button number (1-5) as a parameter. This will return non-zero (true) if the button is currently down. For example, this little program will make the red dot appear only when button 2 is down: #include <AberLED. h> void setup ( ) { AberLED. begin ( ) ; void loop ( ) { AberLED. c l e a r ( ) ; i f (AberLED. getbutton ( 2 ) ) { AberLED. s e t ( 0, 0,RED) ; AberLED. swap ( ) ; Now try to modify your program to make it change direction when you press a button. First try reading buttons 2 and 4 to make it change direction from left to right, then add buttons 1 and 3 to make it move up and down as well. Use button 5 to make the dot stop. Do you need any more variables to handle the vertical motion? What should you do when you reach the edges? something). (It s up to you, but you should do 5
6 A Technical details This section is for people who are interested in how the LED hardware works. A.1 Which pins are used The shield uses the following Arduino pins: Digital pins 2-7 are used to drive the LED matrix (see below) Analog pins 0-3 receive input from switches 1-4 Digital pin 9 receives input from switch 5 Digital pin 13 drives the LED (as it does on the Arduino itself) Any pins not in this list are passed through, and you are free to connect to them: digital pins 8 and 10-12; along with analog pins 4 and 5. Don t use digital pins 0 and 1 they re used to talk to the PC. A.2 How the LED matrix works The LED matrix we re using has 24 pins. 8 of these pins are connected to the rows, while the other 16 are connected to the columns one set of 8 for the red LEDs, the rest for the green LEDs. The rows are connected to the anode (positive) side of the LEDs, while the columns are connected to the cathodes (negative). To turn on an LED, we have to connect the cathode to ground and the anode to +5V. You ll notice a lot of resistors on the shield too you can t connect an LED directly, you have to do it through a resistor or a really high current will flow and blow it up 1. So to illuminate (say) the red LED on row 5, column 4 we need to set row 5 to HIGH and red column 4 to LOW. Unfortunately, we can t use this to make a picture if we set more than one row high it would show the same pattern as the other rows, because there isn t a separate set of column lines for each row! This means we can only show one row at a time. We get round this by using persistence of vision. We very quickly turn on each row, showing the columns we want, then turn that off and move on to the next row with different columns lit, and so on. We do this so quickly our eye sees a single picture. Our library does this automatically. 1 Turning your LED (light emitting diode) into an SED (smoke emitting diode). 6
7 A.3 How we control 24 signals with only 6 pins Even with this limitation of all columns sharing the same row data, we still need to control 24 signals. This is more than the Arduino UNO has. To deal with this, we use some very useful ICs called shift registers. With one of these, 3 signals can control 8 outputs. We can also cascade them together, so 3 signals can control 16, 24 or more outputs (but you lose a bit of speed every time you do this). The shield uses three shift registers to control the 24 pins on the matrix, so we only use 6 pins on the Arduino. Two of these are cascaded to form a single, big shift register to control the columns; while one controls the rows, as in Figure 3. row data shift register row data column data shift register green column data red column data shift register column data Figure 3: Shift registers and the LED matrix If you want to know more about shift registers to use in your own projects, there s a handy guide at to get you started. The particular component I m using is the 74HC595. They cost about 35p each! 7
CS12020 for CGVG. Practical 1. Jim Finnis
CS12020 for CGVG Practical 1 Jim Finnis (jcf1@aber.ac.uk) About me 20 years in the games industry (more or less) Windows, PS2, Xbox, Gamecube, Wii development experience DirectX (more than I like to think
More informationDigital Pins and Constants
Lesson Lesson : Digital Pins and Constants Digital Pins and Constants The Big Idea: This lesson is the first step toward learning to connect the Arduino to its surrounding world. You will connect lights
More informationNote. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.
Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how
More informationHalloween Pumpkinusing. Wednesday, October 17, 12
Halloween Pumpkinusing Blink LED 1 What you will need: 1 MSP-EXP430G2 1 3 x 2 Breadboard 3 560 Ohm Resistors 3 LED s (in Red Color Range) 3 Male to female jumper wires 1 Double AA BatteryPack 2 AA Batteries
More informationROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL
ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL 1 Preface About RobotLinking RobotLinking is a technology company focused on 3D Printer, Raspberry Pi and Arduino open source community development.
More informationQuickstart CHAPTER 1. Powering Up. Installing the Software
CHAPTER 1 Quickstart THIS IS A CHAPTER for the impatient Evil Genius. Your new Arduino board has arrived and you are eager to have it do something. So, without further ado... Powering Up When you buy an
More information1/Build a Mintronics: MintDuino
1/Build a Mintronics: The is perfect for anyone interested in learning (or teaching) the fundamentals of how micro controllers work. It will have you building your own micro controller from scratch on
More informationUniversity of Hull Department of Computer Science C4DI Interfacing with Arduinos
Introduction Welcome to our Arduino hardware sessions. University of Hull Department of Computer Science C4DI Interfacing with Arduinos Vsn. 1.0 Rob Miles 2014 Please follow the instructions carefully.
More informationCS12020 for CGVG. Practical 2. Jim Finnis
CS12020 for CGVG Practical 2 Jim Finnis (jcf1@aber.ac.uk) This week Solution to last week and discussion Global variables and the model The Main Loop pattern States and the State Machine pattern Random
More informationUSER MANUAL ARDUINO I/O EXPANSION SHIELD
USER MANUAL ARDUINO I/O EXPANSION SHIELD Description: Sometimes Arduino Uno users run short of pins because there s a lot of projects that requires more than 20 signal pins. The only option they are left
More informationDigital Circuits. Page 1 of 5. I. Before coming to lab. II. Learning Objectives. III. Materials
I. Before coming to lab Read this handout and the supplemental. Also read the handout on Digital Electronics found on the course website. II. Learning Objectives Using transistors and resistors, you'll
More informationArduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut
Arduino 05: Digital I/O Jeffrey A. Meunier jeffm@engr.uconn.edu University of Connecticut About: How to use this document I designed this tutorial to be tall and narrow so that you can read it on one side
More informationCMSC838. Tangible Interactive Assistant Professor Computer Science
CMSC838 Tangible Interactive Computing Week 15 Lecture 27 May 5, 2015 Using ICs to Expand Arduino Functionality Human Computer Interaction Laboratory @jonfroehlich Assistant Professor Computer Science
More informationDevice: PLT This document Version: 3. For hardware Version: 1. For firmware Version: Date: 20 Oct 2017
Device: PLT-2001 This document Version: 3 For hardware Version: 1 For firmware Version: 5.21 Date: 20 Oct 2017 Description: Uber LED Matrix Display Driver board PLT-2001v1 datasheet Page 2 Contents Introduction...
More informationNecessary software and hardware:
Necessary software and hardware: Bases: First, remember that I m a French guy so my English is not perfect ;) If you see any mistakes, don t hesitate to tell me so I can correct them (my email is at the
More informationConnecting Arduino to Processing
Connecting Arduino to Processing Introduction to Processing So, you ve blinked some LEDs with Arduino, and maybe you ve even drawn some pretty pictures with Processing - what s next? At this point you
More informationShadows in the graphics pipeline
Shadows in the graphics pipeline Steve Marschner Cornell University CS 569 Spring 2008, 19 February There are a number of visual cues that help let the viewer know about the 3D relationships between objects
More informationRedBoard Hookup Guide
Page 1 of 11 RedBoard Hookup Guide CONTRIBUTORS: JIMB0 Introduction The Redboard is an Arduino-compatible development platform that enables quick-and-easy project prototyping. It can interact with real-world
More informationDevice: PLT This document Version: 1. For hardware Version: 1. For firmware Version: Date: 9 May 2014
Device: PLT-2001 This document Version: 1 For hardware Version: 1 For firmware Version: 5.00 Date: 9 May 2014 Description: LED Matrix Display Driver board PLT-2001v1 datasheet Page 2 Contents Introduction...
More informationSPRITES Moving Two At the Same Using Game State
If you recall our collision detection lesson, you ll likely remember that you couldn t move both sprites at the same time unless you hit a movement key for each at exactly the same time. Why was that?
More informationPhysics 120/220 Lab Equipment, Hints & Tips
Physics 120/220 Lab Equipment, Hints & Tips Solderless Breadboard... 2 Power supply... 4 Multimeters... 5 Function generator... 5 Oscilloscope... 6 10X probe... 7 Resistor color code... 7 Components...
More informationSX1509 I/O Expander Breakout Hookup Guide
Page 1 of 16 SX1509 I/O Expander Breakout Hookup Guide Introduction Is your Arduino running low on GPIO? Looking to control the brightness of 16 LEDs individually? Maybe blink or breathe a few autonomously?
More informationBasic Reliable Transport Protocols
Basic Reliable Transport Protocols Do not be alarmed by the length of this guide. There are a lot of pictures. You ve seen in lecture that most of the networks we re dealing with are best-effort : they
More informationHardware Overview and Features
Hardware Overview and Features Don t snap apart your LilyPad ProtoSnap Plus until you're ready to use the pieces in a project. If you leave the pieces attached to the board, you'll be able to prototype
More informationBlackfin Online Learning & Development
Presentation Title: Multimedia Starter Kit Presenter Name: George Stephan Chapter 1: Introduction Sub-chapter 1a: Overview Chapter 2: Blackfin Starter Kits Sub-chapter 2a: What is a Starter Kit? Sub-chapter
More informationLab 2.2 Ohm s Law and Introduction to Arduinos
Lab 2.2 Ohm s Law and Introduction to Arduinos Objectives: Get experience using an Arduino Learn to use a multimeter to measure Potential units of volts (V) Current units of amps (A) Resistance units of
More informationAT42QT101X Capacitive Touch Breakout Hookup Guide
Page 1 of 10 AT42QT101X Capacitive Touch Breakout Hookup Guide Introduction If you need to add user input without using a button, then a capacitive touch interface might be the answer. The AT42QT1010 and
More informationArduino IDE Friday, 26 October 2018
Arduino IDE Friday, 26 October 2018 12:38 PM Looking Under The Hood Of The Arduino IDE FIND THE ARDUINO IDE DOWNLOAD First, jump on the internet with your favorite browser, and navigate to www.arduino.cc.
More informationLab 0: Wire Wrapping Project: Counter Board
Lab 0: Wire Wrapping Project: Counter Board September 3, 2008 In this experiment, you will build a simple counter circuit that can be plugged into your breadboard. It will provide a set of TTL output signals
More informationInstallation/assembly manual for DCC/Power shield
Installation/assembly manual for DCC/Power shield The DCC circuit consists of the following components: R1/R6 R2/R3 R4/R5 D1 C2 2 kω resistor ½ Watt (colour code Red/Black/Black/Brown/Brown) 10 kω resistor
More informationD - Tic Tac Toe. Let's use our 9 sparkles to build a tic tac toe game! 2017 courses.techcamp.org.uk/ Page 1 of 9
D - Tic Tac Toe Let's use our 9 sparkles to build a tic tac toe game! 2017 courses.techcamp.org.uk/ Page 1 of 9 INTRODUCTION Let's use our 9 sparkles to build a tic tac toe game! Step 1 Assemble the Robot
More informationTuBbika SMR-4-PLUS voicecard
TuBbika SMR-4-PLUS voicecard Assembly instructions We assume you know soldering. If you don t, look first at this tutorial. Be patient! And if you have any doubt, head to the forum never be afraid to ask!
More information36mm LED Pixels. Created by Phillip Burgess. Last updated on :45:20 PM EDT
36mm LED Pixels Created by Phillip Burgess Last updated on 2013-07-26 03:45:20 PM EDT Guide Contents Guide Contents Overview Project Ideas Wiring Powering Code Installation Using the Library Troubleshooting
More informationSmoother Graphics Taking Control of Painting the Screen
It is very likely that by now you ve tried something that made your game run rather slow. Perhaps you tried to use an image with a transparent background, or had a gazillion objects moving on the window
More informationPhi-connect for Arduino (connector board V1.9)
Phi-connect for Arduino (connector board V1.9) Last reviewed on 3/29/2012 John Liu 1. Introduction... 2 2. Main features... 2 3. Parts list... 3 4. How to use... 4 5. Improving your Arduino experience
More informationLesson 8: Digital Input, If Else
Lesson 8 Lesson 8: Digital Input, If Else Digital Input, If Else The Big Idea: This lesson adds the ability of an Arduino sketch to respond to its environment, taking different actions for different situations.
More informationThe DTMF generator comprises 3 main components.
Make a DTMF generator with an Arduino board This article is for absolute beginners, and describes the design and construction of a DTMF generator. DTMF generators are often used to signal with equipment
More informationAdafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC
Adafruit Metro Mini Created by lady ada Last updated on 2018-01-24 08:12:28 PM UTC Guide Contents Guide Contents Overview Pinouts USB & Serial converter Microcontroller & Crystal LEDs Power Pins & Regulators
More informationENGR 40M Project 3c: Switch debouncing
ENGR 40M Project 3c: Switch debouncing For due dates, see the overview handout 1 Introduction This week, you will build on the previous two labs and program the Arduino to respond to an input from the
More informationOutline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements
Announcements Homework #2 (due before class) submit file on LMS. Submit a soft copy using LMS, everybody individually. Log onto the course LMS site Online Assignments Homework 2 Upload your corrected HW2-vn.c
More informationLilyPad ProtoSnap Plus Hookup Guide
Page 1 of 16 LilyPad ProtoSnap Plus Hookup Guide Introduction The LilyPad ProtoSnap Plus is a sewable electronics prototyping board that you can use to learn circuits and programming, then break apart
More informationDENSITRON USB KIT HARDWARE AND SOFTWARE MANUAL. Copyright 2006 DENSITRON TECHNOLOGIES plc. All rights reserved. Proprietary Data
DENSITRON USB KIT HARDWARE AND SOFTWARE TABLE OF CONTENTS 1 Introduction... 4 1.1 HARDWARE FEATURES... 4 1.2 SOFTWARE FUNCTIONS... 4 2 PARTS OF SUPPLIED SYSTEM... 5 3 SYSTEM REQUIREMENTS... 5 4 START-UP...
More informationESPixelStick V2 Assembly and Usage
ESPixelStick V2 Assembly and Usage OVERVIEW The ESPixelStick is a wireless (802.11g/n) pixel controller that interfaces as a standard sacn / E1.31 controller and supports a variety of pixel types. It also
More informationTTS Rainbow Matrix TEACHER GUIDE
TTS Rainbow Matrix TEACHER GUIDE www.tts-shopping.com Using Rainbow Matrix in the classroom PROGRAMMING C L E V E R C AT S JOURNEY Foundation focus EYFS Recognise that a range of technology is used in
More informationIn this activity you will create a tool to allow you to play games such as Red Light/Green Light. To create the game, follow the steps below.
Example: Hello World In this activity you will create a tool to allow you to play games such as Red Light/Green Light. To create the game, follow the steps below. If you get stuck, go to the Troubleshooting
More informationElectronic Brick Starter Kit
Electronic Brick Starter Kit Getting Started Guide v1.0 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning
More informationStenBOT Robot Kit. Stensat Group LLC, Copyright 2018
StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the
More informationRobotics and Electronics Unit 5
Robotics and Electronics Unit 5 Objectives. Students will work with mechanical push buttons understand the shortcomings of the delay function and how to use the millis function. In this unit we will use
More informationAlesis MMT8 16x Memory Expansion Modification (all grey model MMT8 s)
Alesis MMT8 16x Memory Expansion Modification (all grey model MMT8 s) by Graham Meredith, 2006 Revised 13 th January 2009 gmeredith1@yahoo.com.au This modification expands the memory of the Alesis MMT8
More informationGetting Started with Processing by Casey Reas and Ben Fry
Free Sampler Getting Started with Processing by Casey Reas and Ben Fry Copyright 2010 Casey Reas and Ben Fry. All rights reserved. Printed in the United States of America. Published by O Reilly Media,
More informationNAME EET 2259 Lab 3 The Boolean Data Type
NAME EET 2259 Lab 3 The Boolean Data Type OBJECTIVES - Understand the differences between numeric data and Boolean data. -Write programs using LabVIEW s Boolean controls and indicators, Boolean constants,
More information2.2" TFT Display. Created by lady ada. Last updated on :19:15 PM UTC
2.2" TFT Display Created by lady ada Last updated on 2017-12-22 11:19:15 PM UTC Guide Contents Guide Contents Overview Pinouts Assembly Arduino Wiring Arduino UNO or Compatible Wiring Wiring for Other
More information2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...
Remembering numbers (and other stuff)... Let s talk about one of the most important things in any programming language. It s called a variable. Don t let the name scare you. What it does is really simple.
More informationArduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S
Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp
More informationElectronics Construction Manual
Electronics Construction Manual MitchElectronics 2018 Version 1 07/05/2018 www.mitchelectronics.co.uk CONTENTS Introduction 3 How To Solder 4 Resistors 5 Capacitors 6 Diodes and LEDs 7 Switches 8 Transistors
More informationUnit 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 informationPARTS LIST 1 x PC Board 36 x 5mm Red LED 36 x 12mm LED Standoff 36 x NPN Transistor 36 x 10kΩ Resistor OTHER PARTS YOU MAY NEED
PARTS LIST 1 x PC Board 36 x 5mm Red LED 36 x 12mm LED Standoff 36 x NPN Transistor 36 x 150Ω Resistor 36 x 10kΩ Resistor 17 x Mini Toggle on-off 8 x Mini Toggle (on)-off-(on) 1 x 470Ω Resistor 1 x 47µF
More informationUsing Flash Animation Basics
Using Flash Contents Using Flash... 1 Animation Basics... 1 Exercise 1. Creating a Symbol... 2 Exercise 2. Working with Layers... 4 Exercise 3. Using the Timeline... 6 Exercise 4. Previewing an animation...
More informationKNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions
125 KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions Time: 1 HOUR Level: Builds on projects: 1, 2, 3,
More informationHow-To: Make an RGB combination door lock (Part 1)
How-To: Make an RGB combination door lock (Part 1) Written By: Feitan 2017 www.botsbits.org Page 1 of 14 INTRODUCTION Part 2 can be found here 2017 www.botsbits.org Page 2 of 14 Step 1 How-To: Make an
More informationThe name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.
Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that
More informationObjectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen
Objectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen By the end of this session: You will know how to write a program to
More informationLesson 4: Animation. Goals
Introduction: In this session you are going to use custom built tools in Arduino to help you turn images or animation into code that automatically uploads to your DIY Gamer. It is a fun and easy way to
More informationLab 2 - Powering the Fubarino. Fubarino,, Intro to Serial, Functions and Variables
Lab 2 - Powering the Fubarino Fubarino,, Intro to Serial, Functions and Variables Part 1 - Powering the Fubarino SD The Fubarino SD is a 56 pin device. Each pin on a chipkit device falls broadly into one
More informationLayad Circuits Arduino Basic Kit B. Content Summary
Layad Circuits This kit is a careful selection of sensors, displays, modules, an Arduino Uno, connectors and other essential parts meant to facilitate learning of the hardware and software components of
More informationPhysics 120/220. Microcontrollers Extras. Prof. Anyes Taffard
Physics 120/220 Microcontrollers Extras Prof. Anyes Taffard Introduction 2 There are an infinite amount of applications for the Arduino. Lots of interfaces that can be controlled with it. Extension boards
More informationSanguino TSB. Introduction: Features:
Sanguino TSB Introduction: Atmega644 is being used as CNC machine driver for a while. In 2012, Kristian Sloth Lauszus from Denmark developed a hardware add-on of Atmega644 for the popular Arduino IDE and
More informationArdOS The Arduino Operating System Quick Start Guide and Examples
ArdOS The Arduino Operating System Quick Start Guide and Examples Contents 1. Introduction... 1 2. Obtaining ArdOS... 2 3. Installing ArdOS... 2 a. Arduino IDE Versions 1.0.4 and Prior... 2 b. Arduino
More informationEEN118 LAB FOUR. h = v t ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationAnimations that make decisions
Chapter 17 Animations that make decisions 17.1 String decisions Worked Exercise 17.1.1 Develop an animation of a simple traffic light. It should initially show a green disk; after 5 seconds, it should
More informationPhysical Computing Self-Quiz
Physical Computing Self-Quiz The following are questions you should be able to answer without reference to outside material by the middle of the semester in Introduction to Physical Computing. Try to answer
More informationCreate moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images BATTERY POTENTIOMETER
ZOETROPE Create moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images Discover : H-bridges Time : 30 minutes Level : Builds on projects :
More informationBuilding the FlipChip Tester
Building the FlipChip Tester 1. Assembly of the Core Board You will need a fine low-wattage soldering iron and a Voltmeter. Take your time to solder the components on the Core Board. Better to spend a
More informationCoding Workshop. Learning to Program with an Arduino. Lecture Notes. Programming Introduction Values Assignment Arithmetic.
Coding Workshop Learning to Program with an Arduino Lecture Notes Table of Contents Programming ntroduction Values Assignment Arithmetic Control Tests f Blocks For Blocks Functions Arduino Main Functions
More informationHTML and CSS a further introduction
HTML and CSS a further introduction By now you should be familiar with HTML and CSS and what they are, HTML dictates the structure of a page, CSS dictates how it looks. This tutorial will teach you a few
More informationCS Data Structures Mr. Bredemeier Traveling Salesperson Problem
CS Data Structures Mr. Bredemeier Traveling Salesperson Problem This assignment was originally developed by Robert Sedgwick and Kevin Wayne at Princeton University (here is the link to the original assignment),
More informationElectronics Construction Manual
Electronics Construction Manual MitchElectronics 2019 Version 3 04/02/2019 www.mitchelectronics.co.uk CONTENTS Introduction 3 How To Solder 4 Resistors 5 Capacitors 6 Diodes and LEDs 7 Switches 8 Transistors
More informationThere are a number of ways of doing this, and we will examine two of them. Fig1. Circuit 3a Flash two LEDs.
Flashing LEDs We re going to experiment with flashing some LEDs in this chapter. First, we will just flash two alternate LEDs, and then make a simple set of traffic lights, finally a running pattern; you
More informationEEN118 LAB FOUR. h = v t ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationLesson 5: LDR Control
Lesson 5: LDR Control Introduction: Now you re familiar with the DIY Gamer and editing in an Arduino sketch. its time to write one from scratch. In this session you will write that talks to the Light Dependent
More informationLecture 7. Processing Development Environment (or PDE)
Lecture 7 Processing Development Environment (or PDE) Processing Class Overview What is Processing? Installation and Intro. Serial Comm. from Arduino to Processing Drawing a dot & controlling position
More informationHow-To #8: Work with Smart LEDs
How-To #8: Work with Smart LEDs This How-To shows how to connect and control a number of special light-emitting diodes, each of which can be set to any color and brightness. We will use NeoPixels from
More informationCounter & LED (LED Blink)
1 T.R.E. Meeting #1 Counter & LED (LED Blink) September 17, 2017 Contact Info for Today s Lesson: President Ryan Muller mullerr@vt.edu 610-573-1890 Learning Objectives: Learn how to use the basics of Arduino
More informationMA 1128: Lecture 02 1/22/2018
MA 1128: Lecture 02 1/22/2018 Exponents Scientific Notation 1 Exponents Exponents are used to indicate how many copies of a number are to be multiplied together. For example, I like to deal with the signs
More informationIME-100 Interdisciplinary Design and Manufacturing
IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics
More information12mm LED Pixels. Created by Phillip Burgess. Last updated on :38:47 AM UTC
12mm LED Pixels Created by Phillip Burgess Last updated on 2017-10-25 04:38:47 AM UTC Guide Contents Guide Contents Project Ideas Wiring Connecting to Arduino Why do the bullet and flat pixels use different
More informationEEN118 LAB FOUR. h = v t ½ g t 2
EEN118 LAB FOUR In this lab you will be performing a simulation of a physical system, shooting a projectile from a cannon and working out where it will land. Although this is not a very complicated physical
More informationLecture 12. Building an LED Display
Lecture 12 Building an LED Display Copyright 2017 by Mark Horowitz 1 By the End of Lecture, You Should Be Able To: Use LEDs in simple circuits Use time division multiplexing to control LEDs Control n 2
More informationChapter Two Bonus Lesson: JavaDoc
We ve already talked about adding simple comments to your source code. The JDK actually supports more meaningful comments as well. If you add specially-formatted comments, you can then use a tool called
More informationPart 1. Summary of For Loops and While Loops
NAME EET 2259 Lab 5 Loops OBJECTIVES -Understand when to use a For Loop and when to use a While Loop. -Write LabVIEW programs using each kind of loop. -Write LabVIEW programs with one loop inside another.
More informationinto the EMU E4 Classic and E4 Platinum Samplers
Installing the CF-CARD SCSI Card Reader/Writer Drive into the EMU E4 Classic and E4 Platinum Samplers Thank you for purchasing the CF-CARD Internal Card Reader Drive Installation Kit from SCSICardReaders.com.
More informationHow to draw and create shapes
Adobe Flash Professional Guide How to draw and create shapes You can add artwork to your Adobe Flash Professional documents in two ways: You can import images or draw original artwork in Flash by using
More informationMedium parts count, through-hole components (with exception of optional surface mount MAC IC).
Introduction The E1.31 DMX Bridge is an interface intended to be used as part of a system to operate a lighting display that consists of DMX or Renard controlled dimmers. To form a complete system, the
More informationWeb Site: Forums: forums.parallax.com Sales: Technical:
Web Site: www.parallax.com Forums: forums.parallax.com Sales: sales@parallax.com Technical: support@parallax.com Office: (916) 624-8333 Fax: (916) 624-8003 Sales: (888) 512-1024 Tech Support: (888) 997-8267
More informationAdd 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 informationDissecting a keyboard
Dissecting a keyboard The keyboard on Jacky s PC died. Another opportunity to take something apart and admire its design and construction. I turned it over and pulled out all the screws. The back wouldn
More informationSuper Skwisher. Ross Compressor +++
Super Skwisher Ross Compressor +++ Contents of this document are 2015 Pedal Parts Ltd. No reproduction permitted without the express written permission of Pedal Parts Ltd. All rights reserved. Important
More informationAdobe Flash CS3 Reference Flash CS3 Application Window
Adobe Flash CS3 Reference Flash CS3 Application Window When you load up Flash CS3 and choose to create a new Flash document, the application window should look something like the screenshot below. Layers
More informationWarranty Disclaimer. Limitation of Liability
Warranty Disclaimer Purchaser acknowledges that Top Cat Engineering L.L.C.has agreed to provide this kit for evaluation purposes only. Purchaser further acknowledges that Top Cat Engineering has no obligations
More informationConnecting LEDs to the ADB I/O
Application Note AN-2 By Magnus Pettersson September 26 1996 Connecting LEDs to the I/O Introduction The following notes are for those of you who are a bit inexperienced with hardware components. This
More information