Shop OBEX P1 Docs P2 Docs Learn Events
Propeller C beginner — Parallax Forums

Propeller C beginner

When I run the following program a second time the Arlo Robot motors do not run:
/*
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

  • I don't know the "wifi_start()" but the rest of your code looks almost identical to the first code block on the page you have in comment: http://learn.parallax.com/tutorials/robot/activitybot/propeller-c-programming-activitybot/navigation-basics/go-certain

    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.
  • @DavidZemon Thank you for your reply David. I will dismantle the robot and check out the left wheel for stiffness and replace the drive controller as I believe I have the problems described in:
    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.
Sign In or Register to comment.