Products/BlueSense Max MSP/DC Motor control
From BlueMelon
This patch shows you how to use the BM7005 Bluesense DC motor control module from within Max MSP(tm).
First you need the components in the top area to establish the connection between Pure Data and the BlueSense usb (wireless) router. Set the metronome interval to 2 ms or more and enable the metronome. You must then double click the BlueSenseMaster module to let the system detect the connected modules.
The area on the bottom contains the motor controller module. The first argument of the BlueSenseMotor 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.
The dc motor module has two outputs. In Max MSP(tm) these are represented by the two inputs with which you can set the corresponding motor speed in eight bits accuracy. A negative value (-128..0) allows you to set the motor in backward motion. A positive value (0..127) sets the motor in forward motion.
By moving the 2D slider vertically you can control the global speed. Moving the slider upwards increases the speed, moving downwards decreases the speed. The global speed is shown next to "Total speed". By moving the slider horizontally you can control the speed of each motor. Moving left decreases the speed to the left motor causing steering to the left. Moving the slider to the right causes the right motor to slow down. The steering position is shown next to "Steering". "Left" and "Right" show the speeds of the individual motors.
| BM7005 Bluesense DC motor control Control two DC motors with adjustable speed | € 59,- |



