Notifications
Clear all

retrieve motor speed  

Meric
(@meric)
Trusted Member

Hi there, 

Is SOLO is able to give me the motor speed ? 

What is the furnished red wires purpose ?

Thanks.

Quote
Topic starter Posted : 23/08/2020 11:44 am
Forum 1
(@milad)
Chief Member Moderator

Hi Meric, 

 

Yes, SOLO is able to give you the Real or Estimated speed of your Motor in digital format using UART, USB or CAN protocols. at the moment you have only UART available, in the Next release the USB will be enabled, but anyways, to get your answer you need to read here carefully, which talks about Digital Control of SOLO, as you might know, besides sending Analogue signals like PWM or analog voltages to SOLO, you can send all those commands completely digitally using the mentioned protocols above, at end of that page, there are lots of examples for you to understand how that data transmission works. 

To read the speed of your motor, you can put SOLO into "Monitoring mode" by sending the following packet through PC or a module like Arduino, Raspbery Pi etc with mentioned UART configuration on the same page. when you put SOLO in monitoring mode, it will continuously send you the critical information of your motor as below each one with a sampling frequency of 1.171kHz for each parameter, which is pretty good to keep track of all the data. ( there are 10 packets with 10 bytes each coming with 937500 bits/s, so each parameter sampling rate will be: ((937500/8)/10)/10 ) = 1.17kHz)

Packet to activate Monitoring Mode:

FFFF00190000000100FE

Packet to stop monitoring Mode:

FFFF00190000000000FE

 

The packets that will continuously come after:

1. VA: 3 phase Motors phase A voltage (BLDC, PMSM, ACIM)

2. VB: 3 phase Motors phase B voltage (BLDC, PMSM, ACIM)

3. IA: 3 phase Motors phase A Current (BLDC, PMSM, ACIM)

4. IB: 3 phase Motors phase B Current (BLDC, PMSM, ACIM)

5. VBUS: The power supply voltage ( BUS / Battery voltage )

6. IM: The DC motor Current ( used for Torque calculations)

7. VM: The DC motor Voltage

8. Iq: The quadrature Current in 3 phase motors ( current acting in torque generation)

9. Id: The direct Current in 3 phase motors

10. Speed: The speed measured or estimated by SOLO both in Sensorless and in Sensor-based methods

Each packet comes with a unique "command code" which is the ID of the packet, so you need to catch those packets related to your need, for example in case of using DC motor, from the above-mentioned packets, you can use IM, VM and speed, their Command code based on "Read command table" are 0x87, 0x88, 0x96 respectively.

if you don't want to read the speed of your motor continuously, and you only want to read it when you want, you can send the following command, and the answer will be the Speed of your motor at that moment:

FFFF00960000000000FE

Now we are preparing a PC based software, in which after next Firmware release which comes in early September with new features, you will be able to directly connect SOLO to PC using SOLO's USB connector, and send and receive these commands using our Software which we name it "SOLO Chrome Terminal", but for now, you can start sending these commands with your PC using a serial USB to UART or other modules which support UART ( Arduino etc )

The RED wire you've received serves this purpose, you will have access to UART_TX and UART_RX of SOLO to connect them to your modules or PC ( make sure your modules are 3.3V, +5V signal level is not supported by SOLO here and in case of giving +5V signals to these inputs, you might damage the board.)

if you want to use PC, you can use Awsome Terminal  which is a chrome application and putting the baudrate at 921600, to send or receive those commands and see the reaction of SOLO to them, if you are not in urgency, you can wait till the next 2 weeks while we release our software, which will ease a lot the pains for our Digital Control users.

Forum 3

 

 

We will remain available for further clarification.

 

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
Posted : 23/08/2020 2:15 pm
Meric
(@meric)
Trusted Member

Seems to be clear, I will try that.

Did you built the arduino library ? Do you have a fit where I can I found it ?

Thanks

ReplyQuote
Topic starter Posted : 23/08/2020 5:37 pm
Meric
(@meric)
Trusted Member

* a Git where I can found it

ReplyQuote
Topic starter Posted : 23/08/2020 5:44 pm
Forum 1
(@milad)
Chief Member Moderator

good, At the moment we don't have a Library for ARDUINO specifically made for SOLO, for sure it's on our "TO DO LIST" for the near future, but we don't have a clear timeline for that like the software. Once our software is released in the first phase you'd be able to send/receive all the commands, in next rounds we will add other features including graphical plottings and data loggings, we will inform you within the next weeks about the progress.

we will remain available for further questions.

 

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
Posted : 23/08/2020 7:28 pm
Forum 6
 Log
(@log)
Member Moderator

Hi Milad,

The SOLO heavy Baudrate (921600bps) seems not compatible with a poor Arduino (115200bps max, 9600bps prefered). Can we change it ?

ReplyQuote
Posted : 03/09/2020 8:51 pm
Forum 1
(@milad)
Chief Member Moderator

Hi, 

 

At the moment SOLO only supports the mentioned baud rate and the reason we had to choose a fairly high baud-rate was 2 main things:

1- Keeping the performance High, as a slow data-transmission can jeopardize the performance of a tight real-time system like SOLO dealing with Motors

2- Providing the maximum possible information in a given time for monitoring porpuses.

 

Regarding Arduino it seems, it's possible to push Arduino's Baudrate up to 1Mb/s and beyond (I think SOLO should work even with 1Mb/s baud-rate in Arduino),  for that, pls have a look on the following threads:

 

-  https://forum.arduino.cc/index.php?topic=21497.0

-  https://forum.arduino.cc/index.php?topic=511132.0

-  https://forum.arduino.cc/index.php?topic=504753.0

 

Have you tried with "Serial.begin(1000000);" for your Arduino Serial baud rate initialization?

Can you check Arduino on this baud rate with a loopback or to your PC?

Could you communicate with SOLO through PC using software like Awsome terminal?

 

You can also try to use "teensyDuino" as it has apparently the exact same interface of Arduino and it supports much more baud rates. By the way, at the moment we are working on giving the options of Baudrate selection to our users, but still, we have difficulty keeping the performance in an acceptable range. We might include this option in the next firmware releases.

 

Please keep me updated.

 

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
Posted : 03/09/2020 9:04 pm
Share: