"The line begining with "Start", the first thing the program goes is disable the motor outputs....."
i think that can be apply to my proramming.... the function is just like the proramming ioannis write....
greater: 'greater routine
b2 = b0 - b1 'find the difference
if b2 > 10 then cw 'is it within the range? if not go to clockwise/ solar panel facing west
low PORTB.0 'pin portb.0 low /stopping the solar panel for moving
low PORTB.1 'pin portb.1 low / stopping the solar panel for moving
goto start 'if it is in the range,do it again
lesser: 'lesser routine
b2 = b1 - b0 'find the difference
if b2 > 10 then ccw 'is it within the range? if not got counter clockwise/solar panel facing east
low PORTB.0 'pin portb.0 low /stopping the solar panel for moving
low PORTB.1 'pin portb.1 low / stopping the solar panel for moving
goto start 'if it is in the range, do it again
so what the suitable timing for the pause...?
i not try it yet to the motor....
i am currently doing the circuit.... and now try to assemble the circuit with the lcd....
i need to add command for lcd in the proramming ....
Bookmarks