29
ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Embed Size (px)

Citation preview

Page 1: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

ECE 1020 FINAL PRESENTATION

TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Page 2: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Cassius Ali - CE

Si Chen - CS

Zach Bloom - EEAlex Horvath - BME

Aditi Shenoy - BME

Page 3: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Cassius Ali - CESi Chen - CS

Zach Bloom - EE Alex Horvath - BMEAditi Shenoy - BME

Page 4: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Digital Sensors

•Two states: 0 or 1o 0 means that the switch is open=nothingo 1 means that the switch is closed=hit

•Ports 7-15

Page 5: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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(); } }}

Page 6: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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

Page 7: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Optical Rangefinder Sensors

•Connected to ports 16-19

•Values from 0-255 (far to close)

•Close= ~4 inches

Page 8: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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

Page 9: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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); } }

Page 10: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Analog Sensor Characterization: Sonar Sensor

Distance (in) Sonar Reading Distance (in) Sonar Reading

1.5 432 542.5 663 883.5 934 1364.5 1465 1575.5 1756 1876.5 2087 2187.5 2378 2138.5 241

9 2539.5 266 10

27711 30212 32313 37314 39515 41616 44517 46718 49619 51820 53821 59222 594

Page 11: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Analog Sensor Characterization: Sonar Sensor

Page 12: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Analog Sensor Characterization: Sonar Sensor

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

Page 13: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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

Page 14: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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.

Page 15: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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

Page 16: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

DC Power Supply

• In 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.

Page 17: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Circuits Lab

SERIES CIRCUIT

- Current is the same

-Voltage is split.

Page 18: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

PARALLEL CIRCUIT

- Voltage is the same

-Current is split among the parts

Page 19: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

LIGHT EMITTING DIODE (LED)

- Draws voltage

- Acts as a tollbooth

Page 20: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

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.

Page 21: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

AM Radio Lab

•Soldering •Real World Application

Page 22: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Arduino Lab- Part 1

• LED blinking

• LED color gradient

Page 23: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
Page 24: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
Page 25: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

Arduino Lab- Part 2• Light sensor Test

• Sensor-activated servo rotation

Page 26: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
Page 27: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
Page 28: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti
Page 29: ECE 1020 FINAL PRESENTATION TA: Allen Guan and Sibel Ahmed Shehzad Mufti

What Did We Learn?