- EOL
Attention! The product has been discontinued. Check other products in category. |
Product description: BBMagic Magneto - Wireless magnetic field sensor
Wireless magnetic field sensor communicating inBluetooth Low Energy (BLE) standard. It detects the appearance or disappearance of a magnetic field with a reed switch. The module is compatible withRaspberry Pi. It is poweredfrom 1.8 V to 3.6 V. In addition, the unit canmonitor the light leveland is capable of monitoring2 analogueand 4digitalsignals. The reed switchmust be purchasedseparately.
A reedswitchis required for proper operation.
Operating modes BBMagic Magneto - Wireless magnetic field sensor
To set the mode of operation, please:
- Turn off the power supply to the module.
- Press the built-in button.
- Turn on the power while holdingdown the button.
- Hold the button while counting down the LED flashes: 1 flash = 1 operating mode, 2 flash = 2 operating mode and so on.
- Release the button with the selected operating mode.
- The LED will go out for about 2 seconds and then flash several times depending on the mode set.
Operating mode | Data transmission period "ALIVE |
---|---|
1 |
ALIVE" information is sent every 30 seconds. |
2 |
ALIVE" information transmitted every 60 seconds. |
3 |
ALIVE" information transmitted every 3 minutes. |
4 |
ALIVE" information transmitted every 5 minutes. |
The manufacturer has prepared the source code of the application to process data from BBMagic modules. They are available on the manufacturer's website in thedownloadsection, additionally prepared a short manualwith the bbm_scanner appendix. |
Communication of BBMagic PWM module - wireless PWM signal controller
The module communicates viaBluetooth Low Energy,the communication is encrypted and signed digitally with the AES-128 symmetrical block code. The device can communicate directly with Raspberry PiviaBluetooth Smart.
The reed switch is not included. Please order it separately.
Operation of BBMagic Magneto module - wireless magnetic field sensor
When the BBMagic Magneto starts up, it sends the standby information "ALIVE" at the time set during the configuration mode. The exception is the detection or loss of magnetic field, then it is sent immediately after the status change. The buffer content is defined in the file bbmagic_lib.h. Sample programs can be found onthe manufacturer's website.
bbmm_buf[BBMAGIC_DEVICE_TYPE] | Specify the type of module that sent the data. |
bbm_buf[BBM_MAGNETO_FLAGS] | Flags informing about magnetic field detection (oldest bit) and status of four digital inputs (four younger bits). The set BBM_MAGNETO_MAGNET_MASK flagindicates magnetic field detection. |
bbm_buf[BBM_MAGNETO_V_SUP] | The current supply voltage of the modulemust be divided by 71 to obtain the voltage in volts. |
bbm_buf[BBM_MAGNETO_ADV_TIME]. | Time to send another message from the module. To get the time in seconds, multiply it by two. |
bbm_buf[BBM_MAGNETO_CHIP_TEMP] | Temperature given in degrees Celsius. |
bbmm_buf[BBM_MAGNETO_LIGHT] | Lighting level, Range 0 to 255. |
bbmm_buf[BBM_MAGNETO_ADC_1_MSB]bbm_buf[BBM_MAGNETO_ADC_1_LSB] | Voltage level at input ADC_1 in mV, older and younger byte. |
bbmm_buf[BBM_MAGNETO_ADC_2_MSB]bbm_buf[BBM_MAGNETO_ADC_2_LSB] | Voltage level at input ADC_2 in mV, older and younger byte. |
bbmm_buf[BBM_MAGNETO_WORKTIME_0]] |
The module's operating time since the last power on is given in seconds - youngest byte 0. |
bbmm_buf[BBM_MAGNETO_WORKTIME_1]. | The module's operating time since the last power on is given in seconds - next byte 1. |
bbmm_buf[BBM_MAGNETO_WORKTIME_2]. | Module operating time since the last power-on in seconds -nextbyte 2. |
bbmm_buf[BBM_MAGNETO_WORKTIME_3]. | Module operating time since the last power-on in seconds -nextbyte 3. |
bbmm_buf[BBM_MAGNETO_FIRM_0]. | Module firmware version, junior byte. |
bbmm_buf[BBM_MAGNETO_FIRM_1]] | Versionmodule firmware, older byte. |
bbm_buf[BBMAGIC_DEVICE_ADDR_0]] | Module address - youngest byte 0 - LSB. |
bbm_buf[BBMAGIC_DEVICE_ADDR_1]. | Module address - next byte 1. |
bbm_buf[BBMAGIC_DEVICE_ADDR_2]. | Module address - next byte 2. |
bbm_buf[BBMAGIC_DEVICE_ADDR_3]. | Module address - next byte 3. |
bbm_buf[BBMAGIC_DEVICE_ADDR_4]. | Module address - next byte 4. |
bbm_buf[BBMAGIC_DEVICE_ADDR_5]. | Module address - oldest byte 5 - MSB. |
bbm_buf[BBMAGIC_DEVICE_RSSI]. | Power of received radio signal in dBm. |
BBMagic Magneto module outputs - Wireless magnetic field sensor
Pin | Description |
---|---|
1,8,20,22,23,24 |
The weight of the system. |
2 |
Configuration of radio transmission signaling:
|
3,4,5,6 |
Digital inputs of the module, sampled each time before sending the message "ALIVE". |
7,21 |
Power inputs, supply voltage from 1.8 V to 3.6 V. |
21,22 |
Soldering pads for the holder for CR2032 pastille battery: 21(+) i 22(-). |
7,8,9 |
The pads are used to solder the stabilizer, in order to supply the module with higher voltage. |
10 |
Power input for stabilizer with reverse polarity protection. |
11,12 | Soldering pads for 10 kΩ photoresistor. |
13,14 |
Analogue-to-digital converter inputs ADC_1 and ADC_2. Voltage from 0 to 1.8 V. Resolution of 1 mV. |
18,19 |
UART interface lines:
|
24,25 |
Soldering pads for reed relay detecting magnetic poles - option 1. |
23,25 |
Soldering pads for reed relay detecting magnetic poles - option 2. |
Specification BBMagic Magneto - Wireless magnetic field sensor
- Power supply for the module:
- Directly: 1.8 V to 3.6 V
- Stabiliser: output from 2.5 V to 3.6 V
- Soldering pads for magnetic field detection reed relay
- Light detector: after soldering the photoresistor 10 kΩ
- 2 ADCs: 0 V to 1.8 V
- Monitoring the state of the supply voltage
- Chip temperature measurement
- Radio communication indicated by an LED
- Encrypted and digitally signed communication AES-128
- Dimensions: 46 x 22 mm
Useful links |