Shop OBEX P1 Docs P2 Docs Learn Events
PWM control of DC motor using TLE5205-2? — Parallax Forums

PWM control of DC motor using TLE5205-2?

ZootZoot Posts: 2,227
edited 2013-06-14 00:55 in General Discussion
I'm going to be using a TLE5205-2 for PWM DC motor control. According to the dir/en truth table:

IN1 IN2 OUT1 OUT2 Comments 
L   L   H    L    Motor turns clockwise 
L   H   L    H    Motor turns counterclockwise 
H   L   L    L    Brake; both low side transistors turned-ON 
H   H   Z    Z    Open circuit (detection)




Seems clear enough. IN2 is equiv. to direction, IN1 is sorta equivalent to an active-low enable. My question is on the OFF part of the PWM speed pulses, would I want to set both IN1 and IN2 HIGH (coast) or make IN1 H and let IN2 fall where it may (which would mean brake/coast depending on state of DIR bit -- IN2)?

I'm running this as an ISR on an SX, so I can pretty much do what I want and it's easy and flexible.

FYI -- Datasheet here:www.infineon.com/dgdl/tle5205-2.pdf?folderId=db3a304412b407950112b4381da46a3c&fileId=db3a304412b407950112b4381e296a3d

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST

1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php

Comments

  • ZootZoot Posts: 2,227
    edited 2008-09-04 17:56
    I have this H-bridge chip working quite nicely on an SX running at 50mhz. Getting noise out of the SX/oscillator circuit was a bit problematic, but it's a great chip (5amps, 6amps peak) and hardly gets warm. The error flag pin (for short circuit, shutdown, open circuit notices to the host) is nice also. A bit pricey, but I originally bought these for about $6.

    In my tests, I found best results with PWM if I set both IN1 and IN2 high (Z) for the "off" part of the PWM pulses, and IN1 low and IN2 set to desired direction for the "on" part of the PWM pulses. When speed is 0, I set IN1 high and IN2 low (brake).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    When the going gets weird, the weird turn pro. -- HST

    1uffakind.com/robots/povBitMapBuilder.php
    1uffakind.com/robots/resistorLadder.php
  • pityukecskepityukecske Posts: 1
    edited 2013-06-14 00:55
    Hello,

    Sorry for resurrecting an old thread, i am about to use this chip, and have a question.
    My pwm signal would be approximately 100KHz, and i can't find anything about this kind of limit in the datasheet.
    Can anyone confirm, that the chip works at this frequency?

    edit: i found what i looked for eventually, in another datasheet, named TLE5202 cross:
    http://www.datasheetarchive.com/TLE5205 cross-datasheet.html
    apparently the maximum frequency is 2KHz.
    Thanks anyway!

    pityu
Sign In or Register to comment.