Telescope drive motors that don't...


Closed Thread
Results 1 to 40 of 69

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Well, i'm really not a Motor Driver pro... so i would suggest you to increase the pulse length and see if it does anything better.

    40mA measurement is not revealant, it's pulse measurement, it give an average of the whole thing, not the peak.. unless you're using something else fancier than a regular DVM.

    6 Volts to a regular LM7805 input may cause stability problem, if my memory serves me well, Min Vin should be 'round 9 Volts.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Well, i'm really not a Motor Driver pro... so i would suggest you to increase the pulse length and see if it does anything better.

    40mA measurement is not revealant, it's pulse measurement, it give an average of the whole thing, not the peak.. unless you're using something else fancier than a regular DVM.

    6 Volts to a regular LM7805 input may cause stability problem, if my memory serves me well, Min Vin should be 'round 9 Volts.
    i find that 293D needs a minimum of 7V for Vs or Vss. this should be sorted out by him first. there should be no issue to supply 8 or 9V and be happy with 7805.

    If he can go for low consumption, some Low drop out regulator like LM2931-5 can be used and then 6V might work, but the current demand should be within the regulator spec
    Last edited by mvs_sarma; - 25th March 2008 at 19:06.
    Regards,
    Sarma

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    TI's datasheet's says that the supply range should be between 4.5 to 36V. If that chip is connected at the regulator output, and the voltage regulator is unstable (wich i don't doubt), there will have a problem indeed. So something to try in meantime, even if i'm not a fan of it... replace the voltage regulator by a diode or two in serie.

    Before i would prefer to monitor the voltage regulator output with a scope to see how bad it is...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Mar 2008
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    So many comments! Thanks, guys!

    The original web-site indicates that this circuit works with the same motors I've got, so I was assuming the components were all reasonably balanced. The regulator (7805) can put out at least 1A, more if it has a decent heatsink. Of course, at the moment nothing gets hot at all!

    The lead-acid battery feed is 6.3v, and the regulator drops this to 4.7v. These voltages do not vary under load. So although they are low, they do not seem to be unstable. I am not sure how to raise the voltage feed - given that I have a battery putting out 6.3v, would it be OK to connect it directly to the input without going through a regulator?

    As Mister-e suspects, the impression I get from listening to the motor is that I am sending short pulses to it, when I really ought to be feeding each coil power continuously (except when they are meant to be turned off!). Power is sent to the motor by the PIC program, which does this:

    ...
    HSTEP1 EQU B'00110110'
    HSTEP2 EQU B'00101000'
    ....
    MOVLW HSTEP1
    MOVWF PORTB
    CALL RA_DELAY ; variable loop to time pulses
    MOVLW HSTEP2
    MOVWF PORTB
    CALL RA_DELAY ; variable loop to time pulses
    ...

    Then the PORTB outputs from the PIC are attached to the inputs on the L293D, and the outputs from the L293D are attached to the stepper coils. Does this code mean the PORTB outputs remain high during the delay loop, thus keeping the L293D feeding the stepper coil? Or do the PORTB outputs reset to zero immediately after they have passed the data?

    You can see why I'm not sure about where the problem might be!


    I suspect I should be microstepping anyway, so another line of attack might be to abandon the L293Ds and go for something else which allows many steps. Is there such a thing?

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    try to increase the delay routine or paste it 2-3 times again to see how better worst it will be.

    Something easy like

    MOVLW HSTEP1
    MOVWF PORTB
    CALL RA_DELAY ; variable loop to time pulses
    CALL RA_DELAY ; variable loop to time pulses
    CALL RA_DELAY ; variable loop to time pulses
    MOVLW HSTEP2
    MOVWF PORTB
    CALL RA_DELAY ; variable loop to time pulses
    CALL RA_DELAY ; variable loop to time pulses
    CALL RA_DELAY ; variable loop to time pulses

    cost nothing to try huh?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Mar 2008
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    Well, I tried!

    In fact I don't have to double up the delay - it's 130x125, so I just alter the values.

    Making the delay shorter (5x5) results in no movement from the motor at all - but I expected that would be too fast...

    Making the delay longer (250x250) results in slower movement, but with the same low torque. It's just as if the L293D is only sending one pulse to the coil, rather than holding the coil on until the next change occurs. Surely if you:

    MOVLW HSTEP1 ;(hstep1 is FF, for example)
    MOVWF PORTB

    this should leave all PORTB pins high until PORTB is changed? Or perhaps the L293D only sends one pulse to the motor, and I need to increase the current or duration on this in some way?

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Silly question. Do you have the VS pin (pin 10) of the L293D parts connected directly to the battery? Or is it connected to the 5V supply? That pin supplies the voltage that actually drives the motors and should not be going through the regulator.
    Tim Barr

Similar Threads

  1. MPASM Path & File Name Length Limtation
    By Brian J Walsh in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 14th June 2008, 15:48
  2. Differential Drive Programming
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 30th December 2006, 14:03
  3. motors browning out PIC
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 17th November 2006, 02:50
  4. CD ROM Motors.
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2006, 17:59
  5. problems with Servo Motors...
    By saturnX in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2006, 01:43

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts