Telescope drive motors that don't...


Closed Thread
Results 1 to 40 of 69

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Another silly suggestion. Try turning BOD off. Maybe your regulator isn't rock solid enough and BOD is resetting the PIC. The PIC will run at lower voltages than the BOD is set for. Upper level for BOD is 4.4V. According to the code, portB should be static and not pulsed. If this fixes your problem, maybe you could look for a LVDO regulator only a 400mV drop like a STMicro LD29150.
    Last edited by falingtrea; - 27th March 2008 at 20:51.
    Tim Barr

  2. #2
    Join Date
    Mar 2008
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    Umm...What's BOD? Are you talking about the regulator? Are you suggesting that I just feed the +5v regulated line from the battery directly, at 6.3V?

    The difference seems to be minimal, and I suspect it will cause no damage, but is that what you mean?

    Incidentally, I have been looking for any possible difference between what I am doing and the published circuit. The only thing I can see is that the regulator is flanked with a couple of 100nf bead capacitors, and I am using 100nf polyester. Interestingly, the data sheet for the 7805 regulator suggests 30mf capacitors, but I am following the published design. Perhaps there is a problem there...?

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


    Did you find this post helpful? Yes | No

    Default

    100nF directly at the output + 1 as close as possible of the pic is recommended. 30uF or higher would be nice at it's input. i usually use 10uF tantalum at the output as well as close to the PIC.

    Any current demanding device have their own 47uF (or higher depending) + 0.1 uF as close as possible.

    BOD: Brown-out detect. It's one of those configuration fuses setting for the PIC you're using.
    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

    Thanks for the education!

    BOD off is still the same. It might have given a little more torque, or that might just have been wishful thinking on my part.

    I have few capacitors on the board, just the ones specified. By now, I'm pretty sure that the PIC is doing the right thing, and that the problem lies with the motor driving L293D circuitry. So I went looking for other drive circuits, and found another which was just like the one I had built!

    So everything seems to be right. The problem is, it isn't. Does anyone think it would be safe to up the voltage beyong 6v? The battery pack that came originally with the motors is 6v, and the coil windings are around 18ohm, suggesting 0.3 Amp.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello Dodgy Geezer,
    I have a little trouble with assembly, Have you put a voltmeter on the enable pins to see if the pic is pulling them high? As I understand it they should be held high while the stepper is running.<br>
    Or Roman Black's Lini Stepper works well I have tried it. Kits for sale on ebay:http://cgi.ebay.com/Lini-stepper-con...QQcmdZViewItem
    Last edited by Archangel; - 28th March 2008 at 16:52.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default

    Is there any exact motor Model we can refer to?

    i found this PDF for those interested in Stepper Motor Basics
    http://www.solarbotics.net/library/p...f/motorbas.pdf

    Turning the problem in many ways... i'm still thinking of unsufficient current AND/OR voltage at the driver output. I would suggest you to use a higher voltage source, and connect the driver before the voltage regulator. If you have any variable voltage power supply that would be nice. This bring mvs_sarma's suggestion to the front. Make sense, there's probably some voltage loss at the output.

    Why the previous driver circuit worked... well hard to tell, no schematic or pic of it (with some part# of the transistor/Mosfet)? Any coils or else fancy stuff on it?
    Last edited by mister_e; - 28th March 2008 at 17:31.
    Steve

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

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post

    Turning the problem in many ways... i'm still thinking of unsufficient current AND/OR voltage at the driver output. . . .
    Hi Steve, that was where I was going by asking if the enable pins were held high, as I do not understand the assembler . . . I think those ports should not be pulsed . . .JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    Join Date
    Mar 2008
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    Mister-e '..Is there any exact motor Model we can refer to?..'

    There are no markings on the motors. The original controller used a 6v battery pack, and the coil resistance is 18ohm. A similar looking motor is the BPM42 from Astrosyn, but that is specified as 12v.

    Joe S. - thanks for joining the party! i would be happy to rewrite the code in Basic if that would help, but I think the code is working. I programmed the PIC on a Vellerman 8048 unit, which has a limited test function (6 leds and 4 switches), and the test showed the leds all lighting up at the right times. I have also run the code on a couple of software simulators, and it does what it says it does - holds the specified pins high.

    What I cannot simulate is what the L293D is doing (no oscilloscope ). In other circuits I see the possibility of varying the current passed to the stepper, but I don't think you can on the L293D. How does the chip know how much current to pass the stepper?

    The Lini Stepper is very interesting, and I would buy one like a shot - if it supported Bipolar steppers like I have on the telescope. Unfortunately, the telescope hardware is fixed. I was wondering about getting one of these - http://www.jafmotion.co.uk/motordrives.htm

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, 16:48
  2. Differential Drive Programming
    By shaiqbashir in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 30th December 2006, 15:03
  3. motors browning out PIC
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 17th November 2006, 03:50
  4. CD ROM Motors.
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th April 2006, 18:59
  5. problems with Servo Motors...
    By saturnX in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2006, 02: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