• EOL

BBMagic Relay - Wirelles Relay driver

Index: BBM-15517

BBMagic Relay is a wireless relay controller communicating in Bluetooth Low Energy (BLE) standard . It allows to control 4 relays. It is powered from 1.8 to 3.6 V. In addition, it is equipped with the ability to monitor the status of the power supply voltage, light detector (after soldering the photoresistor) and 2 ADC channels. The moduleis compatible with Raspberry.

BBMagic Relay - Wirelles Relay driver
€14.90
€12.11 tax excl.
Unavailable
Discontinued product
PayPal payment
Manufacturer: BBMagic

Attention!

The product has been discontinued. Check others products incategory.

Product description: BBMagic Relay - Wireless Relay Controller

BBMagic Relay is a wireless relay controllercommunicatingin Bluetooth LowEnergy (BLE)standard.It allows you to control 4 relays. It is poweredfrom 1.8 to 3.6 V. Additionally, it is equipped with the possibility ofmonitoring the state of power supply voltage,lightdetector(aftersoldering the photoresistor) and 2ADC channels.The module is compatible withRaspberry Pi.

BBMagis Relay - Bezprzewodowy sterownik przekaźników

BBMagic module allows to control 4relayssimultaneously.

Controlling BBMagic Relay module - Wireless Relay Controller

To be able to control the module you need a bluetooth address and a key to be able to add the device to the actor database:

bbm_relay_add("my_rel", "3B5D6868AA98", "2DFDA5070CD284A107A24F7e53572A7B38") ;

and use functions included in the bbmagic_lib_2.0 library. The following command enables the RELAY_0 and RELAY_3 outputs:

bbm_relay_on("my_rel", REL_CH0 | REL_CH3) ;

Bezprzewodowy sterownik przekaźników

The module is operated by Raspberry Pi using the bbmagic_lib library.

Operation of BBMagic PWM module - wireless PWM signal controller

When the BBMagic Relay starts up, it sends "ALIVE" information every 60 seconds.If the module receives a request toswitch the relay(s) on or off,it sends the message "ALIVE" immediately after the task is completed. The content of the buffer is defined in the file bbmagic_lib.hlibrary version 2.0. Examples of programs can be found on themanufacturer'swebsite.

bbmm_buf[BBMAGIC_DEVICE_TYPE]. Specify the type of module that sent the data. In this case"BBMAGIC_M_RELAY".
bbmm_buf[BBM_RELAY_V_SUP]. Module supply voltage. To obtain the voltage in volts, divide the obtained value by 71.
bbm_buf[BBMAGIC_RELAY_ADV_TIME]. The time after which the "ALIVE" message queue is sent. To hold the time in seconds, multiply it by 2.
bbm_buf[BBMAGIC_RELAYS_STATE] The four youngest bits define the state of the relays. Bit set=relay on, bit zeroed=relay off. Bit0 - Relay0...Bit3 - Relay3.
bbmm_buf[BBM_RELAY_CHIP_TEMP] Chip temperature in degrees Celsius (coding U2).
bbmm_buf[BBM_RELAY_LIGHT]. Lighting level. Given in the range from 0 to 255.

bbmm_buf[BBM_RELAY_ADC_1_MSB].

i

bbm_buf[BBM_RELAY_ADC_1_LSB]

Voltage level at input ADC_1 given in mV, older and younger byte.

bbm_buf[BBM_RELAY_ADC_2_MSB].

i

bbm_buf[BBM_RELAY_ADC_2_LSB]

The voltage level. The address of the module, and the input ADC_2 in mV, an older and a younger byte.

bbm_buf[BBMAGIC_RELAY_WORKTIME_0].

Module operation time since the last power on in seconds - youngest byte - 0.

bbmm_buf[BBMAGIC_RELAY_WORKTIME_1].

Module operation time since the last power on in seconds - next byte - 1.

bbmm_buf[BBMAGIC_RELAY_WORKTIME_2].

Module operation time since the last power on in seconds - next byte - 2.

bbmm_buf[BBMAGIC_RELAY_WORKTIME_3].

Module operation time since last power on in seconds - next byte - 3.

bbmm_buf[BBM_RELAY_FIRM_0].

The firmware version number of the module - a younger byte.

bbmm_buf[BBM_RELAY_FIRM_1]]

Module firmware version number - older byte.

bbm_buf[BBMAGIC_DEVICE_ADDR_0]]

Module address, youngest byte 0 -LSB.

bbm_buf[BBMAGIC_DEVICE_ADDR_1].

Module address, byte 1.

bbm_buf[BBMAGIC_DEVICE_ADDR_2].

Module address, byte 2.

bbm_buf[BBMAGIC_DEVICE_ADDR_3].

Module address, byte 3.

bbm_buf[BBMAGIC_DEVICE_ADDR_4].

Module address, byte 4.

bbm_buf[BBMAGIC_DEVICE_ADDR_5].

Module address, next byte 5 - MSB.

bbm_buf[BBMAGIC_DEVICE_RSSI].

Received radio signal power in dBm.

Functions of BBMagic RELAY module - Wireless relay controller

  • Control of up to 4 relays
  • The function of automatic activation of the output RELAY_0 for 15 minutes after starting the module, configured with pin 17.
  • Possibility of monitoring the power supply voltage status.
  • Light detector - pads for soldering a 10 kΩ photoresistor - range from 0 to 255.
  • Two ADC channels with voltage range from 0 V to 1.8 V and resolution of 1 mV.
  • Temperature measurement of the control chip.
  • Built-in LED indicating Bluetooth communication - configurable with pin 2.
  • The communication is encrypted and signed digitally.
  • Simple control with Raspberry Pi using the bbmagic_lib library.

The manufacturer has prepared the source code of the application allowing to process data from BBMagic modules.

They are available on the manufacturer's website in theDownloadtab, additionally prepared a short guide to working withbbmm_scanner application.

BBMagic Relay module outputs - Wireless Relay Controller

BBMagic Relay - bezprzewodowy sterownik przekaźników

Pin Description

1,8,20,22,23,24

The weight of the system.

2

Configuration of radio transmission signaling:

  • Connection to ground: The built-in red LED indicates radio transmission.
  • No connection: the LED is switched off. The signalling pulses appear on pin 15. Alternatively, the LED can be connected with a serial resistor to pin 15 and 16. It is recommended to use a resistor between 1 kΩ and 4.7 kΩ.

3,4,5,6

Outputs controlling relays, a transistor is needed for proper operation.

7,21

Power inputs, supply voltage from 1.8 V to 3.6 V.

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

ADC inputs. Voltage from 0 to 1.8 V. Resolution of 1 mV.

15,16

Pads for connecting an LED with a serial resistor:

  • Pin 15 anode with resistor.
  • Pin 16 cathode with resistor.

17

START CONF configuration input

  • Connected to ground or pin 16: When power is applied for 15 minutes, the RELAY_0 output will be driven for 15 minutes.

18,19

UART interface lines:

  • Pin 18 - TX.
  • Pin 19 - RX.
Permissible voltage range from 0 V to 5 V.

BBMagic Relay module specification - Wireless Relay Controller

  • Power supply for the module:
    • Directly: 1.8 V to 3.6 V
    • Stabiliser: output from 2.5 V to 3.6 V
  • 4 relay control channels
  • Light detector: pads for solderable photoresistor 10 kΩ
  • Two ADC channels: 0 V to 1.8 V
  • Chip temperature measurement
  • Monitoring the state of the supply voltage
  • UART line responsible for transmitting and receiving the signal: from 0 V to 5 V
  • Encrypted and digitally signed communication
  • Communication is indicated by an LED

Package width 2.7 cm
Package height 4.6 cm
Package depth 0.7 cm
Package weight 0.005 kg

Be the first to ask a question about this product!

Customers who bought this product also bought:

Products from the same category: