Electrical engineering lab report

Anonymous

Question Description

hello

I need a lab report

I will give you my friend report , the lab and the lab format

the data will be the same , just the picturse

Unformatted Attachment Preview

MORGAN STATE UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING EEGR 390 PRINCIPLES OF DESIGN FALL 2018 LIGHT CONTROL USING AN OCCUPANCY SENSOR OBJECTIVE: To control lighting based on room occupancy. MATERIALS USED: • • • • • • Arduino LED PIR sensor Light sensor (LDR) 10 kΩ resistor Bread board SOFTWARE: Arduino IDE WORKING PROCEDURE: The circuit was assembled as follows: Arduino and LDR • • • Give VCC to one leg of LDR Connect the other leg of LDR to Arduino A4 pin and 10 kΩ resistor GND the other leg of resistor Arduino, PIR Sensor and LED PIR has 3 pins: VCC, GND, OUT. Power the PIR sensor with Arduino’s 5V, and connect its GN D to the GND of Arduino. Connect the OUT pin of the PIR sensor to the 8th digital pin of Arduin o and connect an LED there to observe the output. After the circuit is assembled, upload the sketch to the Arduino UNO. ARDUINO SKETCH Following is the sketch: #define LED 8 #define PIR 13 void setup() // define the pin for LED // define the input pin for PIR sensor { Serial.begin(9600); pinMode(LED, OUTPUT); // declare LED as output pinMode(PIR,INPUT); // declare sensor as input void loop() { int value_ldr = analogRead(A4); // read LDR value int value_pir = digitalRead(PIR); // read input value Serial.println(value_ldr); Serial.println(value_pir); if((300>value_ldr) && ( value_pir==HIGH) ){ digitalWrite(LED,1); // Turn ON the light delay(6000); } elseif((300value_ldr) && ( value_pir==LOW) ){ digitalWrite(LED,0); // Turn OFF the light delay(6000); } else { digitalWrite(LED,0); // Turn OFF the light } } Results: Figure 1 Figure 1 shows that there is ambient light in room but no presence of the person near PIR sensor, so the LED is off. Figure 2 Figure 2 shows that the LDR is covered in order to indicate dark room, but no movement near PIR sensor, so LED is off. Figure 3 Figure 3 shows that as the motion is detected near PIR sensor, the LED glows. Figure 4 Figure 4 shows that although there is motion near PIR sensor, but the ambient light is there in room, the LED will stay off. Figure 5 Figure 5 shows that there is no light in the room and no movement near PIR sensor, so LED is off. Figure 6 Figure 6 shows that there is no ambient light in the room. But motion is detected by the PIR sensor, the LED glows. Conclusion: The light was controlled using the occupancy sensor i.e. PIR motion sensor. All the conditions were incorporated in the design. Morgan State University School of Engineering Department of Electrical and Computer Engineering EEGR 390: Principles of Design Mrs. LaDawn Partlow FALL 2017 Final Project: (Occupancy Sensor.) Project Partners: 1- Mohammed Madkhali 2- Faris Alqahtani Date Submitted: 12/01/2017 Table of Contents Introduction: .......................................................................................................... 3 Theory: .................................................................................................................. 3 Equipment: ............................................................................................................ 5 Schematic: ............................................................................................................ 6 Procedure: ............................................................................................................ 6 Results: ................................................................................................................. 7 Discussion and Conclusion: .................................................................................. 9 Reference: .......................................................................................................... 11 Appendix: ............................................................................................................ 12 Introduction: The occupancy sensor project has an interesting and fascinating feature and that is for the motion sensing systems. The project is to detect the motion in a room by using PIT motion sensor. Arduino Uno is used to program the PIR to sense the objects by different approaches. Theory: 1- Arduino Uno: Arduino is an open-source electronics platform dependent on simple to-use equipment and programming. Arduino circuit can peruse inputs-light on a sensor, a finger on a button, or a Twitter message-and transform it into a yield actuating an engine, turning on lights, distributing something on the web. The board has 14 input/yield pins. 6 pins can be utilized as Pulse width modulation. Likewise, there are 6 different contributions with USB output. Fundamentally, you simply interface the USB link from the Arduino Uno to the PC to transfer your code to it. 3- PIR Motion Sensor: The PIR Movement sensor enables you to detect movement, and it is utilized to recognize any question. Besides, if a human has moved in or out of the sensor range, the sensor will specifically detect the development. It is slight, minimal cost, low power, and simple to utilize. The reason why it is normally found in applications and devices used in homes or businesses is because it is often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR motion" sensors. It has 3 pins, which are GND (Ground), OUT (Output), and VCC (Voltage). 3- Light Sensor: This little light-sensor is a part utilized for some plans, which gives reliable and repeatable readings even between various units, which can shift significantly in their affect-ability. It has 3 pins, which are GND (Ground), OUT (Output), and VCC (Voltage). Equipment: • Breadboard. • Light Sensor 593438. • Arduino Uno App. • 330 Ω Resistor. • Bunch of Wires for Connection. • Laptop. • PIR Motion Sensor. • 2V-LED Red. • Arduino Uno. Schematic: Procedure: 1- Placing Arduino into the Breadboard. First, a wire goes from the Vin pin in the Arduino goes to the (+) in the Breadboard. This will be powering the whole circuit. Second, a wire from the GND pin in the Arduino goes to the (-) in the Breadboard, this will ground the whole circuit. 2- After that, the connection from the PIR Sensor will be in the following steps: First, the VCC pin from the PIR will go to the (+) in the Breadboard. Second, the GND pin from the PIR will go to the (-) in the Breadboard. Third, the OUT pin from the PIR will go to pin 2 in the Arduino. 3- The Light Sensor connection will be in the following steps: First, the VCC pin from the Light Sensor goes to the (+) in the Breadboard. Second, the OUT pin from the Light Sensor goes to pin 5 in the Arduino. Third, the GND pin from the Light Sensor goes to the (-) in the Breadboard. 4- LED Connection: The red LED has two legs; the shorter leg goes to the (-) in the Breadboard. The longer leg in the LED connects to 330 Ω Resistor. Then, a wire from the other side of the resistor goes to pin 13 in the Arduino. 5- Finally, we use the Arduino App that we downloaded in the laptop to program the Arduino based on the following conditions: If the room is occupied and the ambient light is high, then the LED stays OFF. If the room is occupied and the ambient light is low, then the LED switches ON. If the room is not occupied, and there is ambient light, then the LED stays OFF. If the lights are on, then the ambient lighting is ignored and condition 1 is applied. Results: Figure (1) • Case 1: In this case as you see in Figure (1) there is no ambient Light and no motion detected. The Serial- Monitor “No Motion detected”, the LED is OFF. Figure (2) Figure (3) • Case 2: In this case there is ambient light as shown in Figure (2), and it says in Figure (3) “Motion detected, Light is OFF”, which means the LED stays OFF. Figure (4) • Case 3: Figure (4) shows the ambient light is LOW and there is motion detected. The Serial-Monitor shows “Motion Detected Light is ON”. This means the LED is ON. Case 4: in this condition is basically the same as Case 1. Discussion and Conclusion: The Occupancy Sensor Design is one of the best structures regarding normal life utilization and research lab usage. The key of this venture is established in clarifying how you can program the Arduino in any circumstance you want. Composing the code is an incredible aptitude you can add your knowledge. It is connected to and is vital to the Electrical and Computer Engineering field. Besides, PIR Motion Sensors, Ultrasonics, and the Arduino are parts utilized in security frameworks. For instance, in the event that you have a store in a risky territory, you can utilize a redesigned form of this plan to work and set-up the framework in your store for security. It can work in a wide range of strategies. You can set up the framework so it is activated once you close the store promptly. Taking everything into account, the venture was a good experience. We picked up so much data, for instance, we understood how to type the code and control the framework to transform it any way we need. Reference: 1. https://www.arduino.cc/en/Guide/Introduction. 2. https://learn.adafruit.com/assets/503 3. https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor?view=all Appendix: int ledPin = 13; // Defining for LED int inputPin = 2; // Defining PIR sensor int pirState = LOW; int val = 0; int LightSensor = 5; // Defining Light Sensor int valLight = 0; void setup() { pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); pinMode(LightSensor, INPUT); Serial.begin(9600); } void loop() { val = digitalRead(inputPin); valLight = digitalRead(LightSensor); digitalWrite(ledPin, LOW); if ((val == LOW) && (valLight == LOW)) { Serial.println("No Motion detected"); delay(850); } else if ((val == HIGH) && (valLight == HIGH)) { digitalWrite(ledPin, LOW); Serial.println("Motion detected, Light is OFF"); delay(1000); } else if ((val == HIGH) && (valLight == LOW)) { digitalWrite(ledPin, HIGH); // turn LED on Serial.println("Motion detected, Light is ON"); delay(1000); } else if ((val == LOW) && (valLight == LOW)) { digitalWrite(ledPin, LOW); // turn LED OFF Serial.println("Motion ended") ; delay(1000); } } MORGAN STATE UNIVERSITY DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING EEGR 390 PRINCIPLES OF DESIGN 2 CREDITS LAB FORMAT Cover page: The cover page should include the following information: University Name Department Name Course Number and Name Instructor’s Name Lab Title & Number Student(s) Name(s) & Signatures Lab Date Objective: What is the purpose of the lab? What are your expected outcomes? This information is usually mentioned in the lab instructions (but do not copy verbatim). Theory: Includes the theory and principles associated with all devices that are used in the lab. Please provide equations and derivations that will be used to perform specific calculations in this section of the report. Equipment/Material: List all equipment used, including both hardware and software. Please be specific about the quantity, version and model numbers that were utilized. Schematics: Include copies of all schematic, block and pin diagrams used for the lab. Procedure (do not copy from the lab instructions): • • Give a detailed description of steps performed BY YOU to complete the lab. Be descriptive enough so that someone else can reproduce your work by following a sequence of steps; however do not write a user’s manual. Results: The results should include the following: • • • All data graphs, which should be properly sized and labeled. All data tables, which should be properly sized and labeled. All calculations necessary to complete the lab. Discussion/Analysis/Conclusion: • • • • • This is your opportunity to show that you understood the theory involved in the lab. Give your perspective of the lab. Define key terms, relate your results and experience to the objective of the lab. What obstacles/problems did you encounter and how did you overcome/solve them? What did you learn if anything? Provide responses to all answers given in the lab instructions. Overall Format: • • • DO NOT include more than two types of fonts. DO NOT include handwritten work. All work must be typed (including formulas and equations). DO NOT include schematics obtained from the internet. All schematics must be modeled in Multisim, PSpice, or equivalent software package. ...
Purchase answer to see full attachment

Tutor Answer

TeacherMellwanner
School: Carnegie Mellon University

here is the assignment

Running head: LAB REPORT

1

Morgan State University
Department of Electrical and Computer Engineering
EEGR 390 Principles of Design
Instructor’s Name
Number Student(s) Name(s) Signatures
Lab Date

LAB REPORT

2
Lab Report

Introduction
The motion sensing systems use the features of occupancy sensor p...

flag Report DMCA
Review

Anonymous
Top quality work from this guy! I'll be back!

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors