Skip to main content

Posts

Showing posts from December, 2018

air quality monitoring system for Kathmandu city

SMART POLLUTION AND GARBAGE CONTROL AND MONITORNIG SYSTEM this project is a smart air pollution and garbage monitoring system for a city. in this project we make a network of smart garbage bins  all over the city and with this we make a network of smart bins placed all over the city and each bin will send the data to central servers via public wifi connections if available and if not will use gsm modeules to send the data to the server and will give following information:- 1. status of all dustbins of city . we will be able to monitor all the garbage bins of city . 2. we can also monitor the air quality of all parts of the city as there will be air quality sensors placed outside the bins which will sense the environment around them. so we will be better able to monitor the bins and air quality in that area and making us more able to effctively use the resources of municipality.  as we know the flow of people varies on different parts and areas of city ...

how to communicate batwen arduino and node mcu(esp8266)

SENDING DATA BETWEEN ARDUINO TO ARDUINO OR ARDUINO TO NODE MCU (WORKS FOR BOTH) Use the following code in  Sender side    #include <SoftwareSerial.h>   // connect the 5 of esp to 5 of arduino SoftwareSerial s(5,6);               //connect the 6 of esp to 6 of arduino void setup() { s.begin(9600); } void loop() { int data=50; if(s.available()>0) {  s.write(data); } }  use following code on receiver side #include <SoftwareSerial.h> SoftwareSerial s(D6,D5); float data; void setup() { Serial.begin(9600); } void loop() {   if (s.available()>0)   {     data=s.read();     Serial.println(data);   } }

ESP8266 based local temperature monitoring HTML template

TEMPERATURE MONITORING WEB SERVER make this temperature monitoring web server using node mcu and temperature sensor . use the following code #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h>  #include <math.h> int sensorPin = A0; // select the input pin for the potentiometer double Thermistor(int RawADC) {   double Temp;   Temp = log(10000.0*((1024.0/RawADC-1)));   Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );   Temp = Temp - 273.15;            // Convert Kelvin to Celcius    Temp = (Temp * 9.0)/ 5.0 + 32.0 ; // Convert Celcius to Fahrenheit    return Temp; } //SSID and Password of your WiFi router const char* ssid = "kali"; const char* password = "0TSspwyV"; ESP8266WebServer server(80); //Server on port 80  int T = 0; //===========================================================...

Environmental data collection device

ARDUINO DATA COLLECTING DEVICE this device can measure environmental data like temperature light intensity smoke.and also can be used as a measuring tape because it has ultrasonic sensors to find the distance from it to the object in front of it .and it is password protected just like a cellphone. but if you want to change the password you hove to change it in the code.  after you entered a right password it will ask you to choose the mode of operation than  after you select the mode you can see the data on screen       temperature mode    light mode  distance mode here is the codes used in this project if you want to build this thing #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <Keypad.h> #include <math.h> #define Password_Length 8 float lux = 0.00,av=0.0048828125,lv; char Data[Password_Length]; byte data_count = 0, master_count = 0; bool Pass_is_good; c...

NRF24 based remote with Arduino Nano

MAKING A DRONE REMOTE  to make the drone remote you will need following components:-  nrf24 rf module(two) joystick module(two) arduino nano (two) capacitors (one) now connect the components in following way :- connection of nrf24 for both transmitter and receiver are same. there are some additional connections to be made in transmitter to read data from joystick so and connnect the joystick pins in following way  Right joystick y axis pin = A0;  Right joystick x axis pin  = A7; Right joystick switch pin = A6; left joystick y axis pin = A1;  left joystick x axis pin  = A5;   left joystick switch pin = A2; now after connecting the above circuit upload the following codes given for transmitter and receiver and you will get the data as shown below in receiver side. now transmitter code is as follows #include <SPI.h>  #include "RF24.h" const int Ry = A0; const int Rx = A...