Skip to content
/ wCPPM Public

Combined Pulse Position Modulation (CPPM) transmitter library for Arduino

License

Notifications You must be signed in to change notification settings

Arth-ur/wCPPM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Combined Pulse Position Modulation (CPPM) transmitter library for Arduino

This library provides an easy to use utility to generate a CPPM signal with an Arduino, to be used with a CPPM compatible receiver. For example, the receiver on a quadcopter.

This library has been tested with an Arduino Leonardo. It uses TIMER3, which is not available on the Arduino UNO. You should be able to change TIMER3 for another timer available on the UNO.

Usage example

#define PPM_PIN 11
#include "wcppm.h"

Wcppm wCPPM;

void setup() {  
  pinMode(PPM_PIN, OUTPUT);
  wCPPM.begin(PPM_PIN); //Start timer and cppm generation
}

void loop() {
  for(int i = 0; i < 5; i++){
    int val = ...;
    wCPPM.setChannel(i, val); //Write to channel i the value val
  }
}

License: MIT

About

Combined Pulse Position Modulation (CPPM) transmitter library for Arduino

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages