The STC15Fx chips use a simple TTL/CMOS async programming interface that is suited to the common USB-RS232(TTL) adapters. This article describes a low cost programmer that also allows the programming application to Vcc (so initiating the boot loader automatically).
Above is the programmer ($2.50 on eBay) and a small adapter that plugs into the top row of the 2×5 header on the programmer.
I have started using Arduino Pro Micros recently, and sourced inexpensive clones from China.
Experience is that all manner of inexpensive small microcontroller modules from China are likely to have issues with the bootloader: it isn’t there, it is back level, not suited to the actual clock speed.
I have come to routinely install a current / known / working bootloader to avoid wasting time down the track.
The Pro Micro does not have an ISP header, and the QFN package does not suit a chip adapter, so the next option is an adapter that can connect to the board with no pins, male or female headers, top or bottom.
Above is an adapter built on a small piece of Veroboard. If you are ging to copy it, make it one row of holes higher. I did initially, and in a miscount of rows, I incorrectly removed the top row. The black mark identifies the pin 1 of the Pro Micro, and the adapter connects to the side with the /RST pin.
The headers on the adapter engage JP6, preserving the pin ordering, pin 1 to the black mark on the veroboard.
This article documents a project with the Espressif ESP8266.
This project is based on ESP8266 IoT DHT22 temperature and humidity – evolution 3, but uses the Bosch BME280 temperature, humidity and pressure sensor. The BME280 has been around for a couple of years, but recently, modules using the chip have become available on eBay for a couple of dollars.
The objective is a module that will take periodic temperature, humidity atmospheric pressure (barometer) measurements, and in this evolution publish them using a RESTful API.
The example platform used in this article is a Wemos D1Pro. In this case, the D1Pro is configured for an external antenna, and a modification is made to the board to add a 1N34A diode for the deep sleep reset circuit (NodeMCU devkit V1 deep sleep). A right angle header on the top of the board (as seen) and another on the underside on the opposite edge to get GND, +3.3, D3 and D4 for the BME280 sensor. There is less than $25 in parts in the pic above. Continue reading ESP8266 IoT BME280 temperature, humidity and pressure
ESP8266 remote power display for energy monitor – EV3 documented an evolved design for a real power display using emontx3 / emonhub / mqtt. This article documents an adaptation to use a 5V display module (for higher brightness). The ESP8266 is not 5V tolerant, so a logic level converter is needed.
The remote power display uses a Wemos D1Pro module, a common 5V 4 digit 14.2mm seven segment LED module with 74HC595 shift register per digit, and a common 3V/5V logic level converter between them.
The remote power display uses a ESP8266-12E devkit 1.0 module, a common 3.3V 4 digit 14.2mm seven segment LED module with 74HC595 shift register per digit. The particular LED module has sufficient space to mount the ESP8266 inside the module.