Automated Chicken Coop pt. 3 – Remotely Controlling our Coop pt. 2

Remotely Controlling our Chicken Coop pt2

Lots of our Chicken Coop will require programming and electronics. The firsts steps are setting up our environment to work

By now you should have obtained an NodeMCU-12E and downloaded the Arduino IDE available at:

Because the NodeMCU does not run on Arduino out the box, it is neccessary that we prepare both the board and the Arduino IDE for communications with each other.

Connect your NodeMCU to your computer via a micro USB cable.  If this is your first time with Arduino or the NodeMCU you should be prompted to install an FTDI driver.

Setting up The Arduino-IDE

After you have installed the FTDI driver open Device Manager on your computer.  If you do not know how to access Device Manager, click the Start button, and click “Run” type in “devmgmt.msc” and click “Ok”. On Windows 7 and higher, just type Device Manager in the search box.   In Device Manager, click the arrow to the left of “Ports (COM & LPT)

In the image above, the “USB-Serial CH340” is my Arduino-Nano assigned to COM4.  My NodeMCU is under the Silcon Labs CP210x located on COM8. You should be able to figure out which COM port your NodeMCU is attached to easily, you can unplug the NodeMCU and plug it in and watch for changes.  Write down the COM port and close Device Manager.

Open the Arduino-IDE.  Before we can use the IDE with a NodeMCU we must load the board information into the IDE.  Click File > Preferences to open the Arduino preferences window.  You should see a line that says “Additional Boards Manager URL”  with a text box and a button to the right of it. (see image below).

Click the button to the side of the text box and enter the following address on the top line of the text box in the Additional Boards Manager window.

Click “OK” to close the Additional Boards Manager window, then click OK to close the Arduino preferences window.  Finally close the Arduino IDE and re-open it.

Once you’ve reopened the Arduino IDE click Tools and select your board as shown in the image below.

Set the other settings as seen in this photo, and select your NodeMCU’s port number.  We’re now ready to program our NodeMCU!


Leave a Reply

Your email address will not be published. Required fields are marked *