Posts

Nodemcu basics | blink on board led | #1

Image
Introduction This is the best program to test on a new node MCU board  It blinks the LED on the  board so other hardware components a re not required This program also helps to check that your board in working fine   Step 1: Set up the IDE Download the Arduino IDE.  Install the Arduino IDE and opens it. Go to File > Preferences. Add    http://arduino.esp8266.com/stable/package_esp8266com_index.json to the Additional Board Manager URLs Go to Tool > Boards > Boards Manager. Search for esp8266 and then install the board. Restart the your  Arduino IDE. Step2: Code   /* ESP8266 Blink by Simon Peter Blink the blue LED on the ESP-01 module This example code is in the public domain The blue LED on the ESP-01 module is connected to GPIO1 (which is also the TXD pin; so we cannot use Serial.print() at the same time) Note that this sketch uses LED_BUILTIN to find the pin with the internal LED */ void setup() { pinMode(LED_BUILTIN, ...

Arduino basic | Onboard led blink program | #1

Image
Introduction   This program helps you to check that your Arduino board is working fine  without any other hardware components. This program just  blinks the onboard led to check that your Arduino board is fine  Step1 Download Arduino IDE  Install it  Or download Arduino droid on android No need to download any other libraries  Step 2 Now just copy this code  -------------------------------------------------------------------------- // the setup function runs once when you press reset or power the board void setup() {   // initialize digital pin LED_BUILTIN as an output.   pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() {   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)   delay(1000);                       // wait for a second   digitalWrite(LED_BUILTIN, LOW);  ...