Touch-Display with CO2-Sensor
Description
I designed this as a small info screen for the desk. It can measure the CO2-level in the room. Used Electronics: - NodeMCU-32, V1.2 - Sensirion SCD-30 - 2.4'' UNO Module (TFT-Shield), 240x320, 8bit Bus, Touch The display consists of 4 parts. Electronic parts can be inserted and fixed between these parts. Known issue: - Round holes for fixing the parts are a little bit too small, but can be broadened with a drill Soldering is not easy - you need to do this between putting the layers together! Use small wrapping wire for the data channels and bigger ones for the power supply. You should use a good USB power supply. Otherwise the display will flicker. Wiring: SCD30 -> NodeMCU VIN -> 5V GND -> GND SCL -> P22 SDA -> P21 2.4'' UNO Module -> NodeMCU LCD_RST -> P26 LCD_CS -> P32 LCD_RS -> P33 + P14 LCD_WR -> P12 LCD_RD -> P13 GND -> GND 5V -> 5V 3V -> 3V LCD_D2 -> P23 LCD_D3 -> P27 LCD_D4 -> P15 LCD_D5 -> P19 LCD_D6 -> P18 LCD_D7 -> P17 LCD_D0 -> P16 LCD_D1 -> P4 Software (only as reference, needs to adapted): - Pins for ILI9341-Driver needs to be defined in .h-File located in the library-folder. See User_Setup.h - Pins for Touch are shared with LCD_RS and LCD_CS. Thus switching between Touch and Display is required in the software. - In line 2 you can find the mysql command to create the table Adapt the following in the .ino-file - Line 18, 19: Your Wifi credentials - Line 21 - 26: SQL-Server and credentials for storing and reading CO2-values - Line 28 - 30: SQL-Server with additional information to be shown (e. g. heating, ...) - Line 358: Here you need to adapt the SQL statement to get the data you want to display - Line 170 can be used to debug the touch screen. You see a small rectangle at the point of touch. Line 39 is used to map Touch to actual display. *It is not easy to adapt this project to your needs! You should be familiar with NodeMCU, programming, SQL etc.!*
Statistics
Likes
0
Downloads
0