jezuz
jezuz

Reputation: 433

How to run Node.js on esp8266 (Nodemcu dev board)?

I am trying to connect Apple homekit to nodemcu board, I found a tutorial which works on my computer, but I am wonder if there is any way to load and run Node.JS on a NodeMCU board (ESP8266)?

Upvotes: 12

Views: 25964

Answers (2)

Jesse
Jesse

Reputation: 1940

You can run Espruino on it. I have the HiLetgo NodeMCU ESP-12E Module and was easily able to load the firmware.

  1. Download and install flasher https://github.com/thingsSDK/flasher.js
  2. Press and hold the flash button press the reset button once. It will flash once.
  3. Open up flasher app and flash the firmware for Espruino.
  4. Unplug the esp8266 and plug it back in
  5. download the web ide for Espruino https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo?hl=en
  6. Change the baud rate Settings --> Communications --> Baud Rate 115200
  7. Connect and enjoy!

Some samples to try out

https://github.com/mertenats/NodeMCU-and-JavaScript

Upvotes: 29

user1816847
user1816847

Reputation: 2077

I think you're confusing nodemcu, which is a firmware for the ESP8266 boards that interprets the language lua, with the javascript runtime node.js, which runs on computers.

So, the answer is you cannot run node.js on an ESP8266.

Upvotes: 7

Related Questions