Question
Asked by:
gerbear
gerbear
Rating : No Rating
Questions Asked: 13
Tutorials Posted: 0
 

$25.00 Basic Stamp

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

 


   
   
   
   
 
Available Tutorials to this Question
Posted by:
 

$25.00 code for Basic Stamp

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Nov 05, 2009 at 11:20:38PM
A:
Preview: ... e code for you,if there are any mistakes ,please ...

The full tutorial is about 51 words long plus attachments.

Attachments:
code.txt (1K) (Preview)
Posted by:
 

$1.00 try this,please

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Nov 05, 2009 at 8:21:33PM
A:
Preview: ... ccording ...

The full tutorial is about 9 words long plus attachments.

Attachments:
code.txt (0K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty