When I first started to look into WiFi smart sockets a few years, there were some fairly compact models such as the Linux based Kankun KK-SP3 or ESP8266 based Konke Mini K sockets. In recent years, more wireless smart sockets have come to market, but fewer companies have made compact models, and for example Sonoff S26 or Sonoff S31 smart sockets are not exactly small. But this morning I got contacted by a company called BlitzWolf that sells various accessories including low cost and compact smart sockets for the US and EU markets. It could prove to be interesting, so let’s check out the specifications: BlitzWolf BW-SHP1 US Smart Socket Rated Voltage – 110-240V @ 50-60 Hz Rated Current – 10A (Max) Max Total Power Output – 2000W Dimensions – 4.5 cm ∅ (VO fireproof material) Temperature Range – -10 to +60°C BlitzWolf BW-SHP2 EU Smart Socket Rated Voltage – […]
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<html> <head> <title>TEST PYHTML</title> </head> <body> <h1>BEGIN</h1> {{ py }} def _testFunction(x) : return "IN TEST FUNCTION %s" % x {{ end }} <div style="background-color: black; color: white;"> {{ for toto in range(3) }} This is an HTML test...<br /> TOTO = {{ toto + 1 }} !<br /> {{ for toto2 in range(3) }} TOTO2 = {{ _testFunction(toto2) }} {{ end }} Ok good.<br /> {{ end }} </div> {{ _testFunction(100) }}<br /> <br /> {{ if 2+5 < 3 }} IN IF (1) {{ elif 10+15 != 25 }} IN ELIF (2) {{ elif 10+15 == 25 }} IN ELIF (3) {{ else }} IN ELSE (4) {{ end }} </body> </html> |
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
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 […]
Pocket Science Lab (PSLab) is an Open Source Hardware Electronics Lab
Last Saturday I created a virtual schedule for the Embedded Linux Conference Europe 2018 where I listed some of the sessions relevant to myself and hopefully regular readers of CNX Software, but due to scheduling conflicts one talk did not make it to the list: “Pocket Science Lab – An Open Source Hardware for Electronics Teaching & Learning” by FOSSASIA. The project is also referred to as PSLab, and aims to “create an Open Source hardware device that can be used for experiments by teachers, students, and citizen scientists to learn and teach electronics”. It looks interesting enough so let’s have a closer look. The project is inspired by the earlier expEYES project that combines with Raspberry Pi or other Linux platform to create an electronic labs, and the work by the Open Science Hardware community. PSLab key features and specifications: MCU – Microchip PIC24EP256GP204 16-bit microcontroller @ up to […]
$50 Fish32 Seed “Education” ESP32 Board Comes with Plenty of I/Os, Sensors, and Connectivity Options
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 […]
WiFiBoy32 is an ESP32 Portable Game Console and IoT Devkit
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
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
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 […]