CMUCam crashes robot
We've recently acquired a CMU Cam, and tonight we encountered a funny error. We downloaded the 8 function demo off the CD, and now we're having a weird error. If we run that program, the robot freezes, and from that point on, if we try to download a new program, the computer cannot find the BASIC Stamp anymore. Has this happened to anyone else?
Comments
Typically this is some kind of power problem.
If we download a program that uses the camera, the robot will freeze during startup. In the Main Subroutine of the 8 Function Demo, it freezes after the Debug "#1" here:
==================
Main:
FOR N = 2 TO 5 ' Flash all LED's during pause
DEBUG "#1", CR
SHIFTOUT 5,11,MSBFIRST,[noparse][[/noparse]255]
PAUSE 400
DEBUG "#2", CR
SHIFTOUT 5,11,MSBFIRST,[noparse][[/noparse]0]
PAUSE 400
NEXT
==============
Once it has frozen, the CMU cam will not be found by the computer again until we turn off the robot and remove the camera, at which point we can download a new program, and everything is fine again as long as we're not trying to run a program using the camera.
So apparently, there's something in the CMU Cam's built in initialization that is causing the whole robot to lock up, because having a camera plugged in causes the robot to not work at all, but removing it, causes it to work again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Never give up when things go wrong, Just work them out.
robosapienv2-4mem8.page.tl/
humanoido