You are on page 1of 12

STONY POINT HS -- ROUND ROCK ISD

PLTW - PRINCIPLES OF ENGINEERING

Soccer Goal Light


Project 3.1.7.2 VEX and RobotC
Gabe Abney, Lydia Tran, Katie Abear
3-12-15

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

DESIGN BRIEF
Client Company:

SPHS

Target
Consumer:

Futbol players

Problem
Statement:

To make it easier for the coach to tell


whether or not the soccer ball went into
the goal

Design
Statement:

The design statement is to create a


soccer goal that flashes when a ball
enters the goal, but not the goalie

Constraints:

The constraints of our project were; size,


money, and to make it only made from
metal vex parts

PICTURES OF FINAL SOLUTION

Front View
Top View
Right Side View

Isometric View

ROBOTC CODE FOR FINAL SOLUTION


#pragma config(Sensor, in1,
linefollower,
sensorLineFollower)
#pragma config(Sensor, in2,
linefollower,
sensorLineFollower)
#pragma config(Sensor, dgtl1, greenred,
sensorLEDtoVCC)
#pragma config(Sensor, dgtl2, yellow,
sensorLEDtoVCC)
//*!!Code automatically generated by 'ROBOTC' configuration wizard

!!*//

task main()
{
while(1==1) //the condition is true
if(SensorValue(in1)<2850) //when um um line follower is less than eh 2850
{
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second

turnLEDOn(dgtl1); //turn both green & red LEDs on


wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
}
if(SensorValue(in2)<2850)
{
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
wait(1); //wait a second
turnLEDOn(dgtl1); //turn both green & red LEDs on
wait(1); //wait a second
turnLEDOff(dgtl1); //turn both green & red LEDs off
}
else
{
turnLEDOff(dgtl1); //turn both green & red LEDs off
}
}

APPENDIX

Brainstorming Ideas
Ball
ping pong ball
golf ball
foosball
marble
wad of paper
Goalie
half a pencil
Lego goalie
Cardboard (Cutout)
Taco
chess pieces
checker
Paper cutout
action figure: GI Joe
board game character (Monopoly)
Sensors
line follower
light sensor
ultrasonic
Physical shape
trapezoid
rectangle
trapezoid
Decision Matrix

Pseudo Code

//the condition is true


//when line follower is
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//wait a second
//turn both green & red
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn
//wait
//turn

both green
a second
both green
a second
both green
a second
both green
a second
both green
a second
both green
a second
both green
a second
both green
a second
both green
a second
both green

less than 2850


LEDs on
LEDs off
LEDs on
LEDs off
LEDs on
LEDs off
LEDs on
LEDs off
LEDs on
LEDs off

& red LEDs on


& red LEDs off
& red LEDs on
& red LEDs off
& red LEDs on
& red LEDs off
& red LEDs on
& red LEDs off
& red LEDs on
& red LEDs off

//turn both green & red LEDs off

Materials
Quantitiy

Description

"Price"

Total Cost

Metal Parts

4
3

Vex Base Plates

$15.00

$0.00

12" Long Linear Slide Track

$7.48

$0.00

17.5" Long Linear Slide Track

$9.48

$0.00

Chassis - Bumper

$5.83

$0.00

Chassis - Rails

$4.13

$0.00

Plate 5x5 holes

$1.50

$5.98

Plate 15x5 holes

$2.50

$0.00

Plate 5x25 holes

$3.75

$11.24

Bar 1x25 holes

$1.62

$0.00

Angles

$4.50

$0.00

C-Channel

$4.50

$0.00

Gussets - any type

$0.99

$1.98

Line Tracker

$13.33

$26.66

Bumper Switch

$6.50

$0.00

Limit Switch

$6.50

$0.00

Flashlight

$12.99

$0.00

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

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

Input/Output/Motor
s
2

Motion Parts

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

Misc. Fasteners
x

Spacers

Washers

Nuts

Rivets

Standoff

Screws

Bearings and lock bars

Shaft Collars

TOTAL
COST OF
PROJECT

$45.87

You might also like