i just started with picaxe and i need help. i try inserting the code but it says hardware not found every time i try doing a code. the USB cable is plugged in al the way, and all of the wires are in the right way. the code is made by aaron super :symbol turn = 300 ' this sets how much should be turned
symbol servo_turn = 700 ' This sets for how long time we should wait for the servo to turn (depending on it´s speed) before we measure distance
main:
gosub body_lturn
gosub totalhalt
gosub body_rturn
gosub body_rturn
gosub totalhalt
gosub body_lturn
gosub totalhalt
gosub lturn
pause servo_turn
gosub rturn
pause servo_turn
gosub rturn
pause servo_turn
gosub nodanger
pause turn
gosub totalhalt
gosub danger
pause turn
gosub totalhalt
goto main
nodanger:' this should be your combination to make the robot drive forward, these you most likely need to adjust to fit the way you have wired your robots motors
high 5 : high 6 : low 4 : low 7
return
danger:
low 5 : low 6 : high 4 : high 7
return
body_lturn:
high 6 : low 5 : low 7 : high 4 ' this should be your combination that turns the robot one way
pause turn : gosub totalhalt
return
body_rturn:
high 5 : low 6 : low 4 : high 7 ' this should be your combination that turns the robot the other way
pause turn : gosub totalhalt
return
rturn:
servo 1, 100 ' look to one side
return
mturn:
servo 1, 150
return
lturn:
servo 1, 200 ' look to the other side
return
totalhalt:
low 4 : low 5 : low 6 : low 7 ' low on all 4 halts the robot!
Servo 1,150 ' face forward
wait 1 ' freeze all for one second
return
is it a good code? what is wrong?forgot to mention i have a mac. one more quick question, should i insert batts at the same time programing?(when its in the cable and bieng givin the code)