170 likes | 179 Views
This lab focused on sensor characterization, circuits, Arduino programming, and using instrumentation tools like oscilloscopes.
E N D
Group Members Samantha Starr BME Arduino Arianna Weinshel BME Sensors, Circuits Eden Woldemichael CE AM Radio Taylor Brooke EE Instrumentation, Multism
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 0255 • 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
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
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
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
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.
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
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);
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.
Conclusion • Circuits • Soldering • Sensors/motors • Arduino