Performance of sensor in HAL layer

Sensors are often used in daily life, such as stair lights in buildings, street lights on roads and so on. So what is the role of sensors in mobile phones in particular? Android phones provide acceleration sensors, magnetic fields, directions, gyroscopes, light, pressure, temperature and other sensors. In Android system. The code distribution i ...

Added by beckjoh on Wed, 16 Feb 2022 16:15:54 +0200

Serial port IDLE interrupt + DMA to accept variable length data

Introduction: for the serial port to receive some variable length data, we must face a problem: how to judge whether a frame of data reception is completed? RXNE non null interrupt is usually used in combination with simple data protocol. Frame header and frame tail are added to the data. Judge whether the frame tail is received in the program ...

Added by philwhite on Tue, 15 Feb 2022 22:03:22 +0200

Application of I2C protocol of STM32F103 (reading and writing EEPROM)

outline This paper mainly records some personal opinions on learning I2C protocol, and realizes STM32 to read and write EEPROM data based on I2C protocol Statement: due to limited personal ability, this article is only personal learning notes, and I hope to point out any mistakes I2C characteristics Support device bus, that is, multiple d ...

Added by lucasw on Mon, 14 Feb 2022 17:23:56 +0200

Three ways of using Arduino to read PWM signal of RC receiver

Three ways of using Arduino to read PWM signal of RC receiver Note: Recently, the static change of the playing model requires the use of a 2.4Ghz RC controller to control arduino. I found an article on using Arduino to process PWM signal on the Internet. I think it's good. I hope it can help Tonghao. (translation and summary) https://www.benri ...

Added by debuitls on Mon, 14 Feb 2022 13:08:22 +0200

Intelligent deodorizer -- embedded development

1, Product creation 1. Functional requirements APP end functiondescribeMode selectionPreservation mode and deodorization modeDeodorization timeYou can define the deodorization working time of the equipmentDeodorization gear adjustmentStrong, medium and weak grades are supportedLow power alarmLow battery report, APP end alarm Device end funct ...

Added by mits on Mon, 14 Feb 2022 10:59:42 +0200

STM32_ Ultrasonic ranging

Principle of ultrasonic ranging Using sound ranging, the speed of sound in the air is 340m/s(15 ℃) When the sound propagates, it will bounce back if it encounters an obstacle. The distance from the transmitting end to the obstacle can be calculated by counting the rebound time S=v*(t/2) Ultrasonic module instruction In the single chip m ...

Added by many_pets on Sat, 12 Feb 2022 07:10:46 +0200

ESP8266, DHT11, fan, heating plate and steering gear module are mixed, and the upper computer is used to control the movement of fan, heating plate and steering gear

Mixed use of various modules (1) Measurement of temperature and humidity;             DHT11 (2) Display of temperature, humidity and other parameters;      LCD screen (3) Setting of alarm data (key);       EXIT interrupt service function (4) Temperature and humidity con ...

Added by adammc on Fri, 11 Feb 2022 21:16:09 +0200

Six basic experiments of single chip microcomputer (compilation)

  Memory reading and writing experiment: Assign BCD codes 75H and 35H to 30H and 31H units of RAM respectively, try to add the two numbers, and the difference of BCD is sent to 32H unit. (description): Because the decimal adjustment instruction of MCS-51 is not suitable for subtraction, subtraction can be changed into addition: the subtract ...

Added by bigdspbandj on Fri, 11 Feb 2022 04:25:50 +0200

Creation of embedded system for graffiti intelligent kettle

preface Nowadays, with the rapid development of science and technology, our home has been full of all kinds of household appliances; Among them, the kettle is one of our commonly used household equipment. The traditional kettle has only a simple heating function and can not set the heating temperature or remote control. In view of this si ...

Added by parboy on Thu, 10 Feb 2022 02:26:33 +0200

< STM32 learning "-- running lantern experiment

1. Hardware The hardware schematic diagram is as follows: The hardware schematic diagram is the hardware circuit of punctual atom stm32zet6 elite version. Different development boards should be based on the actual circuit. First of all, to make the led light up, there must be a voltage difference between the two sides of the led lamp. As can b ...

Added by farsighted on Sun, 06 Feb 2022 05:02:26 +0200