Arduino to Smart Mo...
 
Notifications
Clear all

Arduino to Smart Motor troubles

3 Posts
1 Users
0 Reactions
6,042 Views
(@hvince95)
Posts: 2
Topic starter
 

Hello,

My research group is unable to set up communications to control an Animatics Smart Motor (3440D) with an Arduino (Mega). We are running the following code for setup and running:

bool initialiseSteering();

void setup() {
  Serial.setTimeout(2);
  Serial.begin(9600);
  
  initialiseSteering();
}

bool initialiseSteering() {
  Serial1.begin(9600);
  Serial1.print("WAKE ");
  Serial1.print("MP ");
  Serial1.print("BRKRLS ");
  Serial1.print("O=0 ");
  Serial1.print("A=500 ");
  Serial1.print("V=1300000 ");
  
  Serial1.print("P=8000 ");
  Serial1.print("G ");
}

Yet the Smart Motor fails to move.
Plugging directly into a computer with the SMI software running, the Motor runs fine in playground mode, but initialisation through the SMI console alone does not work. Are we doing the set up incorrectly?

Thank you,

Harry.


 
Posted : 01/08/2016 1:03 am
(@csearcy)
Posts: 66
 

If the motor does not have a specific address... you should be able to send commands directly without connecting the SMI software first. The SMI software give the motor an address and turns ECHO on.
You may just need to issue the ZS command. You can check the status lights on the motor. If you have one red LED... the motor is off... for some reason.
Try sending the following...
UCI
UDI
ZS


 
Posted : 01/08/2016 1:21 am
(@hvince95)
Posts: 2
Topic starter
 

Thankyou.
I do not have access today but will let you know how it goes tomorrow.


 
Posted : 01/08/2016 1:35 am
Share: