/arduivis

a bi-directional communication paradigm for programming languages & microcontrollers

Primary LanguageMax

a bi-directional communication paradigm for programming languages & microcontrollers

Background

The idea revolves around using an Arduino, or similar mircocontroller with serial capability, as a communication hub. Within this hub, a user can send and/or receive data from a microcontroller using a programming language that has serial capabilities. Anything connected to the microcontroller that provides data or voltage source, is a new source of information that can for new forms of research.

Installation

  • Download the repository.
  • Open Max8.
  • Go to file Options > File Preferences.

  • Click the plus to add the arduivis repository to the filepath.

  • Open a new Max patch.

  • Unlock it.

  • Click Snippets and find arduivis.

  • Drag the snippet into the patch.

Interface

  • ins - The number of inputs, going from Max to Arduino
  • outs - The number of outputs, going from Arduino to Max
  • create - Create a new arduivis instance based on the number of i/o's
  • code - View generated Arduino code
  • save - Save new Arduino code
  • clear - Clear arduivis instance and generated code

Demo

The demo is an example how to use arduivis. The arduivis snippet is added to an empty patch and places at the top left of the patch. The patch requires four inputs and seven outputs. Add four to the inputs box and seven to the outputs box. Click create, it generates a new patch from the user-defined inputs and outputs parameters. It generates Arduino code based on the parameters and press the code button to copy the code. Paste the code into the Arduino IDE and upload it to the microcontroller. When finished, go to the Mac patch and click update to refresh the menu of boards. Select the board connected to the computer and wait three seconds. Start polling by clicking the toggle. The connection is established and data can be sent bi-directionally between Max and the microcontroller.