This is a sample program that uses two Si1143 sensors.

Dependencies:   GR-PEACH_video SI1143 mbed-rtos mbed

Information

Japanese version is available in lower part of this page.

このページの後半に日本語版が用意されています.

What is this ?

This is a sample program that uses two gesture sensors.
This program displays image of rectangle on the screen of the LCD shield depending on the sensors.

About Si1143

Si1143 is a gesture sensor and can be controlled by using the I2C.
This can be detected from the shortest 1cm up to 200cm.
Si1143 emits three infrared LED that is mounted on a substrate, and detects the movement by measuring the reflected light from the external object.

Composition

GR-PEACH, LCD Shield and two gesture sensors(Si1143).

About wiring

First Sensor

SensorGR-PEACH
VDD3.3V
SCLD15
SDAD14
GNDGND

Second Sensor

SensorGR-PEACH
VDD3.3V
SCLP1_6
SDAP1_7
GNDGND


How to use

  1. Please connect GR-PEACH ,LCD Shield and two jesture sensors. Then turn on the power to GR-PEACH.
  2. Please press the reset button of GR-PEACH.
  3. The screen which "Program Setting" is drawn is displayed on the LCD.
  4. When the sensor of the setting is completed, the screen which "Program Started!!" is drawn is displayed on the LCD.
  5. When you hold your hand on the upper of LED1 - LED3 of the two jesture sensors, six rectangles is drawn on the screen of LCD Shield.
hand onDraw
the upper of LED1 of the first sensor
/media/uploads/1050186/jesturesensor_handsonled1.png
red rectangle
/media/uploads/1050186/red_rectangle.png
the upper of LED2 of the first sensor
/media/uploads/1050186/jesturesensor_handsonled2.png
green rectangle
/media/uploads/1050186/green_rectangle.png
the upper of LED3 of the first sensor
/media/uploads/1050186/jesturesensor_handsonled3.png
blue rectangle
/media/uploads/1050186/blue_rectangle.png
the upper of LED1 of the second sensor
/media/uploads/1050186/jesturesensor_handsonled1.png
yellow rectangle
/media/uploads/1050186/yellow_rectangle.png
the upper of LED2 of the second sensor
/media/uploads/1050186/jesturesensor_handsonled2.png
light blue rectangle
/media/uploads/1050186/lightblue_rectangle.png
the upper of LED3 of the second sensor
/media/uploads/1050186/jesturesensor_handsonled3.png
pink rectangle
/media/uploads/1050186/pink_rectangle.png




概要

これは2つのジェスチャーセンサーを使ったサンプルプログラムです。
このプログラムは、センサーに応じて四角形の画像をLCDシールドの画面上に表示します。

Si1143について

Si1143はジェスチャーセンサであり、I2C通信を使ってセンサを制御します。
センサとの距離範囲は1cm200cmです。
Si1143は、基板上に搭載された3つの赤外線LEDを放射し、物体からの反射光を測定することによって、動きを検出します。

構成

GR-PEACH, LCD Shield and two gesture sensors(Si1143).

ジェスチャーセンサとGR-PEACHの接続

1つ目のSensor

SensorGR-PEACH
VDD3.3V
SCLD15
SDAD14
GNDGND

2つ目のSensor

SensorGR-PEACH
VDD3.3V
SCLP1_6
SDAP1_7
GNDGND


使い方

  1. GR-PEACHとLCDシールドを接続し、GR-PEACHに電源を入れます。
  2. GR-PEACHのリセットボタンを押します。
  3. "Program Setting"という画面がLCDに表示されます。
  4. センサのセットアップが終わると、"Program Start!!"という画面がLCDに表示されます。
  5. 2つのジェスチャーセンサのLED1~LED3に手をかざすと、6種類の四角形がLCD上に描画されます。
手をかざす場所描画
1つ目のセンサのLED1の上
/media/uploads/1050186/jesturesensor_handsonled1.png
赤色の四角形
/media/uploads/1050186/red_rectangle.png
1つ目のセンサのLED2の上
/media/uploads/1050186/jesturesensor_handsonled2.png
緑色の四角形
/media/uploads/1050186/green_rectangle.png
1つ目のセンサのLED3の上
/media/uploads/1050186/jesturesensor_handsonled3.png
青色の四角形
/media/uploads/1050186/blue_rectangle.png
2つ目のセンサのLED1の上
/media/uploads/1050186/jesturesensor_handsonled1.png
黄色の四角形
/media/uploads/1050186/yellow_rectangle.png
2つ目のセンサのLED2の上
/media/uploads/1050186/jesturesensor_handsonled2.png
水色の四角形
/media/uploads/1050186/lightblue_rectangle.png
2つ目のセンサのLED3の上
/media/uploads/1050186/jesturesensor_handsonled3.png
ピンク色の四角形
/media/uploads/1050186/pink_rectangle.png



Revisions of GR-PEACH_video.lib

Revision Date Message Actions
0:7e5105dee0cb 2016-05-31 First Commit File  Diff  Annotate