Measuring air flow, relative humidity & temperature, then showing results at TFT

Dependencies:   FT800_2 HYT mbed

Air flow is measured with FS7 sensor by IST-AG, humidity & temperature are measured by HYT-271 sensor by IST. Graphs displayed it TFT by Riverdi via graphical controller FFT801.

Hardware

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.

/media/uploads/Ksenia/4_-22-.jpg

You have to connect VDD to BLVDD at Break Out Board if you use the board:

/media/uploads/Ksenia/4_-5-.jpg

MCU-board to HYT sensor

MCU-board is connected to sensor via I2C. Remember to use pull-up resisrors there:

/media/uploads/Ksenia/freshpaint-20-2016.09.16-10.37.03.png

MCU-board to FS7 sensor

MCU-board is connected to sensor via FS flowmodule. FS-flowmodul is a PCB implementing bridge circuit which is necessary for FS7.

https://habrastorage.org/files/b25/056/287/b250562871614b4ca4286af885f1fa24

https://habrastorage.org/files/72d/04c/cac/72d04ccac07b4fcfb436e0ffbac73066

Committer:
Ksenia
Date:
Thu Mar 16 08:58:18 2017 +0000
Revision:
0:3f440c2facb0
Initial Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Ksenia 0:3f440c2facb0 1 #include "Display.h"
Ksenia 0:3f440c2facb0 2
Ksenia 0:3f440c2facb0 3
Ksenia 0:3f440c2facb0 4 /**************************************************************************************************************************
Ksenia 0:3f440c2facb0 5 ************************** Start display list *****************************************************************************
Ksenia 0:3f440c2facb0 6 **************************************************************************************************************************/
Ksenia 0:3f440c2facb0 7 void Display::StartDL()
Ksenia 0:3f440c2facb0 8 {
Ksenia 0:3f440c2facb0 9 (*_TFT).DLstart();
Ksenia 0:3f440c2facb0 10 // set color for background
Ksenia 0:3f440c2facb0 11 (*_TFT).DL(CLEAR_BACKGROUND_COLOR);
Ksenia 0:3f440c2facb0 12 // clear buffers for preset values
Ksenia 0:3f440c2facb0 13 (*_TFT).DL(CLEAR(1, 1, 1));
Ksenia 0:3f440c2facb0 14 }
Ksenia 0:3f440c2facb0 15
Ksenia 0:3f440c2facb0 16 /**************************************************************************************************************************
Ksenia 0:3f440c2facb0 17 ************************** Finish display list ****************************************************************************
Ksenia 0:3f440c2facb0 18 **************************************************************************************************************************/
Ksenia 0:3f440c2facb0 19 void Display::FinishDL()
Ksenia 0:3f440c2facb0 20 {
Ksenia 0:3f440c2facb0 21 (*_TFT).DL(DISPLAY());
Ksenia 0:3f440c2facb0 22 // Swap the current display list
Ksenia 0:3f440c2facb0 23 (*_TFT).Swap();
Ksenia 0:3f440c2facb0 24 // Download the command list into fifo TFT
Ksenia 0:3f440c2facb0 25 (*_TFT).Flush_Co_Buffer();
Ksenia 0:3f440c2facb0 26 // Wait for the complete consumption of FT800 Coprocessor commands
Ksenia 0:3f440c2facb0 27 (*_TFT).WaitCmdfifo_empty();
Ksenia 0:3f440c2facb0 28 }