MicroWebSrv Lightweight HTTP Web Server Supports HTML/Python Language Templating

There are many languages that can be used to create a web page: HTML,  HTML5, JavaScript, PHP, etc… But Python? Apparently yes, as MicroWebSrv  lightweight web server – mostly designed for ESP32 platforms running MicroPython such as Pycom boards – supports inserting Python code inside “HTML” files with the extension .pyhtml. The code can be found in Github, and is only comprised of three files. microWebSrv.py – The Web server microWebSocket.py – The optional support of WebSockets microWebTemplate.py – The optional templating language for .pyhtml rendered pages Beside HTML/Python files, the web server can handle GET, POST, … requests, an embedded full REST API, routing handlers, WebSockets, etc… That’s what a mixed HTML + Python .pyhtml file may look like:

You can use double curly braces {{ and }} to insert MicroPython code, if statements, for loops, or includes. I’m not sure if this makes really sense for all […]

How to Make a Cheap Single Channel Gateway with an ESP32 LoRa Board

ESP32 to ESP32 LoRa Communication

Actual LoRaWAN gateways based on Semtech SX1301 concentrator  can be pretty expensive,  and even if you take a LoRa gateway design based on Raspberry Pi for indoor placement or experimentation, price is still around $200. A much cheaper way (~$70)  is to use a single channel LoRa gateway, which as the name implies only support one channel, which limits the number of nodes, and forces you to set the nodes at the same frequency as your gateway. Those are not really suitable for commercial offerings, but if you manage your own gateway and nodes that should be usable. If you only plan to implement a network with a dozen nodes or so, you could even use much cheap ESP32 LoRa board like the ESP32 LoRa 1-Channel Gateway sold on Sparkfun for $29.95. Hardware specifications: Connectivity WiFi and Bluetooth 4.2 LE via ESP32-WROOM-32 module with integrated PCB antenna LoRa @ 868 […]

$50 Fish32 Seed “Education” ESP32 Board Comes with Plenty of I/Os, Sensors, and Connectivity Options

ESP32 Fish32 Seed Board

Sometimes I feel the word “Education” is sometimes thrown around for marketing purpose, and AnalogLamb Fish32 Seed board for “ESP32 Community Education Board” feels that way to me as so far, I could not see any tutorials or other teaching/ learning resources for the board. Having said that I can see why it could be potentially used for education: the sheer number of features, sensors, and connectivity options should allow students to learn to program my different components around ESP32. It’s just at this stage it may not be such an easy platform to learn on. Fish32 Seed board specifications: Supported ESP32 Modules – ESP32-WROVER, ALB32-WROVER, ESP32-WROOM-32 Connectivity 802.11 b/g/n WiFi and Bluetooth 4.2 via ESP32 10/100M Ethernet (RJ45) via WIZnet W5500 chip with support for up to 8 independent sockets LoRa via SX1278 chip (433 MHz) Sensors NXP MPU-9250 with 3-axis MEMS gyroscope, 3-axis MEMS accelerometer, 3-axis MEMS magnetometer […]

Espressif Introduces ESP32-WROVER-B Module with 8MB RAM

ESP32 processor can support PSRAM, and so far I had seen boards or modules with up to 4MB RAM, but if you need more memory, Espressif Systems has now launched ESP32-WROVER-B module with 8MB SPI PSRAM. ESP32-WROVER-B module specifications: WiSoC – Espressif ESP32-D0WD with dual core processor up to 240 Mhz;  5x5mm package Connectivity 2.4GHz WiFi 802.11 b/g/n up to 150 Mbps Bluetooth 4.2 LE Two antenna designs: PCB antenna or IPEX connector External Memory – 8MB SPI Pseudo Static RAM (PSRAM) Storage – 4MB external SPI flash I/Os – Capacitive touch, SD card interface, Ethernet, SPI, UART, I2S, I2C, GPIOs, VP/VN, etc… Power Supply – 2.7 to 3.6V Dimensions – 31.4 x 18.0 x 3.3 mm Certifications – FCC/CE-RED/IC/TELEC/KCC/SRRC/NCC ESP32-WROVER-B should be software compatible with other ESP32 modules. It works  ESP-IDF framework based on FreeRTOS with LwIP ( light-weight Internet Protocol). TLS 1.2 hardware acceleration is built-in, and secure OTA […]

WiFiBoy32 is an ESP32 Portable Game Console and IoT Devkit

WiFiBoy32

I’ve noticed that ever since Hardkernel launched their ODROID-GO “10th anniversary” portable game console based on ESP32 processor, most of the talk on IRC and social media is about this new toy, and people almost seem to have forgotten about the company’s Arm Linux boards 🙂 But recently, I’ve come across a somewhat similar ESP32 device called WiFiBoy32 that acts as both a portable game console and an IoT development kit. WiFIBoy32 specifications: Wireless module – ESP32-WROOM-32 wireless module with 802.11 b/g/n WiFi and Bluetooth 4.2 LE connectivity Display – 2.4″ 240×320 color SPI TFT LCD display Expansion – 2x 8-pin through holes with GPIOs, SPI, DAC, I2S,ADC, VP/VN, and power signals (3.3V, Vin, GND) Misc Top – 6x large gaming buttons, select and start push buttons, buzzer Bottom – PROG and RESET buttons, user LED USB – 1x micro USB port for power and programming (CP2102) Dimensions – 120 […]

Olimex Unveils ESP32-POE Board with… PoE Support

ESP32 POE

One of the differences between ESP8266 and ESP32 is the latter adds an Ethernet MAC, and as a results we have seen a few ESP32 boards with an Ethernet jack offering 10/100M connectivity, including Olimex ESP32-GATEWAY, Olimex ESP32-EVB, or ESP32 Monster Board. ESP32 Ethernet enabled boards are definitely in the minority however, and what’s even more difficult to find is an ESP32 board with Power-over-Ethernet (PoE) support. The good news is that if you’re looking for such type of board, Olimex is working on one based on requirements from their customers. Olimex ESP32-POE board specifications: Wireless module – ESP32-WROOM-32 module with 802.11 b/g/n WiFi and Bluetooth LE External Storage – micro SD card socket Connectivity – 10/100M Ethernet with PoE power management based on Si3402 IEEE 802.3at Type 1-compliant chip Expansion UEXT connector for Olimex modules 2x GPIOs stripes spaced at 1″ on 0.1″ step Debugging/Programming – micro USB port […]

MakerAsia KBX is a Cool Extension Case for KidBright ESP32 Board

KidBright MakerAsia KBX

Last week, I wrote about KidBright32, an ESP32 board aiming to teach STEM to students in Thailand, a bit like BBC Micro:bit but with more advanced features, and all KidBright training course and tutorial in Thai language. The project also been partnering with MakerAsia to create a cool-looking extension enclosure for the board calld KBX (KidBright Extension) with display, USB, I/O ports etc… MakerAsia KBX case specifications: TFT Display with Touch USB OTG port with support for Keyboard and JoyStick SD Card slot I/O Extension port with support for I2C, SPI, UART/PGM, and 15 GPIO’s Various buttons and LEDs The two LED dot Matrix displays, plus buttons, LEDs, and + buzzer around are already part of KidBright32 board. It’s unclear whether a battery is included in the kit, or you can somehow fit one inside, as the photos show a micro USB cable connected to the box. They also appears […]

KidBright32 Board is Thailand’s BBC Micro:Bit Equivalent

BBC Micro:Bit board was first announced in July 2015. Designed for STEM education, the board was then offered to UK schools in March 2016, and a few months later UK store would start selling it worldwide. It’s now available pretty much anywhere, and you can likely find it in a local store or online. The Thai government must have seen this, and thought to themselves “If the British can do it, we can do it too!”, as the National Electronics and Computer Technology Center (NECTEC) part of Thailand’s Ministry of Science and Technology designed KidBright32 board and courses to teach STEM to Thai students. The board is based on Espressif Systems ESP32-WROOM-32 WiFI and Bluetooth module, and comes with large holes for power (5V/GND) and 6 digital inputs/outputs,  smaller through holes for I2C and more I/Os, as well as an I2C header. We’ll also find some LEDs, two dot matrix […]

UP 7000 x86 SBC