Sunday, October 10, 2010

Day (forgotton): Last of the Sciborgs

I forgot to blog about this earlier, but here's a challenge that we were assigned that goes with our sciborgs. 

Challenge six was a sensor challenge.  Could we configure the buttons so that motor a is turned on when switch 1 is pressed and is off otherwise as well as motor b is on when switch 2 is pressed and is off
otherwise.  It wasn't too hard, but here's a picture of our solution.



The second part to this challenge involved configuring the buttons so that pressing switch 1 reverses motor a on and off and pressing switch 2 reverses motor b.  There is a hard and medium difficult solution to this problem.  We wanted to at least get this problem done, before attempting to tackle the harder challenge, so we started out creating two stacks to run simultaneously. 



Our programming seemed right, but when we tried to test it, the button failed to reverse the motor.  So we asked the professor for help.  When the professor came over, miraculously the button started working, and so we were like, "It wasn't working before you came over here."  So the professor went away and we started to test it again and again it didn't work.  The professor came over and it did work.  Everytime we tried to test the button without the professor near, it wouldn't work.  It was weird and crazy, we don't know quiet what happened.  It was like something on Candid Camera.

So after finally getting the simpler version to work, my partner and I stared at the screen and attempted to create one stack in which the whole program would run.  We came up with this, but it didn't work if both the buttons got pressed at once, so it wasn't a real success.  Here is where we ended.  

No comments:

Post a Comment