The nodeMCU is a really good platform for wifi based arduino. It works well with the HS3 Arduino plugin.
There is something about the nodeMCU that caused me great problems when I was first starting to use it. Since others are starting to express interest in this chip, I thought I should post so that others don't suffer as I did.
The nature of the problem is that the pin numbers on the physical nodeMCU board do not directly correspond to how you need to reference them in the IDE sketch. When I first started with Arduino, I got an UNO for learning. I highly recommend that everyone just starting out get a vanilla Arduino UNO. I did a few sketches testing some sensors and got them working. Felt pretty good. Then I tried porting them to the nodeMCU. None of the sensors worked. Long story short, with an UNO, if you plug into pin 2 you reference it by 2 in the sketch. With a nodeMCU, if the sketch uses pin 2, you need to plug into pin D4.
Here is a pic of the cross reference and also a link to an article discussing this. Saved me a bunch of headache once I discovered this.
Link to article:
http://henrysbench.capnfatz.com/henr...-input-basics/
Pic:
There is something about the nodeMCU that caused me great problems when I was first starting to use it. Since others are starting to express interest in this chip, I thought I should post so that others don't suffer as I did.
The nature of the problem is that the pin numbers on the physical nodeMCU board do not directly correspond to how you need to reference them in the IDE sketch. When I first started with Arduino, I got an UNO for learning. I highly recommend that everyone just starting out get a vanilla Arduino UNO. I did a few sketches testing some sensors and got them working. Felt pretty good. Then I tried porting them to the nodeMCU. None of the sensors worked. Long story short, with an UNO, if you plug into pin 2 you reference it by 2 in the sketch. With a nodeMCU, if the sketch uses pin 2, you need to plug into pin D4.
Here is a pic of the cross reference and also a link to an article discussing this. Saved me a bunch of headache once I discovered this.
Link to article:
http://henrysbench.capnfatz.com/henr...-input-basics/
Pic:
Comment