Hi this is Calvin and Tyisa. We have built a somewhat intelligent house. Our house has an automatic garage and an automatic fan. We first built the house which wasn't too difficult. The garage though was a bit tricky because of the gears, and the fan wasn't hard at all except we couldn't find some pieces. The way the garage worked was when the car went in front of the sensor it would automatically open for the car. The fan was automatically triggered to turn on when somebody walked in front of the sensor that was in the house. The problems we had with the fan was nothing but the garage had problems. First of all the gears tend to get stuck or we would "accidentally" put the wires in the wrong output. So therefore we had fun and learned how to fix our problems.
Below is a picture and the programming.
to door
talkto "microa
setright
onfor 10
wait 15
setleft
onfor 7
stopall
end
to garage
talkto [ lampb]
on
wait 5
if light5 < 75 [door]
garage
end
to fan
talkto "microd
setleft
on
end
to house
if light6 > 35 [fan]
house
end