PulsePosition Libraray capable to drive one Servo/ESC on one Teensy3.1 Pin?

Status
Not open for further replies.

Garfield

New member
Hello everyone,

For an project I tried to use the PulsePosition Library to control two ESCs each on separate Teensy Pins.
I use the Teensy 3.1 and arduino 1.6.5 with the corresponding Teensyduino. But I couldn't see any changes with the newest arduino/teensyduino.

It seems, that it is not possible to use these Library to get an output for only one ESC channel without modification.
The output of the library are always two rising (or falling) edges with the appropriate timing in between.

In my project I need the given timing between the first rising and the next falling edge.

Attached you will find the measuring of the following source code.

Code:
#include <PulsePosition.h>

PulsePositionOutput servo1;
PulsePositionOutput servo2(RISING);
PulsePositionOutput servo3(FALLING);
  
void setup()
{
  servo1.begin(20);
  servo2.begin(21);
  servo3.begin(22);

  servo1.write(1, 1500);
  servo2.write(1, 1200);
  servo3.write(1, 1700);


}

void loop()
{
  // put your main code here, to run repeatedly:

}

Is ther another library with which I could control two ESCs/Servos indiviually with one Teensy 3.1?

Thank you!
 

Attachments

  • PulsePosition-1.jpg
    PulsePosition-1.jpg
    51.9 KB · Views: 148
  • PulsePosition-2.jpg
    PulsePosition-2.jpg
    53 KB · Views: 146
Status
Not open for further replies.
Back
Top