Hall sensor placed at 120 degrees:
The idea of changing the 120 degree trigger to a 60 degree trigger
Originally, when triggered, the three signals of the Hall sensor are XORed into one signal, and the falling edge of this signal is used for triggering, and then the corresponding interruption, that is, the measurement state 5, 3, and 6 of the Hall sensor is entered. Each trigger is exactly 120 degrees of electrical cycle.
After figuring out the process, try changing the trigger mode to double-edge trigger. That means, after entering the interrupt subroutine, the corresponding Hall sensor measurement should be run for the complete 6 states, namely 5, 1, 3, 2, 6, and 4. Therefore, the calculation program for the electrical position angle of the three states 1, 2, and 4 should be added to the interrupt program.
Electrical position angles in 6 operating states:
State 5: offset angle +0°
State 1: offset angle +60°
State 3: offset angle +120°
State 2: offset angle +180° = offset angle - 180°
State 6: offset angle +240° = offset angle - 120°
State 4: offset angle +300° = offset angle - 60°
Note: The position angle is not greater than 360°
Authentication method:
To verify the feasibility of the method, the trigger of the original program was changed to the rising edge, and the motor could not run. However, the 1, 2, and 4 states were added to the interrupt service subroutine, and the rising edge trigger was used again, and the motor ran smoothly. Then, it was changed to the double edge trigger, and the motor ran as well. So far, this method should be in line with the trigger operation of 60 degrees electrical angle.
Previous article:[STM32 Motor FOC] Record 15 - TIM input capture
Next article:[STM32 Motor Vector Control] Record 14 - Hall Sensor
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- [Repost] Why are lithium iron batteries less likely to leak than alkaline batteries?
- Bear Pie Huawei IoT Operating System LiteOS Kernel Tutorial 02-HelloWorld
- Xiaozhi Comics丨The Structure of Transistors
- Help, IP5306 charging chip short circuit problem
- MSP432 development board serial port debugging
- Let's study together. This e-book is well written in Chinese.
- Where do you go to buy components? e-Network has spot products and can receive them the next day.
- RFID related CPU card
- EEWORLD University Hall----TI Cup 2019 National College Student Electronic Design Competition Topic Analysis and Technical Exchange Seminar
- Conversion relationship of various parameters of VSWR