I have to create a labview program that will send signals to an ESC connected to a motor. This motor is supposed to spool up and down to vary the RPM of hte propeller attached to it. So, I should be able to send a number to the ESC that tells it how much the motor needs to spool up.
Currently, I am using an analog servo connected to the arduino to see how PWM works.
This is what I have programmed. However, when I vary the duty cycle, the servo does not move.
Am I missing something? I don't want to use servo blocks since I am trying to figure out PWM and I don't want to attach the ESC to it just yet until I am a little more confident of what is going on.
Is this set up not correct for figuring out how to send a PWM signal?
Servos are generally not controlled using analogWrite() on a PWM pin. They are controlled using the Servo class.
Your Arduino code seems to be missing.
I don't know what you mean by 'servo blocks' but your diagram is meaningless in the context of programming the Arduino. I suspect that your Arduino code will not help much either unless we can understand the interaction with labview and how the Arduino fits into the scheme of things. Perhaps you can expand on that.
