Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:prj2023:avaduva:wstation [2023/05/29 03:58]
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 47: Line 47:
   -  D7 pin on the LCD to digital Pin 6 on Arduino Uno;   -  D7 pin on the LCD to digital Pin 6 on Arduino Uno;
  
-==Physical Project==+===Electric Scheme===
  
-{{https://​ocw.cs.pub.ro/​courses/​_media/​pm/​prj2023/​avaduva/​weatherstation.png?​400x200}}+{{https://​ocw.cs.pub.ro/​courses/​_media/​pm/​prj2023/​ws.png?​800x400}} 
 + 
 +===Physical Project=== 
 + 
 +{{https://​ocw.cs.pub.ro/​courses/​_media/​pm/​prj2023/​avaduva/​weatherstation.png?​300x200}}
  
  
 ====Software Design==== ====Software Design====
  
-==How does BMP180 ​work==+===How do the sensors ​work=== 
 + 
 +==BMP180==
  
   - Sensing Principle: The BMP180 sensor uses a piezo-resistive pressure sensor to measure atmospheric pressure. It contains a microelectromechanical system (MEMS) pressure sensor that changes its resistance based on the applied pressure. The temperature is also measured using an integrated temperature sensor.   - Sensing Principle: The BMP180 sensor uses a piezo-resistive pressure sensor to measure atmospheric pressure. It contains a microelectromechanical system (MEMS) pressure sensor that changes its resistance based on the applied pressure. The temperature is also measured using an integrated temperature sensor.
Line 66: Line 72:
  
  
-==How does DHT11 work==+==DHT11==
  
   - Sensing Principle: The DHT11 sensor utilizes a capacitive humidity sensor to measure relative humidity (RH). It consists of two electrodes with a moisture-sensitive layer in between. The capacitance of this layer changes with the surrounding humidity, enabling RH measurement. Additionally,​ a thermistor (resistor that varies with temperature) is used to measure temperature.   - Sensing Principle: The DHT11 sensor utilizes a capacitive humidity sensor to measure relative humidity (RH). It consists of two electrodes with a moisture-sensitive layer in between. The capacitance of this layer changes with the surrounding humidity, enabling RH measurement. Additionally,​ a thermistor (resistor that varies with temperature) is used to measure temperature.
Line 86: Line 92:
  
 ''#​include <​Adafruit_Sensor.h>''​ ''#​include <​Adafruit_Sensor.h>''​
 +
 ''#​include <​Adafruit_BMP085.h>''​ ''#​include <​Adafruit_BMP085.h>''​
  
Line 100: Line 107:
 ''​if (!bmp.begin()) {''​ ''​if (!bmp.begin()) {''​
  
-    ​''​lcd.print("​BMP180 error!"​);''​+''​lcd.print("​BMP180 error!"​);''​
     ​     ​
-    ​''​while (1);''​+''​while (1);''​
     ​     ​
  ''​ }''​  ''​ }''​
Line 171: 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>​
pm/prj2023/avaduva/wstation.1685321899.txt.gz · Last modified: 2023/05/29 03:58 by malina.popa
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0