The document describes using an ATtiny861 microcontroller to control a brushless DC motor in sensor mode. It provides details on:
- BLDC motor theory including the stator, rotor, hall sensors, and phase commutation
- Implementing motor control with the ATtiny861's timer for PWM generation and reading hall sensors
- Hardware used including an MCU board connected to a power board for driving the motor
- Software implementation including commutation, speed measurement, and initialization routines
This article discusses what is an electronic speed control, ESC circuit, components used in electronic speed control, features, types and its applications
This article discusses what is an electronic speed control, ESC circuit, components used in electronic speed control, features, types and its applications
ITS A PPT ON BRUSHLESS DIRECT CURRENT MOTOR GIVING YOU A GENERAL INFORMATION ABOUT THE WOKING OF THE BLDC MOTOR AND COMPARISON WITH CONVENTIONAL DC MOTORS
Multi-phase Brush-less DC motor And Applications Zain Ul Abideen
The new technology permanent magnet motors have several advantages over the induction motor: most notably, they are smaller and more efficient. Recently permanent magnet BLDC motors and synchronous motors for warship propulsion are under development in Europe and America. Analysis of this paper shows that, applying asymmetric distributed multi 3-phase BLDC motors can simplify the converter system and reduce torque ripples in low speed. In order to optimize motors' structure and their control methods, a mathematical model of those multi-phase BLDC motors is established in this paper. Certain simulation and experiment methods are presented based on the model. As an example, a double three-phase BLDC motor is detailedly analysed by authors, simulation and experiment results are in good agreement, which confirms the validity of the proposed methods.
These slides describe the effect of increasing the phases on a brush-less DC motor.
It also includes why we use Brush-less Motor instead of Brushed DC Motor.
It includes the driver circuitry explanation too.
If you need further help feel free to catch me at
livezaain@yahoo.com
Part of Lecture series on EEE-413, Electrical Drives (DC Drives) delivered by me to students of VIII Semester B.E. (Electrical), Session 2018-19.
Z. H. College of Engg. & Technology, Aligarh Muslim University, Aligarh.
Missing materials will be uploaded shortly.
Please comment and feel free to ask anything related. Thanks!
ITS A PPT ON BRUSHLESS DIRECT CURRENT MOTOR GIVING YOU A GENERAL INFORMATION ABOUT THE WOKING OF THE BLDC MOTOR AND COMPARISON WITH CONVENTIONAL DC MOTORS
Multi-phase Brush-less DC motor And Applications Zain Ul Abideen
The new technology permanent magnet motors have several advantages over the induction motor: most notably, they are smaller and more efficient. Recently permanent magnet BLDC motors and synchronous motors for warship propulsion are under development in Europe and America. Analysis of this paper shows that, applying asymmetric distributed multi 3-phase BLDC motors can simplify the converter system and reduce torque ripples in low speed. In order to optimize motors' structure and their control methods, a mathematical model of those multi-phase BLDC motors is established in this paper. Certain simulation and experiment methods are presented based on the model. As an example, a double three-phase BLDC motor is detailedly analysed by authors, simulation and experiment results are in good agreement, which confirms the validity of the proposed methods.
These slides describe the effect of increasing the phases on a brush-less DC motor.
It also includes why we use Brush-less Motor instead of Brushed DC Motor.
It includes the driver circuitry explanation too.
If you need further help feel free to catch me at
livezaain@yahoo.com
Part of Lecture series on EEE-413, Electrical Drives (DC Drives) delivered by me to students of VIII Semester B.E. (Electrical), Session 2018-19.
Z. H. College of Engg. & Technology, Aligarh Muslim University, Aligarh.
Missing materials will be uploaded shortly.
Please comment and feel free to ask anything related. Thanks!
Various Electric Motors and comparisonDon't Search
It's all about comparison of various types of motors, their working principle, uses, advantages and disadvantages. Presentation on motors, Electric motors.
An A.C. device used to change high voltage low current A.C. into low voltage high current A.C. and vice-versa without changing the frequency
In brief,
1. Transfers electric power from one circuit to another
2. It does so without a change of frequency
3. It accomplishes this by electromagnetic induction
4. Where the two electric circuits are in mutual inductive influence of each other.
The following presentation is a part of the level 5 module -- Electronic Engineering. This resources is a part of the 2009/2010 Engineering (foundation degree, BEng and HN) courses from University of Wales Newport (course codes H101, H691, H620, HH37 and 001H). This resource is a part of the core modules for the full time 1st year undergraduate programme.
The BEng & Foundation Degrees and HNC/D in Engineering are designed to meet the needs of employers by placing the emphasis on the theoretical, practical and vocational aspects of engineering within the workplace and beyond. Engineering is becoming more high profile, and therefore more in demand as a skill set, in today’s high-tech world. This course has been designed to provide you with knowledge, skills and practical experience encountered in everyday engineering environments.
International Journal of Engineering Research and Applications (IJERA) is an open access online peer reviewed international journal that publishes research and review articles in the fields of Computer Science, Neural Networks, Electrical Engineering, Software Engineering, Information Technology, Mechanical Engineering, Chemical Engineering, Plastic Engineering, Food Technology, Textile Engineering, Nano Technology & science, Power Electronics, Electronics & Communication Engineering, Computational mathematics, Image processing, Civil Engineering, Structural Engineering, Environmental Engineering, VLSI Testing & Low Power VLSI Design etc.
The inverter is a static device. It can convert one form of electrical power into other forms of electrical power. But it cannot generate electrical power. Hence the inverter is a converter, not a generator.
This directional over current relay employs the principle of actuation of the relay....It has a metallic disc free to rotate between the poles of two...
Control And Programingof Synchronous Generatorfreelay
author: International Team
publisher: Daniel Garrido
licence: Creative Commons
place: University of Southern Denmark- Odense
@fomenting colaborational knowledge
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf91mobiles
91mobiles recently conducted a Smart TV Buyer Insights Survey in which we asked over 3,000 respondents about the TV they own, aspects they look at on a new TV, and their TV buying preferences.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...James Anderson
Effective Application Security in Software Delivery lifecycle using Deployment Firewall and DBOM
The modern software delivery process (or the CI/CD process) includes many tools, distributed teams, open-source code, and cloud platforms. Constant focus on speed to release software to market, along with the traditional slow and manual security checks has caused gaps in continuous security as an important piece in the software supply chain. Today organizations feel more susceptible to external and internal cyber threats due to the vast attack surface in their applications supply chain and the lack of end-to-end governance and risk management.
The software team must secure its software delivery process to avoid vulnerability and security breaches. This needs to be achieved with existing tool chains and without extensive rework of the delivery processes. This talk will present strategies and techniques for providing visibility into the true risk of the existing vulnerabilities, preventing the introduction of security issues in the software, resolving vulnerabilities in production environments quickly, and capturing the deployment bill of materials (DBOM).
Speakers:
Bob Boule
Robert Boule is a technology enthusiast with PASSION for technology and making things work along with a knack for helping others understand how things work. He comes with around 20 years of solution engineering experience in application security, software continuous delivery, and SaaS platforms. He is known for his dynamic presentations in CI/CD and application security integrated in software delivery lifecycle.
Gopinath Rebala
Gopinath Rebala is the CTO of OpsMx, where he has overall responsibility for the machine learning and data processing architectures for Secure Software Delivery. Gopi also has a strong connection with our customers, leading design and architecture for strategic implementations. Gopi is a frequent speaker and well-known leader in continuous delivery and integrating security into software delivery.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Brushless dc motor control using
1. AVR496: Brushless DC Motor Control using
ATtiny861
8-bit
Features
• BLDC Motor Control in Sensor Mode
Microcontroller
• Timer 1 Waveform Generator Use
• Hardware Implementation
• Code Example Application Note
References
[1] ATtiny261/461/861 data sheet
[2] AVR449: Sinusoidal driving of 3-phase permanent magnet motor using
ATtiny261/461/861
[3] AVR430: MC300 Hardware User Guide
[4] AVR469: MC301 Hardware User Guide
1. Introduction
This application note describes how to implement a brushless DC motor control in
sensor mode using the ATtiny861 AVR microcontroller.
The high performance AVR® core a long with the Timer 1 of the ATtiny861 allows to
design high speed brushless DC motor applications.
In this document, we will give a short description of brushless DC motor theory of
operations, we will detail how to control a brushless DC motor in sensor mode and we
will also give a short description of the ATAVRMC301 and ATAVRMC300 boards
used in this application note.
This application note deals only with BLDC motor control application using Hall effect
position sensors to control commutation sequence.
2. Theory of Operations
Brushless DC motors are used in a growing number of motor applications as they
have many advantages:
They have no brushes so they require little or no maintenance.
They generate less acoustic and electrical noise than universal brushed DC motors.
They can be used in hazardous operation environments (with flammable products).
They have a good weight/size to power ratio... 7827A–AVR–04/09
2. Such motors have a little rotor inertia. The coils are attached to the stator. The commutation is
controlled by electronics. Commutation times are provided either by position sensors or by coils
Back Electromotive Force measurements.
In sensor mode, Brushless DC motors usually consist of three main parts: a Stator, a Rotor and
Hall Sensors.
2.1 Stator
A basic three phases BLDC motor Stator has three coils. In many motors, the number of coils is
replicated to have a smaller torque ripple.
Figure 2-1 shows the electrical schematic of the stator. It consists of three coils each including
three elements in series, an inductance, a resistance and one back electromotive force.
Figure 2-1. Stator Electrical Configuration (Three phases, three coils)
U
L,R
Bemf U
Bemf W Bemf V
L,R L,R
W V
2.2 Rotor
The rotor in a BLDC motor consists of an even number of permanent magnets. The number of
magnetic poles in the rotor also affects the step size and torque ripple of the motor. More poles
give smaller steps and less torque ripple. The permanent magnets go from 1 to 5 pairs of poles.
In certain cases it can go up to 8 pairs of poles.(Figure 2-2).
Figure 2-2. Three phase, three coil BLDC motor stator and rotor
coil U coil U
Stator Stator
Rotor Rotor
coil W coil W N S
N S
S N
coil V coil V
1 pair of poles 2 pairs of poles
2 AVR496
7827A–AVR–04/09
3. AVR496
2.3 Hall Sensor
Hall Sensors are placed every 120°. With these sensors, 6 different commutations are possible.
Phase commutation depends on Hall Sensor values.
Power supply to the coils changes when Hall Sensor values change. With right synchronized
commutations, the torque remains nearly constant and high.
Hall Sensor signals for CW rotation
H1
H2
H3
+V
Coil U
-V
+V +V
Coil V
-V
+V
Coil W
-V
2.4 Phase Commutations
To simplify the explanation of how to operate a three phases BLDC motor, a typical BLDC motor
with only three coils is considered. As previously shown, phases commutation depends on the
Hall Sensor values. When motor coils are correctly powered, a magnetic field is created and the
rotor moves. The most elementary commutation driving method used for BLDC motors is an on-
off scheme: a coil is either conducting or not conducting. Only two windings are powered at the
same time and the third winding is floating. Connecting the coils to the power and neutral bus
induces the current flow. This is referred to as trapezoidal commutation or block commutation.
To command brushless DC motors, a power stage made of 3 half bridges is used. Figure 2-4
below shows a 3 half bridge schematic.
3
4. Figure 2-4.
+V
UH Q1 VH Q3 WH Q5
U
VDC
V
W
UL Q2 VL Q4 WL Q6
0
Table 2-1.
Hall Sensors Value (H3 H2 H1) Phase Switches
101 U-V Q1 ; Q4
001 U-W Q1 ; Q6
011 V-W Q3 ; Q6
010 V-U Q3 ; Q2
110 W-U Q5 ; Q2
100 W-V Q5 ; Q4
ElectricalFieldRotation = MecanicalRotation × P ( poles )
2.5 Speed and Torque Control
current flow through the coils, the speed and torque of the motor can be adjusted. The most
common way to control the current flow is to control the average current flow through the coils.
The duty cycle of the PWM(Pulse Width Modulation) outputs are used to adjust the average volt-
age and thereby the average current, inducing the speed. To give an idea, the PWM frequency
is chosen is the range from 10kHz to 200kHz according to the application (maximum of transis-
tor switching frequency, electrical parameters of motors, commutation losses, audible
frequency...)
4 AVR496
5. AVR496
Figure 2-5.
Hall_H3H2H1
011
coil U coil U
010
001
coil W coil W
101
110
coil V coil V
100
Step1 Step2
coil V coil U
coil W coil W
coil V coil V
Step3 Step4
coil U coil U
coil W coil W
coil V coil V
Step5 Step6
voltage by the switch Q1 and Phase V is connected by the switch Q4, Phase W is unpowered as
the others swiches (Q2,Q3,Q5 and Q6) are opened. Two flux vectors are generated by phase U
(red arrow) and phase V (blue arrow). The sum of the two vectors give the stator flux vector
(green arrow). Then the rotor tries to follow the stator flux. As soon as the rotor reaches a given
position, the Hall Sensors gives a new logical state of this position (from “010” to “011”) and the
next voltage pattern is selected and applied to the BLDC motor. Phase V is unpowered and
Phase W is connected to the ground, resulting in a new stator flux vector ‘Step2’.
The switching sequence described in schematic Figure 2-3 and Table 1, shows six different sta-
tor flux vectors corresponding to the six commutation steps. The six steps provide one electrical
field rotation.
5
6. 3. ATtiny861 microcontroller
3.1 Generating PWM signals with dead-time with ATtiny261/461/861
The Timer/Counter1 (TC1) module of the ATtinyX61 family is very well suited for driving three-
phase motors. It can be run from a 64MHz PLL, and has a resolution of 10 bits. Six PWM out-
puts can be generated from this timer, grouped into three complementary output pairs with
configurable dead-time. The “PWM6” mode is perfect for block commutation of brushless DC
motors. For a maximum safety, a hardware fault protection unit can disable the PWM drivers
without any intervention from the CPU.
To control a triple half-bridge driver stage, the “Phase and frequency correct PWM mode” of TC1
is used. In this mode, three pair of complementary PWM outputs with hardware dead-time inser-
tion can be generated. This is exactly what is needed to generate three-phase sinusoidal drive
waveforms with a triple half-bridge driver stage and chosen in the PWM generation.
The operation of one of the three complementary output pairs can be seen in Figure 3 2. The
counter counts in an up-down counting mode. The OCR1x register specifies the current duty
cycle. An intermediate waveform, labeled as OCW1x in the figure, is generated by clearing the
output on a compare match when up-counting and setting the output on compare match when
down-counting. This intermediate waveform feeds to the dead time generator, which in turn gen-
erates two outputs from this waveform. The non-inverted output, OC1x, follows OCW1x, except
it will not go high until a specified dead-time period, DT1H, has elapsed after OCW1x goes high.
The inverted output, OC1x , follows the inverted OCW1x signal, except it will not go high
until a specified dead-time period, DT1L, has elapsed after OCW1x goes low. The result is a pair
of complementary outputs with dead-time.
To control the duty cycle of one half-bridge, only one register, OCR1x needs to be changed. The
average voltage output of the half-bridge will be proportional to this signal.
Figure 3-1. Generating PWM signals.
PWM cycle
OCR1x
TOP
TCNT1
OCW1x
OC1x
DT1L DT1H
OC1x
6 AVR496
7827A–AVR–04/09
7. AVR496
3.2 PWM base frequency
Timer/counter1 clock will be referred to as fCLK,T/C1 in the following.
The PWM frequency as a function of Timer/Counter1 clock frequency can be calculated from
Figure 3-2.
Figure 3-2. PWM base frequency as a function of timer clock frequency.
f CLK, T ⁄ ( C1 )
f PWM = ----------------------------
-
2 ⋅ TOP – 2
The PWM frequency with a Timer/Counter1 clock frequency of 64 MHz and 10 bit resolution is
thus 31,28kHz.
4. Hardware Description
Figure 4-1. ATAVRMC301 & ATAVRMC300 connection
ATAVRMC301 ATAVRMC300
Processor Board Power Board
(ATtiny861) (bridge)
The power bridge (Q1 to Q6) is controlled through 6 signals UL, UH, VL, VH, WL, WH which are
modulated by the PWM signal to adjust the motor DC voltage.See “Speed and Torque Control”
on page 4.
7
9. AVR496
5. Software Description
5.1 Preamble
And html documentation is delivered with the AVR496 software package. It can be
opened thanks to the readme.html file located in the source directory.
main.c
ushell_task.c
USI_TWI_Slave.c
5.2 BLDC Motor Control Implementation
Figure 5-1.
Power
PWM Switch
Generation Commutation Bridge
BLDC
UH
U Motor
OC1A
OC1A* UL
Duty
Cycle OC1B VH V
OC1B* VL
Timer 1 OC1D WH W
OC1D* WL
H1 H2 H3
Commutate
ADC5 Current Measurement
ADC6
ADC
Speed
ADC2
Reference commTableForward PCINT3
commTableReverse
PCINT4
Speed
Measurement
PCINT5
Pin Change Int
timer 0
9
10. 5.3 Function description
void main(void):
void Commutate(void):
void SpeedMeasurement(void):
void PLLInit(void):
void PWMInit(void):
void HallSensorInit(void):
void ADCInit(void):
void PortsInit(void):
void TWInit(void):
void MotorSetDutyCycle(uint16_t duty):
__interrupt void HallChangeISR():
__interrupt void ADCISR():
void Timer0Init(void):
__interrupt void ovfl_timer0(void):
CPU & Memory usage
All measurements have been realized with Fosc = 8MHz. They also depend on the motor type
(numbers of pair of poles). With a motor of 4 pairs of poles, Hall Sensor frequency is four times
as high as the motor frequency.
All results in Figure 5-1 are obtained with a three-phase BLDC motor with four pairs of poles and
a maximum speed of 6600 rpm. (Motor provided with the ATAVRMC300 kit).
Microcontroller utilization rate
Function Parameters Activation Time Activation Period Ratio CPU %
HallChangeISR() Speed = 6600 rpm 10µS 380µS 2.7
ADCISR() Speed = 6600 rpm 4µS 25µS 16
With the same conditions, the microcontroller memory usage is:
• 1332 bytes of CODE memory (Flash occupation = 17% ).
Including communication protocole through TWI
• 153 bytes of DATA memory (SRAM occupation = 30%).
Including stack and communication protocole through TWI
10 AVR496
7827A–AVR–04/09
11. ATAVRMC300 & ATAVRMC301 Configuration and Use
Table 6-1.
Jumper Position Comment
J1(VHa) Pin1 & 2 shorted VHa = +5V
J2(VCC) Open Vcc = +5V
ATAVRMC301 jumper settings
Speed => Potentiometer
J8 Select speed reference
SCL => TWI
J9 All mounted Connect PBO/PB1/PB2 to UL/UH/VL
J10 Not mounted
J11 SH+ Connect Shunt+ to PA6
J12 SH- Connect Shunt- to PA7
J13 Not mounted
J15 H1 Connect H1 to PA1
J16 H2 Connect H2 to PA4
J17 H3 Connect H3 to PA5
J19 See Hardware User Guide Select UVCC for USB stage
7. Conclusion
8. Appendix
7827A–AVR–04/09