This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV201 support need for the I2C driving source under Linux/ Windows. OS

Other Parts Discussed in Thread: DRV201

Dear Sir,

Any the DRV201  I2C driving source code under Linux/ Windows. OS ?

thank you

  • Hi

    Usually the auto focus driving code structure will be differ according to the CPU platform. It is usually confidencial and hard to find unified source code examples.

    The good thing is the I2C communication of DRV201 is compatible with the standard I2C. Also the basic I2C operations are all listed in the datasheet of DRV201. If you have any other driving source examples, you can compare the different aspects of the drivers and make neccessary changes according to DRV201's functions, and quick transplant to DRV201.

    Also you can give more informantion about the application, we will try to give more advise as much as we could.

     Thanks.

    Wilson

    Motor Application Team

  • Hi Wilson,.

    engineers use the CPU --  "ARM926ejs", and OS  plateform is "linux-2.6.35.12", and the code DRV201 for Linux was ready,

    1. in attachment PWM/LIN register bit , what`s different about PWM mode to Linear mode to control lens auto-focus?

    2.PWM_FREQ frequency is 0.5MHZ  to 4MHZ , Did  frquency higher effect VCM_CURRENT then current more higher ?

    thanks

  • Hi,

    The average current through the motor coil will be the same either in PWM or Linear mode at the same VCM_CURRENT setting value. But the total current went into VBAT will be much lower and the power consumption will be saved by PWM driving. The auto-focus process will be the same in PWM or Linear mode.

    PWM_FREQ also has no effect to the average coil current.

    Thanks.