RePhone Lumi Kit
SKU 113060002
Slim and small modulesPowered by Xadow GSM+BLE
Programmable LED Driver
Various rich-featured add-on modules for function extension
Description
RePhone Lumi Kit is specially designed for LED lovers - embedding the Xadow
GSM+BLE module into your awesome lighting device and control the light via SMS or
Bluetooth!
TheXadow Duino is specially designed for building up awesome Lighting Devices using
the most popular RGB LED WS2812b. Based on the MCU ATmega32u4 and the built-in
micro USB, Xadow Duino allows you to either control the RGB LEDs directly from the
software in RePhone Kit Create, or program the board with Arduino IDE to make it work
dependently.
FEATURES
• Slim and small modules
• Powered by Xadow GSM+BLE
• Programmable LED Driver
• Various rich-featured add-on modules for function extension
• Stackable, chainable and sewable with other Xadow Modules
SPECIFICATION
• Core Module: Xadow GSM+BLE
• Microcontroller: MT2502
• MCU Core: 32-bit ARM7EJ-STM RISC processor
• RAM: 4MB
• Flash Memory: 16MB
• Power Supply: 3.3 – 4.2V
• Power Consumption: 20mW/30mW/52mW @ standby(no radio)/standby(GSM)/standby(BT)
• Quad-band: 850/900/1800/1900 MHz
• GPRS: Class 12 modem
• Clock Speed: 260 MHz
• Connector: 35 PIN Connector & 11 PIN Connector for Xadow, SMD Female JST battery connector
• Interfaces: External ports for LCD, camera, I2C, SPI, UART, and GPIOs etc.
• Dimension: 25.37mm X 20.30mm / 1" X 0.8"
PART LIST
• Xadow GSM+BLE * 1
• Xadow Duino * 1
• Xadow GSM Breakout * 1
• FPC Cable 35 PIN * 2
• FPC Cable 11 PIN * 2
• Battery 520mAh * 1
• User Guide * 1
RePhone Lumi Kit
Introduction
RePhone Lumi Kit is specially designed for LED lovers - embedding the Xadow GSM+BLE
module into your awesome lighting device and control the light via SMS or Bluetooth!
Specification
Xadow GSM+BLE
Microcontroller
MT2502
MCU Core
32-bit ARM7EJ-STM RISC processor
RAM
4 MB
Flash Memory
16 MB
Power Supply
3.3 ~ 4.2V(no SIM)/3.5 ~ 4.2V(with SIM)
Power
Consumption
20mW/30mW/52mW @ standby(no radio)/standby(GSM)/standby(BT)
Quad-band
850/900/1800/1900 MHz
GPRS
Class 12 modem
Clock Speed
260 MHz
Connectors
35 PIN Connector & 11 PIN Connector for Xadow Modules; JST 1.0 Connector
for the battery
Interfaces
LCD, Audio, I2C, SPI, UART, and GPIOs etc
Dimensions
25.37mm × 20.30mm / 1” × 0.8”
Xadow Duino
Microcontroller
ATmega32u4
Power Supply
5V via USB, current draw is 1.5A at Max 3.3 ~ 4.2V via battery socket, current
draw is 1.5A at Max 3.3 ~ 6V via breakout pins, current draw is 500 mA at Max
3.3 ~ 4.2 V via Xadow GSM+BLE, current draw is 500 mA at Max
Charging
Current
500 mA
Flash Memory
32 KB (ATmega32u4) of which 4 KB used by bootloader
SRAM
2.5 KB (ATmega32u4)
EEPROM
1 KB (ATmega32u4)
Clock Speed
16 MHz
Connector
2 × 11 PIN Xadow Connector Bonding pads for RGB LED WS2812b
Interfaces
Interface with Xadow GSM+BLE through I2C (7-bit address 0x23)
Dimensions
25.37mm × 20.30mm / 1”× 0.8”
Xadow GSM Breakout
Dimensions
25.37mm × 20.30mm / 1” × 0.8”
Module Connection
The Xadow GSM+BLE integrates a Xadow 36 Pin connector and a Xadow 11 Pin connector. As
the image shows here, you can connect the Xadow GSM+BLE to Xadow GSM breakout with a
Xadow 36 Pin cable, but do bear in mind that the cable has to be inserted firmly and flat, and
most importantly, keep the ‘TOP’ side upwards. The Xadow 11 Pin connector have much more
flexible design, you can connect the Xadow Duino and the mainboard with a Xadow 11 Pin
ribbon cable in whatever way you want, again just make sure cable is firmly inserted.
Control the Light with SMS!
Here is an example of controlling you RGB LEDs by sending a message to your RePhone.
Firstly you need to follow the instructions in the Arduino IDE for RePhone Kit to download
the Arduino IDE for RePhone Kit as well as install the drivers. Then copy the following code to
your Arduino IDE for RePhone. Choose the board as “RePhone” and download it with the
“MTK USB Debug Port”.
#include
#include
#include
#include
#include
#include
//SMS command 0 : "OFF" ‐ off display.
//SMS command 1 : "R100G0B0" ‐ red color is 100, green color is 0, blue coler is 0.
char num[20];
char buf_contex[200];
void setup()
{
Serial.begin(115200);
Serial.print("Ws2812 test.\r\n");
}
void loop()
{
unsigned long rgb_color;
if(LSMS.available())
{
LSMS.remoteNumber(num, 20);
LSMS.remoteContent(buf_contex, 50);
Serial.println("Get new sms: ");
Serial.print("Number:");
Serial.println(num);
Serial.print("Content:");
Serial.println(buf_contex);
if(strcmp("OFF", buf_contex) == 0)
{
Serial.print("RGB off.\r\n");
LWs2812.monochrome(5, 0, 1);
}
else
{
if(StingFind(buf_contex, "R", 1))
{
if(StingFind(buf_contex, "G", 1))
{
if(StingFind(buf_contex, "B", 1))
{
Serial.print("RGB flag is find.\r\n");
char color_r[4] = {0};
char color_g[4] = {0};
char color_b[4] = {0};
sscanf(buf_contex + 1,"%[^G]", color_r);
sscanf(buf_contex,"%*[^G]G%[^B]", color_g);
sscanf(buf_contex,"%*[^B]B%[^\0]", color_b);
rgb_color = atol(color_r)*256*256 + atol(color_g)*256 + atol(color_b);
Serial.print("rgb color is ");
Serial.println(rgb_color);
delay(100);
LWs2812.monochrome(5, rgb_color, 0);
delay(100);
LWs2812.monochrome(5, rgb_color, 0);
}
}
}
}
}
}
int StingFind(char* string, char* find, int number)
{
char* pos = string;
char* p = string;
int count = 0;
while(number > 0)
{
pos = strstr(p, find);
if(pos == 0)return ‐1;
while(p 0x80 || *p