I use STM32 SPI to drive LSM6DSL to read accelerometer and gyroscope data. If FIFO is not used, the data read using its output source registers OUTX_L_G OUTX_H_G, etc. is fine. The configuration is as...
[i=s] This post was last edited by ena at 2016-2-18 09:58[/i] volatile unsigned char SZ[5]; volatile char int_flag=0;//int6_flag; char keydisp[5]; static unsigned char read165(void) { unsigned char i,...
StartFragmentMy program generates 4-channel PWM, 2 of which are 90 degrees different from the other 2. The frequency displayed by the oscilloscope is not the 50HZ I set. It is very slow. What's going ...
By chance, I found that the MSP430F2xxx board I made would have the information memory erased for unknown reasons when powered on. Later, I tested several boards and found that some of the boards woul...
A pressure sensor is a device that detects pressure and converts the pressure signal into an electrical signal and outputs it linearly. Pressure sensors can be divided into mechanical pressure sensors...
Write a low-level software, download it to the microcontroller, and run it automatically when powered on. There are 10 files pre-stored in the CF card. Each time the power is turned on, a different fi...
High efficiency and low standby power consumption are two major challenges in today's switching power supply design. Resonant topology or LLC topology is becoming increasingly popular because it ca...[Details]
In early 2002, I started to write a working program for an IC card prepaid electricity meter. The meter used Philips' 8-bit 51-expanded single-chip microcomputer
87LPC764
, and wa...[Details]
0. Introduction
In daily life, we often see some special-purpose vehicles. When these vehicles pass through intersections, they often obtain the right of way at intersections by temporarily op...[Details]
Do you often have to add brake fluid to your car's brakes? The fact that you need to pump out the brake fluid to make sure there is no gas in the brake fluid line may not be done by the car owner h...[Details]
For a long time, due to the limitation of hardware conditions, the display devices of traditional small handheld devices such as PDA are usually monochrome LCD, and the user interface is very simpl...[Details]
With the development and widespread application of computer technology, especially in the field of industrial control, computer communication is particularly important. Although serial communication g...[Details]
5. Identifiers and keywords of C language
A complete PIC microcontroller C language program usually consists of six parts: include files (i.e. header files 1, variable definitions, variable de...[Details]
Instrument stepper motor
The stepper motor is an open-loop control element that converts electrical pulse signals into angular displacement or linear displacement. In the case of non...[Details]
1. With the development of modern industry and the continuous improvement of automation, some medium and large control systems have been greatly facilitated, which not only makes control easier, bu...[Details]
The potentiometer is an adjustable electronic component. The main functions of the potentiometer in the circuit are as follows:
1. Used as a voltage divider
A potentiometer is a continuou...[Details]
Experimental tasks
A DS18B20 is used to form a temperature measurement system. The temperature measurement accuracy reaches 0.1 degrees. The temperature range is between -20 degrees and +50 de...[Details]
In 2012, more than half of the cars in the European, Japanese and American car markets will be equipped with color displays, navigation systems, satellite communications and other in-vehicle infota...[Details]
At present, the traffic congestion in cities is quite serious. According to relevant news reports: In China, the traffic congestion has expanded from megacities such as Beijing, Shanghai, and Guangzho...[Details]
Abstract: In recent years, with the establishment and grid-connected power generation of a large number of solar photovoltaic power stations at home and abroad, photovoltaic grid-connected inverter...[Details]
LED guardrail lights use fluorescent tubes or LEDs as light sources and continuous guardrails as carriers to form an approximately linear guardrail light strip. This article mainly introduces...[Details]