Posts

Set up for IoT Using Arduino & ESP8266

Image
The Arduino is a wonderful platform which supports tons of Embedded boards, By default the software comes with pre-loaded Arduino boards, however if you use 3rd party boards like Node MCU / ESP32 / STM32 you would need to install the required boards manager Or the Software Packages using which you can program the Dev board and even upload the codes to it. Also in order to unleash the power of IoT, we would need to install additional Libraries & Boards.
Please follow the instructions below in order to install Arduino IDE and to Install ESP8266 Boards for Arduino IDE. (See below section for screenshot). Download & Install Arduinohttps://www.arduino.cc/en/Main/SoftwareStart the Arduino IDE.Go to File & Preferences and, towards the bottom of the window, copy this URL into the Additional Board Manager URLs text box (this is specific for ESP8266 based boards)http://arduino.esp8266.com/stable/package_esp8266com_index.jsonClick OK.Go to Tools > Boards > Boards Manager and sear…

Arduino Sketches

Time to Code ! Blink Sketch void setup(){// initialize digital pin LED_BUILTIN as an output. pinMode(2, OUTPUT);}// the loop function runs over and over again forevervoid loop(){ digitalWrite(2, HIGH);// turn the LED on (HIGH is the voltage level) delay(1000);// wait for a second digitalWrite(2, LOW);// turn the LED off by making the voltage LOW delay(1000);// wait for a second}Read Serial Dataint incomingByte =0;String a;void setup(){Serial.begin(9600);}// the loop function runs over and over again forevervoid loop(){while(Serial.available()){// Waits for Serial input from user incomingByte =Serial.read();// Reads one Character//a=Serial.readString();Serial.print("I received: ");Serial.println(incomingByte,DEC);//Serial.println(a);}