TA Stuff ESP32
ESP32
In this tutorial, we walk you through the hardware configuration, so you are up and running for your journey in IoT. If you own a Generic ESP32 Development Board you should follow this tutorial.
You will:
We'll continuously update this walkthrough. Is there anything missing or unclear, or have you experienced some issue? Please add a comment. You do this by highlighting the text and then you can write a comment on the highlighted part. You need to log in/create an account on HackMD first.
Depending on your operating system follow one of the following sections:
Follow these steps:
Your Windows Device Manager should look like these; before and after driver installation:
The page must be opened in the latest version of Google Chrome or Microsoft Edge.
Boot
button on your board down both during and (Flashing) otherwise it does not work.During the next two steps, you should not interrupt any execution, meaning you should keep your browser open and not remove the USB cable from your board or computer.
1000
, and in Choose a File select your download esp32-20220117-v1.18.bin
, then press program to write firmware to your board. (It takes a while and during this time don’t disconnect your board from the USB cable)You are now ready for the next step to run code on your development IDE. Follow the steps below:
Settings
on Pymakr and choose Global settings
.Device address (list)
field and remove the check box selection from Safe-boot before upload
.It would be good to disconnect your device and restart your Windows before starting REPL in Atom.
Connect device
in Pymakr and choose your COM port.print("Hello from Heltec")
and the board shows it in REPL.If you press the “RST” button your board goes into the following state, and it is because this firmware is a PyCom MicroPython and the reset button is not defined.
You should: 1. Close REPL tab on Atom. 2. Disconnect the board from USB and connect it again 3. Open REPL again like “Step 7” above.
You are now successfully finished Part 1 of four parts tutorial, It is a good idea to read more about MicroPython Tutorials and Examples from MicroPython Site (here) and try different code to learn more.
Good Luck!
Follow these steps:
Apple icons >> About This Mac >> Overview >> System Report... >> Hardware >> USB
.Your USB Device Tree should look like this; and you can find the CP2102 USB to UART Bridge Controller in the USB Device Tree.
Step 3: Download this file to your Mac.
Step 4: Open this website and do:
Boot
button on your board down both during and (Flashing) otherwise it does not work.During the next two steps, you should not interrupt any execution, meaning you should keep your browser open and not remove the USB cable from your board or computer.
1000
, and in Choose a File select your download esp32-20220117-v1.18.bin
, then press program to write firmware to your board. (It takes a while and during this time don’t disconnect your board from the USB cable)You are now ready for the next step to run code on your development IDE. Follow the steps below:
Step 1: Open your Atom IDE and at the bottom, you see the Pymakr plugin. Then open Settings
on Pymakr and choose Global settings
. Remove the check box selection from Auto connect
and Safe-boot before upload
.
Step 2: Enter the device port into the Device address (list)
field. The device addree can be found using the following command in the Terminal.
It would be good to restart Atom.
Connect device
in Pymakr and choose your device port.print("Hello from Heltec")
and the board shows it in REPL.If you press the “RST” button your board goes into the following state, and it is because this firmware is a PyCom MicroPython and the reset button is not defined.
You should: 1. Close REPL tab on Atom. 2. Disconnect the board from USB and connect it again 3. Open REPL again like “Step 7” above.
You are now successfully finished Part 1 of four parts tutorial, It is a good idea to read more about MicroPython Tutorials and Examples from MicroPython Site (here) and try different code to learn more.
Good Luck!
Follow these steps:
Boot
button on your board down both during and (Flashing) otherwise it does not work.During the next two steps, you should not interrupt any execution, meaning you should keep your browser open and not remove the USB cable from your board or computer.
1000
, and in Choose a File select your download esp32-20220117-v1.18.bin
, then press program to write firmware to your board. (It takes a while and during this time don’t disconnect your board from the USB cable)You are now ready for the next step to run code on your development IDE. Follow the steps below:
Settings
on Pymakr and choose Global settings
. Remove the check box selection from Safe-boot before upload
.Device address (list)
field.It would be good to disconnect your device and restart Atom. Remeber to enter commands in your Terminal again.
Step 3: Open Atom, click on Connect device
in Pymakr and choose your Device Address (/dev/ttyUSB0).
Step 4: Confirm the success by entering print("Hello from Heltec")
and the board shows it in REPL.
If you press the “RST” button your board goes into the following state, and it is because this firmware is a PyCom MicroPython and the reset button is not defined.
You should: 1. Close REPL tab on Atom. 2. Disconnect the board from USB and connect it again 3. Open REPL again like “Step 7” above.
Everytime you disconnect/connect your Heltec board in Ubuntu you must give access to it by following commands:
You are now successfully finished Part 1 of four parts tutorial, It is a good idea to read more about MicroPython Tutorials and Examples from MicroPython Site (here) and try different code to learn more.
Good Luck!