Propeller C beginner
kg1
Posts: 164
in Propeller 1
When I run the following program a second time the Arlo Robot motors do not run:
Is my code incomplete?
Kevin.
/* Forward Stop Face Right.c http://learn.parallax.com/activitybot/go-certain-distances */ #include "simpletools.h" //#include "abdrive.h" // <- Comment out this line #include "arlodrive.h" // <- Replace it with this line #include "wifi.h" int main() { wifi_start(31, 30, 115200, WX_ALL_COM); drive_goto(256, 256); pause(200); drive_goto(93, -93); }
Is my code incomplete?
Kevin.
Comments
So, I would try commenting out your wifi_start function and then seeing if it magically starts working. If it does, then you can do some research into what that function does, and why it might be keeping your robot from moving. If it doesn't fix the problem, then I'd consider the possibility of low batteries. There isn't much that could go wrong with your code there, so I'd start looking at hardware.
https://forums.parallax.com/discussion/167944/arlobot-dhb-10-motor-board-bug-with-encoders
I wish I had found this discussion months ago. Perhaps if it had been in a forum category called "Arlo" I may have been more lucky with my search in Google. The use of the term "Arlobot" perhaps did not originate from Parallax?
I am not technical in an occupation sense so checking out motor currents and aligning motor shafts will be a challenge. However I have had some success in that I repaired the damage done by the two batteries rolling about in the Arlo wooden box that Parallax supplied the kit in. So I passed all the tutorial tests and at least saw the wheels turn for a few seconds.
On with the challenge!
Kevin.