1 / 17

ECE 1020

This lab focused on sensor characterization, circuits, Arduino programming, and using instrumentation tools like oscilloscopes.

tanaf
Download Presentation

ECE 1020

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECE 1020

  2. Group Members Samantha Starr BME Arduino Arianna Weinshel BME Sensors, Circuits Eden Woldemichael CE AM Radio Taylor Brooke EE Instrumentation, Multism

  3. Sensor Characterization • This lab worked with the Handy Board • Used light sensor scales • And established sensor ranges • Used two different sensors: analog and digital sensors • Digital sensors return either a 0 or 1value • Analog sensors return a range between 0255 • high values from the analog sensor indicate close proximity, roughly four inches • Light sensors that gave a low values indicated bright light and vice versa

  4. Sample Code for the Sonar Sensor • void main( ) • { • int range=0; • printf(“\n Sensor Sample Program”); //handyboard will print Sensor Sample Program • while(!start_button()); //waits until the start button is pressed • while(1) //program will run continuously forever • { • Sleep(0.5); //waits .5 second between each reading of sensor • Range=sonar(); • Printf(“\Output is %d”, range); //handyboard will print output value of sensor • } • } //end of program

  5. Circuits Lab • Focused on Series and Parallel circuits • First we begins with a DC voltage source • Worked with resistors and diodes, which has a voltage drop of .7volts • The ground and voltage source of 0 are placed on the bottom • Equation used to calculate Ohm’s Law V=IR • Series in Parallel: 1/Req=1/R1+1/R2 • Resistors in series: Req=R1+R2 • Use: Bread board, DC power supply, multimeter, & oscilloscope

  6. Multisim Lab • Purpose: test circuits without having to physically build them • placed components on the workspace • Put wires in place, found voltage source and ground source, labeled resistors, diodes, and AC circuits • Began simulation to see if the circuit worked accordingly

  7. Example of Workspace

  8. AM Radio Lab & Soldering • Use: AM radio Kit • Types of Modulation: • -Analog Modulation – AM,FM • -Digital Modulation • Model: AM-780 • AM Broadcast Frequencies: 535kHz – 1605kHz • Assembling the PCB by soldering on resistors, capacitors, semiconductors, etc.

  9. Arduino Lab • With arduino we light LEDs that contained three colors (Red Blue and Green) • Used Ardunio language which is very similar to C programming language • To power an LED, we need an analog voltage (in this case, approximately >2.5 V) • Arduino has PWM built in for voltages between 0V and 5V • 5V = a PWM value of 255 • 0V = a PWM value of 0 • You can use any value between 0 and 255 for PWM on an Arduino

  10. Arduino Lab

  11. intREDPin = 3; intGREENPin = 5; IntBLUEPin = 6; int brightness = 0; int increment = 5 void setup() { pinMode(REDPin, OUTPUT); pinMode(GREENPin, OUTPUT); pinMode(BLUEPin, OUTPUT);} void loop() { brightness = brightness + increment; if (brightness <= 0 || brightness >= 255 { increment = -increment;} brightness = constrain(brightness, 0, 255); analogWrite(REDPin, brightness); analogWrite(GREENPin, brightness);

  12. Instrumentation • Oscilloscope: The purpose of an oscilloscope is to measure a voltage that changes with time and show it in a graphical format • Used these when working on circuits • Could discover the frequency amplitude and peak-to-peak voltage from the output • Also used DC Power Supply and Function Generator • Function Generator: produces waves of different shapes, amplitudes and frequencies. • DCpower:produces constant voltage or current signals. • This DC Power supply is capable of generating voltages from -25V to 25V.

  13. Oscilloscope

  14. DC Power Supply

  15. Conclusion • Circuits • Soldering • Sensors/motors • Arduino

More Related