Skip to content

Commit b2ebae9

Browse files
authored
Update README.md
1 parent 65c5df5 commit b2ebae9

File tree

1 file changed

+4
-3
lines changed
  • courses/E375004/micropython_smart_sensor

1 file changed

+4
-3
lines changed

courses/E375004/micropython_smart_sensor/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
## esptool
1010
* Create venv with `python -m venv venv`
11-
* Open venv (venv\Scripts\activate on Win)
11+
* Open venv (`venv\Scripts\activate` on Win)
1212
* Install esptool with `pip install esptool`
1313
* erase board: `python -m esptool --chip esp32 --port <PORT_OF_YOUR_BOARD> erase_flash` (you need to close Serial monitor for that to free the com port)
1414
* after running the command push the button **BOOT** on the board
1515
* Get firmware for your board from: https://micropython.org/download/ (we use the one from lecture repository on github)
1616
* flash the board: `python -m esptool --chip esp32 --port <PORT_OF_YOUR_BOARD> --baud 460800 write_flash -z 0x1000 esp32-20220117-v1.18.bin`
17-
* after running the command push the button **BOOT** on the board
17+
* instead of `esp32-20220117-v1.18.bin` use the path to the firmware bin you have downloaded
1818

1919

2020
# Micropythoning
@@ -42,11 +42,12 @@
4242
## Boot script
4343
* After reboot of the board the `boot.py` script is loaded first
4444
* There we should specify basic setup of the board (wifi connection, webrepl setup) so we don't have to do it each time
45-
* Prepare your `boot.py` or use the one from lecture files
45+
* Prepare your `boot.py` or use the one from [lecture files](https://github.com/CVUT-FS-12110/Python/blob/master/courses/E375004/micropython_smart_sensor/04_scripts_for_board/boot.py)
4646
* Load the `boot.py` with Webrepl: Choose file -> Send to device
4747
* Reboot the board, in the serial monitor you should se the connection and webrepl launch
4848

4949
## Main script
5050
* After the `boot.py` is executed the `main.py` is then loaded
5151
* In `main.py` our code for program should be placed (we can also include other scripts but main is starting point)
5252
* For the lecture purposes we will make program for reading of temperature sensor on the board and providing the data to server API via local WIFI site
53+
* prepared `main.py` is in [lecture files](https://github.com/CVUT-FS-12110/Python/blob/master/courses/E375004/micropython_smart_sensor/04_scripts_for_board/main.py)

0 commit comments

Comments
 (0)