All Projects → smrtnt → NodeMCU-and-JavaScript

smrtnt / NodeMCU-and-JavaScript

Licence: MIT License
Programming NodeMCU boards with Espruino (JavaScript)

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to NodeMCU-and-JavaScript

hgdo
Hörmann Garage Door Opener mit ESP8266 (direkt über Bus, ohne UAP1 !)
Stars: ✭ 19 (-80.41%)
Mutual labels:  esp8266
esphome-capacitive-touch-panel
A DIY capacitive touch panel based on the mpr121 and esphome.
Stars: ✭ 95 (-2.06%)
Mutual labels:  esp8266
cordova-plugin-smartconfig
A cordova plugin for Smart Configure ESP8266 & ESP32 with Espressif Esptouch protocol.
Stars: ✭ 17 (-82.47%)
Mutual labels:  esp8266
Cicada-FW
IoT Communications Module for Energy Access. An easy way to get production ready, bi-directional communications for your IoT embedded device. Proiect supported by the EnAccess Foundation - https://enaccess.org
Stars: ✭ 12 (-87.63%)
Mutual labels:  esp8266
SDS011
Non blocking SDS011 sensor library for ESP8266
Stars: ✭ 15 (-84.54%)
Mutual labels:  esp8266
interp
Interpreter experiment. Testing dispatch methods: Switching, Direct/Indirect Threaded Code, Tail-Calls and Inlining
Stars: ✭ 32 (-67.01%)
Mutual labels:  esp8266
hassio
ESPHome Hass.io addon files
Stars: ✭ 175 (+80.41%)
Mutual labels:  esp8266
RFLink
RFLink for ESP, with MQTT client
Stars: ✭ 52 (-46.39%)
Mutual labels:  esp8266
IoTManager
Это модульная система автоматизации на базе ESP32/ESP8266 микроконтроллеров и приложения IoT Manager.
Stars: ✭ 41 (-57.73%)
Mutual labels:  esp8266
micropython-bmp280
module for the BMP280 sensor
Stars: ✭ 31 (-68.04%)
Mutual labels:  esp8266
EMS-Wiki
Buderus Logamatic EMS and EMS+/EMS Plus bus Wiki for Bosch, Buderus, Nefit, Junkers, Worcester devices
Stars: ✭ 22 (-77.32%)
Mutual labels:  esp8266
st7789 mpy
Fast pure-C driver for MicroPython that can handle display modules on ST7789 chip
Stars: ✭ 113 (+16.49%)
Mutual labels:  esp8266
esp-homekit-rgbw-strip
A homekit firmware for a magic home RGBW controller
Stars: ✭ 14 (-85.57%)
Mutual labels:  esp8266
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+7.22%)
Mutual labels:  esp8266
esp8266-sigfox-trackr
Sigfox / ESP8266 WiFi based tracker
Stars: ✭ 17 (-82.47%)
Mutual labels:  esp8266
SnorkTracker
GPS IoT tracker board for scanning gps and environment information and sending this to a MQTT server via GPRS.
Stars: ✭ 38 (-60.82%)
Mutual labels:  esp8266
SuperLEDstrip
No description or website provided.
Stars: ✭ 13 (-86.6%)
Mutual labels:  esp8266
ESP-Mail-Client
⚡️Arduino Mail Client Library to send, read and get incoming mail notification for ESP32, ESP8266 and SAMD21 devices. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.
Stars: ✭ 78 (-19.59%)
Mutual labels:  esp8266
Farm-Data-Relay-System
A system that uses ESP-NOW, LoRa, and other protocols to transport sensor data in remote areas without relying on WiFi.
Stars: ✭ 97 (+0%)
Mutual labels:  esp8266
zevoicemask
An open source DIY implemetation of a face mask with voice visuals and animations.
Stars: ✭ 13 (-86.6%)
Mutual labels:  esp8266

NodeMCU board (ESP8266) with JavaScript

This repository provides a little introduction into getting going with the NodeMCU board (1.0/v2) and Espruino (JavaScript for Microcontrollers, v1.87). It provides an installation guide and some examples.

Examples

Title Description
Hello World A simple Hello World example
Blink A simple example to flash the integrated LED
Wi-Fi A simple example to connect to a Wi-Fi AP and make the NodeMCU board available through espruino.local
HTTP Server A simple Web Server to control the integrated LED

Installation

I spent 2-3 days to make everything working, so I decided to provide a compressed folder (esptool.py v1.2 & Espruino v1.87) with everything you need to flash the firmware.

You probably need to install pyserial for using the esptool.py. It can be achieved with sudo easy_install pyserial(macOS), sudo apt-get install python-serial(Linux) or sudo pip install pyserial.

Move inside the downloaded folder

cd Downloads
cd Espruino_v1_87

Erase the flash memory

python esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash

Erase flash

Flash the NodeMCU with Espruino

python esptool.py  --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --verify --flash_freq 80m --flash_mode dio --flash_size 32m 0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin

Flash firmware

After flashing the firmware, you may have to unplug/plug the NodeMCU to the computer. To test the installation process, you can use Screen and send some JavaScript code, like process.memory()or digitalWrite(NodeMCU.D4, HIGH); to turn on the built-in led.

screen /dev/tty.SLAB_USBtoUART 115200

Screen

Launch Google Chrome, install the Espruino Web IDE (extension) and modify the Baud Rate to 115200 (Espruino Web IDE > Settings > Communications > Baud Rate).

Espruino Web IDE

It's possible to program the board Over-The-Air by defining a hostname and configuring a connection to it. Use the Wi-Fi example and add its hostname espruino.local:23 in the configuration (Espruino Web IDE > Settings > Communications > Connect over TCP Address).

Sources

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].