hi,
ppm sum signal input is on pin19 for the mega. but this pin is used on the flyduino.
how do i have to change the code to be able to connect the ppm sum signal to THR pin [A8] like with the pro mini?
i looked at the code [1preter7] but as im not a coder its not really clear what to do.
any suggestions?
regards markus
PPM SUM RX with Arduino Mega / Flyduino [pin change]
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Hi Markus,
Looking at the code, it seems to me that you will need to modify the following line for the pin change:
line 242: #define PPM_PIN_INTERRUPT attachInterrupt(4, rxInt, RISING); //PIN 19
Here the number 4 indicates which pin of the arduino mega is used to capture the ppm signals. To change this, just find the corresponding pin number for THR pin [A8] as you mentioned and replace 4 with that. But this is what I understand from looking at the code, nothing tested or confirmed.
Looking at the code, it seems to me that you will need to modify the following line for the pin change:
line 242: #define PPM_PIN_INTERRUPT attachInterrupt(4, rxInt, RISING); //PIN 19
Here the number 4 indicates which pin of the arduino mega is used to capture the ppm signals. To change this, just find the corresponding pin number for THR pin [A8] as you mentioned and replace 4 with that. But this is what I understand from looking at the code, nothing tested or confirmed.
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Hi Markus!
I had a similar question for the Pro Mini. Finally found the info I was looking for here :
http://www.arduino.cc/en/Reference/AttachInterrupt
It seems that the Mega chip has 6 pins that are capable of an external interrupt:
So I think you can use any of those pins as long as they're not being used for something else and are broken out
Ben.
I had a similar question for the Pro Mini. Finally found the info I was looking for here :
http://www.arduino.cc/en/Reference/AttachInterrupt
It seems that the Mega chip has 6 pins that are capable of an external interrupt:
Most Arduino boards have two external interrupts: numbers 0 (on digital pin 2) and 1 (on digital pin 3). The Arduino Mega has an additional four: numbers 2 (pin 21), 3 (pin 20), 4 (pin 19), and 5 (pin 18).
So I think you can use any of those pins as long as they're not being used for something else and are broken out
Ben.
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Hi !
Someone got PPM working with the Flyduino Mega board?
Greetings
Daniel
Someone got PPM working with the Flyduino Mega board?
Greetings
Daniel
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Hi;
works with receiver connected to Serial 1...
Greetz
Peter
works with receiver connected to Serial 1...
Greetz
Peter
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Thanks, i have seen it on the schematic, i thought it is only for the Spektrum that works serial or something like this.
Working perfect with a standard ppm receiver. Just connect the PPM signal to RX on Serial 1
Working perfect with a standard ppm receiver. Just connect the PPM signal to RX on Serial 1
Re: PPM SUM RX with Arduino Mega / Flyduino [pin change]
Loosi wrote:Thanks, i have seen it on the schematic, i thought it is only for the Spektrum that works serial or something like this.
Working perfect with a standard ppm receiver. Just connect the PPM signal to RX on Serial 1
Actually now in the Dev build you can use the throttle channel or A8 with PPM,
Check out:
http://www.multiwii.com/forum/viewtopic.php?f=8&t=2868
I just loaded it up and bench tested it today, works great.
So we no longer have to use a Serial Port for PPM sum on a mega board. I am using a Flyduino Mega myself but this code will work on any mega board.