PWM Generator for Standard DC Motors

This example is related to simple PWM generator for standard DC motor. Complete example is based on my previous example related to Injection System Behavior. PWM modulation signal is generated by transitions through state machine states. State machine has four states: Idle, PWM, Timer and Direction. Transition matrix has 17 bytes. x2Mode is used for state encoding.


Provided material for download contains two bin files related to different behavior of the system.
  • DCSpeedController.bin - rotation in one direction with speed regulation.
  • DCSpeedDirectionController.bin - rotation in both direction with speed regulation.

Electronics #1: beside priority encoder for external commands encoding, interface between 8051 MCU and DC motor is done over device driver BA12004 IC (replacement: ULN2XXX series - motor driver kit). To create H-Bridge for bidirectional rotation, two additional resistors are used.
 
Electronics #2: beside priority encoder for external commands encoding, interface between 8051 MCU and DC motor is done over integrated H-Bridge chip BA6209.

Comments

  1. Your style is so exclusive compared to other individuals. Thank you for posting when you have the chance, guess I would just make this bookmarked. Metric Motors

    ReplyDelete
    Replies
    1. Thank you for your comments! Yes it is :-) It is a generic way to change system behavior by injecting transitions between finite states of motor controller automata.

      Delete

Post a Comment

Popular posts from this blog

Electrolytic capacitors and design rules

Fake VC830L digital multimeter

How to design LM324 Astable Multivibrator