Announcement

Collapse
No announcement yet.

Important info for nodeMCU users

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • logbuilder
    started a topic Important info for nodeMCU users

    Important info for nodeMCU users

    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:

  • enigmatheatre
    replied
    It is now in the Beta section of the updater.

    Greig.

    Leave a comment:


  • enigmatheatre
    replied
    Originally posted by TomB View Post
    Then I will wait until tomorrow, thank you
    Tom,

    I have uploaded the files but there is a bug updater that I found stopping them from showing. I have reported this to the HST and they have someone looking at getting this fixed. I will update you when they get back to you.

    You can also do the install by downloading the file from Here and put it in your HS root folder then click update listings on the updater page. You will then get the update for install after which you can delete the file.

    Greg.

    Leave a comment:


  • TomB
    replied
    Originally posted by enigmatheatre View Post
    This would have to be a manual download as the updater is not fully working with the plugin. I should have this fixed today at some point.

    Greig.

    Sent from my SM-G950F using Tapatalk
    Then I will wait until tomorrow, thank you

    Leave a comment:


  • enigmatheatre
    replied
    This would have to be a manual download as the updater is not fully working with the plugin. I should have this fixed today at some point.

    Greig.

    Sent from my SM-G950F using Tapatalk

    Leave a comment:


  • TomB
    replied
    Originally posted by rprade View Post
    What version of the plug-in are you running? You may need to install the beta plug-in.
    1.0.0.131.

    I can install beta plugin, I am just getting started so it does not really matter

    Is it possible to get from HS3 install page, or do I have to download it manually?

    Leave a comment:


  • rprade
    replied
    Originally posted by TomB View Post
    How do I find this option through my plug-in? I installed today, but I just have Arduino and Arduino API to choose from, no option of NodeMCU.

    Am I missing something?
    What version of the plug-in are you running? You may need to install the beta plug-in.

    Leave a comment:


  • TomB
    replied
    Originally posted by rprade View Post
    If you are using this plug-in, they are set up on the config page. You will be offered a spot for SSID and password when you select this board type. The plug-in will generate a sketch containing both.

    [ATTACH]65469[/ATTACH]
    How do I find this option through my plug-in? I installed today, but I just have Arduino and Arduino API to choose from, no option of NodeMCU.

    Am I missing something?

    Leave a comment:


  • rprade
    replied
    Originally posted by logbuilder View Post
    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/
    It is important to note that if you are using the standard sketch (not the API), the pin numbers on the configuration page correspond to the pin numbers one the NodeMCU board. If you want to use "D1" as an output, you configure it as "D1" on the configuration page. If you are using the API, then you need to specify the GPIO pin numbers as shown in the above linked article.

    Leave a comment:


  • rprade
    replied
    Originally posted by langenet View Post
    Just seeing this thread had me pull out my new nodeMCU and wonder how do I setup the WSID/password to wifi use??
    If you are using this plug-in, they are set up on the config page. You will be offered a spot for SSID and password when you select this board type. The plug-in will generate a sketch containing both.

    Click image for larger version

Name:	Capture.png
Views:	1
Size:	16.1 KB
ID:	1194573

    Leave a comment:


  • langenet
    replied
    Just seeing this thread had me pull out my new nodeMCU and wonder how do I setup the WSID/password to wifi use??

    Leave a comment:


  • petez69
    replied
    I ended up buying some ESP-12E boards, they are good and easy to setup as they have the USB socket onboard. I've been playing with these using the Arduino Plugin and the MQTT plugin, they arent too bad.

    Anyway all good experimentation....

    Pete

    Leave a comment:


  • tpchristian
    replied
    Thanks, Billy and John. I ended up ordering a different one,
    the ESP32. I'm guessing this one will work fine too and if I ordered it right away, I'd be able to get it tomorrow to experiment.
    Originally posted by bdraper View Post
    Tom, I have ordered those exact NodeMCU units from Amazon and they work very well.These units have WiFi on them and have been very reliable in my setup.

    I have one of the units on top of my gas water heater, it monitors temperature from the area, hot and cold water lines as well as the intake and exhaust for gas area.

    Good luck.

    Leave a comment:


  • lj502
    replied
    I have 5 of those boards from Amazon and all work perfectly.

    John

    Leave a comment:


  • bdraper
    replied
    Tom, I have ordered those exact NodeMCU units from Amazon and they work very well.These units have WiFi on them and have been very reliable in my setup.

    I have one of the units on top of my gas water heater, it monitors temperature from the area, hot and cold water lines as well as the intake and exhaust for gas area.

    Good luck.

    Leave a comment:

Working...
X