2011_Activity #1 - Connecting and testing the servo

2011_Activity #1 - Connecting and testing the servo - NEXT...

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

View Full Document Right Arrow Icon
'What's a Microcontroller - ServoTest.bs2 'Test the servo at three different position signals. ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' counter VAR Word c DEBUG "Counterclockwise 10 o'clock", CR D FOR counter = 1 TO 150 PULSOUT 14, 945 PAUSE 20
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: NEXT N DEBUG "Clockwise 2 o'clock", CR D FOR counter = 1 TO 150 PULSOUT 14, 550 PAUSE 20 NEXT N DEBUG "Center 12 o'clock", CR D FOR counter = 1 TO 150 PULSOUT 14, 750 PAUSE 20 NEXT N DEBUG "All done." D END...
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