586,096 active members*
3,158 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > PIC Programing / Design > Lini-Stepper Revisited ( Hacked )
Page 3 of 6 12345
Results 41 to 60 of 104
  1. #41
    Join Date
    May 2008
    Posts
    5
    Hi, Steve-Tee, I don't know what are you talking about. I use the 16F84 version in this thread. Like I said RB7 till RB5 is pulsing but RB4 never pulsing that why someone here say his stepper just humming. I debug it using TurboCNC 1Hz function. I don't believe some short of software simulation. Who is here that has tried it on real hardware?? No one i believe.

  2. #42
    Join Date
    Nov 2004
    Posts
    69

    ___WHAT A CONFUSION !___

    Right now I have tested Kowell's "stepit_16f628.hex" No, id does not work
    ( Please note: in MY circuit, built as schematic, etc)
    Now I will test Steve vee with new outputs.
    No, there is no LowVoltageProgramming enabled
    Who other is testing those circuits ?
    It seems another builder ( Telyadi, read posts) is unsuccessfull too.
    Ok for new more powefull circuits, but I ( we?) 'm still trying to .....you know!

    Paul

  3. #43
    Join Date
    Nov 2004
    Posts
    69

    ____WHAT A CONFUSION 2 _____

    Just tested Steve vee "lini_01-628.hex" with outputs on pins 6, 7, 8, 9
    ( RB0 to RB3 ).Settings for programmer :
    OSC : HS CP off PWRTE MCLRE
    No, it does not work ( again: in my circuit, etc etc)
    Comments?
    Paul

  4. #44
    Join Date
    Nov 2004
    Posts
    69

    AND NOW ?

    I still think the idea of using some sort of PWM for microstepping is absolutely right.
    I still think it can be done using some parts of linistepper code.
    I still think both Kowell and Steve vee have a working circuit.
    But I'd like:
    1) Is schematic right? To build a PCB just to know the designer of the schematic was wrong, makes me a little nervous.....
    2)For stupid builder as me, it is always better to specify everything, for example not only pic16f628, but PIC16F628/20 .
    3) Sometimes the .hex file is not enough, it can be better to specify settings for the programmer .
    4) I have always a lot of confusion in my PC, so can I ask to people sending files
    to test once again the file? For example, are "stepit-16f628.hex" and "lini-01-628.hex" EXACTLY the very same hex file they are using?
    Sincerely
    Paul

  5. #45
    Join Date
    Nov 2006
    Posts
    90
    Hi Paul,


    Please put leds on pins 6,7,8,9 and try the 1HZ pulses. you should see the '2on/2off'. repeating cycle.
    I can assure you that this works, as I have it running on the motors of my machine, using the circuit I posted above.

    Now for some programmer settings:

    Watchdog timer = OFF
    Osc = HS
    CP = Off
    PWRTE = On
    MCLR=Enabled

    The speed of the crystal is not critical when testing at low motor speeds.
    You could have a 4MHz crystal in use, and it will still work. At higher motor speeds, this might cause problems, but not during low speed testing of the circuit.


    Best wishes,
    Steve.





    Quote Originally Posted by ciccio View Post
    Just tested Steve vee "lini_01-628.hex" with outputs on pins 6, 7, 8, 9
    ( RB0 to RB3 ).Settings for programmer :
    OSC : HS CP off PWRTE MCLRE
    No, it does not work ( again: in my circuit, etc etc)
    Comments?
    Paul

  6. #46
    Join Date
    Nov 2006
    Posts
    90
    I will download and try the code that you have been using.
    My machine is set up differently, so I will need to make changes for this to work.
    Once completed, I will let you know what I find.

    Ideally, all 4 outputs should pulse, as the ASM file's structure suggests they should.


    Hmmm, now, let's hope I can find one of these F84s, as they are often replaced by the F628s in the electronics stores.

    Can you send a photo of the board you have made?






    Quote Originally Posted by telyadi View Post
    Hi, Steve-Tee, I don't know what are you talking about. I use the 16F84 version in this thread. Like I said RB7 till RB5 is pulsing but RB4 never pulsing that why someone here say his stepper just humming. I debug it using TurboCNC 1Hz function. I don't believe some short of software simulation. Who is here that has tried it on real hardware?? No one i believe.

  7. #47
    Join Date
    Nov 2006
    Posts
    90

    Houston, we have a problem!

    I just downloaded and tested the PIC16F628 version of the code from Kowell's post.
    3 of the 4 outputs work, but RB4 is remaining in its low state.
    The use of a 390 ohm pullup resistor lets me see that this pin is indeed set up as an output, but is not changing state.
    Further, it appears that RB5 is turning on at the wrong time in the sequence.
    It seems like there is a minor fault in the code.

    I'll take a look, and see if I can make it even worse, oops, better .

    Wish me luck fellas, I might need it, it's dark in here .






    Quote Originally Posted by telyadi View Post
    Hi, Steve-Tee, I don't know what are you talking about. I use the 16F84 version in this thread. Like I said RB7 till RB5 is pulsing but RB4 never pulsing that why someone here say his stepper just humming. I debug it using TurboCNC 1Hz function. I don't believe some short of software simulation. Who is here that has tried it on real hardware?? No one i believe.

  8. #48
    Join Date
    Nov 2004
    Posts
    69

    My PCB

    Here is my ( now semi-destroyed) test PCB
    Some parts are on the bottom side
    ...ehm....A&B aerospace...we cut foam wing for aeromodels....
    Paul
    Attached Thumbnails Attached Thumbnails img001.jpg  

  9. #49
    Join Date
    Nov 2006
    Posts
    90
    That is very neat and tidy, certainly nicer than mine .

    I have written some new code for you to test your drivers with.
    It's the simplest code possible, as it drives only one coil at a time.
    It will let you move the motor forward and backwards, but it operates in full step mode only.

    When you put the Leds on the outputs: 6,7,8,9 , you will see them going on and off in a repeating '1 - 2 - 3 - 4' cycle.
    Connect the motor, and try a few combinations. It will run sweetly.

    Ok here's the code, and the ASM for it.
    They are called Sstepper0-3.hex and Sstepper0-3.asm
    The capital 'S' is short for 'Single coil per step'.

    Please let me know how you get on with this, as I am determined to help you your system working .



    Best wishes,
    Steve.


    Quote Originally Posted by ciccio View Post
    Here is my ( now semi-destroyed) test PCB
    Some parts are on the bottom side
    ...ehm....A&B aerospace...we cut foam wing for aeromodels....
    Paul
    Attached Files Attached Files

  10. #50
    Join Date
    Nov 2006
    Posts
    90

    New Firmware for you to try

    Hi Telyadi,

    There seems to be a problem with the code that you are using.
    It didn't work for me either. Same problem as you saw.

    I have written one of my own, and tested it on a PIC16F628A.
    Here is the PIC16F84 version. I have NOT been able to test it on the PIC16F84, as I can't find any that are better than 4MHz here.

    Please try this on your circuit, and let me know how you get on with it.
    We WILL got your motors turning!

    You'll see that it drives only one coil per step, as opposed to two coils per step. This is ok, as it uses only half the power, but delivers about 40% less torque.
    This is a fullstep only version, but that should be ok, as this will help you to get your motor drivers working.


    Cheers,
    Steve.




    Quote Originally Posted by telyadi View Post
    Hi, Steve-Tee, I don't know what are you talking about. I use the 16F84 version in this thread. Like I said RB7 till RB5 is pulsing but RB4 never pulsing that why someone here say his stepper just humming. I debug it using TurboCNC 1Hz function. I don't believe some short of software simulation. Who is here that has tried it on real hardware?? No one i believe.
    Attached Files Attached Files

  11. #51
    Join Date
    Nov 2004
    Posts
    69

    MORE TESTS: this is fun ;-)))

    I'm sorry
    I'm surely wrong
    But I compared the original LINISTEPPER
    and Lini 01-628.hex ( on this forum)
    They are the same file
    Is this right?
    Paul

  12. #52
    Join Date
    Nov 2004
    Posts
    69

    ...I NEED AN EXORCISM....

    ...I NEED AN EXORCISM....
    Settings for STEPPER 03.hex
    HS PWRTE
    or also MCLRE and BOREN?
    paul

  13. #53
    Join Date
    Nov 2006
    Posts
    90
    Hi Paul,

    Yup, these are indeed the same. When I designed my motor driver, I discovered that it was almost the same as the Linistepper. Because of this, I used the Linistepper code .

    As you have built Kowell's version of the driver, the Lini 01-628.hex won't work.
    Try the code called 'Sstepper0-3.hex'.
    It will work with Kowell's hardware design.

    Edit: Oops, not Kowell's design - but some other one that uses the lower half of PORTB.

    I'm getting old, and it's showing!!!


    Best wishes,
    Steve.



    Quote Originally Posted by ciccio View Post
    I'm sorry
    I'm surely wrong
    But I compared the original LINISTEPPER
    and Lini 01-628.hex ( on this forum)
    They are the same file
    Is this right?
    Paul

  14. #54
    Join Date
    Nov 2006
    Posts
    90
    No, you need a nice cold beer .

    An Exorcism will mess you hair up


    Quote Originally Posted by ciccio View Post
    ...I NEED AN EXORCISM....

  15. #55
    Join Date
    Nov 2004
    Posts
    69

    ...A COFFEE; PLEASE....

    Hi, Steve Tee,
    and thank you for all the support
    Here in NW Italy it is a rainy day , it's 11.30 AM
    Now I need a little break, a cup of coffee.
    Just a moment ago you suggested me a new test file, outputting
    signals on pin 6, 7, 8, 9.
    Now you tell me to test it on Kowell design ( outputs on pins 10, 11, 12, 13)
    Definitively, now I'll have a cup of coffee ( espresso ultra strong coffee, italian style)
    Paul

  16. #56
    Join Date
    Nov 2006
    Posts
    90
    Uhmmmmm, which build is yours?
    I confuzzled!




    Quote Originally Posted by ciccio View Post
    Hi, Steve Tee,
    and thank you for all the support
    Here in NW Italy it is a rainy day , it's 11.30 AM
    Now I need a little break, a cup of coffee.
    Just a moment ago you suggested me a new test file, outputting
    signals on pin 6, 7, 8, 9.
    Now you tell me to test it on Kowell design ( outputs on pins 10, 11, 12, 13)
    Definitively, now I'll have a cup of coffee ( espresso ultra strong coffee, italian style)
    Paul

  17. #57
    Join Date
    Nov 2004
    Posts
    69

    re-start

    Ok, after a good coffee, everything smiles
    Now please tell me:
    what hex
    what config
    what schematic
    I still have some PICs
    Paul
    PS to cut testing time, I will connect leds on the output pins of the PIC
    This is to avoid wrong connection to stepper
    I will connect to stepper later, if everything is OK
    But the name of the game was:
    Is it possible to microstep with pwm, to avoid big heath sink as needed by linistepper?

  18. #58
    Join Date
    Nov 2006
    Posts
    90
    Please describe your present build, and I will suggest the correct file and config for you.


    Cheers,
    Steve.


    Quote Originally Posted by ciccio View Post
    Ok, after a good coffee, everything smiles
    Now please tell me:
    what hex
    what config
    what schematic
    I still have some PICs
    Paul
    PS to cut testing time, I will connect leds on the output pins of the PIC
    This is to avoid wrong connection to stepper
    I will connect to stepper later, if everything is OK
    But the name of the game was:
    Is it possible to microstep with pwm, to avoid big heath sink as needed by linistepper?

  19. #59
    Join Date
    Nov 2004
    Posts
    69

    MY TEST PCB

    The PCB was buil as for Kovell schematic, then, test after test, I started
    to cut traks, so no problem. Tell me what are the outputs, if "mode" inputs are to GND or VCC, if I have to connect "low power" as for linistepper, the freq of xtal, and of course what pic to use (84 or 628) and config ( but they are on
    first lines of code, isn't it?)
    But now I will go to a friend to test our big foam cutting machine.
    We need microstepper not to enhanche precision, but to avoid vibrations.
    So we need to microstep....
    Have a nice week end
    Still raining here
    Paul

  20. #60
    Join Date
    Nov 2006
    Posts
    90
    Ok, set it up so it uses output pins 6,7,8,9.
    Use 10 to 16MHz crystal.
    PIC16F628A.
    Set all mode inputs to ground.
    Use "Sstepper0-3.hex" from this post:
    http://www.cnczone.com/forums/showpo...5&postcount=49

    Try this, just to be sure your driver works correctly.
    We can look into the finer details once you have got your circuit up and running.


    Give it a go, you'll love it .


    Cheers,
    Steve.



    Quote Originally Posted by ciccio View Post
    The PCB was buil as for Kovell schematic, then, test after test, I started
    to cut traks, so no problem. Tell me what are the outputs, if "mode" inputs are to GND or VCC, if I have to connect "low power" as for linistepper, the freq of xtal, and of course what pic to use (84 or 628) and config ( but they are on
    first lines of code, isn't it?)
    But now I will go to a friend to test our big foam cutting machine.
    We need microstepper not to enhanche precision, but to avoid vibrations.
    So we need to microstep....
    Have a nice week end
    Still raining here
    Paul

Page 3 of 6 12345

Similar Threads

  1. Lini-Stepper Revisited ( hacked )
    By kowell in forum PIC Programing / Design
    Replies: 0
    Last Post: 06-29-2007, 12:12 PM
  2. My hacked HP printer flatbed
    By Graham S in forum CNC Machine Related Electronics
    Replies: 7
    Last Post: 06-02-2007, 11:31 PM
  3. Lini Mod
    By OCNC in forum PIC Programing / Design
    Replies: 0
    Last Post: 07-25-2006, 04:19 AM

Posting Permissions

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