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.

CCS/DRV2667: DRV2667 : Change the frequency to 100Hz or 50Hz

Part Number: DRV2667

Tool/software: Code Composer Studio

Hi Team,we would like to know if we could control a piezoelectric motor with a frequency of 100 Hz.

  • Hi Scott,

    Yes the DRV2667 will have no problem operating at 100 Hz or 50 Hz. If you would like to test this with the EVM, you can either have an external analog input or use Haptic Control Console to create a waveform of your desired frequency using the WaveSynthesizer by going to Tools -> RAM Manager -> DRV2667 and then selecting Advanced

  • Hi Micah 

    Thank you for your help

    If I can change the value of the register to get the output 100Hz or 50Hz

    Which address is written to which value to get output 100Hz or 50Hz ?

    Is there an easier way to change the frequency ? Can you show me it ?

    thank you very much

    Scott

  • Hi Micah

    I can use I2c communication with DRV2667.

    Thanks
    Scott
  • Hi Scott,

    There is no simple register that can be programmed to change the frequency. The frequency is set when you program the waveform. The easiest way to modify the waveform frequency is through Haptic Control Console, HCC. If you just want to communicate via I2C, then you can use the I2C sniffer in HCC to figure out what commands you need to program into the DRV2667.
    Open HCC, go to the RAM manager, click advanced and set the waveform up. Then click tools -> I2CSniffer. In this window, right click and hit "start." Now you will be able to record the I2C transactions. Back in the WaveSynthesizer window, create the waveform, select it and move it to the waveform sequencer. Now when you click Write RAM, the I2C transactions should appear in the I2CSniffer. You can copy these transactions and write them using your I2C device.
  • Hi Kelly

    Thank you for your help

    Can you provide 0x03 to 0x09 values and reference waveforms?

    Best Regards,

     Scott 

  • Hi Scott,

    The values for 0x03-0x09 will depend on what waveform you want to play. If you load multiple effects into RAM then you can select the waveform by changing this value. The EVM firmware can be downloaded here. The files waveform.c and waveform.h are used to set up the waveforms for the EVM.