Scilab Home Page | Wiki | Bug Tracker | Forge | Mailing List Archives | Scilab Online Help | File Exchange
ATOMS : Arduino details
Login with GitLab

Arduino

Arduino Communication through Serial
(90418 downloads for this version - 254003 downloads for all versions)
Details
Version
1.1
A more recent valid version exists: 1.9
Author
Bruno JOFRET
Owner Organization
Scilab Enterprises
Maintainers
Bruno JOFRET
Yann DEBRAY
License
Creation Date
June 28, 2013
Source created on
Scilab 5.4.x
Binaries available on
Scilab 5.4.x:
Windows 32-bit Windows 64-bit
Install command
--> atomsInstall("arduino")
Description
            This toolbox provides Arduino communication blocks for Xcos.

You need to flash the arduino board with the following file:
toolbox_arduino_v3.ino  

Communication is performed through Serial port.

Only works under Windows platform.            
Files (6)
[510.73 kB]
Source code archive

[912.07 kB]
Windows 32-bit binary for Scilab 5.4.x
Windows 32-bit
Automatically generated by the ATOMS compilation chain

[912.50 kB]
Windows 64-bit binary for Scilab 5.4.x
Windows 64-bit
Automatically generated by the ATOMS compilation chain

[34.24 kB]
Source code archive
This files has to be flashed in the arduino board
News (0)
Comments (26)     Leave a comment 
Comment from Ronald Burggraaf -- July 1, 2013, 09:25:26 AM    
Thank you for the effort in writing this toolbox. It is a pity that this runs only on
Windows. I am not a programmer but 
this can be resolved by defining the com port by its name(ie on a mac:
/dec/ttyusbmodemfd121 or on a windows : 
com2) in stead of just a number. Would be a nice addition to this toolbox if it is
available to mac and linux.
Answer from Samuel Gougeon -- August 6, 2013, 01:54:34 PM    
> Thank you for the effort in writing this toolbox. It is a pity that this runs only on
> Windows. 

I agree. Using the serial package http://atoms.scilab.org/toolboxes/serial instead would 
 - enable Arduino for Linux (but still not for Mac OS)
 - prevent all unstabilities coming from the Scilab linker: Almost for each new
   Scilab X.Y release, all packages having some gateway (with DLL for Windows)
   must be recompiled before being back usable in Scilab. One of the most uncomfortable
   bad features from Scilab. (there are other weird sources of unstabilities related to 
   gateways. See for instance http://bugzilla.scilab.org/show_bug.cgi?id=12674 
   Fortunately, scripts .sci are much more stable)

Samuel Gougeon

Comment from Jairo Rotava -- November 3, 2013, 01:52:06 PM    
Is there a help file in english? If not, how can I translate it and replace the french one?
Comment from Pascal Buehler -- November 29, 2013, 10:40:40 AM    
Is there a possibility, to have higher comports than five? in my Windows- System, my 
Arduino Controller is available at Com Port 16 (USB). Is there a possibility to enter a 
higher Com Port as 5. 

Thanks Pascal B?hler
Answer from Jairo Rotava -- November 29, 2013, 02:35:46 PM    
I guess you can change the port number under advance options on Control Panel - COMs. This

should be the easiest way.
Comment from ANDRE lionel -- January 9, 2014, 03:08:29 PM    
Mr JOFRET,

Merci pour ces applications. J'ai un petit probl?me : dans SCILAB : on me demande de
t?l?verser toolbox_arduino_V3 et ici, je ne trouve que la V2. 
J'ai t?l?vers? la V2, sait-on jamais, ?a ne marche pas.
Pouvez-vous mettre la 3 en t?l?chargement svp?

Cordialement, lionel ANDRE, merci.
Answer from Anne-Laure Cheffot -- June 16, 2015, 01:42:26 PM    
> Mr JOFRET,
> 
> Merci pour ces applications. J'ai un petit probl?me : dans SCILAB : on me demande de
> t?l?verser toolbox_arduino_V3 et ici, je ne trouve que la V2. 
> J'ai t?l?vers? la V2, sait-on jamais, ?a ne marche pas.
> Pouvez-vous mettre la 3 en t?l?chargement svp?
> 
> Cordialement, lionel ANDRE, merci.

Bonjour,

Vous trouverez la V3 en entrant dans le sous fichier macro qui se trouve au m?me niveau 
que le dossier qui contient le .ino de la V2

Cordialement
Anne-Laure Cheffot
Comment from Hariharasudhan Jegadeesh -- February 3, 2014, 09:57:21 AM    
I doing my final year under graduate project in interfacing Arduino with scilab.
The help manual available in French language. I want the soft copy of help manual
for interfacing scilab with Arduino in English language. So that i and my project mets 
can understand the Arduino Atom interfacing with scilab and it will be useful for my 
project also.

with regards,

[1]. J.Hariharasudhan
[2]. K.Dineshkumar

Department of Electronics and Communication Engineering,
Institute of Road and Transport Technology,
Erode
Tamilnadu
India
Comment from Francois WEISS -- March 7, 2014, 11:19:26 PM    
La toolbox_arduino_V3 est ici sur le site www.demosciences.fr :
http://www.demosciences.fr/projets/scilab-arduino
Cordialement
FW
Comment from Samuel Gougeon -- April 13, 2014, 12:12:45 AM    
Hello Bruno,
It would be fine to tag Arduino as well in the Xcos-blocks category.
Thanks for all
Samuel
Answer from Samuel Gougeon -- September 7, 2018, 09:49:23 AM    
> It would be fine to tag Arduino as well in the Xcos-blocks category.

This is now done, for the version 1.4
Comment from Cristian Alonso Fiz -- May 31, 2014, 06:18:31 PM    
During this three months I have been using your Arduino code and Xcos blocs to perform my 
real time prototype systems (self-balancing robot) and I had some troubles reading and 
writing my elements through your code.

I have no idea how to modify Xcos blocs and neither how to make a new ones. Then I was 
forced to do some modifications in the Arduino code to interact with my real elements.(IMU

MPU 6050 with I2Cprotocol, two motor driver Pololu VNH5019?).

I am writing you if you are interested in hear my troubles and solutions to introduce 
interesting updates in your Arduino code and Xcos toolboxes, it will be very useful for you

and very helpful for the community.
Answer from Jairo Rotava -- June 15, 2014, 12:03:04 AM    
I think I can help you. If you are still interested in this please contact me at 
jairo.rotava@gmail. 

I was working on the translation of the help and code.

> During this three months I have been using your Arduino code and Xcos blocs to
perform
> my 
> real time prototype systems (self-balancing robot) and I had some troubles reading and

> writing my elements through your code.
> 
> I have no idea how to modify Xcos blocs and neither how to make a new ones. Then I was

> forced to do some modifications in the Arduino code to interact with my real
> elements.(IMU 
> MPU 6050 with I2Cprotocol, two motor driver Pololu VNH5019?).
> 
> I am writing you if you are interested in hear my troubles and solutions to introduce

> interesting updates in your Arduino code and Xcos toolboxes, it will be very useful
for
> you 
> and very helpful for the community.
Answer from Samuel Gougeon -- September 7, 2018, 10:16:47 AM    
> I have no idea how to modify Xcos blocs and neither how to make a new ones. Then I was

> forced to do some modifications in the Arduino code to interact with my real
> elements.(IMU 
> MPU 6050 with I2Cprotocol, two motor driver Pololu VNH5019�).
> 
> I am writing you if you are interested in hear my troubles and solutions to introduce

> interesting updates in your Arduino code and Xcos toolboxes, it will be very useful
for
> you and very helpful for the community.

Yes, sure!
You may open a ticket on the Scilab Arduino to describe the issue and propose a solution, 
and attach a zip file embedding your contribution.
Thanks

Answer from Samuel Gougeon -- September 7, 2018, 10:19:22 AM    
> I think I can help you. If you are still interested in this please contact me at 
> jairo.rotava@gmail. 
> 
> I was working on the translation of the help and code.

Do not hesitate to open a ticket on the Scilab Arduino forge and to post your contribution

in attachment.
Comment from yann haffner -- July 21, 2014, 09:29:04 AM    
I'm trying to control in speed a dc motor at the moment and my aim is to have a sinusoidal
speed in function of the time. So I guess that a sine command should work but actually I
can get the motor to move. Have you already experienced such a motor motion with the
toolbox ? 
Comment from Jegan Amirthalingam -- November 28, 2014, 07:00:22 AM    
I am trying to setup an rapid control prototyping with arduino and this package...but
still i a m facing the error with v2 and v3 ....

Error message.....
il faut charger avec le sketch toolbox_arduino_v3.ino dans la carte arduino
 
 Error occurred in pre_xcos_simulate: Cancelling simulation.  
 at line 50 of function ARDUINO_pre_simulate

I have tried the below link to download v3 http://www.demosciences.fr/projets/scilab-arduino

How to add this /install this package...just replacing in the
scilab-5.5.1/atom/x64/arduino doesn't work....Kindly he me thanks in advance... 
Comment from Cristian Alonso Fiz -- November 28, 2014, 02:58:04 PM    
Try this, 

I am involved in release a new version of the toolbox with the permission and the support
of the 
creators.

By the time, you can use the beta versions instead : 

https://github.com/fizcris/Scilab_Xcos_arduino_toolbox_david_MPU6050

I hope it will be usefull for you.
Answer from Samuel Gougeon -- September 8, 2018, 06:13:50 AM    
> I am involved in release a new version of the toolbox with the permission and the
> support of the creators.
> 
> By the time, you can use the beta versions instead : 
> 
> https://github.com/fizcris/Scilab_Xcos_arduino_toolbox_david_MPU6050

toolbox_arduino_v4.ino is now shipped within the toolbox version >= 1.5
Thanks
Comment from Cesar Martins -- December 20, 2014, 01:11:13 AM    
Dear all
I'm new on SciLab. I'm working with load cells using arduino and need to get the signal
real-time. As orthopaedic 
surgeon/biomechanics I have no experience with programming. Do you guys know anyone could
help me? Thanks so 
much. Cesar
Comment from Francisco-Ronay Lopez-Estrada -- July 16, 2015, 07:51:43 PM    
For the problem with ports greater than 9.


Windows: The best solution is just to change the port configuration in device manager.
  1-. Go to device manager
  2. click in properties
  3. click port-setting--> advanced and change the port number 
Note that in some computers there are many Bluetooth devices attached to com 9-10, my 
recommendation is to uninstall these ports.  

For linux I made some modifications to run the V3, and also recognize port 0, just
download

the following file. It runs perfectly

https://mega.co.nz/#!T1RynDrI!icxPWmHxbNhqPnIXpHr2wIxhipXWeNb0hRSDHu00RQQ

See my other contributions
https://atoms.scilab.org/toolboxes/DeCaToKi

https://atoms.scilab.org/toolboxes/ADS_CoLiSyS
Comment from Nex Robotics -- July 29, 2015, 08:12:50 AM    
Sir,

I am developing one toolbox currently, I want to know that is there any way to input a 
string to my block instead of a number? 
Comment from Bhargav Makodia -- March 6, 2016, 08:36:55 AM    
I am new to Scilab interfacing to arduino.

Can any one please provide guidance how to start using xcos interfacing with arduino.

Currently have even trouble in blinking led on board. It mentions poor communication 
port.

Thank you,
with regards,
Comment from Agachon Agachon -- March 18, 2016, 11:30:12 AM    
Big Thanks to Francisco-Ronay Lopez-estrada for this Linux version. 
It works like a charm !
Thx
Comment from Jeff Waters -- August 5, 2016, 06:13:23 PM    
any plans to port to linux and Mac
Comment from Renato Canha -- August 23, 2016, 03:08:45 PM    
Hello,

I am trying to follow the examples but I am unable to install the arduino toolbox on my 
windows 64. Usually I install selecting the "box" atoms in scilab but the box
does not 
show the arduino toolbox in the list of toolboxes. I downloaded the file
"arduino_1.1-
1.bin.x64.windows.zip" and unzippedbut after that I do not know what to do to install
the 
tool box and follow the examples.
Answer from Samuel Gougeon -- September 7, 2018, 09:54:34 AM    
> I am trying to follow the examples but I am unable to install the arduino toolbox on
my
> 
> windows 64. Usually I install selecting the "box" atoms in scilab but the
box
> does not show the arduino toolbox in the list of toolboxes.

arduino 1.4 is now available in the ATOMS manager for Windows users
Comment from Cristian Alonso Fiz -- August 24, 2016, 07:10:13 PM    
+ Download the latest version from http://atoms.scilab.org/toolboxes/arduino/1.2
+ Copy arduino folder into directory  ~\contrib.
+ At beginning of scilab go to menu Modules and select Arduino. (You can recompile if 
necessary by executing builder.sce but I think it is not necessary.)
Answer from Renato Canha -- August 25, 2016, 03:22:38 PM    
> + Download the latest version from http://atoms.scilab.org/toolboxes/arduino/1.2
> + Copy arduino folder into directory  ~\contrib.
> + At beginning of scilab go to menu Modules and select Arduino. (You can recompile if

> necessary by executing builder.sce but I think it is not necessary.)

Hello Cristian,

I followed your instructions but unfortunately I didn't have success. When I try to 
execute builder.sce Scilab exhibits the following error message:

"
exec('C:\Program Files\scilab-5.5.2\contrib\arduino\builder.sce', -1)
 !--error 10000 
mkdir: Ocorreu um erro: Impossível criar diretório C:\Program Files\scilab-
5.5.2\contrib\arduino\images\h5
at line      27 of function main_builder called by :  
  main_builder();
at line      51 of exec file called by :    
exec('C:\Program Files\scilab-5.5.2\contrib\arduino\builder.sce', -1)
"
Do you have more suggestions?

Thank you very much

Renato
Comment from Cristian Alonso Fiz -- August 25, 2016, 06:19:02 PM    
Are you sure that you have permissions to 
write in the directory you are working? 
Have you tried to execute scilab as 
administrator?
Comment from Renato Canha -- August 25, 2016, 11:12:07 PM    
Yes, I executed as administrator.

Do you have Arduinno toolbox in a windows 64 bits?
Comment from Gaudérique de Saint-Quentin -- November 15, 2016, 10:00:06 AM    
Bonjour,
Est-il possible d'adapter ce toolbox à n'importe quelle carte arduino ? Comment peut-on
faire ? 
(arduino nano par exemple )
Cordialement
Comment from Peter Erasmus -- January 2, 2020, 12:20:45 PM    
Hi 
I am very new with the ARDUINO toolbox and I have an issue that I can not flash my UNO 
board with the toolbox_arduino_v4 that is mentioned above I am using toolbox 1.6.2 it is 
installed in SCIlAB but when I open the toolbox_arduino_v4.ino file in the ARDUINO 
editor and flqash the board the IDE report error I2C.h no such file or directory the 
same report for the MPU6050 file .

Please is there somewhere a simple tutorial how to do this flash programming and from 
where should I take this toolbox.ino file 
I have downloaded the toolbox-master from githum and inside is the  toolbox_arduino_v4
aswell as 2 and 3 the strange thing is that the toolbox_arduino_v2 and 
toolbox_arduino_v3 compile and flash from the Arduino IDE but but v4 not however
when running a XCOS schematic ann error is reportet that it needs toolbox v4

Please help me 
Leave a comment
You must register and log in before leaving a comment.
Login with GitLab
Email notifications
Send me email when this toolbox has changes, new files or a new release.
You must register and log in before setting up notifications.