Blue Melon
BlueSense

Products/BlueSense Pure Data/DC motor control

From BlueMelon

This patch shows you how to use the BM7005 Bluesense DC motor control module from within Pure Data.

dcmotor pd.gif

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 send the update message to detect which modules are connected. The update message will also display which devices have been found.

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 Pure Data 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.

BM7005.gifBM7005 Bluesense DC motor control
Control two DC motors with adjustable speed
€ 59,-


         

 

This page was last modified 13:02, 10 April 2006.