On this project, I teamed with Pamela Vitale ( ) and Vijayendra Sekhon ( ).
» Pamela's midterm page
» Vijay's PhysComp page is located here but his midterm project description isn't linked.
» Pamela's Preliminary Sketches
» Finished Mobile: Class Presentation
» The Group: Pamela, Me and Vijay (chatting behind mobile)
( Pamela reacting to one of my jokes: )
» Schematic
» BasicX Code
Sub Main()
call delay(1.0)
do
call spin(14,10)
call spin(15,9)
loop
End Sub
Sub spin(byVal inputpin as byte, byVal outputpin as
byte)
dim light as single ' this is the light value
dim pulse as single ' and this is the target pulse
light = csng(getADC(inputpin))
debug.print "Light "; cstr(inputpin); ": "; cstr(light)
if light < 300.0 then
pulse = 0.00002
else
pulse = 0.02
end if
call pulseOut(outputpin,pulse,1) ' send the pulse to the motor
End Sub
|