Page:
How to get the NodeMCU up and running
Pages
Audio Input und Speech Recognition
Cocoon man
Coffin ghost
Crazy Witch
Deploying flask with uwsgi and nginx
Dungeon
Eyes in the dark
Grave riser
Halloween Control Center
Hanging ghost
Home
How to get the NodeMCU up and running
How to install py neopixel spidev
How to install pylibftdi for DMX
Ideas 2018
Ideas 2019
Ideas for 2021 (hopefully)
Ideas for 2022
Ideas for 2023
Ideas for 2024
Ideas for refactoring 2021
Installations
LEGO
Monster in a box
Open a reverse shell
Prisoner
Raspberry Pi Overview
Setting up a new scary RPi
Setup Remote Software Update
Spider
Swaying Zombie
USB Audio on Raspberry Pi Zero
Web API
Weremonkey
Zombie Fence
No results
11
How to get the NodeMCU up and running
mishi edited this page 2018-11-10 17:59:51 +01:00
How to get the NodeMCU up and running
Get need software installed
On the Macbook
-
Driver for the serial-to-usb connection. Found it here: https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers.
-
Install esptool:
sudo pip3 install esptool
- Install rshell:
sudo pip3 install rshell
Flash the ESP8266 on the NodeMCU board
- Erase flash (Replace
cu.SLAB_USBtoUARTwhen using another driver).
esptool.py --port /dev/cu.SLAB_USBtoUART --baud 230400 read_flash 0 2097152 orig_fw.bin`
esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 erase_flash
- Flash with the new firmware: In
<halloween>/esp8266/firmwarerun
esptool.py --port /dev/cu.SLAB_USBtoUART -b 115200 write_flash 0 ./firmware-v1.9.4-683-gd94aa57.bin
Setup ESP8266
- Start the terminal by
screen /dev/tty.SLAB_USBtoUART 115200
- In the terminal, set up the wifi connection by following the
help()suggestion:
import network
sta_if = network.WLAN(network.STA_IF); sta_if.active(True)
sta_if.scan()
sta_if.connect("<AP_name>", "<password>")
sta_if.isconnected()
- Enable webrepl:
import webrepl_setup
-
I've used the WebREPL to connect via Wifi and sent the Python files from
<halloween>/esp8266to the ESP8266 -
In the shell, run
import pumpkinand Flask comes up. -
Start scaring via the web interface (port 8081)