hello all on this forum,
i have started building my quadrotor. and i am using arduimu v2 flat as a main controller.
i am very new to all those things,uptill now i got my arduimu v2 and i just programmed it with
the latest firmware 1.7ver with the parameters said in the program for testing and
i also tested it with the happykillmore sofware and is working well.
so now my question is the values which are said to be set in the firmware should i change them
since i am using only arduimu v2 flat and no magnetometer and no gps module.
and 2nd is how to do PID tuning since i dont have any idea about this.
and how the arduimu recognizes the perticular s isnal coming from transmitter.
please anyone help me out.
thanks in advance
Comments
I suggest to start with a small isolated test program that does nothing but reading the PPM values and prints out the channels to the serial port. I had similar trouble in getting the firmware to cooperate with my PPM encoder board (Spektrum2PPM from 1hoch4) - the channels were different than the one used in the code.
Here's a small (untested) test program using the ServoDecode library: http://pastebin.com/wRGXiUqw
This should help you to identify the correct channel order (and pulse widths) for your receiver.
Currently i have arduimu+v2 board with Magnetometer attached.
And i have 8 chaneel ppm encoder from diydrones store.
i am using Spektrum DX5e Radio With AR500 5 channel receiver.
i have programmed the imu with the Quad_mini20 firmware withsome parameter change.
I have connected the receiver channel to ppm encoder in following order:
Receiver PPM Encoder Aileron CH1 Elevator CH2 Throttle CH3 Rudder CH4
But in the serial monitor i am getting following values:JJ ArduIMU Quadcopter 1.20 mini PIDRx values: 1037,1037,1037,1037,0,0AN[0]:381.11AN[1]:391.98AN[2]:365.85AN[3]:506.50AN[4]:512.00AN[5]:510.00-2,4,0,0.00,20-5,7,0,0.00,14-8,9,0,0.00,14-12,10,-1,0.00,14-15,11,-2,0.00,14-17,14,-3,0.00,14-20,16,-4,0.00,14-22,18,-4,0.00,14-24,20,-13,0.00,14-25,21,-22,0.00,14-24,21,-31,0.00,14-22,19,-40,0.00,14-18,17,-48,0.00,14-13,14,-57,0.00,14-10,12,-65,0.00,14
These are the values when nothing is connected to the imu.But after connecting everything and giving PPM input alsoThe last value remains the same i.e 14.It does not shows value for all 4 channel.
I dont understand what to do.
Can you please guide me toward what change i should make in the program.I know about tuning you just tell me about other parameters to be set for mysetup.
You Help will be really great.
RegardsDhiraj
Pls reply as soon as possible.
Thanks
these are the values which i am getting in serial serial monitor of arduino
after programing arduimu v2 with the above code:
-23,-1,25,0.00,14-23,-1,25,0.00,15-23,-1,25,0.00,14-24,-1,25,0.00,14-23,-1,25,0.00,15-23,-1,25,0.00,14-23,-1,25,0.00,14-23,-1,25,0.00,14!ERR Mag data-24,-2,25,0.00,14-24,-1,25,0.00,14-24,-1,25,0.00,15-24,-1,25,0.00,14
tell me wheather the values are well or not
i am using the code one which is given in jose julio's mini quad project.
which is given here:
code for mini quad-II
ArduIMU v2 can be used as a full autopilot, but the v1.7 and v1.8 code is NOT for a full autopilot, only an AHRS system.
If you want to use is as a full autopilot solution you will need to either write your own code or find someone who has done so who is willing to share.
@Scotty: Actually, you can use the ArduIMU as a controller board (this is what I am currently working on myself): see http://code.google.com/p/easy-imu-pilot/ or http://diydrones.com/profiles/blogs/arduimu-quadcopter-part-ii
thanks