NodeMCU Basic Project-Blink a LED 

Today i show you how to Blink LED use nodeMcu8266

This Project Hardware Requirement

1. NodeMcu8266  
2. LEDm
3. Micro Usb cable
4. 200 ohm resistor

Software Requirment
Arduino IDE(version 1.6.4+)
 First you have to need board selection on Ardunio IDE
Tool>> Board>> NodeMcu0.9 or1
Then you have to need Port Selection 
Tool>> Port (select your port no)
Nodemcu board selaction-mechatronicslabrpi
now your board ready to coding
/*
  Sarul Hasssan
  Complete project details at http://mechatronicslabrpi.blogspot.com/  
*/
int pin =3;
void setup() {
  // initialize GPIO 3 as an output.
  pinMode(pin, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
  digitalWrite(pin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(pin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second
} 
Now you are ready to play one this connection 
NodeMcu8266 to LED connection-mechatronicslabrpi


mediafire free downlode Click Here

2 comments:

Theme images by Dizzo. Powered by Blogger.