Skip to content

jamestansx/ESP32-BME280-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BME280 with ESP32

Installing MicroPython

Installation of firmware

Download the firmware from here (direct link to download: https://micropython.org/download/esp32)

Deploying firmware

Install esptool from GitHub or via pip:

pip install esptool

Connect the board to computer and erase the flash with the command (hold the boot button while it erase the flash):

esptool --port COMx erase_flash

Then deploy the firmware using:

esptool --chip esp32 --port COMx write_flash -z 0x1000 /path/to/esp32.bin

note: check the port that esp32 used by checking in the device manager should be COMx, where x is an integer

Getting Started with REPL

Via serial port

On Windows, install TeraTerm to access the prompt over USB-serial. Download link

Uploading files to ESP32

Using rshell

Install rshell via pip:

pip install rshell

Use rshell to connect to ESP32:

rshell -p COMx -e notepad

the filepath of ESP32 is /pyboard/

To copy file to ESP32: (inside rshell)

# cp /path/to/file_to_copy /pyboard/

Reference

  1. Micropython Documentation
  2. rshell GitHub
  3. BME280 tutorial

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published