I have made some extra nodes to deal with the data from the paper pressure pads, based on the investigations two groups made of figuring out which pad is which this morning.
First the paper sensor data is scaled from 0 to 255 (nodes 120-127) to a range between 0 and 1 (nodes 220-227).
Zone 1 consists of “paper1″ (220), “paper3″ (222), “paper4″ (223) and “paper8″ (227).
Node 230 remaps this data per node.
Node 240 remaps the data in a 4 by 6 grid.
Node 250 gives a weighted coordinate within the paper sensor in a x and y coordinate; this is a measure of the center of gravity within the zone.
Nodes 231, 241 and 251 give similar data, for zone 2, consisting of “paper5″ (224), “paper6″ (225) and “paper7″ (226).
I have yet to take into account the min-max ranges that Matt measured.
On node 100, you will get data about the last update interval from each of the 26 sensor nodes in the XBee network.
Sorry for introducing yet another tool for accessing the DataNetwork, but… it’s easy - trust me :)
This afternoon Brett and I made a Max abstraction called dn.node, which is now included as part of Harry’s DataNetwork tools. This one might be particularly useful for those of you who are fairly new to Max/MSP; basically you just insert the object in your patch with the node number (or numbers) as arguments, and the data starts flowing. There is no second step.
Check out the included help patch to see more. Unfortunately I won’t be around tomorrow since I have to spend the day teaching children about digital musical instruments for CIRMMT, but Brett can help you if you have any questions.
download here: DataNetwork tools
nodes in range 101-199, raw sensor data
nodes in range 201-299, scaled, decoded, reordered and labeled sensor data
For your own nodes: use a range above 300
A list of all the Nodes and Slots with descriptions