Friday, May 10, 2013

Final Project: works-like/ looks like model

 Here is our program: 

We have two sensors- one reading exterior light and one reading interior light. If the sensor reads normal light, it does nothing. If it reads light, the car drives 'this way' to open the curtain. If it reads darkness is drives 'that way' and closes the curtain. The time is set by motor on/off- we have found that 25 is the perfect time length of time. The only problem was that if the curtain was open, it would open again if it read sunlight again. Professor Berg showed us how to set open? so that if the curtain is open, it will not open again. The program knows only to open if the sensor read light AND if the curtain is currently closed. Writing the program was surprisingly straight forward. We will modify it later as we see fit. 

Next is our model
So we flipped the wheels back to over the rod and put the board under the rod. Our design right now has the wheels centered and the motor on the side. We are having problems with balancing the device so I'm sure our design is going to evolve. We have already went through a few iterations of trying to place the board on the top with the wheels under the rod. With that design, we tried to put the board in place where it would balance against the motor. With our current design I think what we want to do is move the board in the opposite direction of the motor a bit more so that we don't have to add artificial weight. Our final design will have a wall on the other side of the model and hooks for the curtain rings. We will also mess around with the exact location of the pieces with legos limit where we can put the walls. 

When we presented our model in class, it worked! The program ran smoothly and the lego model held together well. The only problem is balance. We are going to have to tweak this a lot. But it still moves even if the car is tipped over. 

No comments:

Post a Comment