- EOL
Attention! The product has been discontinued. Check others products incategory. |
Product description: BBMagic Relay Power - Wireless controller with relay
The wireless BBMagic Relay Power module is an extended version of the BBMagic Relay module, in addition to the standard control outputs it is equipped with a circuit with a230 V / 10 A relayconnected to the control output RELAY_0. It communicates inBluetooth Low Energy (BLE)standard.The module is compatible with Raspberry. Supply voltage from 1.8 to 3.6 V.
The module is equipped with a 230 V / 10 A relay.
Functions of the BBMagic RELAY Power module - Wireless controller with relay
- 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 module is equipped with a relay with load capacity up to 10 A controlled by 12 V.
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 manual withbbmm_scanner appplication. |
Operation of BBMagic Relay Power module - Wireless controller with relay
When the BBMagic Relay Power starts up, it sends "ALIVE" information every 60 seconds.If the module receives a request to switch 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.h of the library version 2.0. For example, you can find examples of programs 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. |
BBMagic Relay Power module outputs - Wireless controller with relay
Pin | Description |
---|---|
1,8,20,22,23,24 |
The weight of the system. |
2 |
Configuration of radio transmission signaling:
|
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:
|
17 |
START CONF configuration input
|
18,19 |
UART interface lines:
|
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
- Relay parameters:
- Coil voltage: 12 V
Switching voltage: 230 V AC / 30 V DC - Maximum current: 10 A
- 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
Useful links |