ARDUINO library fir...
 
Notifications
Clear all

[Solved] ARDUINO library first integration and connections to SOLO

Page 2 / 2

SOLO Team
(@milad)
Chief Member Moderator
Joined: 2 years ago
Posts: 284
 

Hi @osman,

I realized that I made a mistake by telling you "In this condition, you don't need to give different addresses to each SOLO" ! this is actually wrong, and sorry for that...

The reason is now both of your SOLO's are having the same address, and they are both connected on the TX line of the Arduino, so whenever the Arduino sends a packet, as they both have the same address they react to it, and to solve this issue, we need to assign a unique address to each of the units.

to do that, you only need to select one of your SOLO's and by connecting it to the Motion terminal using the section "Signals" by sending the following command in the "Packet to send" section, you can change it's address from 0 to 1: 

The packet : FFFF00010000000100FE

Forum 1

as you see after sending this packet I got the ACK (echo back), and it means the change has been done ( to learn more pls read the UART and USB user manual)

Now after changing the address, you need to Recycle the power of SOLO, so the new address takes effect and it will reside in the memory (NVM memory) forever until you change it again.

So now you have two SOLOs with unique addresses.

The last step will be to modify your object instantiations in your Arduino code since the new SOLO has the address of 1 instead of 0 as below:

SOLO_Obj1 = new SOLOMotorController(0);
SOLO_Obj2 = new SOLOMotorController(1);

Now your system should work fine!

 

Posted by: @osman

Or should I rather swap Rx and Tx?

No, actually this action is not safe, TX and RX lines having fixed direction of data transfer and you can't reverse them or it can damage your devices in extreme cases, your wiring is totally fine, the problem was the addressing, and I'm sure after this fix it will work just fine.

Let me know the result of your tests.

Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


Forum 2
(@osman)
Eminent Member
Joined: 8 months ago
Posts: 28
Topic starter  

@milad

Hello Milad,

it worked. Thank you very much.

Best regards
Osman


SOLO Team
(@milad)
Chief Member Moderator
Joined: 2 years ago
Posts: 284
 

@osman Thanks for reporting back your results and glad that things are going well.

Milad

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


Page 2 / 2
Share: