$25.00 Basic Stamp
- From Engineering: General-Engineering
- Closed, but you can still post tutorials
- Due on Nov. 07, 2009
- Asked on Nov 04, 2009 at 9:00:29PM
Q:Write a program with the following devices:
An active-low LED on P8 (LED1)
An active-low PB on P0 (PB1)
An active-low PB on P1 (PB2)
Servo on P12
Program the controller to loop continuously and perform the following:
- When no PB's are pressed, the servo should be centered and hold its position.
- When PB1 is pressed, the Servo should be fully CW and hold its position.
- When PB2 is pressed, the servo should be fully CCW and hold its position.
- When both buttons are pressed, the LED should blink at a rate of 1 hz and the
servo will not be driven to hold a position. The LED should be off otherwise



