LoginSignup
1
2

More than 5 years have passed since last update.

TFT LCD(ILI9341)+アナログセンサ (esp8266+ atmega)

Posted at

esp8266+ MCU連携の作例となります。
2.4inch TFT +Analog Sensor のDeepSleep(省エネ)版
NTP時計,アナログ温度センサー値の表示、
センサー値のクラウド送信の機能としています
IMGP6422.JPG

Youtube

Parts

ss-ILI9341.png

1) 2.4" 240x320 SPI TFT LCD Serial Port Module+3.3V Pbc Adapter SD ILI9341
/ 9.5 USD
Display area:36.72(W)X48.96(H)mm
Resolution (dots): 240RGB*320Dots
Driver IC: ILI9341
2) Sensor LM60BIZ / 100JPY

Git

Adafruit さんのライブラリ参考にしています。
https://github.com/adafruit/Adafruit_ILI9341

makeKuc-TFT-1:
https://github.com/kuc-arc-f/makeKuc-TFT-1

Schematic

esp8266+arduino搭載基板で、
TFT 周辺のみです。
ss-TFT-0215a1.png

*1) ボード側の都合で
REST : D2
DC : D3
としていますが。
arduino で使用する場合は、
REST : D8
DC : D9 で良いと思います。

*2) adafruitのサンプル (examples/graphicstest )
https://github.com/adafruit/Adafruit_ILI9341/tree/master/examples/graphicstest
が動作しなかった為、RESET結線を追加し、コンストラクタを修正しています。
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);

*3) LED(#7)は、VCC(3V3) 結線する必要があります。
*) 配線数が多めで、時間かかりました。

温度ログ

ss-Sensor-0215a3.png

related:


まとめ

画面のレイアウト/描画表示速度の調整 等は。別途検討したいと思います。
とりあえず機能の実装を優先し、完了できたレベルです。


1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2