2011_Actvity #3 - Converting Position to motion

2011_Actvity #3 - Converting Position to motion - PAUSE 7...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
' What's a MIcrocontroller - ServoVelocities.bs2 ' Rotate the servo counterclockwise slowly, then clockwise rapidly ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' counter VAR Word c DO D DEBUG " Pulse width increment by 8", CR D FOR counter = 500 TO 1000 STEP 8 PULSOUT 14, counter
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PAUSE 7 DEBUG DEC5 counter, CR, CRSRUP NEXT DEBUG CR, "Pulse width decrement by 20", CR FOR counter = 500 TO 1000 STEP 20 PULSOUT 14, counter PAUSE 7 DEBUG DEC5 counter, CR, CRSRUP NEXT DEBUG CR, "Repeat", CR LOOP...
View Full Document

This note was uploaded on 01/10/2011 for the course EE 1244 taught by Professor Drera during the Fall '10 term at Conestoga.

Ask a homework question - tutors are online