Sie sind auf Seite 1von 15

STONY POINT HS -- ROUND ROCK ISD

PLTW - PRINCIPLES OF ENGINEERING

Soccer Goal Light


Project 3.1.7.2 VEX and RobotC
Kathryn Cabello, Sabrina Medina, & Liz Aleman
2/19/2015

TABLE OF CONTENTS
Design Brief
Pictures of Final Solution
RobotC Code for Final Solution
Results and Conclusions
Appendix

DESIGN BRIEF
Client Company:

Academy

Target
Consumer:

schools, soccer leagues, & coaches

Problem
Statement:

Coches unsure when the ball goes in the


net.

Design
Statement:

The goal needs to flash a light when the


ball goes through but not the players

Constraints:

The constraints were time, money and


size.

PICTURES OF FINAL SOLUTION

Side

Front

Top

ROBOTC CODE FOR FINAL SOLUTION


task main()
{
curly braces
turnFlashlightOff(port1);
while(1==1)
if (SensorValue(in1)<=2700)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{
turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
if (SensorValue(in2)<=2800)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{
turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
if (SensorValue(in3)<=2800)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{
turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
if (SensorValue(in4)<=2800)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{

//Program begins, insert code within


//Turn Flashlight off
//Reapeat Indefinetly
//If Line Follower sense ball
//start at 0
//Repeat 10x
//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count

//If Line Follower sense ball


//start at 0
//Repeat 10x
//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count

//If Line Follower sense ball


//start at 0
//Repeat 10x
//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count

//If Line Follower sense ball


//start at 0
//Repeat 10x

turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
if (SensorValue(in5)<=2800)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{
turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
if (SensorValue(in6)<=2800)
{
int sensorCount;
sensorCount=0;
while(sensorCount<10)
{
turnFlashlightOn(port1,100);
wait(0.5);
turnFlashlightOff(port1);
wait(0.5);
sensorCount=sensorCount+1;
}
}
else
{
turnFlashlightOff(port1);
}
}

//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count

//If Line Follower sense ball


//start at 0
//Repeat 10x
//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count

//If Line Follower sense ball


//start at 0
//Repeat 10x
//Turn Flashlight On
//For 5 Seconds
//Turn Flashlight Off
//For 5 Seconds
//count
//else
//Turn Flashlight Off

APPENDIX

Materials Spreadsheet - cut and paste here

Quantity

Description

"Price"

Total Cost

Vex Base Plates

$15.00

$15.00

12" Long Linear Slide Track

$7.48

$0.00

17.5" Long Linear Slide Track

$9.48

$0.00

Chassis Bumper

$5.83

$17.50

Rails

$4.13

$0.00

Plate 5x5 holes

$1.50

$0.00

Plate 15x5 holes

$2.50

$0.00

Plate 5x25 holes

$3.75

$0.00

Bar 1x25 holes

$1.62

$0.00

Angles

$4.50

$0.00

C-Channel

$4.50

$0.00

Gussets

$0.99

$0.99

Line Tracker

$13.33

$79.98

Bumper Switch

$6.50

$0.00

Limit Switch

$6.50

$0.00

Flashlight

$12.99

$12.99

Potentiometer

$6.50

$0.00

Optical Shaft Encoder

$10.00

$0.00

Ultrasonic Range Finder

$29.99

$0.00

Light Sensor

$19.99

$0.00

3-Wire Servo

$19.99

$0.00

2-Wire Motor

$14.99

$0.00

Intake Roller

$2.00

$0.00

6-tooth Sprocket

$2.14

$0.00

12-tooth Sprocket

$2.14

$0.00

18-tooth Sprocket

$2.14

$0.00

24-tooth Sprocket

$2.14

$0.00

30-tooth Sprocket

$2.14

$0.00

Metal Parts
1

Input/Output/Motor
s
6

Motion Parts

12-tooth gears

$0.70

$0.00

36-tooth gears

$0.90

$0.00

60-tooth gears

$1.00

$0.00

84-tooth gears

$1.30

$0.00

19-tooth rack gear

$1.25

$0.00

Worm gears

$0.70

$0.00

24-tooth bevel gear

$0.90

$0.00

Worm wheel

$1.00

$0.00

Differential frame

$2.00

$0.00

Delrin Slide Track (pair)

$1.00

$0.00

Claw kit assembly

$19.99

$0.00

Winch and pully Parts

$14.99

$0.00

Conveyor-belt Parts (10 inch)

$5.00

$0.00

Tank Tread Parts

$29.99

$0.00

Chain Links 10 inch

$3.11

$0.00

2.75" Wheel

$2.50

$0.00

4" or 5" Wheel

$5.00

$0.00

Claw kit assembly

$19.99

$0.00

Misc. Fasteners
x

Spacers

Washers

Nuts

Rivets

Standoff

Screws

Bearings and lock bars

Shaft Collars

TOTAL COST OF
PROJECT

Trapezoid
Rectangular
Triangular
Circular
Ball
Sphere
marble
bouncy ball
ping pong ball

Brainstorming documentation

$126.45

car
foosball
Goalie
{Lego Man} !!!!!
Green Military men
tin man
polly pocket
mini foosball goalie
Sensors
light sensor
line follower
range finder
bump switch
LED light
Flashlight

Three potential physical sketches - by hand - scan these from your EN

Decision Matrix to determine final idea -

Criteria
Ideas

Cost

Size

Materials

Ease to
Build
1-10

Ease to
program
1-10

How well
it works
1-10

Liz

$115.63

1 ft tall

5.5

2.5

23

Sabrina

$94.67

1 ft tall

5.6

2.5

20

Kathryn

$57.70

1 ft tall

Rails
Line
Followers
flashlight
angle &
base
Rails
flashlight
gusset &
base
line
follower
limit switch
flashlight
rails &
base
barrings &
gussets

4.5

19.2

score keep 1-10, 1 being good while 10 being bad.


Final physical sketch - scan from your EN
Final program sketch - Pseudo code (by hand or typed)
Any other documentation you have on the process. >

Totals

Das könnte Ihnen auch gefallen