Arduino package: Difference between revisions

Jump to navigation Jump to search
681 bytes added ,  10 June 2019
m
Remove redundant Category:Packages.
(Created page with "The {{Forge|arduino}} package is part of the Octave Forge project and provides an Octave look-alike implementation of the Arduino extension for Matlab. = Installation = =...")
 
m (Remove redundant Category:Packages.)
(9 intermediate revisions by 2 users not shown)
Line 3: Line 3:
= Installation =
= Installation =
== package requirements ==
== package requirements ==
The Arduino package needs the Arduino IDE to be installed and functioning on the computer in order to program Arduino boards, however does not need it to control boards that have already been programmed.
This package requires Octave 4.0 or later.


The Arduino package also requires the instrument-control package to be installed.
It needs the Arduino IDE to be installed and functioning on the computer in order to program Arduino boards, however does not need it to control boards that have already been programmed.
 
The Arduino package also requires the {{Forge|instrument-control}} package to be installed.


== octave installation ==
== octave installation ==
Line 33: Line 35:


After successful upload the Arduino IDE should be closed.
After successful upload the Arduino IDE should be closed.
'''NOTE:''' on some versions of Ubuntu, the default installed Arduino IDE / java interface is broken so that the IDE will not detect the serial port and allow the board to be programmed. The solution is installed the Arduino ide as a flatpack, or manually. The Arduino binary must be added to the path in order to be found by arduinosetup. Alternatively, the full path/binary for the ide can be specified to arduinosetup.
  >> 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 80: Line 91:
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 89: Line 100:
   endwhile
   endwhile


= Documentation =


== Documentation ==
Documentation and reference for the Arduino package is available as:
 
Documentation and reference for the Arduino toolkit is available as:


* The [https://octave.sourceforge.io/arduino/package_doc/index.html Online manual]
* The [https://octave.sourceforge.io/arduino/package_doc/index.html Online manual]


* The [https://octave.sourceforge.io/arduino/overview.html Function Reference]
* The [https://octave.sourceforge.io/arduino/overview.html Function Reference]
[[Category:Octave Forge]]

Navigation menu