A CapSense sample using an Elephantech PEDOT electrode (CY8CKIT-044)

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

IMG_4855.JPG

少し前にフレキのセンサー電極を使用したサンプルを上げてみました。

A little ago, I posted a sample using the flex PCB of Elephantech.

https://community.cypress.com/t5/Code-Examples/A-CapSense-sample-using-an-Elephantech-flex-PCB-elect...

 

今回は、同エレファンテック社製の PEDOT というタイプの電極部が透明なセンサー電極を使わせていただけたので、あまり例がなかったのではないかと思う、透明電極を使用した CapSense のデモを作成してみました。

This time, I got a chance to use their PEDOT sensor electrode, which has transparent electrode(s)!

So I hacked up a little sample using this sensor electrode.

IMG_4861.JPG

例によって CY8CKIT-044 に SPI 経由で ILI9341 搭載の 320x240 の TFT を接続して、TFT の上に透明な両面テープを使用してセンサー電極を固定しました。

As usual, I used CY8CKIT-044 and an ILI9341/SPI type 320x240 TFT, I found a cheaper one to play with 😉

I used a double sided clear tape to fix the sensor on top of the TFT.

 

プログラムを起動するとトップ画面が表示されます。

透明な CapSense ボタンの下の絵が透けて見えるので、

ボタン毎に色や文字を設定できます。

When started the program shows the "top" screen.

Since the button is transparent, we can see the graphics (color and text) under the buttons.

IMG_4850.JPG

ここで [ measure ] ボタンをタッチしますと、テストライブラリを使用して

各電極の容量を測定して表示します。

If we touch [ measure ] button here, PSoC measures the capacitance(s) of each electrode

and shows it in the screen below.

IMG_4851.JPG

ここで [ menu ] ボタンをタッチすると、当然ながら

メニュー画面が表示されます。

Needless to say, if we touch [ menu ] button here,  menu screen will be shown.

IMG_4852.JPG

ここで [ help ] ボタンをタッチすると、あっさり系のヘルプ画面が表示されます。

ここでのボタン選択肢は [ top ] だけになり、使わないボタンは黒くなっていることにご注意ください。

If we touch [ help ] button,  the quite simple help screen will be shown.

Note that the buttons of both side are disabled and shown in black.

IMG_4853.JPG

また、メニュー画面で、[ test ] をタッチすると

緑色の箱を動かすテスト画面になります。

On the other hand, if we touched [ test ] button in the menu screen,

the program enters the "Move Box Test" mode.

IMG_4854.JPG

ここで [ << ] ボタンをタッチすると緑色の箱が左に移動します。

Touching [ << ] button moves the green rectangle to the left.

IMG_4856.JPG

一番左まで移動すると [ << ] ボタンが無効になって

ボタンが黒くなり、反応しなくなります。

When the green rectangle reaches the left side,

the left [ << ] button is disabled and shown in black.

IMG_4857.JPG

同様に一番右まで移動すると [ >> ] ボタンが無効になって

ボタンが黒くなり、反応しなくなります。

Similarly at the right most side, the right [ >> ] button is disabled

and shown in black.

IMG_4858.JPG

schematic / 回路図

001-schematic.JPG

Pins / ピン

002-Pins.JPG

Additional parts used / 追加使用した部品

TFT display / TFT ディスプレイ

https://www.amazon.co.jp/dp/B072N551V3/

Flex adapter board / フレキからの変換基板

https://www.aitendo.com/product/19419

bread board / ブレッドボード

これは TFT 基板と CY8CKIT-044 の配線及び TFT 基板を安定させるために

2つ使用しました。

I used a couple of these, to connect the TFT board and CY8CKIT-044,

as well as to stabilize the TFT board.

https://akizukidenshi.com/catalog/g/gP-05155/

double sided clear tape / 透明な両面テープ ニトムズ  T284

https://www.amazon.co.jp/%E3%83%8B%E3%83%88%E3%83%A0%E3%82%BA-%E8%B6%85%E9%80%8F%E6%98%8E%E4%B8%A1%E...

 

通常、CapSense のボタンといえば印刷されている静的な感じのものが多いと思いますが、

動的にボタンの表示を変えたり、ボタンを無効にすることが出来るというのは作っていて面白かったです。

同時に、自分の美的センスの無さも再確認してしまいましたが・・・ orz

 

Usually, a CapSense button has a static appearance, it was fun programing dynamically changing and enabled/disabled buttons.

Meantime, I missed my sense of colors ... orz

 

moto

(Edited) Title changed from "using and" to "using an"... typo

 

2 Replies
Yoshihiko
Level 1
Level 1
First like received First reply posted First like given

Very interesting article!

Thank you for sharing.

Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Moto-san,

We always appreciate your contribution on CDC.

 

regards