You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: courses/E375004/micropython_smart_sensor/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
9
9
## esptool
10
10
* Create venv with `python -m venv venv`
11
-
* Open venv (venv\Scripts\activate on Win)
11
+
* Open venv (`venv\Scripts\activate` on Win)
12
12
* Install esptool with `pip install esptool`
13
13
* 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)
14
14
* after running the command push the button **BOOT** on the board
15
15
* Get firmware for your board from: https://micropython.org/download/ (we use the one from lecture repository on github)
*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
18
18
19
19
20
20
# Micropythoning
@@ -42,11 +42,12 @@
42
42
## Boot script
43
43
* After reboot of the board the `boot.py` script is loaded first
44
44
* 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)
46
46
* Load the `boot.py` with Webrepl: Choose file -> Send to device
47
47
* Reboot the board, in the serial monitor you should se the connection and webrepl launch
48
48
49
49
## Main script
50
50
* After the `boot.py` is executed the `main.py` is then loaded
51
51
* In `main.py` our code for program should be placed (we can also include other scripts but main is starting point)
52
52
* 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