I2C 8+8 expander with extra features


Results 1 to 6 of 6

Threaded View

  1. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Improved triangolar profile

    The profile algorithm transforms the travel command (steps) into three vector quantities:

    Vector A Acceleration from rest to fixed speed (vector slope defined by ramp)
    Vector B travel at fixed speed from end of vector A to begining of vector C
    Vector C Deceleration from fixed speed to rest at target point (Vector A inverted)

    This technique is known as "TRAPEZOIDAL PROFILE".

    When the travel command is equal or less than vector A + vector B
    the algorithm convert the trapezoidal profile into "TRIANGULAR PROFILE"
    calculating new vectors A & B with different slopes as function of the given travel command

    For small travel command (few steps) the algorithm was yielding incorrect sharp slopes that
    could stall the motor if requested to turn at high speed.

    The bug has been found and removed!

    Now the motor turns smootly also with few steps travel command at high speed setting.

    The new version software (IO_Expander_new) is attached, as a zipped file, to this post.
    Attached Files Attached Files
    All progress began with an idea

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. Another I2C Slave Routine Problem
    By DanPBP in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th February 2009, 05:50
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  5. Disable MCU Extra Features
    By cjurczak in forum General
    Replies: 2
    Last Post: - 17th November 2006, 17:51

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