Group coursework for EE3-24 Embedded Systems at Imperial College London
-
Enter REPL using screen (need to use sudo if “screen is terminating”) or follow these instructions
sudo screen /dev/ttyUSB0 115200
-
Try out some basic commands on the micropython docs
-
Install ampy using
pip install adafruit-ampy
and go through the docs
-
Use ampy to load the firmware onto the board:
sudo ampy -p /dev/ttyUSB0 -b 115200 put main.py
Theput
command loads the program onto the board but doesn't run it; the correct command for running files is actuallyrun
butrun
was found to cause errors so useput
for best results. To view debug and print output, need to usescreen
to talk to the board after the program has been loaded. -
Make sure your computer is connected to the appropriate broker's network (according to the broker IP address in userInterface.py), then run the user interface using:
python userInterface.py
MQTT overview Installation and setup
(Can skip this step since MicroPython is already on the Huzzah’s ESP)
Flash MicroPython firmware onto ESP8266 - link (need to determine USB dev path using this)
(Can skip this step too)
Install MicroPython on laptop and run executable to connect - instructions