HYT humidity & temp sensor polling / showing received data at TFT with capacitive touchscreen
Dependencies: FT800_2 HYT mbed
HYT humidity & temperature sensor: polling and showing data at TFT via graphical controller FT800/FT801.
Hardware
- HYT-271 / HYT-221 / HYT-939 humidity and temperature sensor by IST-AG
- TFT module uxTouch by Riverdi
- Break Out Board 20 by Riverdi
- Any mbed platform with I2C interface, SPI interface and 2 free GPIO for PD and INT signals
For documentation on the FT800 library, please refer to the library pages.
Connection
MCU-board to TFT-module
MCU-board is connected to TFT-module via Break Out Board. You need 6 signals to connect: SCK, MOSI and MISO are connected to a SPI channel, SS is the chip select signal, PD work as powerdown and INT for interrupts from TFT to MCU.
You have to connect VDD to BLVDD at Break Out Board if you use the board:
MCU-board to HYT sensor
MCU-board is connected to sensor via I2C. Remember to use pull-up resisrors there:
Подробнее в статьях Как перестать бояться и полюбить mbed [Часть 1 - 5] на https://habrahabr.ru/users/uuuulala/topics/
Files at revision 0:5d3131d1b142
Name | Size | Actions |
---|---|---|
[up] | ||
TFT | ||
FT800_2.lib | 69 | Revisions Annotate |
HYT.lib | 63 | Revisions Annotate |
display.h | 6135 | Revisions Annotate |
main.cpp | 7865 | Revisions Annotate |
mbed.bld | 65 | Revisions Annotate |
pictures.h | 30676 | Revisions Annotate |
statistics.cpp | 6888 | Revisions Annotate |
statistics.h | 2108 | Revisions Annotate |