start
Table of Contents

AC Sensorizer

Description

AC Sensorizer sensorizes up to 8 sensors and interpolates its AIN-readings. The main target of this application are sensoric devices delivering not exactly 0 - 5 V, like pressure-, distance-, resistor-based sensors or softPots.

:!:
This is a preliminary beta-release.
Use and build at your own risk!
There will be major improvements in the GUI/HUI within the release of the next version. Though the code basis (ACSensorizer.c) won’t probably change that much... – audiocommander


Features


Required hardware

MBHP Modules:

Sensors:


Application Software


Compiling Notes

The application can be recompiled with a variety of strictly separated #define- options. For example setting SENSORIZER_INTERFACE_HUI to 0 compiles the application without hardware input controls and therefore reduces the file- and application space. Compiling without HUI, BANKSTICK, NRPN-Config and LCD generates code with approx. 3 or 4 pages; compiling with all options will result in an application file of approx. 12 to 14 pages.



MIDI-Controllable Parameters

All Sensorizer parameters can be controlled and set by sending NRPN messages by MIDI:

1. Send NRPN MSB (Controller# 99) to select control type
2. Send NRPN LSB (Controller# 98) to set the control parameter
3. Send NRPN Data MSB (Controller# 6) and NRPN Data LSB (Controller# 38) to set the parameter value


NRPN MSB
CC Value Control Type Note
CC99, 0×63 0..7 Sensor 0..7 See Table B
CC99, 0×63 126 SysEx mode: ON n/a
CC99, 0×63 127 SysEx mode: OFF n/a

Table A: Control Types


NRPN LSB DATA ENTRY MSB/LSB
CC Value Control Parameter CC Value Description
CC98, 0×620×00 enabled CC38, 0×26 0/1 ON/OFF
CC98, 0×620×01 pedalMode CC38, 0×26 0..7 FILTER/HOLD/PANIC/KOMBI
CC98, 0×620×02 autoSense CC38, 0×26 0..2 AUTOSENSE_OFF/_MIN/_MAX
CC98, 0×620×03 invert CC38, 0×26 0/1 0..127 or 127..0
CC98, 0×620×04 releaseDetect CC38, 0×26 0/1 send 0 on release
CC98, 0×620×10 slowdown CC38, 0×260..127 drop AIN notifications
CC98, 0×620×11 sense_min CC38, 0×26 & CC6, 0×6 0..1023 drop below and set sense minimum
CC98, 0×620×12 sense_max CC38, 0×26 & CC6, 0×6 0..1023 drop above and set sense maximum
CC98, 0×620×13 sense_factor CC38, 0×26 0..64 f=(range/127)
CC98, 0×620×21 scale_from CC38, 0×26 0..127 restrict and rescale output
CC98, 0×620×22 scale_to CC38, 0×26 0..127 restrict and rescale output
CC98, 0×620×70 CH CC38, 0×26 0..15 MIDI Channel of sensor
CC98, 0×620×71 CC CC38, 0×26 0..127 MIDI Controller Change Number of sensor

Table B: Control Parameters



(2be continued...)