sorry my lack of knowledge....
for the system when the system are on the target is
skp:
if v1 = v2 then start 'If equal, do nothing
it will go back to the start..... then it will never give output to the motor (so motor will not rotate anywhere) until one of the cds value higher than other.
so to stop the motor when it run
cw: 'Turn the sensor array clockwise
high portc.0 'Turn on h-bridge
pause 100 'Let it turn for a moment
low portc.0 'turn off the h-bridge
goto start 'Check again
what do u think....
can u give idea how to improve this proramming




Bookmarks