|
|
|
|
||
|
|
Quote:
so it looks like the pins 2,3,18,19,20,21 can be used as an interrupt input on the mega. 2 and 3 are used for esc outputs. 19 is also in use. so where are the pins 18,20 and 21 on the flyduino? are they passed out somewhere? paul, can u help? edit: i think i found them. 18 - tx 19 - rx 20 - sda 21 - scl not good
|
|
|
|
|
|
|
|
|
what about shifting pin2 and pin3 to pin 3 and pin4.
and than use pin 2 as ppm sum input? changing this: #define PPM_PIN_INTERRUPT attachInterrupt(4, rxInt, RISING); //PIN 19 #define MOTOR_ORDER 3,5,6,2,7,8 //for a quad+: rear,right,left,front //+ for y6: 7:under right 8:under left to this: #define PPM_PIN_INTERRUPT attachInterrupt(0, rxInt, RISING); //PIN 2 #define MOTOR_ORDER 4,5,6,3,7,8 //for a quad+: rear,right,left,front //+ for y6: 7:under right 8:under left is there any reason why pin4 is not used? |
|
|
|
|
||
|
Joined Feb 2011
198 Posts
|
Quote:
![]() /a - damn this weather, I want some warm calm days, not cold windy ones!
|
|
|
||
|
|
|
|
|
Can we do it this way?
there are lots of PCINT still free. http://www.arduino.cc/playground/Main/PcInt |
|
|
|
|
||
|
|
Quote:
I my opinion we can use it, but it's necessary an important change in code. Probably Alex can do it. |
|
|
||
|
|
|
|
|
i tested to shift pin 2+3 to 3+4 and set pin2 as ppm sum input.
now i can see the rx channels in the gui but no real signal on pin4. the motor just beeps. than i shifted pin 2 to pin 9 and again pin2 as ppm sum input. i can see the rx channels in the gui and all motors seems to be ok. but when i now try to arm the copter the motors just twitch once and thats it. nothing more happen. the same happened with pin 2+3 shifted to pin3+4. any ideas? there is also one other strange thing. i can activate and deactivate the baro and mag but not the acc. the acc is always active. doesnt react on aux1 or aux2. |
|
|
|
|
|
|
|
Thanks Mariano,
for the PCINT, i found this method is mentioned on the aeroquad page http://code.google.com/p/aeroquad/so...cint.pde?r=431 and this http://books.google.de/books?id=iwzo...0pcint&f=false pls see page 346, it isnt that comlicated it seems ![]() But it may be easier to change the Motor pinout acordingly a free Pin2 for PPM use? There are plenty of PWM outs free, still enogh for at least a octo and 3 servos. |
|
|
||
|
|
Heavy work in progress!
![]() I had to figure out a new way to include all set-ups & prop directions in one diagram. I hope it's understandable/readable. I've added camera roll & pich inputs on the receiver side because they are in the ppm-stream available as well. Need confirmation on this. Edit, see my blog for the latest drawing. Quote:
When this pin is changed/available, then I'll update the Mega drawings as well.Now if we could just manage all the pins, but I think we need Alex his confirmation on this one since it's a bit code changing. What we call IP (In Progress) regards B. |
|
|
|
|
|
|
As always
GREAT WORK ![]() It may make sense to add a note about D37 its not set high in the 1prebis7, but this will be only a very small change. ATM the IMU needs a bridge from 5V to Enable Pin to work. I thought the PWM 44-46 should be great for servo use, hardware and software PWM avaiable on it. The A Pins are not needed for the stabilisation i think, as 3 Servos are plenty. |
|
|
|
|
|
|
|
allright guys, it works.
the problem was this f**king failsafe function. i set the failsafe time high so this function should never get active. and that was the reasen why the motors just twitched once and why the acc was not switchable. now i used the default value for the failsafe time and shifted pin2 to pin9 and set pin2 as ppm sum input. i made a testflight with the default settings and everything works now ![]() this failsafe function has cost me one day but im happy that it works now and that the ppm sum rx works on pin2.thats how it looks now: #define PPM_PIN_INTERRUPT attachInterrupt(0, rxInt, RISING); //PIN 2 #define MOTOR_ORDER 3,5,6,9,7,8 //for a quad+: rear,right,left,front //+ for y6: 7:under right 8:under left |
|
|
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
Edit, see my blog for the latest drawing. The pinout for the Hexa-X is not conform Alex his post. It seems that the Hexa + is not turned 90degrees like I did on my Hexa but only 45. I still need to confirm this. |
|
|
|
|
|
|
here are some pics of my new mini hexa with the flyduino + ff imu.
first testflight was succesful. everything works. video should be on after weekend. motor out on pin2 was shifted to pin9. ppm sum signal is now on pin2. heres the bridge for 5V bec and ppm sum vcc. ckeck check ![]() more on http://warthox.bplaced.net |
|
|
|
|
|
|
|
Beautiful setup!
These beauties will have a great future.
Can't wait til postman delivers mine! Everything is waiting here... ![]() @ warthox: when will I see the moves I've been asking for months ago? I always hear: "Pfff, easy! Hey, no problem!" - but seen none so far... Muss man denn hier alles selber machen???
|
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Product Please let me introduce myself | jimaquo | Dock Talk | 7 | Oct 27, 2010 02:27 AM |
| Let me introduce the DEMON!!!! (Transparent covering and eliptical wing!!!) | modest-master | Sport Planes | 7 | Aug 25, 2002 11:46 PM |
| Let me introduce Angelis 280/400, Benjamin, Zombi (ARFs) | modest-master | Parkflyers | 17 | Mar 14, 2002 01:20 PM |
| Let me introduce the "NIKE" | modest-master | Electric Sailplanes | 3 | Mar 07, 2002 05:20 AM |