PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

Similar documents
For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

FABO ACADEMY X ELECTRONIC DESIGN

Arduino An Introduction

Module: Arduino as Signal Generator

Pulse Width Modulation and

Programming 2 Servos. Learn to connect and write code to control two servos.

The Motor sketch. One Direction ON-OFF DC Motor

Computational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Coding with Arduino to operate the prosthetic arm

Training Schedule. Robotic System Design using Arduino Platform

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

INA169 Breakout Board Hookup Guide

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Welcome to Arduino Day 2016

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

Rodni What will yours be?

Arduino Lesson 1. Blink. Created by Simon Monk

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

Exam Practice Problems (3 Point Questions)

Application Note AN 102: Arduino I2C Interface to K 30 Sensor

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Lesson 3: Arduino. Goals

ASCOM EF Lens Controller

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

WEEK. Learning Objective. Materials to Prepare LESSON

LED + Servo 2 devices, 1 Arduino

1Getting Started SIK BINDER //3

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

Microcontrollers and Interfacing

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

Objective of the lesson

EARTH PEOPLE TECHNOLOGY. EPT-200TMP-TS-U2 Temperature Sensor Docking Board User Manual

Demon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:

Lab 2.4 Arduinos, Resistors, and Circuits

DFRduino Romeo All in one Controller V1.1(SKU:DFR0004)

Blink. EE 285 Arduino 1

UNIT 4 VOCABULARY SKILLS WORK FUNCTIONS QUIZ. A detailed explanation about Arduino. What is Arduino? Listening

ISSN: [Singh* et al., 6(6): June, 2017] Impact Factor: 4.116

Arduino as a tool for physics experiments

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

Understanding the Arduino to LabVIEW Interface

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science?

TWEAK THE ARDUINO LOGO

WEEK. Learning Objective. Materials to Prepare. Summary of Class LESSON

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I

Experiment 1: Robot Moves in 3ft squared makes sound and

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Milli Developer Kit Reference Application Published on Silver Spring Networks STAGE (

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

SCHOOL OF TECHNOLOGY AND PUBLIC MANAGEMENT ENGINEERING TECHNOLOGY DEPARTMENT

Preface. If you have any problems for learning, please contact us at We will do our best to help you solve the problem.

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

CPSC 226 Lab Four Spring 2018

18 CHANNELS LED DRIVER EVALUATION BOARD GUIDE

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Arduino Advanced Projects

Adafruit 16-Channel Servo Driver with Arduino

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett

Adafruit 16-Channel Servo Driver with Arduino

Assignments from last week

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. S4A - Scratch for Arduino Workbook

Veyron Servo Driver (24 Channel) (SKU:DRI0029)

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Arduino Setup & Flexing the ExBow

Breadboard Arduino Compatible Assembly Guide

Servo Sweep. Learn to make a regular Servo move in a sweeping motion.

Lab 4 Rev. 1 Open Lab Due COB Friday April 6, 2018

APDS-9960 RGB and Gesture Sensor Hookup Guide

Breadboard Traffic Light System

Programmable Control Introduction

You'll create a lamp that turns a light on and off when you touch a piece of conductive material

Figure 1. Digilent DC Motor

Name & SID 1 : Name & SID 2:

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

HOW TO BUILD A CAR PARK WITH INTEL GALILEO!

TETRIX PULSE Workshop Guide

SPI, Talking to Chips, and Minimizing Noise

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness

LEVEL A: SCOPE AND SEQUENCE

Written by Hans Summers Wednesday, 15 November :53 - Last Updated Wednesday, 15 November :07

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control

BandMaster V Manual. Installation

Adafruit 16-Channel Servo Driver with Arduino

Arduino: Sensors for Fun and Non Profit

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

Lab 06: Ohm s Law and Servo Motor Control

Introduction. 1 of 44

Intelligent Systems Design in a Non Engineering Curriculum. Embedded Systems Without Major Hardware Engineering

Transcription:

Lesson Plan: Traffic light with Arduino using code, S4A and Ardublock Course 3rd ESO Technology, Programming and Robotic David Lobo Martínez David Lobo Martínez 1

1. TOPIC Arduino is an open source hardware platform, based on a simple board with analog and digital inputs and outputs, in a development environment that is based on programming languages. It is a device that connects the physical world with the virtual world, or the analog world with the digital world. It will be a very easy project, but also practical and visual that will serve as an introduction to the Arduino board and its programming, in particular will be the control of a traffic light with LEDs. The LEDs will light up successively for intervals of time, first the green light will go on for 15 seconds, then the yellow for 3 seconds and finally the red for 15 seconds, then this sequence will be repeated indefinitely. The development of the program will be done with different types of software related to Arduino. The execution will be performed physically on a breadboard connected to an Arduino card and also simulated. 2. AIMS: To built a Traffic light with Arduino using different systems of programming: Arduino IDE. Simulation. S4A Ardublock Also: Know how to use the Arduino card. Review basic connections. Know the interfaces of any of the controllers used in the technology workshop. Learn the basics of language for Arduino. Present the block diagram of a computer control system. David Lobo Martínez 2

Review the digital signal concept. Display the basic actions that can be performed with a computer control: driving LEDs. Show results physically and simulated by the computer. Know different types of software related to Arduino. 3. AGE GROUP: 13 y.o 4. LEVEL: 3 rd grade of ESO 5. TIME: 6 hours 6. MATERIALS: Arduino Uno and cable for USB connection. Personal computer with: Arduino software, S4A and Ardublock, and internet (online simulator www.tinkercad.com). 3 220 ohm resistors. 1 LED, green color. 1 LED, yellow color. 1 LED, red color. 1Breadboard. Connection cables. David Lobo Martínez 3

7. PROCEDURE: 7.1 LEAD-IN/MODELING (1 st hour) Warm up with a video clip for introduction and some questions. Show two Arduino project videos: Ask students to share what they have observed Introduction to Arduino hardware: Learn about the main features of the board; microcontroller chip, USB connector, power jack slot, digital and analog input pins, output pins and reset pin Discuss IDE (Integrated Development Environment) and Sketch o Input Area - white area o Status Bar - blue area below the white one o Program Notification Area - black area below the blue one Describe the functions of the 5 icons above the Input area Ask students to connect the board to the laptops: Ensure the Port connected to the Arduino is recognised [Tools bar // select Port // select Arduino Uno (Each Arduino board has a unique reference)] 7.2 TASK 1 (2 nd hour) Explaining Autodesk circuits, Sign up and first simulation (personal activity or in pairs). Question quiz about introduction to Autodesk Circuits Describe breadboard, LED, resistor, jumper wires https://youtu.be/ocmeyja5irk?list=plu8tysq5jcfho31lxxcoebll3x 94l6mLc 7.3 TASK 2 (3 rd hour) Simulating traffic light in Autodesk Circuits (personal activity or in pairs). Code is given by the teacher. David Lobo Martínez 4

CODE: Arduino uses its output pins to send electrical signals. These signals can be used to power other devices (led's, buzzers...) or to communicate by sending a series of pulses that the receiver must understand. The digital outputs are divided into two levels or states: HIGH to 5 V and LOW to 0 V. By default, and without any program loaded on our controller card, the outputs are LOW level. For constant values of 5V, 3.3V and 0V (GND) we can use the corresponding pins in the "POWER" section of our Arduino. The pins that we can configure to change the level of output according to our program are the digital ones, that is, the 1 to 13. By default these pins are configured as inputs so the first thing we have to do to use a pin as output is to configure it as such. For this we write this sentence in the section setup of the program. PinMode (pin, OUTPUT); Where we will replace "pin" with the number of the pin that we want to configure as output. Now we have it configured as output but it still follows 0 V, ie at LOW level. When at a certain point in the program we want that pin to be set to HIGH level we will write this sentence DigitalWrite (pinout, HIGH); Now we will have 5 V permanently in that pin unless in the program we insert DigitalWrite (pinout, LOW); In which case it will return to the value of 0 V. We can set the pins to HIGH or LOW as many times as we want. With the int statement we are declaring an integer variable, so that it can be used later in our code. The delay command causes the program to stop for a certain amount of time. This will be defined, in milliseconds, within parentheses. With these commands we can already program our code: David Lobo Martínez 5

/******************/ /* TRAFFIC LIGHT */ /******************/ /*** David Lobo Martínez ***/ //** Definitions **// int rojo=12; //It defines the value of the pin for the red led int amarillo=11; //It defines the value of the pin for the yellow led int verde=10; //It defines the value of the pin for the green led //** Program **// void setup() { //declarations pinmode(verde,output); //It declares the green pin as output pinmode(amarillo,output);//it declares the yellow pin as output pinmode(rojo,output); //It declares the red pin as output } void loop() { //repeat loop continuously digitalwrite(verde,high); //It turns on the green led delay(15000); //wait 15 seconds digitalwrite(verde,low); //It turns off the green led delay(250); //wait 0.25 seconds digitalwrite(amarillo,high); //It turns on the yellow led delay(3000); //wait 3 seconds digitalwrite(amarillo,low); //It turns off the yellow led delay(250); //wait 0.25 seconds digitalwrite(rojo,high); //It turns the red led delay(15000); //wait 15 seconds digitalwrite(rojo,low); //It turns off the red led delay(250); //wait 0.25 seconds } David Lobo Martínez 6

The set up will be the following: David Lobo Martínez 7

Green light turns on: David Lobo Martínez 8

Yellow light turns on after 15 seconds: David Lobo Martínez 9

Finally, red light turns on after 3 seconds: In this link you can see the simulation: https://www.tinkercad.com/things/ieczgifnygo-programming-a-traffic-light/ David Lobo Martínez 10

7.4 TASK 3 (4 th hour) S4A and Ardublock traffic light (personal activity or in pairs). Code is developed by students. To use S4A, we must first install the S4A firmware on our Arduino board. Finally we will look for images of traffic lights in different colors to be able to use as scratch costumes: S4A screenshot: David Lobo Martínez 11

Blocks: David Lobo Martínez 12

Ardublock code blocks to built a Arduino traffic light: David Lobo Martínez 13

7.5 TASK 4 (5 th hour) Set up Arduino traffic light in a real breadboard (group of 5) by code and connecting Scratch for Arduino. 7.6 TASK 5 (6 th hour) Final individual quiz and debrief in a paper sheet about the contents and objectives of the project. OBJECTIVES Know the operation and use the Arduino controller card. Learn how to use flowcharts when performing programming tasks. Introduce the concept of Arduino. Show basic connections. David Lobo Martínez 14

Know the interfaces of any of the controllers used in the technology workshop. Learn the basics of language for Arduino. Present the block diagram of a computer control system. Review the digital signal concept. Display the basic actions that can be performed with a computer control: driving LEDs. Present a simple computer control system. Show results physically and simulated by the computer. Know different types of software related to Arduino. CONTENTS Types of resistances. Calculation of the required resistance in a circuit. Semiconductors and diodes. Diodes LED. Mount simple electronic circuits. Design electrical and electronic circuits with appropriate software. Arduino, assembly and programming. Arduino simulator online. Programming with S4A. Programming with Ardublock. David Lobo Martínez 15

8. RUBRIC Items Exceeds - 20 Fair-10 Poor- 0 Marks Design 20 The projects are exceptionally atractive The project are acceptably atractive The designs can be clearly improved It works- 30 All traffic light (simulation, S4A, ardublock and Breadboard) work Some of the traffic light doesn't work The traffic light doesn't work at all Question sheet - 20 Most of questions are right answered Some questions are right answered Most of questions are not right answered Individual Work and attitude.- 10. The student works hard with a good attitude The student fulfills the expectations The student does not work well and even disturbs his colleagues. EVALUATION CRITERIA Distinguish the main input and output elements of a control system. Describe the characteristics of a controller, paying special attention to its outputs and inputs, both analog and digital. Use the controller to examine the operation of a system through the computer. Develop simple language control procedures for Arduino. Draw flow diagrams. Develop programs that control the inputs and outputs of a controller. Handle simple electronic circuits from a computer and a controller. David Lobo Martínez 16