Mission:
The local airport needs to place a toll booth gate at the exit. One sensor will be needed to open, and one to close, the toll booth gate. A red light should be on when the gate is down or moving. When the vehicle goes through the intersection the gates will be up and the light off.
Bonus: Add a green light to indicate that the car can go through the gate.
Duties:
Construct a motorized gate with a potentiometer that will rotate 90º. Connect sensors, light(s), motor and potentiometer to the microcontroller.
When designing the program, you must keep in mind the following:
The local airport needs to place a toll booth gate at the exit. One sensor will be needed to open, and one to close, the toll booth gate. A red light should be on when the gate is down or moving. When the vehicle goes through the intersection the gates will be up and the light off.
Bonus: Add a green light to indicate that the car can go through the gate.
Duties:
Construct a motorized gate with a potentiometer that will rotate 90º. Connect sensors, light(s), motor and potentiometer to the microcontroller.
When designing the program, you must keep in mind the following:
- The red light is on when the gate is moving down, when the gate is across the road and when the gate is moving up.
- The red light is off if the gate is in the upward position, if you are doing the BONUS project the green light is on at this point so cars go through.
- Pushbutton sensors are used to open and close the gate.
- A potentiometer is used to rotate the gate 90º.