Claim/Purpose
Our Purpose was to learn how to use a program to program the vex equipment. We had to build a curtain machine and learn how to program it's movements. The main purpose of this was to learn everything we needed to build a good working machine with the vex. It was like playing with a new toy and figuring out what it does with directions.
Brainstorm
We couldn't really brains storm on this machine. The only thing we could do is follow direction and learn how everything works. We could have brainstormed on what type of machines we could build with all this knowledge. We could have also thought what the machine was so post to do. The thing is that we couldn't brain storm like we usually do because it was just to practice.
Closed codeClosed code means that the code you right will end. It's program with a beginning and a end. If you want it to repeat it's self it would be called a while loop. The closed loops are you used simple action like turning on and off a LED light.
|
Open while loopA while loop is a program that doesn't end unless the batter runs out or something like that happens. You tell the program to keep going by adding curly braces "{" "}" to you program. This tell it to go back to the first command after it's done with what's it's been program to do.
|
Close Loop Programing
![Picture](/uploads/1/3/6/8/13685247/6762770.jpg?504)
This is a closed loop code. This code will make the motor go backwards for 3 seconds. Then it will move the other way. Then the motion will repeat and then it will stop.
![Picture](/uploads/1/3/6/8/13685247/7039437.jpg?718)
This is also a closed loop. It just turns an led on and off. I think this one was one of the most simplest form of coding. The led will stair off the wait 1 second then turn off. It will repeat this about 4 times or so then turn of.
![Picture](/uploads/1/3/6/8/13685247/6357909.jpg?476)
This code will turn on a motor with the bump switch. It will turn on for 5 seconds and then turn off. This is the type of code is the one where you press a button to make something else move. Their a input and then a output. I think it's kind of like making a electrical circuit. It does stop by it'self if you wanted it to be button activated it would have to be a while loop.
![Picture](/uploads/1/3/6/8/13685247/9449442.jpg?478)
This is a more complicate code. It's a while loop. What that means is that the command will keep going and going. It had no end to it. This code make the flash light turn on when the light sensor detects darkness. It will keep doing this until you tell it to stop. I thought it was more complex then the other but nothing their couldn't be fixed.
Conclusion
I saw this video that said that most kids now days don't know how to code. I think this is a great way that we can start coding. I think that it could help us in the future. If you can't code something it's just a piece of metal sitting their. I think it's good to learn how to code because one day we will need to make our own software. We can't always rely on old programs.