How to connect to your ESP32 on macos

To find out as what USB device the ESP32 is connected, open Terminal and enter: ls /dev/tty* | grep usb in my case I got /dev/tty.usbserial-14120 Now we can connect via screen: screen /dev/tty.usbserial-14120 115200 When you reset the board you should see something like this configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:5656 load:0x40078000,len:12696…

New Blog Post

Telegram Bot with MicroPython

Motivation In my project Mailbox IoT ESP 32 Project I needed a Telegram bot to relay the messages. So here is a short tutorial Create TG bot Open Telegram Search for @botfather Start chat Send /newbot Pick a name Pick a username (must be unique) Receive credentials Chat with your bot Now you can search…

MicroPython uos package

When you are familiar with Python os and platform package You may wonder how to use it on ESP32 in MicroPython. Because this doesn’t work: >>> os.name Traceback (most recent call last): File “”, line 1, in AttributeError: ‘module’ object has no attribute ‘name’ >>> import platform Traceback (most recent call last): File “<stdin>”, line…

Install ESP32 in ArduinoIDE

Prerequisites On Windows you might need to install the CH340 USB-UART driver first to get a connection to the board. Install ESP32 in ArduinoIDE Open Preferences and add https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json to additional boards manager URLs:

Using MicroPython on FireBeetle ESP32

Motivation In Fire Beetle ESP 32 Project I wrote about connecting the FireBeetle ESP32 with the Arduino IDE and writing a little C-style program. Another interesting approach is to use MicroPython. Installing MicroPython Install esptool To get MicroPython onto the board we use the esptool command line. Because we are in the Python ecosystem we…

Mailbox IoT ESP 32 Project

Motivation Out of curiosity I bought a ESP32 board to tinker with, but for almost half a year hadn’t got an idea what to do with it… But then! Project Idea The idea: Every time I get mail into my physical snail mail mailbox, the mailbox shall send a message via Telegram to my smartphone:…

Calculator for Resistor Values

Calculator for 4 rings 1. Ring 2. Ring 3. Ring 4. Ring Value Tolerance brownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegoldsilver brownredgreenbluepurplegoldsilver 0Ω 0% Calculator for 5 rings 1. Ring 2. Ring 3. Ring 4. Ring 5. Ring Value Tolerance brownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegreywhite blackbrownredorangeyellowgreenbluepurplegoldsilver brownredgreenbluepurplegoldsilver 0Ω 0%