Blue Melon
BlueSense

Products/BlueSense Pure Data/Switches

From BlueMelon

The BM7001 Bluesense digital switch inputs module can be used to readout switches, rotary encoders and counters. The following patch shows how to read switches.

First you need the top area to establish the connection between Max MSP(tm) and the BlueSense usb (wireless) router. Set the metronome interval to 2 ms or more and enable the metronome. You must send the update message to detect which modules are connected. The update message will also display which devices have been found. The object in the centre represents the digital input module. The first argument of the module is its identification number. Every BlueSense module has its own identification number which never changes. The id can be found on the module itself, and can also be found by checking the module table of the BlueSenseMaster component.


switchinput pd.gif

The "switch input" module has twelve inputs. In Pure Data you can choose the six inputs of the "A" side by typing an A as second argument after the BlueSenseSwitchInput component. By typing a B you can choose the six inputs of the "B" side. The switch states are sent to the bit valued outputs of the Max MSP(tm) component. There is also a seventh output. This output contains the six inputs combined in a number.


BM7001.gifBM7001 Bluesense digital switch inputs
12 schmitt trigger switch inputs, rotary support
€ 69,-


         

 

This page was last modified 10:57, 9 April 2006.