Thursday, February 24, 2011

Subprograms

 This is the main program. The green box "Homies" refers to the subprogram which turns on a light and adds one count to the variable "Bro". At the end, depending on which variable has a higher count, either a motor, a lamp, or a buzzer will be turned on.
This is the subprogram "Homies".

Wednesday, February 23, 2011

Finally Flowcharts!

Flowcharting can be used as a way to follow logic, and it relates to our programming system. This flowchart shows the sequence of events for one who picks up an object. It is very logical and easy to follow and communicates a lot with few words. Below is the basic skeletal structure for a flowchart.
Below is what I believe is the final flowchart needed.
So I finally found the questions that I was supposed to answer!
How is flowcharting similar to using a map to plan a route for a trip? Flowcharting is similar to using a map because it gives you specific instructions on how you can get from your start point to your finish point.
Describe a process that you perform every day. Develop a flowchart that illustrates the process. I get ready for school every morning. I get up, take a shower, get dressed, eat, and brush my teeth. I have already made three flowcharts and can use flowcharting in the robopro, and I don't really see the need to make another flowchart.

First work with Variables

The program runs five times, and then it delays for five seconds before terminating.

Monday, February 14, 2011

The Motor Flow

I decided against fighting in the League today in order to investigate how to program a motor. I created a system in which a motor would run for two seconds, stop for two seconds, and run for another two seconds. The program worked beautifully, so I investigated further. I created a looped program that would run forever. I finally created a looped program that would run for five repititions. I enjoyed investigating the program and creating my system.

Thursday, February 10, 2011

Inputs and Outputs

Using the mini switch:
     I1 not pressed: unchecked, zero, voltage present
     I1pressed: checked, one, no voltage present
     When the wire was moved, the switch acted in the opposite fashion
Analog inputs:
     Range of Potentiometer: 43-5000
     NTC Resistor: 1190
     Warmed: 1207
Outputs:
     Switching wires plug changes motor direction
The reed switch:
    Reed switch acts as a normall open circuit that is closed when they the reed switch touches the elctromagnet
Lamp, Phototransistor (digital), and photoresistor (analog):
     Light increases the resistance of the photo resistor
     When it's close enough, the box is checked and a rating of one
     When there's enough light, the phototransistor closes a circuit
     When there's no light, the photo transistor can close a circuit

Wednesday, February 9, 2011

A Challenger Approaches!

The challenger was cleared for take off despite having a major flaw in the design. The o-rings in the shuttle broke upon take-off, causing the shuttle's flight to fail and crash, resulting in the death of the astronauts aboard. The o-rings held parts of the shuttle together, and when they broke the ship could not fly. Engineers designed the o-rings and tested them to make sure they would work. They found a high chance of failure, but the data was presented poorly to the people in charge of NASA. This was a big issue for the US Space Program, and the public was very upset at the program. Many people now see the necessity of clear communication between engineers, statisticians, and managers in order to avoid problems like these in the future. Space shuttles have encountered other technical problems over the years, but large disasters like these have been avoided since knowledge was gained from the failure.
A picture of how the o-ring failure was presented (Very confusing)

A bit late, but the units are here

l (distance) = m
t (time) = s
m (mass) = kg
a (area) = m^2
v (velocity) = m/s
(density) = kg/m^3
g (gravity) = m/s^2
F (force) = kg(m/s^2)
E (energy) = kg(m/s)^2
P (power) = kg(m^2/s^3)