Write a program that will automatically control the brightness of a light based on the surrounding light level. Automatic Night Light.

Slides:



Advertisements
Similar presentations
ConcepTest 1 Series Resistors I
Advertisements

Chapter 23 Electric Current.
EE188L EE I Laboratory Lab #2 Resistive Circuits.
What have we learned so far?  When we apply a voltage, the capacitor will charge up to the applied voltage.  The capacitor charges up exponentially.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Using the Board of Education Breadboard and Your Multimeter ENGR 120 Work in teams of two!
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
“Power Supply” Controls Voltage Difference in Voltage is set Output Current is “as requested” by attached device.
TIJ1O1 ELECTRONIC COMPONENTS AND CIRCUITS 1. Recap: What is an electric current? An electric current is a flow of microscopic particles called electrons.
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
George Washington University DC Circuits Lab Professor Ahmadi ECE 002.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Week 9: Design a Night Light
Purpose Learn how to use basic electronic equipment:
You will need the following parts from your kit: 1.Breadboard ohm resistor (brown, black, brown, gold) 3.1 LED (light emitting diode) 4.1 Potentiometer.
Basic Circuits – Lab 1 Xmedia Spring Basically Power –Provides energy for the sensor and the output Sensor –Changes aspects of the circuit based.
Electronics Chapter 53 What is Electronics? Electronics is the careful and exact control of very small electric currents. It is used in many small devices.
Week 7: Design a Night Light New Experiment It is not in the lab manual.
TA: Chris Reilly Group 5: Benjamin, Ramie, Zachary, Dinal.
LIGHT EMITTING DIODES A brief analysis. What is an LED? A light emitting diode (LED) is essentially a PN junction opto- semiconductor that emits a monochromatic.
Direct Current (DC) and Alternating Current (AC). Series Circuits and Parallel Circuits.
George Washington University DC Circuits Lab ECE 002 Professor Ahmadi.
Measuring the Current and Voltage of a 820 Ω Resistor Setting for Multimeter = 200 mA DC Measure Voltage in 2 V increments up to 20 V.
Transistor Circuit Templates This presentation is partially animated. Only use the control panel at the bottom of screen to review what you have seen.
Potentiometer Foundations of Technology Potentiometer © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching.
The 3 parts of an electronic system are :
Semiconductors, ICs and Digital Fundamentals. The Diode The semiconductor phenomena. Diode performance with ac and dc currents. Diode types: –General.
Physics 2225: Working With Electronic Equipment Purpose  Learn how to use basic electronic equipment: Digital multi meter Oscilloscope Function generator.
This presentation is partially animated. Only use the control panel at the bottom of screen to review what you have seen. When using your mouse, make sure.
Two basic types Ceramic disk Electrolytic Has positive and negative sides Farads – unit of measure (F) Microfarads(uF) and picofarads (pF) Cans have value.
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
Analog to Digital Converter David Wallace English 314.
CH Model of a real battery A real battery can be modeled as an ideal battery (i.e. voltage source) and an internal resistance r. The voltage across.
Concepts of Engineering and Technology Basic Electricity and Electronics: DC Circuits Copyright © Texas Education Agency, All rights reserved. 1.
Detection Circuit ENGR Pre Lab.
Unit 13 Electric Circuits
Lab 2 page 1 ENT-DIGI-210 Lab 2 Notes ©Paul Godin Updated September 2007.
Data Acquisition Device (DAQ) A DAQ is a cool little device that allows you to interface hardware to a computer. Here is what we will do:  Create a square.
18240 Element two - Components INPUTS OUTPUTS PURPOSE TYPICAL USE.
Resistors Foundations of Technology Resistors © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™
ELECTRONICS – Input Transducers Engineering Science – National 5.
PHYSICS – Electric circuits
Praxis I 13 Oct Outline Component & Device Measurement and Instrument Datasheet How to build circuit using breadboard.
1 LIGHT EMITTING DIODES Presentation By Ghanshyam Patel ( )
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
DC Circuits.
AUTOMATIC STREET LIGHT CONTROL USING LDR
ELECTRONICS Learning Objective To know how the thermisistor works
Simple LED circuit.
Unit 3 – Fundamentals of Electronics Examination Specifications
Unit 3 – Fundamentals of Electronics Examination Specifications
The Automatic Weather Station (AWS)
Electronics.
Electronics – Learning Outcomes
Circuit Introduction Section 1:
Potentiometer or Potential divider
Saving Lighting Energy with the BBC micro:bit
Components and Schematics
Saving Lighting Energy with the BBC micro:bit
NI Data Acquisition (DAQ) Wiring and Connections
Series And Circuits.
Electronics Objectives
Prepared by: Engr. Qurban Ali Memon Incharge of Final project Lab.
Lecture No# 8 Prepared by: Engr. Qurban Ali Memon
Describe the action of thermistors and light- dependent resistors and show understanding of their use as input transducers Thermistor A transducer is an.
Bell Work: Series vs. Parallel
Example Example 1: An electric lamp is rated 110 W, 200 V. When the lamp is operated at its rated power and voltage, calculate a) the current flowing through.
2019 Investing Now Summer Program
Presentation transcript:

Write a program that will automatically control the brightness of a light based on the surrounding light level. Automatic Night Light

Diodes are “one-way” devices that only allow current to flow in one direction. An LED is a diode that emits light when sufficient current is flowing through it. Diodes are used in many, many applications such as: LED flashlights and light bulbs provide very bright light and use significantly less power than incandescent bulbs, last much longer than incandescent bulbs, and stay cool. Diodes are used in circuits to convert AC power to DC power (laptop chargers, phone chargers, appliances that run on dc …) LEDs are used in displays, signs, and traffic signals. DIODES

When the positive side of a voltage source is applied to the anode (+) side of an LED, current will flow through the circuit and the LED will light up. Light Emitting Diode (LED) Anode (+) Cathode (-) When the positive side of a voltage source is applied to the cathode (-) side of an LED, current will not flow through the circuit and the LED will not light up. Current Flows No Current Flows

Analog Discovery DAQ Analog OUT Channel: The yellow wire labeled W1 and black ground wire labeled form an Analog OUT channel. OUT means out of the DAQ and applied to the circuit. This output channel will be used to apply a voltage between 0 and 5V across the LED and 1 kΩ resistor.

Analog Discovery DAQ Sample MATLAB Commands to Digilent: DAQ.outputSingleScan(5) % Provides 5V across LED/Resistor DAQ.outputSingleScan(2.5) % Provides 2.5V across LED/Resistor

Photocells are sensors that detect the surrounding light level. The resistance of the photocell decreases as the surrounding light level increases. The photocells we will be using have a resistance of about 1 kΩ in bright light and a resistance of about 10 kΩ when it is completely dark. Photocells

PHOTOCELLS + VRVR _

Analog Discovery DAQ Analog IN Channels: The two orange wires labeled 1+ and 1- form an Analog IN channel. IN means into the DAQ from hardware. This input channel is our replacement for the multi meter. The orange wires will be placed across the 10 kΩ resistor to measure the voltage. A smaller voltage reading for V R means it is darker around the photocell so we should make the LED brighter.

Analog Discovery DAQ MATLAB Command to Read Voltage: VoltageLevel = DAQ.inputSingleScan % Reads Voltage

Analog Discovery DAQ To apply a constant 5V supply across the photocell and 10 kΩ resistor, we will use the Red wire (V+) and the Black wire (GND) MATLAB Command to turn on Power Supply: DAQ.setPowerSupply('positive','on');

Complete Circuit W1 V LED Photocell 10kΩ resistor 1kΩ resistor How the system works: As the light level decreases, the voltage measured between the photocell and the 10kΩ resistor decreases Your program will take the measured voltage and determine an appropriate voltage level to send to the LED The voltage output to the LED will cause it to illuminate at different levels Measured voltage Output voltage

Circuit Pay close attention to the color code on the resistors. The 1 kΩ (Brown-Black-Red) should be connected in series with the LED. The 10 kΩ (Brown-Black-Orange) should be connected in series with the photocell.

 The USB cable should fit very easily into the Digilent DAQ.  If it doesn’t fit easily, you may have it upside down.  Under no circumstances should you attempt to force it – ask a T.A. for assistance if needed!