Sync Ds1302 with NTP

This code first syncs the DS1302 chip with a NTP server and then reads time from the DS1302 chip. Every time the system is booted the clock is synced with a NTP server. #include <ESP8266WiFi.h> #include “TinyDHT.h” // Adafruit library https://github.com/adafruit/TinyDHT #include <ThreeWire.h> // needed by rtc #include <RtcDS1302.h> // Makuna library https://github.com/Makuna/Rtc const char… Continue reading Sync Ds1302 with NTP

ESP8266 Programming Using Arduino IDE

The ESP8266 can be programmed using the Arduino IDE. The best part is the codes are similar to Arduino. To start programming a ESP8266 using Arduino IDE follow the below steps Prerequisites Arduino 1.6.8, get it from Arduino website. Steps Start Arduino and goto File-> Preferences. In the “Additional Boards Manager URLs” Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json  (You… Continue reading ESP8266 Programming Using Arduino IDE

ESP 8266 – ESP-12E Hello World – Blinking LED

We are using Arduino IDE to program our ESP8266. Please see this article regarding how to setup the Arduino IDE for programming ESP8266. Here is a blinking LED code for ESP8266 written in Arduino IDE. #define ESP8266_LED 5 void setup() {   pinMode(ESP8266_LED, OUTPUT); } void loop() {   digitalWrite(ESP8266_LED, HIGH);   delay(500);   digitalWrite(ESP8266_LED,… Continue reading ESP 8266 – ESP-12E Hello World – Blinking LED