This shows you the differences between two versions of the page.
|
pm:prj2023:avaduva:wstation [2023/05/29 04:01] 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 46: | Line 46: | ||
| - D6 pin on the LCD to digital pin 3 on Arduino Uno; | - D6 pin on the LCD to digital pin 3 on Arduino Uno; | ||
| - D7 pin on the LCD to digital Pin 6 on Arduino Uno; | - D7 pin on the LCD to digital Pin 6 on Arduino Uno; | ||
| + | |||
| + | ===Electric Scheme=== | ||
| + | |||
| + | {{https://ocw.cs.pub.ro/courses/_media/pm/prj2023/ws.png?800x400}} | ||
| ===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 88: | Line 92: | ||
| ''#include <Adafruit_Sensor.h>'' | ''#include <Adafruit_Sensor.h>'' | ||
| + | |||
| ''#include <Adafruit_BMP085.h>'' | ''#include <Adafruit_BMP085.h>'' | ||
| Line 102: | Line 107: | ||
| ''if (!bmp.begin()) {'' | ''if (!bmp.begin()) {'' | ||
| - | ''lcd.print("BMP180 error!");'' | + | ''lcd.print("BMP180 error!");'' |
| | | ||
| - | ''while (1);'' | + | ''while (1);'' |
| | | ||
| '' }'' | '' }'' | ||
| Line 173: | Line 178: | ||
| ''lcd.print()'' to print text and the data from BMP180 and ''lcd.clear()'' to clear the display. | ''lcd.print()'' to print text and the data from BMP180 and ''lcd.clear()'' to clear the display. | ||
| + | |||
| + | |||
| + | ====Results==== | ||
| + | |||
| + | {{https://ocw.cs.pub.ro/courses/_media/pm/prj2023/weatherstation.jpg?200x275}} | ||
| + | |||
| + | ====Download==== | ||
| + | |||
| + | {{https://ocw.cs.pub.ro/courses/_media/pm/prj2023/weatherstation.rar}} | ||
| + | ====Bibliography and Sources==== | ||
| + | |||
| + | https://www.alldatasheet.com/datasheet-pdf/pdf/1132068/BOSCH/BMP180.html | ||
| + | |||
| + | https://html.alldatasheet.com/html-pdf/1440068/ETC/DHT11/60/1/DHT11.html | ||
| + | |||
| + | https://github.com/sparkfun/SparkFun-Eagle-Libraries | ||
| + | |||
| + | https://github.com/danwahl/eagle-libraries | ||
| + | |||
| + | https://github.com/adafruit/Adafruit-Eagle-Library | ||
| <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | ||