I am using the roboclaw 2x7A motor controller to supply a sinusoidal current to two Helmholtz coils. I have been able to command a sinusoid but now I want to control its frequency to measure the frequency response of a system. Currently, I have the following parameters in my code
1) time = np.arrange(0,1,0.01)
2) wave = A*sin(2*pi*f*time)
3) time.sleep(0.05) which is run after every time instant after commanding the current to the two coils.
I use rc.Forward and rc.Backward to command positive and negative currents like in the simplePWM example. I would really appreciate your help on this topic.