Presentation is loading. Please wait.

Presentation is loading. Please wait.

(from left to right) ASHLEY FRIEND, SUBHASIS GHOSH, EMMANUELLE DORVIL, DHRUV GAUR.

Similar presentations


Presentation on theme: "(from left to right) ASHLEY FRIEND, SUBHASIS GHOSH, EMMANUELLE DORVIL, DHRUV GAUR."— Presentation transcript:

1 (from left to right) ASHLEY FRIEND, SUBHASIS GHOSH, EMMANUELLE DORVIL, DHRUV GAUR

2 GROUP WORK 2009 GROUP WORK 2009 Equal contribution and enthusiasm makes our presentation a success. Dhruv and Subhasis in charge of presentation, Ashley and Emmanuella in charge of report writing. This presentation will demonstrate the work done in the ECE 002 class. Sensor CharacterizationRobot in a Maze, ElevatorOscilloscope, Circuits, PSPICEMATLAB

3 Sensor Characterization Purpose: To understand the way a variety of sensors can be used and to test values that will come from using these sensors Top Hat Sensor Analog sensors

4 Results Trial100 908070605040302010 12202162111621158010987 21941921851621185311988 31881931821521134311988 100908070605040302010 Average 2012001931591155911988 0 cm5 cm10 cm 15 cm 20 cm 25 cm 30 cm 35 cm 40 cm 45 cm Average 1856189200236242245247250

5 ROBOT IN A MAZE Purpose: To create a robot that would successfully navigate a maze Handyboard Bumper Sensor, Sonar Sensor, and Two Analog Light Sensors

6 ROBOT...(contd..) Methods: We tested the sensors for their ranges Created the robot from legos Made corrections to structure or code as necessary Conclusion: Allowed us to understand the relationship between coding and sensors Challenges: Analog sensor troubles Keeping the robot in one piece Incorrect turns Misaligned gears void main() { int i=1; //defines the beginning of the count while(start_button()==0); while(i<4) //will repeat the while loop until the count is equal to four { motor(0,20); motor(3,20); if(digital(13)==1) //if the bumper sensor is hit { motor(0,-15); motor(3,-15); sleep(1.0); ao(); //sleep(1.5); printf("\n%d",sonar()); if(sonar()<360) //senses whether or not there is a wall on its side, if there is a wall there { motor(0,50); motor(3,-20); sleep(1.3); i++; } else //if there is no wall next to the robot { motor(0,-20); motor(3,50); sleep(1.3); i++; } while(analog(4)<200) //senses whether or not the robot is at the finish line { motor(0,20); motor(3,20); } ao(); } }

7 ELEVATOR Purpose: To create an elevator from legos that will go up and down Handyboard Analog sensors

8 ELEVATOR...(contd..) CODE: void main() { while(1) { if(start_button()==1) { If(analog(2)>200) { ao(); } else { motor(0,20); motor(3,20); sleep(2.0); motor(1,5); motor(3,5); } if(stop_button()==1) { if(analog(3)>200) { ao(); } else { motor(0,-20); motor(3,-20); sleep(2.0); motor(0,-5); motor(3,-5); }

9 INSTRUMENTATION OBJECTIVE 1. Understanding Oscilloscopes 2. Applying it to the study of waves 3. Applying to understand AC and DC signals PROCEDURE 1. Set the channel and trigger mode 2. Attach the BNC cable and the mini 3. Adjust the time dial and then set up the position dial so as to center the green line on the screen 4. Set the DC voltage using the VOLTS/DIV dial 5. Finally connect the mini grabber strips to the power supply Oscilloscope DC Power Supply

10 RESULTS 5 volts/division 5 microseconds time/div A = [1 2 0; 2 5 -1; 4 10 -1]; B = [20; 35; 45] X = inv(A) * B X = 80 -30 -25 Time = 5 microseconds Voltage =.2 volts/div

11 CIRCUITS PURPOSE 1. Construct variety of circuits 2. Understand the application of Ohm’s Law, breadboard, multi-meter 3. Measure voltage change across the resistors upon using different values of resistance METHOD 1. Connect the resistors onto the breadboard in either series or parallel 2. Attach the mini grabber plugs in order to measure the voltage across 3. Use the 1k ohm resistor in series and parallel and measure the voltage across it using the multi-meter 4. Replace the 1k ohm resistor by a 2 k ohm resistor and measure the voltage across it Breadboard DC power supply Resistors- 1k, 2k ohm Diode Mini-grabber cables

12 RESULTS Ohm’s Law and circuits Lab fairly straight forward Practice improv ed our learning Usage in other ECE classes Multi- meter confusi ng The results helped to confirm the group’s knowledge of Ohm’s Law and circuits.  The lab was fairly straight forward but the equipment was confusing  Connecting the multi-meter to the circuit voltage was confusing  With practice we learned exactly where the multi-meter needed to achieve the desired voltage.  This was an important project as major portion will be discussed further in the ECE program as well as for future jobs in electrical areas.

13 PSPICE PURPOSE 1. To use the PSPICE program on the computer and simulate circuits 2. Calculate voltage and current across the circuit at different points Method 1. Place the resistor, voltage source, grounding source on the page 2. Complete the circuit by connecting all the elements with a connecting wire 3. Check for a red dot on the connecting spots 4. Current and voltage probes were placed on the necessary place to measure voltage/current 5. Run the program in order to produce the graph with results of the circuit 6. Add 3 resistors 100 ohm, 300 ohm, and 200 ohm in series and a voltage source 6 V 7. Find the current through the circuit 8. Replace the circuit by 2 resistors 200 ohm and300 ohm in parallel such that the current through them is 60 mA and 80 mA respectively 9. Find the voltage across each resistor and entire circuit 10. Replace the circuit by a diode whose threshold voltage by 0.7 V, a resistor of 1k ohm, and a source voltage of 1.7 V and then 0.3 V 11. Find the current across the diode and resistor, and voltage drop across the diode 12. Replace the circuit by a diode of threshold voltage 0.7 V, two resistors 1k ohm in parallel, and a resistor 1k ohm in series with the parallel resistors 13. Find the current through the circuit

14 RESULTS PSPICE Fairly simple to use and operate PowerPoi nts were helpful Helped understan d complicat ed circuits Problem on how to use the program  This program was fairly simple to use since the group had already done circuits  Problems that arose were how to use the program and where to place the probes.  PowerPoints were helpful in understanding  Helped the group understand more complicated circuits

15 MATLAB MATLAB was used to solve for functions Varx = input('What is the first number?');Vary = input('What is the second number?');Varz = input('What is the third number?'); Vargroup5= group5(Varx, Vary, Varz) % num2str converts a number to a string. function w=group5(x,y,z) w=(x+y+z)/3; function I=trapz(f,a,b,n)h =(b-a)/n;s = feval(f,a); for i=1:n-1 x(i)=a+i*h; s=s+2 * feval(f,x(i));ends=s+feval(f,b);I=s*h/2; fon=inline('log'); a=exp(1); % Starting point.b=2*a; % Ending point.n=10000; % Number of intervals. tic % Start counter.OutValue1=trapz(fon, a, b, n) % Calling Trapezoidal function.toc tic % Start counter.OutValue2=FastTrap(fon, a, b, n) % Calling Trapezoidal function. Toc fon=inline('log'); a=exp(1); % Starting point.b=2*a; % Ending point.n=10000; % Number of intervals. tic % Start counter.OutValue1=trapz(fon, a, b, n) % Calling Trapezoidal function.toc tic % Start counter.OutValue2=FastTrap(fon, a, b, n) % Calling Trapezoidal function. Toc   function I=FastTrap(f, a, b, n) % Same as the previous Trapezoidal function example, but using more% efficient MATLAB vectorized operations. h=(b-a)/n; % Increment values=feval(f, a); % Starting value in=1:n-1; xpoints=a+in*h; % Defining the x- pointsypoints=feval(vectorize(f),xpoints); % Get corresponding y- pointssig=2*sum(ypoints); % Summing up values in ypoints, and mult. by 2s=s+sig+feval(f,b); % Evaluating last termI=s*h/2;  function I=trapz(f,a,b,n)h =(b-a)/n;s = feval(f,a); for i=1:n-1 x(i)=a+i*h; s=s+2 * feval(f,x(i));ends=s+feval(f,b);I=s*h/2;

16


Download ppt "(from left to right) ASHLEY FRIEND, SUBHASIS GHOSH, EMMANUELLE DORVIL, DHRUV GAUR."

Similar presentations


Ads by Google