JunShern / embedded-systems

Group coursework for EE3-24 Embedded Systems at Imperial College London

Home Page:https://artemiovoronov.wixsite.com/mysite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

embedded-systems

Group coursework for EE3-24 Embedded Systems at Imperial College London

Getting started

  1. Enter REPL using screen (need to use sudo if “screen is terminating”) or follow these instructions sudo screen /dev/ttyUSB0 115200

  2. Try out some basic commands on the micropython docs

  3. Install ampy using pip install adafruit-ampy and go through the docs

Running the program

  1. Use ampy to load the firmware onto the board: sudo ampy -p /dev/ttyUSB0 -b 115200 put main.py The put command loads the program onto the board but doesn't run it; the correct command for running files is actually run but run was found to cause errors so use put for best results. To view debug and print output, need to use screen to talk to the board after the program has been loaded.

  2. 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 Communication Resources

MQTT overview Installation and setup

Other resources

(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

About

Group coursework for EE3-24 Embedded Systems at Imperial College London

https://artemiovoronov.wixsite.com/mysite


Languages

Language:Python 100.0%