How to Write ESP8266 Firmware from Scratch (using ESP Bare Metal SDK and C Language)

CNXSoft: This is a guest post by Alexander Alashkin, software engineer in Cesanta, working on Mongoose Embedded Web Server. Espressif’s ESP8266 had quite an evolution. Some may even call it controversial. It all started with ESP8266 being a WiFi module with a basic UART interface. But later it became clear that it’s powerful enough for embedded system. It’s essentially a module that can be used for running full-fledged applications. Espressif realized this as well and released an SDK. As first versions go, it was full of bugs but since has become significantly better. Another SDK was released which offered FreeRTOS ported to ESP. Here, I want to talk about the non-OS version. Of course, there are third-party firmwares which offer support for script language to simplify development (just Google for these), but ESP8266 is still a microchip (emphasis on MICRO) and using script language might be overkill. So what we […]

Some ESP32 Development Boards to Look Out For: NodeMCU, Widora-air, Nano32, Noduino Quantum, and Wemos

Espressif ESP32 WiFi + BLE SoC launched at the very beginning of the month, shortly followed by ESP3212 module, and while Adafruit sold a few breadboard-friendly ESP32 development boards to developers for $15 a few days ago, stock was limited, and it’s not possible to easily purchase ESP32 boards today, and that’s OK because firmware and software support is still in progress. Several companies are working on such ESP32 boards however, and they tend to show the development progress on social networks, so I thought it would be fun to look at what’s coming… Amica (NodeMCU) ESP32 Board The current NodeMCU board is one of the most popular ESP8266 development platform, and that’s not surprising they are working on an ESP32 version. I don’t have pictures nor full  specs of the board yet, but the company showcased their early work on ESP32 last June. Widora-air I only discovered Widora recently […]

Sonoff TH10/16 WiFi Relays Support Temperature and Humidity Probes

Sonoff are dirt cheap WiFi AC/DC relay systems based on ESP8266 selling for about $5 with board and case. They are made by ITEAD Studio, and the company has now new versions supporting up to 16A @ 250V, and with a 2.5mm connector to connect external temperature and humidity probes. Two models are available Sonoff-TH10 (10A max) and Sonoff-TH16 (16A max) with the following specifications: SoC – Espressif ESP8266 Tensila L106 32-bit MCU up to 80/160 MHz with WiFi Connectivity – 802.11 b/g/n WiFi with WPA/WPA2 support Relay Sonoff-TH10 – HK3FF-DC5V-SHG supporting 90 to 250 VAC input, up to 10A (2200 Watts) Sonoff-TH16 – Hongfa HF152F-T supporting 90 to 250 VAC input, up to 16A (3500 Watts) Terminals – 6 terminal for mains and load’s ground, live and neutral signals. Misc – 4-pin 2.5mm jack for external probes, LEDs for power and WiFi status Dimensions – PCB: 89.1 x 45.0 […]

A.I. Thinker A20 Plus ESP8266 WiFi Board Includes GPRS Support and a VGA Camera

A.I. Thinker, a company known for its ESP8266 module, has designed a new intriguing product with A20Plus board powered by Espressif ESP8266 (or ESP8285) WiFi SoC, that also features GPRS connectivity, and a 0.3MP camera. There’s basically no info on the “English Internet”, but Raymond Tunning found lots of info in Chinese, and posted information and links on his blog. A20 Plus board specifications: Wireless Module – A.I. Thinker A20 module with GPRS and WiFi (ESP8266 or ESP8285), two antennas connector Camera – VGA camera interface (up to 640×480 resolution) compatible with OV7670, GC0308, GC0328, & GC0309 sensors. Expansion – 2x headers with GPIO, ADC, power signals… USB – 1x micro USB port for power and programming Misc – Reset and user button, two LEDs (for flash?) Dimensions – TBC An Android app (binary + source code) is provide to retrieve pictures (apparently no video for now) over WiFi or […]

You Can Now Buy ESP3212 ESP32 WiFi + Bluetooth Module for $6.95

After the official launch of ESP32 processor for less than $3, it did not take long before ESP32 modules hit the market, and Seeed Studio has already listed ESP3212, one of the first modules based on Espressif ESP32 Bluetooth LE + WiFi SoC, for $6.95 with shipping scheduled to start on September 23, 2016. ESP3212 module specifications: SoC – Espressif ESP32 dual core Xtensa LX6 processor @ up to 240 MHz with 448 KB flash, 520 KB SRAM, 16 KB SRAM in RTC, WiFi and Bluetooth LE connectivity Storage – 4MB Winbond SPI flash Connectivity 802.11 b/g/n/e/i WiFi (HT40) up to 150 Mbps Bluetooth 4.2 BR/EDR and BLE 3 dBi PCB antenna Headers – 22x GPIOs (multiplexed with ADC, Touch, DAC, SPI, UART, CAN, ETH, IR, PWM, and I2S), 1x UART, Sense VP/Sense VN, EN pin. 3.3V and GND Power Supply – 3.0 – 3.6V Dimensions – 24 x 16 […]

$5 Wemos D1 mini Pro ESP8266 Board includes 16MB Flash

Wemos D1 mini is one of my favorite ESP8266 development boards thanks to its small size, shield support, and low $4 price tag. There’s now a new version of the board – dubbed Wemos D1 mini Pro – with 16MB flash instead of 4MB for the original version, and a few other modifications. Wemos D1 mini Pro specifications: WiFi 802.11 b/g/n module based on ESP8266EX with 16 MB flash, chip antenna and external antenna connector Expansion – Through holes with 11x digital input/output pins (3.3V) supporting interrupt/PWM/I2C/one-wire (except D0 pin) 1x analog input (3.3V max input) Reset and power signals (5V, 3.3V, GND) USB – micro USB port Misc – Reset button Power – 5V via micro USB or 5V pin Dimensions – 34.2 x 25.6 mm Weight – 2.5 grams Beside the larger flash,  the main differences are listed in a Wemos forum post: External antenna connector – switch […]

Espressif ESP32 WiFi & Bluetooth SoC is Now Up For Sale for $2.85

Espressif ESP32 is one of the most awaited chip for IoT applications as it combines a dual core processor, WiFi, Bluetooth 4.0, and various I/Os. The good news is that you can now purchase ESP32 for 19 RMB ($2.85) on Taobao, or if you are not based in China, contact Espressif by email at sales [at] espressif.com. Availability is however limited, and the maximum order is now 5 pieces. ESP32 modules and boards, as opposed to just the SoC, are not quite ready right now, but should become available in a few weeks. ESP-WROOM-32 is the ESP32 module developed by Espressif, and NodeMCU is also working on an ESP32 board, so we’ll get more good news very soon. You can also find documentation, hardware and software resources on a Espressif ESP32 page , including a getting started guide, ESP32 SDK, ESP32 reference manual, ESP-WROOM-32 datasheet, and more. If you are […]

USB Fun – Tiny USB WiFi and Hub Boards and micro USB Hub

I’ve come across a few interesting tiny USB boards and hubs in the last few days, so instead of writing a post for each, I’ve gathered all info into a single article. Small ESP8285 USB Board A couple of weeks ago, CNLohr released his first ESPUSB virtual USB implementation for ESP8266 allowing to use USB with external hardware, barring a resistor, and only two GPIOs. He has now made a tiny board based on ESP8285 with a USB interface leveraging ESPUSB. Hardware files can be found on github. So what can you do with it? CNLohr leveraged the work of the community in order to emulate a keyboard and mouse using a smartphone. The only bit of bad news in the video is that finally USB full speed (12 Mbps) can’t be supported. NanoUSB Hub Board Mux wanted to add more USB devices to its tablets, but there was none […]

EmbeddedTS embedded systems design