Telescope drive motors that don't...


Closed Thread
Results 1 to 40 of 69

Hybrid View

  1. #1
    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

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dodgy Geezer View Post
    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
    I wasn't asking you to rewrite anything, Your reference to the website incurred me to think you found this code rather than wrote it, my appologies! My statement stands as is, I do not understand your code, so I do not know that it did that, I was simply suggesting a possible area to search.
    Regards
    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.

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


    Did you find this post helpful? Yes | No

    Default

    ASM looks way harder than it is actually.

    Let's see few common expressions

    MOVLW .10
    MOVWF PORTA
    It's nothing else than PORTA = 10
    <hr>
    BTFSC PORTA.1
    GOTO $-1

    Could be translated as

    WHILE PORTA.1=1 : WEND

    OR

    TestPORTABit1:
    IF PORTA.1=0 then GOTO DoSomething
    Goto TestPORTABit1
    DoSomething:
    <hr>
    MOVF PORTA
    MOVWF MyVar

    would be MyVar=PORTA
    <hr>
    INCF MyVar,F

    MyVar=MyVar + 1
    <hr>
    nothing really hard to learn... but yeah... could be a bit hard to follow/understand a little bit when you begin. 18Fs and DsPIC assembler is way easier to code, but you have more Mnemonics to learn.
    Last edited by mister_e; - 29th March 2008 at 02:08.
    Steve

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

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