This shows you the differences between two versions of the page.
|
pm:prj2023:avaduva:wstation [2023/05/29 06:28] malina.popa [Hardware Design] |
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 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);'' |
| | | ||
| '' }'' | '' }'' | ||