Categories
Microcontrollers MicroPython

MicroPython (Python 3) for ESP8266 – ESP01 (512KB)

Requirements

v1.12 and earlier will work on modules with 1M or more of flash, while v1.13 requires 2M or more.

ESP8266 ESP01 (512K flash) supported by limited features.

ESP01/01s USB-UART Programmer and UART device drivers. For uploading firmware and Python REPL from the serial console

PC / Notebook (Windows/MacOS – Intel) has been installed with Python 3.x and esptools.py utility program. Try this to install esptools

Thonny and Visual Studio IDE for coding editor for python

pip3 install esptool

Download Firmware

https://github.com/micropython/micropython/tree/master/ports/esp8266

https://micropython.org/download/esp8266/

Upload lastest firmware to ESP8266 (512 KB) with esptools.py utility installed on the PC/Notebook (Window/MacOS – Intel) and ESP01/01s USB-UART Programmer

This image has an empty alt attribute; its file name is USB-ESP01-PROG%20(5)-800x800.jpg
Source: Cytron Technology

Using esptool.py you can erase the flash with the command:

esptool.py --port /dev/ttyUSB0 erase_flash

And then deploy the new firmware using esptools.py and filename of the latest binary ESP8266 firmware.

esptool.py --port /dev/ttyUSB0 --baud 460800 write_flash --flash_size=detect 0 esp8266-xxxxx.bin

Using MicroPython (REPL) via USB-UART (Serial) Programmer on MacOS (Intel) screen utility

screen /dev/tty.SLAB_UART 115200

Note: Press ENTER key when the blinking cursor is on the screen without the REPL prompt.

>>> print(“Hello MicroPython”)

Blink LED (build-in) and main.py filename

Tutorials

http://docs.micropython.org/en/latest/esp8266/tutorial/index.html

Tutorial of Thonny IDE installation (MacOS – Intel)

https://github.com/thonny/thonny/wiki/MacOSX

Troubleshooting Problem

http://docs.micropython.org/en/latest/esp8266/tutorial/intro.html#deploying-the-firmware

Resources

http://docs.micropython.org/en/latest/esp8266/quickref.html

https://micropython.org/unicorn/

https://micropython.org/

https://thonny.org/

Categories
ESP32 ESP8266 (ESP-01/01S) Microcontrollers Security

MAC Address Randomization

Resources

https://source.android.com/devices/tech/connect/wifi-mac-randomization#:~:text=MAC%20randomization%20prevents%20listeners%20from,and%20Wi%2DFi%20RTT%20operations.

Categories
ESP8266 (ESP-01/01S) Microcontrollers

ESP8266 WiFi Sniffing

Resources

https://github.com/SpacehuhnTech/esp8266_deauther

https://www.varonis.com/blog/hacking-wi-fi-with-the-esp8266/

https://github.com/spacehuhn/ArduinoPcap

https://github.com/spacehuhn/DeauthDetector

https://cifertech.net/detect-deauth-attacks-on-wi-fi-network-using-esp8266/

https://maker.pro/arduino/projects/visitor-flow-rate-counting-with-esp32

https://github.com/RicardoOliveira/FriendDetector

Categories
ESP8266 (ESP-01/01S) Microcontrollers

FreeRTOS and ESP8266 (E-12)

https://www.freecodecamp.org/news/how-to-get-started-with-freertos-and-esp8266-7a16035ddd71/

Categories
ESP8266 (ESP-01/01S) Microcontrollers

Espresso Lite V2.0 (Discontinue)

ESPresso Lite V2.0
Jual Perangkat Elektronik Lainnya Espresso Lite V2.0 -ESP8266  Arduino-compatible Wi-Fi board- di Lapak Erica Aimee | Bukalapak

Espresso Lite V2.0 Specs and Features:

  • Features Espressif System’s ESP8266 WROOM-02 Wi-Fi module (with 4MB flash)
  • Design for IoT with free espert.io cloud and app service
  • Support the Arduino IDE (boards manager) and libraries
  • Auto program loading from Arduino IDE, using UC00A (or other compatible USB to Serial)
  • Vin: 5 to 12VDC
  • Operating Voltage: 3.3VDC
  • On board 3.3V Voltage Regulator with maximum current of 800mA continuous, 1A peak
  • One Reset button, two User Programmable buttons
  • WROOM-02 module is FCC, CE & TELEC certified
  • Breadboard friendly breakout pins
  • Ready pads for I2C Oled panel

WROOM-02 Specs and Features:

  • Operating Voltage: 3.0 to 3.6VDC
  • Operating Current: Average = 80mA
  • IEEE 802.11b/g/n at 2.4 GHz
  • WiFi mode: SoftAP/Station/SoftAP + Station
  • Security: WPA/WPA2
  • Encrytion: WEP/TKIP/AES
  • Integrated low power 32-bit MCU
  • Integrated 10-bit ADC
  • Integrated TCP/IP protocol stack
  • Integrated TR switch, balun, LNA, power amplifier and matching network
  • Integrated PLL, regulators, and power management units
  • Various interfaces available, including SDIO, HSPI, UART, I2C, I2S, IR, PWM, GPIO, etc.
  • Supports antenna diversity
  • Deep sleep power <10uA, Power down leakage current < 5uA
  • Wake up and transmit packets in < 2ms
  • Standby power consumption of < 1.0mW (DTIM3)
  • +20dBm output power in 802.11b mode
  • Operating temperature range -40C ~ 125C
  • FCC, CE and TELEC certified

ESP-WROOM-02 Pins

Uploading Arduino IDE Binary Code / Firmware Using USB-UART

ESPresso Lite V2 with AT Firmware | Tutorials of Cytron Technologies

Categories
Internet Of Things Microcontrollers

Home Assistant Installation

MacOS (Intel)

https://www.home-assistant.io/installation/macos

Raspberry Pi (Rasbian)

https://www.home-assistant.io/installation/raspberrypi

Categories
ESPHome

Getting Started

https://esphome.io/guides/getting_started_hassio.html#

Categories
ESP8266 (ESP-01/01S) Microcontrollers

ESP8266EX

External Flash


ESP8266EX uses external SPI flash to store user programs and supports up to 16 MB memory capacity theoretically.

The minimum flash memory of ESP8266EX is shown below:

  • OTA disabled: 512 kB at least
  • OTA enabled: 1 MB at least

Programming Mode

Categories
ESP8266 (ESP-01/01S) Microcontrollers

ESP8266/8265 Series Chart

Categories
ESP8266 (ESP-01/01S) Microcontrollers

Blinking LED (external)

Components

  • 1 x A-i Thinker Technology ESP-01 microcontroller based on ESP8266EX
    • 4Mbit (512 Kb) external flash memory
    • Espressif firmware
  • 1 x Red LED
  • 1 x 10K resistor
  • Jumper wires
    • Male to Female
    • Female to Female
  • 1 x Breadboard (830 or 400 holes)
  • 1 x Breadboard Power Module MB102 (USB Input: 5V and Output: 3.3V)
    • AMS1117 LDO circuit included
  • 1 x ESP01/01S USB Programmer Adapter (CP2104 USB-UART Chip)
    • Programming Mode (Enable)
    • Reset button

Programming Utility, ESP8266 Library and USB-UART driver (MacOS Catalina)

Circuit

EasyEda

Power Up the Circuit and Enable the ESP8266 chip

MB102 Breadboard Power Module provides 3.3V for the circuit. CH_PD pin connected to the 3.3v source to enable the ESP8266EX chip

Code (Output to GPIO 2)

On the Arduino IDE’s Tool Menu, setup the Builtin Led = 2 and the sketch will take the value 2 for LED_BUILTIN

/*
  ESP8266 Blink by Simon Peter
  Blink the blue LED on the ESP-01 module
  This example code is in the public domain

  The blue LED on the ESP-01 module is connected to GPIO1
  (which is also the TXD pin; so we cannot use Serial.print() at the same time)

  Note that this sketch uses LED_BUILTIN to find the pin with the internal LED
*/

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, LOW);   // Turn the LED on (Note that LOW is the voltage level
  // but actually the LED is on; this is because
  // it is active low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(LED_BUILTIN, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}

Upload (binary code) to external flash memory (512 kb) via ESP01 USB Programmer Adapter

Resources

Arduino IDE software

https://www.arduino.cc/en/software

A-i Thinker

https://docs.ai-thinker.com/en/esp8266

ESP8266EX Datasheet

https://www.espressif.com/sites/default/files/documentation/0a-esp8266ex_datasheet_en.pdf

ESP8266 Library (Arduino IDE)

https://github.com/esp8266/Arduino

USB-UART CP2401 Drivers

https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers

Espressif firmware

https://www.espressif.com/en/support/download/at

8266 Community

https://www.esp8266.com/