Products/BlueSense Pure Data/PWM outputs
From BlueMelon
Required: V2.0 firmware for BM7002 Bluesense digital outputs
This firmware is available on newly purchased modules. The firmware will be available for existing modules soon through an update utility which is currently in development.
This example demonstrates how the open collector output device can be used to generate PWM (Pulse Width Modulation) signals. Such signals can be used for example to simulate analog outputs or to dim lights.
First you need the block on the top to establish the connection between Pure Data and the BlueSense USB (wireless) router.
The middle block contains the BM7002 Bluesense digital outputs 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.
The open collector output module has 16 outputs. Normally these outputs are configured as either on or off. By typing PWM as the third argument however you can configure up to 16 pins as Pulse Width Modulation outputs. The PWM signal has a frequency of about 1 kHz which is enough to dim lights. The duty cycle of each PWM pin can be adjusted via the Pure Data object.
"BlueSenseOCOutput 912 PWM A" chooses a Open Collector Output module with id 912 and allows the adjustment of the duty cycles of the PWM signals on side A. If you set the duty cycle of a pin to zero, the corresponding PWMis deactivated.
In this example 3 of the 16 pins are used as PWMs. A1,A2,A3 can be connected to a three leds which can be dimmed indepentdently by using the sliders.
For more information on PWM refer to PWM explained.
| BM7002 Bluesense digital outputs 16 open collector digital outputs (with PWM support) | € 69,- |


