Arduino Setup in GNU Octave

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии •

  • @ricardoruizdiaz7218
    @ricardoruizdiaz7218 3 года назад +1

    I have a problem, when I compile, I get an error, that it cannot find the file "settings.h", I don't know if in this particular file you have to declare any configuration. You have the arduino IDE files, Ready to compile from now, thank you very much.

    • @apm
      @apm  3 года назад

      I don't know how to solve that problem but there is likely a solution on the Arduino forums.

  • @marcusb9129
    @marcusb9129 Год назад +1

    hey the installation was very helpful, however, when I type pkg install -forge arduino I get this error message:
    error: the following dependencies were unsatisfied:
    arduino needs instrument-control >= 0.5.0
    if you could help that would be awesome thank you.

    • @apm
      @apm  Год назад

      I haven't seen this requirement before. Does "pkg install -forge instrument-control" work?

  • @joaopedromrodriguez
    @joaopedromrodriguez 4 года назад +1

    When i try "a = arduino" it appears the message "arduino object disconnected". Its weird, because when i use scanForArduinos before "a = arduino" it founds on the right port, but if i try again right after the command it disappears. Do you have any clue what is happening?

    • @apm
      @apm  4 года назад

      You need to close the connection before reconnecting again. Use a.close().

    • @joaopedromrodriguez
      @joaopedromrodriguez 4 года назад

      ​@@apm But im not trying to reconnect again, the command that i repeat is scanForArduinos. The message "arduino object disconnected" shows in the first try of a = arduino.

    • @joaopedromrodriguez
      @joaopedromrodriguez 4 года назад

      @@apm >> pkg load arduino
      >> arduinosetup
      Running "C:\Program Files (x86)\Arduino\arduino.exe" "C:\Users\joaop\AppData\Local\Temp\oct-VJtJm
      B\octave\octave.ino"
      ans = 1
      >> scanForArduinos
      ans =
      {
      [1,1] =
      scalar structure containing the fields:
      port = \\.\COM4
      board = uno
      }
      >> a = arduino
      a =
      arduino object disconnected
      >> scanForArduinos
      ans = {}(0x0)
      >>

    • @apm
      @apm  4 года назад +1

      @@joaopedromrodriguez do you have the GNU Octave firmware loaded? Here is a more complete tutorial: github.com/APMonitor/begin_matlab/blob/master/octave/05.%20Arduino.ipynb

    • @joaopedromrodriguez
      @joaopedromrodriguez 4 года назад +2

      @@apm yeah I do. Actually i solved the problem with a = arduino(); instead of a = arduino . Dont ask me why... 😅

  • @abhishekraj2336
    @abhishekraj2336 4 года назад +4

    Sir, do you have any plans to make video fully dedicated on arduino and its application ?
    I loved your video on cascade control, that makes me to watch your whole playlist.

    • @apm
      @apm  4 года назад +1

      Yes, I'm making additional videos with Arduino applications such as those shown on the course schedule: apmonitor.com/pdc/index.php/Main/CourseSchedule (see TCLab activities)

    • @abhishekraj2336
      @abhishekraj2336 4 года назад

      @@apm thank you

  • @Jozequielpro2024
    @Jozequielpro2024 3 года назад +1

    When i put a=arduino it says that has private access, how can i fix it?
    The error line is
    error: subsref: property 'connected' has private access and cannot be obtained in this context
    Thanks btw

    • @apm
      @apm  3 года назад

      If it is already connected then you may need to disconnect and reconnect the Arduino.

  • @marcosking9206
    @marcosking9206 Год назад

    Everytime I type "arduinosetup", it gives me this error:
    __arduino_binary__: can not find the arduino binary
    error: called from
    __arduino_binary__>find_arduino_binary at line 126 column 5
    __arduino_binary__ at line 26 column 22
    arduinosetup at line 244 column 21
    It doesn´t open arduino IDE... Can somebody help me?

    • @apm
      @apm  Год назад

      Sounds like a problem with installing the Arduino software. I recommend that you uninstall it and try to reinstall again.