Thanks for your help. We've received your bug report.

Register for a C74 account and join an active community of artists and creatives. Post on forums and add your projects and tools to our growing showcase.

Create an Account

SensorBox

by

A simple Arduino sketch and Max patches for using an Arduino as a sensor interface. Includes code for driving multiplexers as well. The provides an easily extensible example for beginners and students to build projects around MaxMSP and Arduino.

DISCUSSION

5 Comments

chrisbob12 says:

Thank for this Andrew. It’s simple and easy to use. It did just what I needed.

jasonD says:

Hi Andrew, I am trying to hook up four 4051 multiplexers to use with your Sensorbox but wanted to check that I have the below code right, to get all four muxes in via the Arduino A0, A1, A2, A3 analog channels. Is this correct? Many thanks in advance.

//select analog channels to multiplex
char is_muxPIN[6] = {1,1,1,1,0,0};//This is the only line of code I need to change;
//for A0, A1, A2, A3 analog pins hosting four muxes
char muxcount;//variable to store the number of multiplexed inputs

Andrew Benson says:

Hi JasonD, that looks right to me. If you have trouble with it, let’s look at it in the forum.

carlo says:

Hi Andrew, I am trying to put all arduino mega’s analog input to max msp , is there a sensor box built for this need?
many thanks
Carlo

edsonedge says:

Hi Andrew

I have the same question as Carlo,

I am trying to use eight analog inputs on the Arduino mega, but I can only get a reading from six (not five, as I would excpect if the code and patch was made for the standard arduino board?)

I can´t seem to figure out how to change the patch or the arduino code to acoomidate more analog sensor inputs (except I suppose the spray object needs to be changed to [spray 8] ?

All the best

Leave a Reply