Take your fear away for programming IOT
Let me clear you first Programming of IOT esp8266 is done in Arduino software and uses same commands that we use for Arduino Uno
Steps to software setup:
Step 1: Download latest Arduino Software from www.arduino.cc
Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).
Step 2: Download Arduino Core for ESP8266 WiFi Chip from GitHub
Arduino Core for ESP8266 project brings support for ESP8266 chip to the Arduino environment. It lets you write sketches using familiar Arduino functions and libraries, and run them directly on ESP8266, no external microcontroller required.
ESP8266 Arduino core comes with libraries to communicate over WiFi using TCP and UDP, set up HTTP, mDNS, SSDP, and DNS servers, do OTA updates, use a file system in flash memory, work with SD cards, servos, SPI and I2C peripherals.
Step 3: Installing with Boards Manager
Starting with 1.6.4, Arduino allows installation of third-party platform packages using Boards Manager. We have packages available for Windows, Mac OS, and Linux (32 and 64 bit).
- Install Arduino 1.6.8 from the Arduino website.
- Start Arduino and open Preferences window.
- Enter
http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLsfield. You can add multiple URLs, separating them with commas.
- Open Boards Manager from Tools > Board menu and install esp8266 platform (and don't forget to select your ESP8266 board from Tools > Board menu after installation).
Select ESP8266 then press install
This pakage installation is from internet, your computer must be connected to internet it is around 250 MBytes. Read details on GitHub
Step 4: After installing everything you may find trouble in compiling missing .h files
4.1 Go to your arduino installation folder (where your arduino.exe is) in this folder create folder "portable"
4.2 copy and paste copy from "C:\Documents and Settings\Administrator\Application Data\Arduino" (check that this address is shown while compilation error missing .h file)
4.3 copy all contains (folder naming "pakages" and "staging" and surrounding files)
4.4 paste the copied contains in "portable" folder that you created in Arduino folder.
Check that compilation works now. If all ok go ahead to test it on hardware
Sir, can u share how to implement IoT using other microcontrollers like AVR.
ReplyDeleteYou can use Arduino/AVR microcontroller with Ethernet or WiFi Module, using AT Commands and Libraries. See This Link http://blog.circuits4you.com/2015/06/ethernet-shield.html
DeleteSir, how the sensor data is transferred and updated on the webpage?
ReplyDeleteSir, how to use the internal controller in esp 12 to process the sensor data?
ReplyDeleteon ESP-12 you have only one ADC channel with input voltage range of (0 to 1V) to use it use analogRead(A0) arduino command
Delete