Shop OBEX P1 Docs P2 Docs Learn Events
Using BS2pe to run and XY mill — Parallax Forums

Using BS2pe to run and XY mill

Deano1936Deano1936 Posts: 15
edited 2012-03-19 13:07 in BASIC Stamp
Hi,
I' in the process of building a XY mill. It uses analog motors with shaft encoders.
I have a lot of questions I need help with. I would really appreciate any input you can give me.
To start with
Questions:
1. Is the BS2pe fast enough to count the pulses coming from the decoders?
2. Could the two Co-processors be dedicated to count the pulses and speed up the BS2pe?
3. Does anyone have any source codes that might help me?
Thank You
Dean

Comments

  • Scott4Scott4 Posts: 45
    edited 2012-03-19 10:40
    You may want to see if the uM-PWM1 Servo Coprocessor would be applicable.

    http://micromegacorp.com/umpwm1.html

    -Scott
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-03-19 11:18
    Dean,

    'Sorry I missed this when you first posted.
    1. Is the BS2pe fast enough to count the pulses coming from the decoders?
    No.
    2. Could the two Co-processors be dedicated to count the pulses and speed up the BS2pe?
    Most likely, yes.
    3. Does anyone have any source codes that might help me?
    No MoBo AVR code has been developed for that app, AFAIK. If you choose to write your own, just be sure NOT to program the /RESET pin for I/O. Otherwise, you will not be able to reprogram the chip.

    -Phil
  • Deano1936Deano1936 Posts: 15
    edited 2012-03-19 13:07
    Thanks Guys,
    Thanks Phil for the heads up on the reset code. Murphy law must have be asleep this month.
    I have been playing with writing a CNC source code. I can make the work area move to
    the home position and center on x and y. I can read the encoders pulses using
    the COUNT command. I used the OWOUT command to generate the PWM signals.
    I'm only ten thousand miles away from tying them all together

    Thanks again
    Dean.
Sign In or Register to comment.