This shows you the differences between two versions of the page.
pm:prj2023:avaduva:wstation [2023/05/29 06:27] malina.popa [Results] |
pm:prj2023:avaduva:wstation [2023/05/30 13:16] (current) malina.popa [Software Design] |
||
---|---|---|---|
Line 38: | Line 38: | ||
==For the LCD 16x2== | ==For the LCD 16x2== | ||
- | - VSS pin on the LCD to the GND pin on the sensor DHT11; | + | - VDD pin on the LCD to the VCC pin on the sensor DHT11; |
- | - VDD pin on the LCD to the VCC pin on the sensor DHT11; | + | - VSS pin on the LCD to the GND pin on the sensor DHT11; |
- RS pin on the LCD to digital pin 12 on Arduino Uno; | - RS pin on the LCD to digital pin 12 on Arduino Uno; | ||
- E pin on the LCD to digital pin 11 on Arduino Uno; | - E pin on the LCD to digital pin 11 on Arduino Uno; | ||
Line 53: | Line 53: | ||
===Physical Project=== | ===Physical Project=== | ||
- | {{https://ocw.cs.pub.ro/courses/_media/pm/prj2023/avaduva/weatherstation.png?400x200}} | + | {{https://ocw.cs.pub.ro/courses/_media/pm/prj2023/avaduva/weatherstation.png?300x200}} |
Line 92: | Line 92: | ||
''#include <Adafruit_Sensor.h>'' | ''#include <Adafruit_Sensor.h>'' | ||
+ | |||
''#include <Adafruit_BMP085.h>'' | ''#include <Adafruit_BMP085.h>'' | ||
Line 106: | Line 107: | ||
''if (!bmp.begin()) {'' | ''if (!bmp.begin()) {'' | ||
- | ''lcd.print("BMP180 error!");'' | + | ''lcd.print("BMP180 error!");'' |
| | ||
- | ''while (1);'' | + | ''while (1);'' |
| | ||
'' }'' | '' }'' |