Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
"Simple connectivity with an RC receiver PPM signal".
void main(void)
// small delay here could be needed
I2CInit();
// small delay here could be needed
// Try to send speed command to motor ESC
I2CStart(); // Start condition
I2CSend(0x12); // Address
I2CSend(100); // Speed value 0 to 255
I2CStop() // Stop condition
// Motor should start spinning. Go into loop.. do nothing.
while(1){
}
}
In short, connect a typical PWM servo tester to the esc, and I will bet it works.
How would you choose the channel?
That question can't be answered without knowing the details (i.e., brand and model) of the transmitter and receiver.
I meant that If the signal (that you feed directly to the esc) is really proper PPM, then which channel does the esc use? That's what was suspicious to me, because none of that was in the specs.
That is the whole point of it. The signal to the esc or servo is NOT PPM.
The scl and sda will be set to 0 or 1?
For taking output it should be 0 in master mode but in link he isvusing input why?
The datasheet goes on to state, "The PPM output of most RC receivers is compatible." I am not aware of any common receiver, much less most that output a PPM signal to servos. I think the author of that datasheet has confused the PPM modulation (PCM being another common mode) from the transmitter that the receiver receives with the decoded output from the receiver.
RC systems do use Pulse Proportion Modulation (PPM). See this document for a good explanation of servo control.
I am talking about tris setting to 1or0?