Notifications
Clear all

ARDUINO library first integration and connections to SOLO


Forum 1
(@osman)
Active Member
Joined: 1 month ago
Posts: 5
Topic starter  

Hello there, 

- I downloaded the Arduino library and tried to include it in the Arduino IDE. It didn't work at first and got the following message: "Specified folder/ZIP file does not contain a valid library". Would like to ask you what the reason could be and what would be the solution for this problem. (I took the h and cpp file out of the src folder and put them into the main folder. So at least the folder could be recognised by Arduino as a library. Is it even right like that?)

- My second question would be if I use the library in this way as I described above, I can't run the simplest things unfortunately. When I want to read in the temperature (or the number of poles), I always get the symbol question mark "?" as a result. You can find a picture of this as an attachment below.

Thank you in advance for your help.

Kind regards
Osman Kaya

This topic was modified 1 month ago by Solo

Quote
Forum 1
(@osman)
Active Member
Joined: 1 month ago
Posts: 5
Topic starter  

I use Solo Uno and Arduino Mega 2560. I have connected Solo with Arduino as follows:

Solo -   Arduino
TX -     RX
RX -    TX
GND - GND

And I tried to control the speed. However, I got the following message: See the attachment (I have attached it).


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

Hi @osman,

Posted by: @osman

- I downloaded the Arduino library and tried to include it in the Arduino IDE. It didn't work at first and got the following message: "Specified folder/ZIP file does not contain a valid library". Would like to ask you what the reason could be and what would be the solution for this problem. (I took the h and cpp file out of the src folder and put them into the main folder. So at least the folder could be recognised by Arduino as a library. Is it even right like that?)

To install the library please follow this guide on the Arduino website the "Manual installation" part, you just need to unzip the file, put the folder in your Arduino sketch book directory, and then you can add it in the Arduino enviroment as a library.

Posted by: @osman

My second question would be if I use the library in this way as I described above, I can't run the simplest things unfortunately. When I want to read in the temperature (or the number of poles), I always get the symbol question mark "?" as a result. You can find a picture of this as an attachment below.

at the first glance as I see the Baudrate of Serial Monitor in your Arduino is set at 9600bits/s which is not compatible with any of the baud-rates that SOLO offers, what you need to do is :

  1. Connect SOLO to Motion Terminal and put the baud-rate of SOLO on 115200 bits/s
  2. Recycle the Power of SOLO ( Turn Off, wait for 5s, Turn back ON)
  3. Test the serial Monitor while both SOLO and Arduino are set at 115200 bits/s ( also the baud rate in Serial Monitor must be set at 115200 )

Pls verify what mentioned above and let me know if you could proceed, I will remain available.

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
Forum 1
(@osman)
Active Member
Joined: 1 month ago
Posts: 5
Topic starter  

@milad

 

Hello Milad,

Thank you very much for your kind answer and your quick help. I had to take the c-file as well as cpp-file out of src folder, and then put it into main library folder. Only then it was recognised as a library.

Otherwise the motor turns quite nicely when it is controlled via Solo Terminal. I'll keep trying to control the motor via Arduino. I hope it works. If I have any questions or if I have success with my project, I'll let you know about this. 

 

Thank you.


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

@osman sure, the Arduino library has been recently extensively tested by numerous users, so I can imagine once you get it going, you will probably have an easier time making it do what you like it to do, however, if you found any issue or bugs pls keep reporting them here and we will fix them, I will remain available.

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
Forum 1
(@osman)
Active Member
Joined: 1 month ago
Posts: 5
Topic starter  

@milad Hallo Milad,

 

I am sorry for disturbing you again. I wanted to ask if the UART interface is 5V resistant? Can I connect my TX, RX pins from Arduino directly to SOLO without a series resistor?


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

Hi @osman, SOLO UNO's TX and RX are +5V tolerant, however for SOLO BETA models you need to use those resistors, I think you have SOLO UNO ( this one with Black capacitors and a Pin header for RX, TX), so you need only to directly connect the TX and RX like the image below and no need to use any resistors or extra components:

Forum 9

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: