LED LIGHT USING SOUND SENSOR & LIGHT SENSOR

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Calibration of conductivity sensors living with the lab.
Beginning Arduino Session 2 AN INTRODUCTION TO HACKING THE WORLD’S MOST POPULAR MICROCONTROLLER PLATFORM
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
PIR MOTION SENSOR Mohammed Muhid Ahmed S Checked By: Uzair Aakhoon.
Calibration of Conductivity Sensors EAS 199B. living with the lab cal ∙ i ∙ brate [kal-uh-breyt] -verb (used with object), -brat ∙ ed, -brat ∙ ing. 1.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
Making Music with the Arduino Uno Mike Martin King High School, Riverside, CA PLTW State Conference – February 19, 2015
How an NPN Transistor Works
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.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Final Term Project Hi-Tek Smoke Detektor By: Rohan Sharma.
Prepared By: H.D.Shukla. ULN2803 Each of the digital i/o pins on the Arduino can only source or sink 40mA, and pushing the Arduino past these limits may.
ENERGY CONSERVATION IN STREET LIGHTING SYSTEM PRESENTED BY, DINESH KUMAR.G PRASANTH.D RAJESH KANNA.R YOGESH.T Department of EEE Guided By, Mr.K.Rajesh.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Introduction to Arduino Microcontrollers...and how they can be used in Amateur Radio Andrew Rohne, AC8JO October 13, 2011.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
What is Arduino? It's an open source electronics prototyping platform: Open source: resources that can be used, redistributed or rewritten free of charge,
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Having fun with code, using Arduino in a middle school CS classroom
Arduino & its hardware interfacing
UTA010 : Engineering Design – II
calibration of conductivity sensors
European Robotic LABoratory
Sensors with Arduino A Microcontroller.
Arduino.
CU ATLAS Practical electronics MIDI and Arduino
Arduino - Introduction
Arduino Uno and sensors
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Imperative Programming
How to avoid catching things on fire.
Analog Input through POT
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.
What is Arduino? By James Tedder.
FeMaidens Programming
Arduino 101 Credit(s):
Using Photoresistors with an Arduino
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
دانشگاه شهیدرجایی تهران
CS4101 Introduction to Embedded Systems Lab 8: Arduino DAC and PWM
تعهدات مشتری در کنوانسیون بیع بین المللی
Implementing Switches Using Interrupts
Arduino: For Loops.
Chapter 1 Introduction of Arduino
Programming 2: The Arduino IDE & First Sketches
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Uno circuit basics
Introduction to Arduino
Setting up a basic program with Arduino
Introduction to Arduinos
Arduino UMBC IEEE Sekar Kulandaivel
Arduino程式範例.
Presentation transcript:

LED LIGHT USING SOUND SENSOR & LIGHT SENSOR CHIRAZ BOUDHRIOUA

Plan INTRODUCTION REQUIREMENTS AND COST ESTIMATE CONNECTING THE SOUND SENSOR CONNECTING THE LEDS PROGRAMMING THE ARDUINO PROJECT IMPLEMENTATION

Introduction Sound sensors can be used for a variety of things, one of them could be turning lights off and on by clapping. Today however we are going to use hook up the sound sensor and the light sensor to an array of LED lights which will beat with music, clapping or knocking. 1

Almost any Arduino I used the popular Arduino Uno($23.90) REQUIREMENTS AND COST ESTIMATE Almost any Arduino I used the popular Arduino Uno($23.90) Some breadboard cables($4,70 65 pcs) A sound sensor ($6.90) A light sensor ($3.50) At least 1 LED light – I used 11! The more the better! ($3.40 50 pcs) As many LEDs you are using you should have resistors. 333 ohm resistors should do the trick for most LEDs but I used 220 ohm ones. ($0.13 ) => The project cost $42,53 2

CONNECTING THE SOUND SENSOR The sound sensor should look something like this. 3

CONNECTING THE LIGHT SENSOR The light sensor should look something like this. 4

CONNECTING THE LEDS 5

PROGRAMMING THE ARDUINO void setup(){ pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(8,OUTPUT);} void outs(String a){ if(a=="FAIBLE"){ digitalWrite(3,HIGH); digitalWrite(4,LOW); digitalWrite(5,LOW); digitalWrite(6,LOW); } if(a=="MOYENNE"){ digitalWrite(4,HIGH); if(a=="FORTE"){ digitalWrite(5,HIGH); if(a=="TRES_FORTE"){ digitalWrite(6,HIGH); } } String lightlevel(int a){ String s; if(a<70) { s= "Faible"; } if(a>70 && a<200) { s= "Moyenne"; if(a>200) { s= "Forte"; return s; void outl(String a){ if(a=="Faible"){ digitalWrite(7,LOW); digitalWrite(8,LOW); } if(a=="Moyenne"){ digitalWrite(7,HIGH); if(a=="Forte"){ digitalWrite(8,HIGH); void loop(){ String r; int a = analogRead(A1); int b = analogRead(A2); a=(a*1.2);//amplification du son outs(soundlevel(a)); outl(lightlevel(b)); } String soundlevel(int a){ String s; if(a<200) { s= "FAIBLE"; } if(a<350 && a>200) { s= "MOYENNE"; if(a>350 && a<500) { s= "FORTE"; if(a>500) { s= "TRES_FORTE"; return s; } 6

PROJECT IMPLIMENTATION 7

thank you for your attention 8