Arduino – Communicate With Server – Part 2 – Server Code for Saving Data

This article shows the server side code for a server which is gathering or sending data by polling method to an Arduino device. This method or code is putting less load on the server (compared to socket) but data transmission is slower than socket. <?php date_default_timezone_set(“Asia/Kolkata”); $conn = mysql_connect(“localhost”,”root”,”**********”); if(!$conn) {     echo “Error: failed… Continue reading Arduino – Communicate With Server – Part 2 – Server Code for Saving Data

Arduino – Communicate With Server – Part 1 – Arduino code

The below code send some data (temperature and pressure here) to a server and reads back some data from server. The send part works every 5 minutes and the read part works every 5 seconds. This code works by polling method. All delays might have room for optimization #include <SFE_BMP180.h> //from sparkfun #include <Wire.h> #include… Continue reading Arduino – Communicate With Server – Part 1 – Arduino code

BMP-180 Digital Barometric Pressure Sensor

BMP-180 is a compact and cheap Digital Barometric Pressure Sensor. Below is an image of the breakout board commonly available on ebay There is some confusing information about the required voltage, so safest would be to go with 3.3v. As per datasheet (download here) from Bosch, the chip manufacturer, the max voltage is 3.6v It… Continue reading BMP-180 Digital Barometric Pressure Sensor

ESP8266 ESP-01 – Part 2 – Useful AT Commands And Their Outputs

Below are some AT commands for ESP8266 and their outputs AT OK AT+GMR This will display firmware version and some other details AT+CIPMUX=1 OK AT+CWMODE=3 OK AT+CWJAP=”WIRELESS-ROUTER”,”password” [WIFI DISCONNECTED] (if it is already connected) WIFI CONNECTED WIFI GOT IP OK AT+CIPSTART=4,”TCP”,”x.x.x.x”,80 4,CONNECT OK AT+CIPSEND=4,205 OK > [at this point HTTP request will be made, read… Continue reading ESP8266 ESP-01 – Part 2 – Useful AT Commands And Their Outputs

ESP8266 ESP-01 – Part 1 – Flashing and AT commands

This article is about the one that looks like this (aka ESP-01).   Flasher version is 2.3 Firmware version is 1.5 Firmware update might be necessary just after purchase. Without firmware update mine was not able to connect to Wi-fi routers (though they were able to find them) The current firmware available for this is… Continue reading ESP8266 ESP-01 – Part 1 – Flashing and AT commands