ECE 002 Robots and Sensors - PowerPoint PPT Presentation

About This Presentation
Title:

ECE 002 Robots and Sensors

Description:

ECE 002 Robots and Sensors Group 14 Objectives Research sensors and their usefulness to analyze data Design more advanced robot from last semester Gain a better ... – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 12
Provided by: s811
Category:
Tags: ece | curve | forward | robots | sensors

less

Transcript and Presenter's Notes

Title: ECE 002 Robots and Sensors


1
ECE 002Robots and Sensors
  • Group 14

2
Objectives
  • Research sensors and their usefulness to analyze
    data
  • Design more advanced robot from last semester
  • Gain a better understanding of MATLAB and
    functions

3
Parts List
Light Sensors X2
The Handyboard
Motors X2
Legos!
4
The Code
  • void main()
  • int flag0
  • while(!start_button()) // Wait until start
    button is pressed
  • while(flag0) // Continue infinitely
  • if((analog(2)lt240) analog(4)lt240) //
    If both sensors read less than 240
  • motor(1,100) // Motor 1 forward at
    100
  • motor(3,100) // Motor 3 forward at 100
  • flag0 // Flag still equals 0
  • else if ((analog(2)gt240)
    (analog(4)gt240)) // If both sensors are gt 240
  • ao() // Turn off both motors
  • flag1 // Flag equals 1, exiting while loop
  • else if ((analog(2)gt240)
    (analog(4)lt240)) / If sensor 2 is greater than
  • 240 and sensor 4 is less than

5
Sensor and Program Outline
  • Light sensors differentiated between light and
    dark
  • Handyboard analyzed data and made decision
    whether or not to turn
  • Followed S-curve to end finish
  • At finish, both light sensors were on dark line,
    robot turned off

6
Design Process
  • Program and design team
  • No prototype robot
  • Small test programs to test threshold and motor
    speed
  • Full program came from test programs

7
Sensors
  • Sensors tested for best one
  • Light sensor was better at differentiating light
    and dark
  • Made it easy to set threshold and let robot know
    when to turn

8
(No Transcript)
9
MATLAB
  • Learned how to incorporate functions into
    programs
  • Used trapez and trapez_fast
  • Trapez_fast was faster because it used vector
    operations in MATLAB
  • Functions used to find and plot data points for
    integral of sin(x)

10
MATLAB Graphs
  • Sin(x)- blue
  • Integral sin(x)- red
  • Shows how functions can be used and then graphed
    in MATLAB

11
Conclusions
  • Sensors can be used to collect data but some are
    better at different functions
  • The robot helped reinforce our programming,
    building, and teamwork skills
  • MATLAB is a great tool to use to analyze data
    quickly
Write a Comment
User Comments (0)
About PowerShow.com