Marble Sorter Project - Microsoft › sessiondocs › ... · 2016-03-20 · Marble Sorter Project...
Transcript of Marble Sorter Project - Microsoft › sessiondocs › ... · 2016-03-20 · Marble Sorter Project...
Marble Sorter Project
Ryan Stewart
Jinsung Jeon
Kenneth Accos
Angela Colmenero
Principles of Engineering
Mckinney High School
02/16/16
Table of Contents Brainstorming Ideas………………………………….2-5
Decision Matrix………………………………………..6
Gantt Chart…………………………………………….7
Initial Sketch…………………………………………...8
Initial Psuedocode…………………………………….9
Parts List……………………………………………….10
Final Design Sketch…………………………………. 11
Final Program………………………………………....12
Final Design……...……………………………………13
Design Modifications………………………………. 14-18
Reflection…………………………………………...... 19
References…………………………………………….20
Page 1
Brainstorming Ideas
Jinsung Jeon
Page 2
Ryan Stewart
Page 3
Kenneth Accos
Page 4
Angela Colmenero
Page 5
Page 6
Gantt Chart
Page 7
Initial Sketch
Page 8
Initial Psuedocode
Program repeats forever motor moves slowly remains moving slowly for half second stops for 2 seconds If light sensor detects wood marble move right and left motor to position 1 If nothing is detected, motors stop If light sensor detects plastic marble move right and left motor to position 2 If nothing is detected, motors stop If light sensor detects glass marble move right and left motor to position 3 If nothing is detected, motors stop
Page 9
Parts List
Magnet x 1 Paper cup x 4 C-Channel 25 hole x3 Base plate x 1 12 Tooth sprocket x 1 393 Motor x 2 18 Tooth sprocket x 2 Tread x 60 Chassis rail 25 hole x 4 2 inch standoffs x 4 light sensor x 1 flat bearings x 2 3 in axel x 2 VEX battery x 1 Battery Strap x 1 Cortex x 1
Page 10
Final Design Sketch
Page 11
Final Program
#pragma config(Sensor, in1, lightsensor,sensorReflection) #pragma config(Sensor, dgtl1, quad, sensorQuadEncoder) #pragma config(Motor, port1, flashlight, tmotorVexFlashlight, openLoop, reversed) #pragma config(Motor, port2, binmotor, tmotorVex393_MC29, openLoop) #pragma config(Motor, port10, marblemotor, tmotorVex393_HBridge, openLoop) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// /* Project Title:Marble sorter Code Team Members:Ryan Stewart Date:3/16/16 */ task main() while(1==1) turnFlashlightOn(flashlight,127);
startMotor(marblemotor,15); wait(.20); stopMotor(marblemotor); wait(2); if (SensorValue[lightsensor]>=250) startMotor(binmotor,40);
untilEncoderCounts(110,quad); stopMotor(binmotor);
startMotor(marblemotor,20); wait(.25); stopMotor(marblemotor); wait(1);
stopMotor(marblemotor); startMotor(binmotor,40); untilEncoderCounts(105,quad); stopMotor(binmotor); wait(1);
Page 12
Final Design
Page 13
Design Modifications
Page 14
Page 15
Page 16
Page 17
Page 18
Reflection The National Recreation Park Association wants a device that sorts
recycled material, and as a prototype we created a machine that sorts marbles.We used this to be an example of what the recycled machine sorter would mimick. As a group we accomplished our objective very successfully because we solved the problem while following all of the constraints. Our final product was able to sort 40 out of 45 marbles, which is the second highest score as of our presentation.
We came up with an initial design, but struggled to follow it since we could not account for some factors. For instance, we had to remove the magnet from our plan since it wasn’t powerful enough to accurately sort the metal balls. We also had to change our design a lot to account for stuff we couldn’t predict when planning, such as needing to add walls to stop bouncing marbles, and adding a passive section since we couldn’t program a 3 marble sorter.
Some other problems we faced throughout the project were learning how to be efficient by dividing the tasks amongst each other and being responsible for getting it done. We created a Gantt chart to create a schedule for each person’s tasks everyday, but couldn’t always follow it. Some of the challenges of working in a design group are expressing ideas we have, and explaining why we feel it would enhance the project. This is because it’s hard to understand others ideas without any physical demonstration and understand if it would be better than our own.
As a group we accomplished our objective very successfully because we solved the problem while following all of the constraints. We were able to complete our machine on time despite our setbacks, and our final product was able to sort 40 out of 45 marbles, which is the second highest score in our class as of our presentation.
Page 19
References
Vex EDR. (2002). Retrieved March 1, 2016, from http://www.vexrobotics.com/vexedr/products/accessories?ref=tile 3.3.1 Design Problem. (2012). Retrieved March 1, 2016, from https://pltw.instructure.com/courses/263826/files/folder/Unit 3 Control Systems/Lesson 3.3 Design Problem Materials Sorter?preview=56487220
Page 20