From 39fc47105038c37b28eeeb2fc3f0b9cbf63d2295 Mon Sep 17 00:00:00 2001 From: Milan Toman Date: Wed, 27 Jul 2022 13:34:35 +0200 Subject: [PATCH] How to install MP --- Micropython_install.md | 13 +++++++++++++ README.md | 17 +++++++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 Micropython_install.md diff --git a/Micropython_install.md b/Micropython_install.md new file mode 100644 index 0000000..7feda69 --- /dev/null +++ b/Micropython_install.md @@ -0,0 +1,13 @@ +# Installation of Micropython .bin on a ESP8266 +Before we can program and use a ESP8266 with python, we need to flash the firmware +to MP - a Mirco Python environment especially designed for these microprocessors + +We need to dowload the latest MP binary. At the time of writing: + + wget https://micropython.org/resources/firmware/esp8266-1m-20220618-v1.19.1.bin + +Then, we need to flash the software to the microcontroller. A script that helps +us with this task is called esptool.py which can be downloaded from [HERE|https://github.com/espressif/esptool]: + + esptool.py --port /dev/ttyUSB0 erase_flash + esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect -fm dout 0 esp8266-1m-20220618-v1.19.1.bin diff --git a/README.md b/README.md index 3be61a3..bde8f8d 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,18 @@ convertors have to test the precision for multiple, averaged measurements. Should be precise enough, if WiFi is turned off and no PWM is used -### Architecture +### Pinout - ESP 8266 pins - 1, 3V3 --> To battery + 2, RX --> NC - 3, RST --> PULL UP 4, IO0 --> PWR Dump relay start - 5, EN --> PULL UP 6, IO2 --> FREE, blink indicator? - 7, TX --> NC 7, GND --> To Battery - + ESP 8266 pins + 1, 3V3 --> To battery + 2, RX --> NC + 3, RST --> PULL UP 4, IO0 --> PWR Dump relay start + 5, EN --> PULL UP 6, IO2 --> FREE, blink indicator? + 7, TX --> NC 7, GND --> To Battery - +### Operation +Monitoring should not really be an issue, or? +- measurement averaged in 5 measurements, +- measurement interval, 3s ## Hardware requiered - ESP8266, version not dependent. v01 will be used for testing @@ -32,6 +36,7 @@ convertors software ## Software requirements + - micoptyhon on SoC - obviously a NW infrastructure, TCP / http capable - Linux server - InfluxDB ?