2011年11月9日 星期三

EXPLORER



Dear all,

The explorer has ultrasonic sensor to detect things in front of it then altered its direction to avoid those subjects. It derived from Bumper Car and I added one stick ahead for removed subjects.

The Explorer's programming is forever loop. First cycle is for start while you touch the "Enter" button and ultrasonic sensor also detected anything within 9 inches. It's my first time using the "Logic Block" for arranged sensors' priority. Second cycle is for touch sensor which in "pressed" mode. It also have some sounds while explorer collided something. Meanwhile, ultrasonic detected again within 90 degrees to the left then to the right (by Compare Block). If something on explorer's left then it'll turn 275 degrees to its right, vise varser. Explorer will continuing move straight forward and all loops.



沒有留言:

張貼留言