Basic 1 programming EEPROM problem
caper
Posts: 9
hey guys...i got a EEPROM QUESTION
BACKGROUND: i got my robot set up hardware wise·and ready to detect the thickness of copper lines laid on the ground...the·Left sensor P6 and·right sensor P7·consist of two dragging metal wires each that when they·drag against the ground look for copper wire and actually hit the copper foil tape, it makes a connection and sends a signal to the board....1 if its makes a connection, 0 if its just concrete and no connectoion
THE PROBLEM: ok i wrote a program attached that is saying EEPROM....probably because i need the robot to naviagate itself by counting the number of "power steps" the·stepper·motor takes once the left or right sensor in the middle of the bot touches first to when the opposite sensor touchs....THIS WAY, i can store that value, brake the first touch sensor's wheel side(so if right sensor touched first,·the·robot will brake right wheel)·and have the basic stamp calculate how much steps the second wheel needs to turn in the reverse direction to align the robot perpendicular to the copper foil tape.
ALSO: Im trying to navigate between two circles of copper tape...the outer is 4 inches wide, while the inner is 1 inch wide... THE OUTER circle at 60 inches diameter aligns the robot to the center and tells it which way the target is, basically whether if its infront of it or behind it, then the robot drives forward to find the inner circle, which aligns it again to the center
now that you understand what im doing, you guru programers probably know EXACTLY what im doing wrong to fill up the EEPROM....and how i can go about fixing it...
THANKS guys
BACKGROUND: i got my robot set up hardware wise·and ready to detect the thickness of copper lines laid on the ground...the·Left sensor P6 and·right sensor P7·consist of two dragging metal wires each that when they·drag against the ground look for copper wire and actually hit the copper foil tape, it makes a connection and sends a signal to the board....1 if its makes a connection, 0 if its just concrete and no connectoion
THE PROBLEM: ok i wrote a program attached that is saying EEPROM....probably because i need the robot to naviagate itself by counting the number of "power steps" the·stepper·motor takes once the left or right sensor in the middle of the bot touches first to when the opposite sensor touchs....THIS WAY, i can store that value, brake the first touch sensor's wheel side(so if right sensor touched first,·the·robot will brake right wheel)·and have the basic stamp calculate how much steps the second wheel needs to turn in the reverse direction to align the robot perpendicular to the copper foil tape.
ALSO: Im trying to navigate between two circles of copper tape...the outer is 4 inches wide, while the inner is 1 inch wide... THE OUTER circle at 60 inches diameter aligns the robot to the center and tells it which way the target is, basically whether if its infront of it or behind it, then the robot drives forward to find the inner circle, which aligns it again to the center
now that you understand what im doing, you guru programers probably know EXACTLY what im doing wrong to fill up the EEPROM....and how i can go about fixing it...
THANKS guys
Comments
and does that program look ok??
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office