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

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.

SensorBox

Feb 5, 2011 at 8:57am

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

#263172
Apr 18, 2011 at 6:32am

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

#263173
Apr 28, 2011 at 12:14pm

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

#263174
Dec 14, 2011 at 1:42am

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

#263175
Jun 13, 2012 at 1:20pm

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

#263176
Jun 28, 2013 at 3:58am

Hi Andrew,
This works great! I have used it with 24 light sensors interface.
I am actually thinking of turning it into kickstarter project and was wondering what license there is on this Arduino sketch and Max patch. How can I get in touch with you?

All best,

#263177
Jan 5, 2014 at 8:44am

Hi Andrew,
thanks for the nice and simple patch – very useful to be able to get this quick progress :) – I am slightly confused though that I have sensors only on 2 pins on the arduino board (0 and 2) and yet all the analogue sliders are responding! :) – 2 or 3 sliders for each pin showing similar levels. any ideas ?

Are you working on more max patches for things like arduino ? (eg for output?) … also do you have a blog I can follow, to keep track with projects etc ? … ie projects in general

thanks,
sponde
UK
:)
ps. is MUX simply an extended version of the other patch (to cater for more analogue inputs) … or is more going on ?

#277460
Jan 5, 2014 at 1:25pm

Your other inputs are ‘floating’, ie. they have no reference to ground. Your seeing noise / crosstalk from the 2 connected inputs. Ignore it or pull inputs to ground to get stable 0′s. https://www.google.nl/search?q=floating+input+arduino

#277486
Jan 6, 2014 at 12:39pm

Yeah, what you are seeing is just floating unconnected pins. It’s harmless, but if it really bothers you, just tie those pins to ground and you won’t see them moving around. The MUX code is for use with one or more analog multiplex chips to multipy the inputs if you need lots of analog sensors. Depending on usage it might require a little customization in the arduino sketch.

#277576
Jan 8, 2014 at 3:48am

Im trying to use this to just read the value coming from 3 analogue pins, but I cant seem to get anything through. Im a bit of a novice at this so I’m sure it’s something stupid. I have my arduino uno plugged in, with the standardfirmata example on. One thing i think it could be is on the umenu it doesnt have com3, 4 etc, but usbserial-a4001tfl. Is this right?
Any help would be massively appreciated

#277710
Jan 10, 2014 at 1:13pm

There is an Arduino firmware sketch included. Load that on your board. This patch wasn’t intended to be used with Firmata.

#277953

You must be logged in to reply to this topic.