Arduino package: Difference between revisions

Jump to navigation Jump to search
269 bytes added ,  27 March 2020
no edit summary
No edit summary
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The {{Forge|arduino}} package is part of the [[Octave Forge]] project and provides an Octave look-alike implementation of the Arduino extension for Matlab.
The {{Forge|arduino}} package is part of the [[Octave Forge]] project and provides an Octave look-alike implementation of the Arduino extension for Matlab.
The package currently supports the following boards:
* uno
* nano
* promini
* promicro
* mega2560
* leonardo
* micro
* lilypad
* uno wifi rev2
* sparkfunsamd21
* nano every


= Installation =
= Installation =
Line 10: Line 24:


== octave installation ==
== octave installation ==
From octave commmand line:
From octave command line:


  >> pkg install -forge arduino
  >> pkg install -forge arduino
Line 24: Line 38:
In order to use the arduino hardware with the toolkit, it must be programmed with special firmware.
In order to use the arduino hardware with the toolkit, it must be programmed with special firmware.


From octave commmand line:
From octave command line:


  >> arduinosetup
  >> arduinosetup
Line 40: Line 54:


   >> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino')
   >> arduinosetup('arduinobinary', '/path_to_the_installed_arduino/arduino')
More specifically on MacOS:
  >> arduinosetup('arduinobinary', '/Applications/Arduino.app/Contents/MacOS/Arduino')


== Connecting to an Arduino ==
== Connecting to an Arduino ==
Line 87: Line 105:
The full code, with the LED controlled in a loop ti turn it on/off each second is in the following example:
The full code, with the LED controlled in a loop ti turn it on/off each second is in the following example:


   a = arduino;
   ar = arduino;
   led_pin = "d13";
   led_pin = "d13";
   while true
   while true
Line 95: Line 113:
     pause (0.5)
     pause (0.5)
   endwhile
   endwhile


= Documentation =
= Documentation =
Line 105: Line 122:
* The [https://octave.sourceforge.io/arduino/overview.html Function Reference]
* The [https://octave.sourceforge.io/arduino/overview.html Function Reference]


[[Category:Octave Forge]][[Category:Packages]]
[[Category:Octave Forge]]
Anonymous user

Navigation menu