BalancePhotoresistors

BalancePhotoresistors - ' Left RC time Measurement. PAUSE 3...

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

View Full Document Right Arrow Icon
' Robotics with the Boe-Bot - BalancePhotoresistors.bs2 ' Test adjustments to Boe-Bot photoresistor circuits. ' ' {$STAMP BS2} ' Stamp directive. ' {$PBASIC 2.5} ' PBASIC directive. ' timeLeft VAR Word ' Variable declarations. timeRight VAR Word t DEBUG "PHOTORESISTOR VALUES", CR, ' Initialization. "timeLeft timeRight", CR, "-------- ---------" DO ' Main routine. D HIGH 6
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ' Left RC time Measurement. PAUSE 3 RCTIME 6,1,timeLeft HIGH 3 ' Right RC time measurement. PAUSE 3 RCTIME 3,1,timeRight DEBUG CRSRXY, 0, 3, ' Display measurements. DEC5 timeLeft, " ", DEC5 timeRight, " Before" timeLeft = (timeLeft */ 351) + 7 DEBUG CRSRXY, 0, 5, ' Display measurements. DEC5 timeLeft, " ", DEC5 timeRight, " After" PAUSE 200 LOOP...
View Full Document

This note was uploaded on 04/23/2010 for the course EECC 0306-201 taught by Professor Roymelton during the Spring '10 term at RIT.

Ask a homework question - tutors are online