ArduinoInput Op
Get sensors values from the analog inputs of an Arduino board
Summary (oneliner)
Full Name
- Ops.Patch.PNq9A3c.ArduinoInput
- Patch Op - visible in this patch only
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Arduino to cables
A simple and reliable method for configuring Arduino pins, sending data, and reading sensor values using the MIDI interface on an Arduino board. Works on WebMidi enabled browser like Chrome, Firefox, Edge and Arduino boards with an ATmega32U4 microcontroller:
- Arduino Leonardo
- Arduino Micro
- Arduino Esplora
- Arduino Pro Micro ...
Technical Infos on MIDI Channel Usage:
- Channel 0: Sends the lower 7 bits of analog sensor values (0-127).
- Channel 1: Sends the upper 3 bits of analog sensor values (extending resolution to 10 bits).
- Channel 4: Controls the output mode ( 0: PWM / 1: Servo / 2: DMX )
INPUT PORTS
Pin (Number: integer)
Analog Input Pin number of the arduino board to read
OUTPUT PORTS
Value (Number)
Value of the sensor connected from 0 to 1023