Products/BlueSense Max MSP/Bipolar stepper motor
From BlueMelon
This patch shows you how to use the BM7008 Bluesense stepper motor driver 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 stepper motor controller module. The first argument of the BlueSenseStepper 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.
In Max/MSP the right inlet can be used to control the speed of the motor. A positive value between 0 and 127 rotates the motor forward, while a negative value will rotate the motor backwards.
The module can be configured by sending the 'config' message to the left inlet. This message has 5 arguments:
- The current in miliAmpere. This value should lie between 0 and 1500.
- Autostop: 1 --> The motor is automatically stopped when the limit switch is activated.
- Halfstep: 1 --> The motor will make halfsteps in stead of full ones. The setting allows the motor to run more steadily.
- Wave drive: 1 --> Wave drive enabled. This setting causes a noise canceling effect. 0 --> Wave drive uitgeschakeld.
- Fast decay: 1 --> Fast decay enabled. Depending on the mass which is driven by the motor this can have a positive effect. 0 --> Normal decay mode.
Connect
| Bipolar stepper motor Connecting a bipolar stepper motor |
Module
| BM7008 Bluesense stepper motor driver control a bipolor stepper motor rated up to 1 Ampere | € 79,- |


