Hello! My first post on this board
On a Pro Mini the input for PPM Sum is Pro Mini Pin 2. Is there anyway to change this? I ideally need it to be on Pro Mini Pin 4 or 7.
Ben.
Thanks for the help!
Ben.
PPM Sum pin move?
Re: PPM Sum pin move?
Answered my own question after some research
Seems the PPM sum pin is setup on the Pro Mini with :
Looking at the attachInterrupt function on the arduino website :
http://www.arduino.cc/en/Reference/AttachInterrupt
it seems that the pro mini (and other Arduinos with the same chip) only has 2 pins which are external interrupt capable : numbers 0 (on digital pin 2) and 1 (on digital pin 3). So unfortunately I can't switch the PPM sum pin to 4 or 7. Only to 3 which isn't of use to me Looks like I'm cutting tracks and doing a little wiring
Ben.
Seems the PPM sum pin is setup on the Pro Mini with :
Code: Select all
#define PPM_PIN_INTERRUPT attachInterrupt(0, rxInt, RISING); //PIN 0
Looking at the attachInterrupt function on the arduino website :
http://www.arduino.cc/en/Reference/AttachInterrupt
it seems that the pro mini (and other Arduinos with the same chip) only has 2 pins which are external interrupt capable : numbers 0 (on digital pin 2) and 1 (on digital pin 3). So unfortunately I can't switch the PPM sum pin to 4 or 7. Only to 3 which isn't of use to me Looks like I'm cutting tracks and doing a little wiring
Ben.
-
- Posts: 2261
- Joined: Sat Feb 19, 2011 8:30 pm
Re: PPM Sum pin move?
Please, Just for my edification and maybe future usage, why the need to move the Pin?
Re: PPM Sum pin move?
Hi richie.
Sorry for the late reply! It's just because I'm using a homemade arduino board... I had it manufactured set up for a quad (at seeedstudio)... but then I wanted to change it to a hex. The PPM sum pin needed to be changed because the pin it uses was the pin I was outputting the throttle PWM on for ESC calib purposes. I just cut some tracks and used wires and so it's not a problem anymore
Ben.
Sorry for the late reply! It's just because I'm using a homemade arduino board... I had it manufactured set up for a quad (at seeedstudio)... but then I wanted to change it to a hex. The PPM sum pin needed to be changed because the pin it uses was the pin I was outputting the throttle PWM on for ESC calib purposes. I just cut some tracks and used wires and so it's not a problem anymore
Ben.