DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post Reply
User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi,

today I have a video your you: http://www.youtube.com/watch?v=lWO9e1F_LeE

Although the quality is not on the highest level, this small video should give you an idea on what's possible with the new DIVIDE et IMPERA! Rev2.

Here's the feature list (new to the Rev2):
- onboard 5V BEC (1A max) --> flight controller is directly powered by 2S - 4S LiPo
- 3.3V LDO
- high-quality integrated Logic-Level-Converter (LLC)
- LiPo-Voltage divider for 2S/3S/4S, selectable via solder jumpers
- new connector for 3.3V IMUs (i.e. FreeIMU, miniWii or other 3.3V sensor/IMU)
- can be used as 'carrier/feature-board' for miniWii
- 3-pin connector for Spektrum Sat
- 2 integrated LED drivers (700mA max. each!)

One of the LED drivers is used as LiPo-Monitor (A3), the other one as Status output (D13). The cathodes of your led stripes were connected to the board.

The DIVIDE et IMPERA! Rev2 can be configured to use the camera trigger servo connector (CAM-T) for controlling the Status LED (now extra wiring needed; done by solder jumper).
The video shows you how to use the drivers with RGB-LED stripes for flight mode signalization (schematics will be available once board is on sale!) using a simple PWM on CAM-T. The third color is connected to the LiPo-Monitor driver -> flashes the strip. Only a minor code add-on is needed to get this result!

The board should be available at http://www.flyduino.net/in a few days :D
aBUGSworstnightmare

P.S. Here are some pictures of possible configurations
Attachments
DIVIDE et IMPERA! Rev2 Bottom view: SMD parts only!
DIVIDE et IMPERA! Rev2 Bottom view: SMD parts only!
DIVIDE et IMPERA! Rev2 with BMA020 + ITG3205 + ATAVRSBPR1
DIVIDE et IMPERA! Rev2 with BMA020 + ITG3205 + ATAVRSBPR1
DIVIDE et IMPERA! Rev2 with BMA020 and ITG3205
DIVIDE et IMPERA! Rev2 with BMA020 and ITG3205
DIVIDE et IMPERA! Rev2 with FreeIMU 0.3.5MS
DIVIDE et IMPERA! Rev2 with FreeIMU 0.3.5MS

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi,

just added a video to youtube with a better quality:

http://www.youtube.com/watch?v=4gPxaXOFmdk

aBUGSworstnightmare

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi,

here's the connection diagram for the LED stripes.

aBUGSworstnightmare
Attachments
DIVIDE et IMPERA! Rev2 connection diagram
DIVIDE et IMPERA! Rev2 connection diagram

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi,

so, here's the code for using the LED strings for flight mode signalization. The solder jumper JP9 needs to be connected to 2-3 (LED-OUT controlled by CAM-T; also printed on the boards silkscreen for reference).

1. Include CamPinPWM.ino to your sketch. You can select the displayed color via the variable 'duty_time'. Look at the example and try it out.

2.) Open your sketch and look for the setup()-routine

Code: Select all

...
void setup() {
  SerialOpen(0,115200);
  LEDPIN_PINMODE;
  POWERPIN_PINMODE;
  BUZZERPIN_PINMODE;
  STABLEPIN_PINMODE;
  POWERPIN_OFF;
  initOutput();
  readEEPROM();
  checkFirstTime();
  configureReceiver();
  initSensors();
  previousTime = micros();
  #if defined(GIMBAL)
..


and change this to:

Code: Select all

...
void setup() {
  SerialOpen(0,115200);
  LEDPIN_PINMODE;
  POWERPIN_PINMODE;
  BUZZERPIN_PINMODE;
  STABLEPIN_PINMODE;
  POWERPIN_OFF;
  initOutput();
  readEEPROM();
  checkFirstTime();
  configureReceiver();
  initSensors();
  //=========================== PWM FLIGHT MODE SIGNALIZATION
  initCamPinPWM();
  //======================================================END
  previousTime = micros();
  #if defined(GIMBAL)
..


3.) navigate to the main-loop (in the same file) and look for

Code: Select all

...
    for(i=0;i<CHECKBOXITEMS;i++) {
      rcOptions[i] = (
      ( (rcData[AUX1]<1300)    | (1300<rcData[AUX1] && rcData[AUX1]<1700)<<1 | (rcData[AUX1]>1700)<<2
       |(rcData[AUX2]<1300)<<3 | (1300<rcData[AUX2] && rcData[AUX2]<1700)<<4 | (rcData[AUX2]>1700)<<5) & activate1[i]
      )||(
      ( (rcData[AUX3]<1300)    | (1300<rcData[AUX3] && rcData[AUX3]<1700)<<1 | (rcData[AUX3]>1700)<<2
       |(rcData[AUX4]<1300)<<3 | (1300<rcData[AUX4] && rcData[AUX4]<1700)<<4 | (rcData[AUX4]>1700)<<5) & activate2[i]);
    }
...
   


change this to:

Code: Select all

--
    for(i=0;i<CHECKBOXITEMS;i++) {
      rcOptions[i] = (
      ( (rcData[AUX1]<1300)    | (1300<rcData[AUX1] && rcData[AUX1]<1700)<<1 | (rcData[AUX1]>1700)<<2
       |(rcData[AUX2]<1300)<<3 | (1300<rcData[AUX2] && rcData[AUX2]<1700)<<4 | (rcData[AUX2]>1700)<<5) & activate1[i]
      )||(
      ( (rcData[AUX3]<1300)    | (1300<rcData[AUX3] && rcData[AUX3]<1700)<<1 | (rcData[AUX3]>1700)<<2
       |(rcData[AUX4]<1300)<<3 | (1300<rcData[AUX4] && rcData[AUX4]<1700)<<4 | (rcData[AUX4]>1700)<<5) & activate2[i]);
    }
   
    //--------------------------------------- PWM FLIGHT MODE SIGNALIZATION
    setDutyTime();
    //------------------------------------------------------------------END
    ..


4.) Compile/upload it and your done!

Have fun!
aBUGSworstnightmare
Attachments
CamPinPWM.zip
CamPinPWM.ino is used for flight mode selection/display with the DIVIDE et IMPERA! Rev2 LED-drivers
(1007 Bytes) Downloaded 185 times

Kayle
Posts: 141
Joined: Sun Feb 13, 2011 6:45 pm

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by Kayle »

Hi,

when i wan´t to use only the BEEPER BOX i try this:

if(rcOptions[BOXBEEPER])

Is this correct ?

Kayle

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi Kayle,

yes, this will check if BEEPER BOX is active. But this will not turn on/off any I/O.

you need to use something like:

Code: Select all

if(rcOptions[BOXBEEPER])
   BUZZERPIN_ON;
else
   BUZZERPIN_OFF;


This will turn D8 ON if TRUE (BOXBEEPER active) or OFF if FALSE (but only if you didn't define RCAUXPIN8).

Rgds
aBUGSworstnightmare

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi,

added the functional block description.

aBUGSworstnightmare

Image

Meedoosa
Posts: 4
Joined: Sat Dec 22, 2012 3:22 pm

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by Meedoosa »

I can not run it with Multiwii 2.3 release candidate. What is the problem?

celulari
Posts: 1
Joined: Sun Feb 02, 2014 4:36 pm

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by celulari »

Sorry for the necropost.
I have a v1 divide et impera board, and i'm lovin' it... But i would like to buy te v2, but has been pulled out of the flyduino store. Where i can find it???

Thanks!

User avatar
aBUGSworstnightmare
Posts: 115
Joined: Mon Jun 27, 2011 8:31 pm
Location: Munich, Germany

Re: DIVIDE et IMPERA! Rev2 Universal Flight Controller

Post by aBUGSworstnightmare »

Hi celulari,

I'm sorry :cry: but Paul from flyduino decided to stop selling the board!
So, there's no possibility to buy a 'factory new' one.

Kind regards
aBUGSworstnightmare

Post Reply