-
Adding DHT Sensor
10/27/2018 at 06:39 • 0 commentsToday we added a DHT sensor to our project and DHT measures the temperature and humidity of outside atmosphere and tells us on the app what the temperature and the humidity is outside. We had some problems adding it so we looked up some websites and then we fixed the problem and the problem was we couldn't receive the values from the DHT sensor, so as i said we visited some websites and then we solved the problem it took us some time but we fixed it and the project is almost done.
-
Code For Our Project and Materials
09/15/2018 at 05:58 • 0 commentsThe Code is:
#include <dht.h>
#define dht_apin A0
dht DHT;
#include <SoftwareSerial.h>
SoftwareSerial BT(10,11); // RX, TX
int vib_pin=2;
int led_pin=13;
int led = 8;
int val = 0;
void setup() {
Serial.begin(9600);
BT.begin(9600);
pinMode(vib_pin,INPUT);
pinMode(led_pin,OUTPUT);
pinMode(7,INPUT);
pinMode(led, OUTPUT);
}
void loop() {
int s;
int inByte = 0;
int motion = digitalRead(7);
val = digitalRead(motion);
if (val == HIGH) {
digitalWrite(led, HIGH);
delay(50);
}
else {
digitalWrite(led, LOW);
delay(50);
Serial.println(val);
}
DHT.read11(dht_apin);
Serial.print("Current humidity = ");
Serial.print(DHT.humidity);
Serial.print("% ");
Serial.print("temperature = ");
Serial.print(DHT.temperature);
Serial.println("C ");
delay(5000);
BT.write(motion);
delay(500);
if (BT.available()){
inByte = BT.read();
if(inByte == 'S'){
while(!BT.available()){}
digitalWrite(13,HIGH);
}
if(inByte == 'X'){
while(!BT.available()){}
digitalWrite(13,LOW);
}
}
Serial.println(motion);
}
The Materials are:
- Magnetic Lock
- Two relays
- Bluetooth module
- Breadboard
- PIR Sensor
- DHT Sensor
- Arduino UNO
- LED
- Wires
Code For Android App
-
Automatic Door Opener for disabled people
06/02/2018 at 07:26 • 0 commentsThere will be sensors used to open the door and we are still working how close the door. We will use app to open the door or use the sensor to open the door. This will make it easy for disabled people to open the door.
-
Future additions coming soon
05/26/2018 at 07:40 • 0 commentsWe are adding. Automated water dispenser. if a person wants to drink water that he will send the signal using blue tooth module and when he is there the water will be filled in glass. we will even put a sonar sensor so it does not over fill.