DIY – WiFi Shield for GR-KURUMI

I tried to make the WiFi Shield for GR-KURUMI.
For GR-KURUMI WiFi shield,  WizFi250 is select as WiFi module which provides UART-to-WiFi and SPI-to-WiFi.
To test simply, FI250 library which is selected UART interface for Host Interface is used as WiFi Library.
Ref. : Comparison of WizFi250 (WiFi Module) Shield / Library in WIZnet and Seeeduino

GR-KURUMI and WizFi250  could be connect to “Serial1”: serial1 is UART interfae which is consist TXD(7) and RXD.(8) as below GR-KURUMI Pin map.

GR-KURUMI Pin Map

GR-KURUMI Pin Map

 

1. Hardware

  • Hardware conntections

GR-KURUMI

WizFi250

7

TXD:JP2

8

RXD:JP2

GND

GND

VCC

TP2

Follow these steps to connect the actual, is as shown in the following figure.

WiFi Shield for GR-KURUMI

1. prepare GR-KURUMI, WizFi250, WizFi250-EVB, FTDI board, Bread board, Ext. Anttena

Wiz250 (WiFi Shield) top for GR-KURUMI

2. connect TP2 to 3.3V in JP5 for 3.3 power input of GR-KURUMI

Wiz250 (WiFi Shield) bottom for GR-KURUMI

3. Wiz250 (WiFi Shield) bottom for GR-KURUMI: Connect TXD@JP2 to AD1@JP7 and Connect RXD@JP2 to AD0@JP7

Interface board (WiFi Shield) top for GR-KURUMI

4.1 Interface board (WiFi Shield) top for GR-KURUMI

Interface board (WiFi Shield) bottom for GR-KURUMI

4.2 Interface board (WiFi Shield) bottom for GR-KURUMI : Red : 3.3V / White : GND / Green : RXD / Yellow : TXD / Blue: WizFi250 RESET

GR-KURUMI with Wiz250 (WiFi Shield, Ext. Ant.)

5. Stack up with Wiz250 (WiFi Shield), Interface board and GR-KURUMI

2. Software

* Library

I forked Fi250 Library at Fi250 Webpage.
Lib. is modified for GR-KURUMI and added some function.
Lib. is upload at Github : https://github.com/embeddist/Seeeduino_WizFi250

* IDE : IDE for GR 0.4.0

 

3. programming and debugging interface

* programming interface

GR-KURUMI Programming

GR-KURUMI Programming

* debugging interface : USB Interface (power & USART1)

WizFi250-EVB

WizFi250-EVB

4. Set Sketch: wizfi250_test.ino

__Before setting wizfi250 example, you should be import the WizFi250 Lib. at IDE for GR. __

#define SSID “STEST”     //Input SSID
#define KEY “87654321” // Input Password
#define AUTH “WPA2”   // Input Encrytion Type

#define wizfi250_rst 9     // Chech and Set wizfi250 hw reset  pin

  1. Demo: Debugging Messages

AT
[OK]
AT+WSET=0,3PA-W //SSID of AP
[OK]
AT+WSEC=0,WPA2,wiznet— // password
[OK]
AT+WNET=1
[OK]
AT+WJOIN
Already Associated : Station Mode
[OK]
AT+WSTAT
IF/SSID/IP-Addr/Gateway/MAC/TxPower(dBm)/RSSI(-dBm)
STA/3PA-W/192.168.123.136/192.168.123.254/00:08:DC:1C:D8:73/31/33 //DHCP IP  address and Info… from AP
[OK]

 

 

SE SP-01の“あっ”と驚く活用法:GR-KURUMIで高性能デバイスを制御&デバッグ! – EDN Japan

 

GR-KURUMI

SE SP-01の“あっ”と驚く活用法:GR-KURUMIで高性能デバイスを制御&デバッグ! – EDN Japan.

GR-KURUMI(じーあーる・くるみ)とは

 GR-KURUMIのGRは「Gadget Renesas」(がじぇっとるねさす)が提供する小型のリファレンスボードです。超低消費電力マイコンであるRL78が搭載され、ピンク色の基板に女の子の顔がシルク印刷されていてLEDの髪留めがチャーミングです。GR-KURUMIの基板サイズや、外部拡張端子はArduino Pro Mini(アルドゥイーノ・プロ・ミニ)互換で設計されており、その小型なパッケージングから、ホビー用途から、はてはアートへの組み込みマイコンとして幅広く活躍しています。また、開発環境はWebアプリを使ったクラウド・コンパイル環境(Renesas Web Compiler)を実現しており、極めて低コストでマイコン開発を始めることができるようになっているのも幅広いユーザー層の支持を得ています。

WebLED for GR-KURUMI

  • Web Server & LED Blink

A simple web server that shows and control the value of the LED Digital using an Arduino Wiznet Ethernet shield. This sketch for GR-KURUMI is merged Web-server and LED Blink. You can do controlling and monitoring the RGB LED on GR KURUMI Board via Internet or Local Network.
After opening a web-browser and navigating to the Ethernet shield’s IP address, the GR-KURUMI will respond with just enough HTML for a browser to display the data. A RGB LED on GR-KURUMI is also controlled by the request of web-browser.

  • Circuit
  • Ethernet shield attached to pins 10, 11, 12, 13
  • Pin 22,23,24 has an LED connected on most Arduino boards.
  • Pin22: LED_RED
  • Pin23: LED_GREEN
  • Pin24: LED_BULE
  • SW
  • Code
  • Configuration of IP address

    IPAddress ip(192,168,1,177);

  • Initalize the Port (port80 is default for HTTP)

    EthernetServer server(80);

  • Parsing of HTTP GET Message

When web-page address is http://192.168.1.177/G0 to on the Green LEN,
the received HTTP GET Message is as below,

GET /G0 HTTP/1.1
Accept: text/html, application/xhtml+xml,....

So, 5th~7th data are parsed to control RGB LEDs.

//5th~7th data of HTTP GET Message is parsed as parse_arr
parse_arr[0] = '/'
parse_arr[1] = 'G'
parse_arr[2] = '0'