CTY SAR FCPS Shawn Lupoli, Elliot Tan

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Embedded Sumo 1T4 – 1T5 UTRA.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Secret Door Knock Detector
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Basic Circuits – Lab 2 Arduino and Sensors
Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007.
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Microprocessors Tutorial 1: Arduino Basics
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep.
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
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.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Microcontroller basics Embedded systems for mortals.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Arduino Part 1 Topics: Microcontrollers
Wireless Cue Light Project
Microprocessors Tutorial 1: Arduino Basics
Arduino Programming Part II
Microcontroller basics
UTA010 : Engineering Design – II
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
3.0 ARDUINO WORKSHOP PRESENTATION FOR STUDENTS IN 4º DEGREE OF COMPULSORY SECONDARY EDUCATION 3.0.
Arduino - Introduction
Control the color and brightness of an RGB LED with a Potentiometer
Arduino Uno and sensors
Introduction to Arduino Microcontrollers
How to avoid catching things on fire.
Analog Input through POT
Roller Coaster Design Project
Introduction to Arduinos
Roller Coaster Design Project
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.
IoT Programming the Particle Photon.
Create a paper craft for any object that makes a sound
Secret Door Knock Detector
Arduino : Introduction & Programming
Programming 2: The Arduino IDE & First Sketches
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
Arduino 7 Segment Display Lab
Arduino Leonardo Setup
Lab #1: Getting Started.
Arduino Uno circuit basics
Introduction to Arduinos
CTY SAR FCPS Vedant mathur, Juliana schalkwyk
Interrupts.
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

CTY SAR FCPS Shawn Lupoli, Elliot Tan Arduino Knock Lab CTY SAR FCPS Shawn Lupoli, Elliot Tan

What are we working with?

How to detect a physical Knock? A Piezo element can be used to detect vibration, which is produced by our knock. Piezo is an electronic device which generates a voltage when it is physically deformed by a vibration, sound wave or mechanical strain Can also put a voltage across a piezo  piezo will vibrate and create a tone If the sensors output is stronger than a certain threshold, the Arduino will be knocked

Arduino Knock Schematic

Goal When we “Knock” the piezo element The LED will flash “Knock!” will be printed to the Serial Monitor

Programming “Knock”

Knock: Part 1 Initializing global variables Setup() The LED will be connected to pin 13 The piezo is connected to analog pin 0 (A0) Threshold value = 1 A variable to store the sensor reading A variable to store the last LED status Setup() pinMode(pin, mode) configures the pin to behave either as an input or an output Serial.begin(9600) starts using the Serial Port

Knock: Part 2 Loop() Read the sensor using analogRead() If the sensor reading is greater than the threshold turn on the light update the LED pin using digitalWrite() Send string back to the computer’s Serial Monitor Add in a delay to avoid overloading the serial port buffer

CODE

Building the Knock circuit

Supplies 1 Arduino Leonardo board 1 breadboard 3 short wires (two black, one red) 1 medium wire (red) 2 long wires (two black) 1 LED 1 resistor (1 MΩ) 1 piezo element * Notes: Wires are 22 or 24 AWG, solid Short wires = 5 cm Medium wires = 12 cm Long wires = 16 cm

Diagram of Knock Circuit

Running and reading output Run the program as normal, but open the Serial monitoring window for the Analog port.

Questions?