Controlling frequency of current from roboclaw 2x7A
Posted: Mon Jan 28, 2019 8:25 am
Hi
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.
Jaskaran.
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.
Jaskaran.