Download presentation
Presentation is loading. Please wait.
Published byKathlyn French Modified over 9 years ago
1
ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
2
Cassius Ali - CE Si Chen - CS Zach Bloom - EE Alex Horvath - BME Aditi Shenoy - BME
3
Cassius Ali - CE Si Chen - CS Zach Bloom - EE Alex Horvath - BME Aditi Shenoy - BME
4
Digital Sensors Two states: 0 or 1 o 0 means that the switch is open=nothing o 1 means that the switch is closed=hit Ports 7-15
5
Digital: Bumper Sensor Test Code /* Program to beep if a bumper on port 13 has been hit. */ void main() { while(start_button()==0){ } // Waits for user to press start button. while(stop_button()==0) // Keep program running until press stop button { printf(“Switch on port 13 is open!\n”); // Bumper connected to port // 13. If it is hit, sends if (digital(13)= =1) // 1 to handyboard. { printf(“Switch on port 13 has been closed!\n”); beep(); }
6
Analog Sensors Range of states The output ranges on the input Port numbers range The ports used depend on the type of sensor used Connected to ports 2-6, 20-23 Values from 0-255 (bright to dark) Light Sensors
7
Optical Rangefinder Sensors Connected to ports 16-19 Values from 0-255 (far to close) Close= ~4 inches
8
Ultrasonic (Sonar) Sensors Value returned is the distance in mm to the closest object Range is 30-2000 nm If an object is out of the range, the number 32767 is given
9
Analog: Sonar Test Code /% Program that measures the sonar reading at different input values. %/ void main() { int range=0; printf( “ \n Sensor Sample Program"); while(!start_button()); // Press Start Button while(1) // Continue infinitely { sleep(0.5); range = sonar(); printf( “ \nOutput is %d ”, range); }
10
Analog Sensor Characterization: Sonar Sensor Distance (in)Sonar ReadingDistance (in)Sonar Reading 1.5 43 2 54 2.5 66 3 88 3.5 93 4 136 4.5 146 5 157 5.5 175 6 187 6.5 208 7 218 7.5 237 8 213 8.5 241 9 253 9.5 266 10 277 11 302 12 323 13 373 14 395 15 416 16 445 17 467 18 496 19 518 20 538 21 592 22 594
11
Analog Sensor Characterization: Sonar Sensor
12
Challenges: Noise from around the rest of the room Not realizing that holding the sensor at different angles would impact our values Establishing a constant way to measure the distances and hold the arduino/sensor combination
13
Instrumentation Oscilloscope - shows a graphical output - time domain version of waveform/signal Digital Multimeter (DMM) - displays a numerical output - can measure voltage, current, and resistance DC Power Supply - provides a source of voltage or current - can generate voltage from -25V to +25 V
14
Oscilloscopes It plots voltage on the y axis, and time on the x axis. The amplitude of the signal can be found from the vertical distance from the x axis to the peak. A user is able to adjust the appearance of a waveform by using knobs on the oscilloscope.
15
Digital Multimeter (DMM) It can measure voltage, current and resistance It represents a complete signal with a single value. The user can select buttons to measure voltage, resistance, and current. Three terminals - red (voltage, resistance, small currents), white (large currents), black (common terminal) Banana to mini grabber cables can be used to connect to the DMM
16
DC Power Supply I n the lab, the power supply was used to generate voltage To turn on the output, the “Output On/Off” button is pressed, and the “+6” button is pressed to enter the amount of voltage the user wants. ( in the lab 3V was used) Once the voltage is entered, the “Output On/Off” button is pressed to turn the output off while a circuit can be connected to the Power Supply The banana end of a cable is plugged into the red +6V terminal, and the banana end of another cable is plugged into the -6V terminal. The mini grabbers are attached to the circuit, and the “Output On/Off” button is pressed to turn the output on.
17
Circuits Lab SERIES CIRCUIT - Current is the same -Voltage is split.
18
PARALLEL CIRCUIT - Voltage is the same -Current is split among the parts
19
LIGHT EMITTING DIODE (LED) - Draws voltage - Acts as a tollbooth
20
Multisim Lab - Multisim is a virtual circuit design program used to simulate/test AC and DC circuits. - Circuits are displayed on a grid allowing users to freely observe/modify their circuit. - During lab, the group created basic AC and DC circuits and used virtual measuring tools such as multimeters and oscilloscopes to measure the accuracy of the circuit.
21
AM Radio Lab Soldering Real World Application
22
Arduino Lab- Part 1 LED blinking LED color gradient
25
Arduino Lab- Part 2 Light sensor Test Sensor-activated servo rotation
29
What Did We Learn?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.