585,605 active members*
3,349 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Viper Servo drives > Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module
Page 2 of 4 1234
Results 21 to 40 of 61
  1. #21
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    G59, What resolution is the encoder and what is the max rpm you would run on the spindle ?

  2. #22
    Join Date
    Aug 2014
    Posts
    889

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    BEI, 500 ppr x 2500 RPM maximum motor speed. So 20883 pulses per second at 2500rpm.
    Technically a 250 ppr encoder would also do.

  3. #23
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    I got it working and it works good.

    Here is a video running a servo with a pulley on it running with a AMC drive.

    https://www.youtube.com/watch?v=6yHG...ature=youtu.be

    (excuse my voice, i sound like Stewie from Family guy, lol , it was late and i was excited)

    I'm cycling the motor with the Exercise mode withing the drive.
    The KP was set to 1000 with KP set to 300. You can see when i change the KD to 400, it gets unstable until i change it back to 1000

    I have more to finish before releasing the drive, but i have a cnc router to finish and ship in the next week, so it won't be long after that to send them out.

    Larry

  4. #24
    Join Date
    Aug 2014
    Posts
    889

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Looks promising.

  5. #25
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Hi Larry,
    Would it work open loop or you think that the pwm "translation" to +/-10V will not be precise enough? You mentioned very little backlash to none...from your experience, what will be the magic number? If I need to change my encoders, would you recommend staying with linear encoders or switch to rotary? Do you have a good supplier to suggest for encoders? Thanks
    Eric

  6. #26
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Quote Originally Posted by ech2o2 View Post
    Hi Larry,
    Would it work open loop or you think that the pwm "translation" to +/-10V will not be precise enough? You mentioned very little backlash to none...from your experience, what will be the magic number? If I need to change my encoders, would you recommend staying with linear encoders or switch to rotary? Do you have a good supplier to suggest for encoders? Thanks
    Eric
    Eric, you have to run closed loop with an encoder, open loop would be totally useless. The USDIGITAL E5 or E6 series is the best one to get for the money. be sure to get differential outputs, and usually 1000 line is good.

    The Step2Lin will be ready to ship at the end of the week . So i will send you a message about shipping.

    One thing i added was a input to sense that there is power at the amplifier. It needed this to be safe, because if you turned the amp power off while the system was holding, then moved the motor, when you turned to power to the amp back on the motor would jump back violently since the encoder was still keeping the position.
    So i have a opto-isolated input that will take up to 10 volts. You can just use a voltage divider off your main power that puts out 10 volts @ about 5 ma. Then when the step2lin sees the main power go off and come back on, it clears the encoder count and does a soft pwm startup.

    On all my new boards, i've switched from the older 18F2331 to a 16bit DSPIC. My new PID loop is a bit improved from the older one, and i now have the Ki working much better. The sampling time is variable from 500-4000 samples per second with the Ki fixed at 1000. This makes the Ki not get unstable at high sampling rates and much more useful.

    Larry

  7. #27
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    I'm adding some setup commands to the firmware to let you setup the analog amps easier. You will be able to set the DAC to output a test voltage so you can adjust the gain pot on the analog drive. I'm doing tests on different motors and voltages and see if the amp gain is too high, then the Step2lin barely uses the resolution of the DAC to control the motor, its better to use more resolution and have the amp gain less.
    Certain higher sampling times seem to make more audible noise in the motor, so im trying different opamp bandwidth changes to suppress some of this. When the switching freq of the amp is only 20khz, high sampling times can modulate out as noise.

  8. #28
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Hello again,
    I found some information on my linear encoders. Do you think those will be compatible with your card? Thanks.
    Attached Thumbnails Attached Thumbnails linear encoder.pdf  

  9. #29
    Join Date
    Dec 2003
    Posts
    24220

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Those appear to be Heidenhain style which are typically 11µa sine wave, I'm guessing you will need the typical 5v square wave type. unless you can find a way to square them up, Heidenhain make add on units that will do this.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  10. #30
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    It looks like the scale should be useable, but you will need a little comparator and driver circuit down at the linear scale. Since the step2lin has a 4x decoder, we can try it first by just squaring up the basic resolution. Here is a little circuit that should (might) work.

    I'm not sure what those photosensors output, (maybe Al knows) but i'm assuming that if you put a 1K resistor in series, you should see the 7-16 uA peak-peak appear across it as a voltage. The LM393 comparator neg inputs go to an adjustable pot to let you find the center voltage of the peak-peak swing. The 1meg resistor is optional and works to create a "snapover" hysterisis to reduce jitter at the center point. The 26C32 is a differential line driver to drive the twisted pair cable (which i highly recommend on any encoder)

    You can make the circuit on a small perfboard (go to addison electronics in montreal ) The circuit should be connected down close to the linear scale and is powered by the +5volts at the step2lin down the cable.

    Larry

    EDIT: I forgot to add a 1K pullup resistor on the output of each 393. (They are open collector)
    Attached Thumbnails Attached Thumbnails linear_Decoder.jpg  

  11. #31
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Thanks! That looks relatively simple and I think I already have some 393 at home!
    I also found this on internet. The circuit is interesting since it amplifies the signal too. The 4069 hex inverter I found at Digikey has 14 pins and 6 comparators...so one chip. I was thinking of building two of them to generate A & B signals and maybe a third one for the index signal. I have no clue if this would work or not but it is relatively easy and cheap to try...What do you think?

  12. #32
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Eric, i don't think that circuit is for encoders scales at all. It requires a fair amount of voltage from the incoming circuit, because thats where it gets its power. (the scale puts out a tiny voltage)
    And Its AC coupled so it couldn't work with very low speeds, and also there is no differential output. (seriously, don't waste your time building it )

    Larry

  13. #33
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Hello! Thanks for the input! You are right about the Heidenhain scale putting out very little amps...11uA. I ll get started on your suggestion and keep you updated. Thanks again!
    Eric

  14. #34
    Join Date
    Sep 2009
    Posts
    1856

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    have a look at TI web site they have a program on there call web bench it for doing circuits they have a encoder bit on it so you can work out what's required for a circuit to run a encoder
    http://danielscnc.webs.com/

    being disabled is not a hindrance it gives you attitude
    [SIGPIC][/SIGPIC]

  15. #35
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Hi
    Congratulations! I noticed on Viperservo.com that your step2linear cards were ready. I ordered 3 of them! I will let you know how it turns out! Thanks for all the help. Eric

  16. #36
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    All Boards have been shipped. I will have the PDF ready in a few days.

  17. #37
    Join Date
    Dec 2003
    Posts
    24220

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Larry, do you have any kind of manual put together yet?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  18. #38
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Here is the manual with connection diagrams and powersupply. Its not yet finished, and but i will finish it soon. At least this should let you hook it up.
    The current version of Vipertune will work with it, but i will upload a new version in a few days.

    To download the manual, right click the View Manual link and hit Save Link_as
    Step2Linear, ViperServo

    Larry

  19. #39
    Join Date
    Jun 2014
    Posts
    17

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Hello,
    Here are some questions following my very first try...
    1-Can a usb to serial converter be used to communicate with the step2linear card via vipertune?
    2-I have 15.4V at the step2linear card and it is giving me a 3beep error: low voltage input? is that normal? or is it because i did not use the low voltage to the drive option?
    3-I think there is an error on the diagram for the power supply suggested in the manual. The polarity of the condenser should be reverse since the common is higher potential than the negative out of the bridge rectifier.
    4-I quickly get a encoder trip alarm. It' s not clear to me how the step2linear reacts...does it stop working until the error is corrected or it will keep working anyway and it just warning you of a problem? If the card "stops working" how do we externally reset without powering it off?
    5- My drive has only one input called UREF and a common, it is not clear to me how I can use the separate plus / minus signal coming from the step2linear card? Do you have an idea?
    5- In the same idea, can I assume that the the small circuit you suggested to square up my sine waves from my Heidenhain linear encoders is working since i did not get a encoder fail warning? I do not have an oscilloscope and I am not sure how to verify if my circuit really works...

    Thanks
    Eric

  20. #40
    Join Date
    Feb 2007
    Posts
    966

    Re: Looking for Testers for my new "Step2Linear" (Step/Dir to analog ) module

    Quote Originally Posted by ech2o2 View Post
    Hello,
    Here are some questions following my very first try...
    1-Can a usb to serial converter be used to communicate with the step2linear card via vipertune?
    2-I have 15.4V at the step2linear card and it is giving me a 3beep error: low voltage input? is that normal? or is it because i did not use the low voltage to the drive option?
    3-I think there is an error on the diagram for the power supply suggested in the manual. The polarity of the condenser should be reverse since the common is higher potential than the negative out of the bridge rectifier.
    4-I quickly get a encoder trip alarm. It' s not clear to me how the step2linear reacts...does it stop working until the error is corrected or it will keep working anyway and it just warning you of a problem? If the card "stops working" how do we externally reset without powering it off?
    5- My drive has only one input called UREF and a common, it is not clear to me how I can use the separate plus / minus signal coming from the step2linear card? Do you have an idea?
    5- In the same idea, can I assume that the the small circuit you suggested to square up my sine waves from my Heidenhain linear encoders is working since i did not get a encoder fail warning? I do not have an oscilloscope and I am not sure how to verify if my circuit really works...

    Thanks
    Eric
    1) Yes a USB to Serial converter does work. the ones that come with a disk allow you to set the baudrate.
    2) Its the lowvoltage input that triggers the alarm. (It doesn't read its own powersupply voltage)
    3) yes you are right, i'll fix that.
    4)you need to get the vipertune working to be able to see if the encoder is working. Bringing the "lowvoltage" to zero will reset the step2lin.
    5)Either of the analog Refouts has a full +10 to -10 volt swing. One is just the inverted version of the other to drive a differential amp input.
    6)Once you get vipertune connected, you will be able to whether you can read the encoder. You can also run it as single ended if you pull down the unused input with a 2K res.

    Ive attached a basic connection circuit. Here you can just connect the lowvoltage inputs to the powersupply. (Use the 2pin connector for this since you can disconnect it to reset the drive.) You don't have to connect the current sense inputs as they are only used to display current in vipertune.
    Attached Thumbnails Attached Thumbnails Step2Lin_diag_2basic.jpg  

Page 2 of 4 1234

Similar Threads

  1. Replies: 5
    Last Post: 01-12-2014, 07:07 PM
  2. X Axis "Goes Off Pattern", "Awry", "Skewed", "Travels"
    By DaDaDaddio in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 05-06-2013, 09:59 AM
  3. Servo processor "upgrade module" - looking for volonteers.
    By H.O in forum UHU Servo Controllers
    Replies: 68
    Last Post: 03-27-2011, 04:28 PM
  4. Can someone explain "Full step", "Half step", "Quater step", etc. ???
    By danmst3k in forum DIY CNC Router Table Machines
    Replies: 4
    Last Post: 12-04-2008, 06:13 PM

Tags for this Thread

Posting Permissions

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