Code and Coder: about .net core, C#, Delphi, Codetyphon, Freepascal, C++,Python, website technical records

Posted in category [IoT]

One key power on and power off circuit for MCU

One key power on and power off circuit for MCU.
This circuit is also suitable for use in battery-powered places and can achieve zero standby current.
The high-brightness lamp that I used for decoration before is the kind of circuit that achieves zero current after shutdown. It turns on every time the button is pressed, otherwise it will not consume power.

A very small resource needed scheduler for microcontroller

A very small resource needed scheduler for microcontroller, as a little operation system (OS) for MCU.
Advantages are:
1) Super portability, has nothing to do with the CPU, almost any CPU that supports C language programming can be used! (This article only takes 51 single-chip microcomputers as an example, but it can be transplanted arbitrarily.)
2) It is small, the principle is very simple, and you can understand it at a glance.
3) It can be said that it saves RAM and ROM to the extreme.
4) Take the essence of protothread and fuse the timer with the state machine and pseudo-thread syntax into one framework. The task function can be written in two ways.
5) Timer-based triggering, high scheduling efficiency, minimizing invalid code running time.

ST STSPIN32F0A three-phase BLDC motor drive solution

ST STSPIN32F0A three-phase BLDC motor drive solution

Ali first AI chip released! 46 times the NVIDIA P4, refreshing the reasoning performance record

Ali's first chip was born! Just now, at the Yunqi Conference, Zhang Jianfeng, CTO of Alibaba Group and Dean of Dharma Institute, showed the light 800 - Ali's first AI chip. For this chip, Ali put down a word a year ago, but no one expected to appear one year later: not only finished the film, but also officially launched on Alibaba Cloud. This is also the first hardware product since the establishment of Ali Pingtou, and it is the first self-developed and mass-produced chip in the history of Ali's 20 years of development. In the...

TencentOS tiny Start

Internet of Things RTOS:TencentOS tiny Start

TencentOS tiny introduction

TencentOS tiny introduction

OpenWrt Quick Start

OpenWrt Start

Adapt freeRTOS for STM32F107RBT6

Adapt freeRTOS for STM32F107RBT6

RS232, RS485, RS422, serial port

serial port summary of RS232, RS485, RS422


An encoder is an electromechanical device that can be used to measure mechanical motion or target position. Most encoders use optical sensors to provide electrical signals in the form of pulse trains that can be sequentially converted into motion, direction or position information. The encoder can be divided into rotary encoder or linear encoder according to the motion mode; according to the readout mode, the encoder can be divided into contact type and non-contact type; according to the working principle, the encoder can be divided into incre...