Notifications
Clear all

Connecting multiple SOLO controllers


Forum 1
(@galvenite)
Active Member
Joined: 10 months ago
Posts: 15
Topic starter  

Hi guys,

 

I'm trying to run 2 Solo controllers off of a single Raspberry Pi. I can open up a serial channel when connected to one but not to both. I was wondering if there was a way to have both controllers connected to the same RPI serial channel. In the meanwhile, I'm trying to set up a second pair of TX and RX pins. This has the added difficulty of managing to read from multiple sources in somewhat realtime, so I was wondering if anyone had tried to get realtime communication from multiple serial ports and how they managed this.

 

Thanks,


SOLO Team liked
Quote
SOLO Team
(@milad)
Chief Member Moderator
Joined: 1 year ago
Posts: 185
 

Hi @galvenite,

As each SOLO can have a different device address, in our Python and C++ library (for Arduino) available on our website, you can define Objects of SOLO's with a different address and control them all together. to Network multiple SOLO's using UART protocol to avoid data collision, you need to use an Analogue ( or digital ) Multiplexer like the one below that can operate with 3.3V leveled signals:

https://www.digikey.com/en/products/detail/sparkfun-electronics/BOB-09056/5673767?s=N4IgTCBcDaIEIHk4FoAMBOVBWAbAHQBcQBdAXyAhttps://www.digikey.com/en/products/detail/sparkfun-electronics/BOB-09056/5673767?s=N4IgTCBcDaIEIHk4FoAMBOVBWAbAHQBcQBdAXyAhttps://www.digikey.com/en/products/detail/sparkfun-electronics/BOB-09056/5673767?s=N4IgTCBcDaIEIHk4FoAMBOVBWAbAHQBcQBdAXyA

in the case of using UART:

-You can connect the TX of your main controller ( arduino, raspberry Pi or etc ) to all the RX's of the SOLO's in the network directly with a wire.

-using the GPIO pins of your controller ( arduino, raspberry Pi or etc ) connected to "Channel Selector Pins" of the multiplexer, you can select the appropriate SOLO UNO's TX in the network to send data back to your raspberry Pi, so like this as each SOLO has a unique address, once Raspberry Pi sends a command through its TX, only the SOLO with the same address will respond back, however, at the same time, within your multiplexer you are selecting the appropriate channel to read back from the data from the desired SOLO unit in the network.

 

I will remain available for further clarifications.

 

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


ReplyQuote
SOLO Team
(@milad)
Chief Member Moderator
Joined: 1 year ago
Posts: 185
 

BTW, our Raspberry Pi library now is fully tested and works good, you can have a look at the following examples using our Python library:

1- https://www.solomotorcontrollers.com/raspberry-pi-brushless-motor-position-control-incremental-encoders-code/

2- https://www.solomotorcontrollers.com/simplest-way-to-control-a-brushless-motor-with-raspberry-pi/

3- https://www.solomotorcontrollers.com/speed-controlling-bldc-raspberry-pi-hall-sensors/

4- https://www.solomotorcontrollers.com/easiest-way-to-control-torque-bldc-raspberry-pi-hall-sensors-feedback-code/

Regards
Milad

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


ReplyQuote
Share: