Hi,
Im having some problems using two (or one) step motors and bluetooth.
I wrote a function to contol two of them, it looks like this:
void moveTo(int x, int y)
{
stepperX.moveTo(x);
stepperY.moveTo(y);
while(stepperX.currentPosition() != x || stepperY.currentPosition() != y)
{
if(stepperX.currentPosition() != x)
{
stepperX.run();
}
if(stepperY.currentPosition() != y)
{
stepperY.run();
}
}
}
It works perfectly, the problem is, after I make the call:
bluetooth.begin(9600);
edit:
I traced it one step further, its after Me_BaseShield::begin(); that it stops working.
the motors wont move. If I read the value from stepperX.currentPosition(), it seems to think its moving.
Anyone got an idea of what might be wrong?
Thanks
Johan