Search found 18 matches

by Batperson
Sun Jan 24, 2016 11:31 pm
Forum: Ideas
Topic: Resting and actual battery voltage
Replies: 9
Views: 8668

Re: Resting and actual battery voltage

Hi Hamburger, In LCD telemetry, VBATNOMINAL is only used to show the battery charge as a proportion of a full charge so it will still fluctuate as the motor load varies. I see it is also used in Output.cpp if VOLTAGEDROP_COMPENSATION is defined. I couldn't find any documentation or discussion about ...
by Batperson
Wed Jan 20, 2016 10:41 pm
Forum: Ideas
Topic: Resting and actual battery voltage
Replies: 9
Views: 8668

Re: Resting and actual battery voltage

Hi, Currently, under normal load if my VBAT reads 10.7 during flying then it will be 11.1 when at rest. I understand this is normal, but I would like to know the "at rest" voltage while flying as well as the actual voltage, and have the option of using it for alarms, etc. Hamburger, when y...
by Batperson
Tue Dec 01, 2015 6:17 am
Forum: Software development
Topic: Heading > 180 degrees with magnetic declination
Replies: 1
Views: 2407

Heading > 180 degrees with magnetic declination

Hi, I noticed that if you configure a magnetic declination, positive headings extend beyond 180 degrees. Eg the declination where I am is 19.4 degrees and if I can have a heading of up to 199 degrees before it becomes negative. This is occurring because the magnetic declination is simply added to th...
by Batperson
Sun Nov 01, 2015 10:12 am
Forum: Ideas
Topic: Resting and actual battery voltage
Replies: 9
Views: 8668

Re: Resting and actual battery voltage

Well, I have implemented some code to compare the voltage at idle with the voltage after throttling up, and divide the difference by the number of amps. I am still testing it, but so far it i able to derive the resting battery voltage accurately to within around .2 of a volt. I will try to improve o...
by Batperson
Thu Oct 22, 2015 2:37 am
Forum: Ideas
Topic: Resting and actual battery voltage
Replies: 9
Views: 8668

Resting and actual battery voltage

Hi, I am finding that my battery voltage sags around 1 volt at half throttle, although performance is OK and I get runtimes of at least 10 minutes. As a result, the battery alarm is not very useful for me. It seems to me that if the internal resistance of the battery pack is known and I am measuring...
by Batperson
Sat Aug 01, 2015 6:33 am
Forum: Software development
Topic: MultiWii OSD - MWOSD
Replies: 873
Views: 344261

Re: MultiWii OSD - MWOSD

Hi, I managed to set up a current sensor for my MW2.4 flight controller and got reasonably accurate values in MultiWiiGui, but only 0 in MWOSD. I also noticed someone was having a similar problem earlier in the thread. I think I may have found the culprit Line 794 in MW_OSD.ino has: amperage = MWAmp...
by Batperson
Tue Jun 16, 2015 1:24 am
Forum: Shields, boards and sensors
Topic: problem with rotated FC but MAG still horizontal
Replies: 2
Views: 1976

Re: problem with rotated FC but MAG still horizontal

Find the place in Sensors.cpp with the following: #if defined(SENSORS_TILT_45DEG_LEFT) int16_t temp = ((imu.magADC[PITCH] - imu.magADC[ROLL] )*7)/10; imu.magADC[ROLL] = ((imu.magADC[ROLL] + imu.magADC[PITCH])*7)/10; imu.magADC[PITCH] = temp; #endif #if defined(SENSORS_TILT_45DEG_RIGHT) int16_t temp ...
by Batperson
Thu Jun 04, 2015 4:29 am
Forum: Connecting elements
Topic: Problem cant' connect BT module to Multiwii pro w GPS!
Replies: 4
Views: 2377

Re: Problem cant' connect BT module to Multiwii pro w GPS!

I have been using a Hobbyking (Hextronik) bluetooth module on Serial port 1 on the HK red board, so it appears you are not limited to using Serial 0 - at least on MW2.4. Possibly older versions of Multiwii had that limitation? However problems do seem to occur if you have too many devices drawing po...
by Batperson
Thu Jun 04, 2015 4:19 am
Forum: Connecting elements
Topic: Multiwii brownout on Bluetooth connection
Replies: 4
Views: 2282

Re: Multiwii brownout on Bluetooth connection

Since Bluetooth serial communication was working fine on Serial 1, the only issue being apparent brown-outs on the OSD, it was obviously a power supply problem and not a port/software problem. I tried connecting the VCC and GND connections on the Bluetooth module directly to my 5V regulated power su...
by Batperson
Tue May 26, 2015 3:33 am
Forum: Connecting elements
Topic: Multiwii brownout on Bluetooth connection
Replies: 4
Views: 2282

Re: Multiwii brownout on Bluetooth connection

No, I'm not using serial 0 I'm using serial 1. I also had to solder header pins, but the BT module works fine. It's only when I have the MinimOSD and GPS running at the same time, and I establish a Bluetooth connection, that things go haywire.
by Batperson
Mon May 25, 2015 11:33 pm
Forum: Connecting elements
Topic: Multiwii brownout on Bluetooth connection
Replies: 4
Views: 2282

Multiwii brownout on Bluetooth connection

Hi, I am using a HK Multiwii Pro (red board) running a Bluetooth module, GPS and MinimOSD connected to each of the 3 serial ports. [EDIT] The board actually has 4 ports, I am using the 3 at the top of the board - serial port 1 to 3. I am seeing what appears to be a brownout when I establish a Blueto...
by Batperson
Thu May 14, 2015 12:34 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

The changes to def.h had the same effect as when I commented out the interrupt code in RX.cpp. A value of 0 from analogRead(). This was constant when powering the flight controller from my battery, but fluctuated up to around 25 when powered from the USB. For some reason the USB seems to affect the ...
by Batperson
Wed May 13, 2015 11:29 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

Yep I will give that a try and report back. If all else fails I'll write a sketch that does nothing but analogRead() off A14 and see if I can get sensible results. Just for confirmation, 33.4mV *should* be detected by the Arduino right? I understand analogRead() has a resolution of 4.9mV per unit so...
by Batperson
Wed May 13, 2015 1:12 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

Well, pinRead(PSENSORPIN, INPUT) does not do it. Nor does trying to disable the pullup resistor using digitalWrite(PSENSORPIN, HIGH). If I comment out the setup code in RX.cpp like this: /* #if defined(MEGA) DDRK = 0; // defined PORTK as a digital port ([A8-A15] are consired as digital PINs and not ...
by Batperson
Tue May 12, 2015 11:07 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

So, my conclusion is that your board is not very compatible to the multiwii standard. Yes, I was disappointed to find that there are 8 analog pins I could possibly use for something that I don't have access to. But I do have pins A14 and A15 free as I am only using 6 channels from my radio. You can...
by Batperson
Tue May 12, 2015 11:37 am
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

That seems to be the explanation for your problems. A8..A15 are used for RX inputs. Can't you use A0..A7? Not without directly soldering to the chip, which I don't think my soldering skills are up to. The HK Multiwii Pro board doesn't expose pins A0 - A7 which is frustrating. Do you know if there i...
by Batperson
Mon May 11, 2015 11:27 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

Re: HK Multiwii Pro with 3DR clone 90A current sensor

Yes, I experimented with PINT2mA and PSENSORNULL. I think I could find the correct values, but at the moment analogRead() value on A14 isn't what it should be according to the voltage going to A14, and doesn't vary as much as it should when the current flow varies. I wonder if there is something int...
by Batperson
Mon May 11, 2015 3:08 pm
Forum: Shields, boards and sensors
Topic: HK Multiwii Pro with 3DR clone 90A current sensor
Replies: 10
Views: 4253

HK Multiwii Pro with 3DR clone 90A current sensor

Hi, I am attempting to use a clone APM power module's current sensor with the HK Multiwii Pro board and not having much success. Since the A2 pin is not exposed I have put this in my config.h: #define OVERRIDE_PSENSORPIN A14 And I have added this to line 442 of Multiwii.cpp (2.4) so that I can see t...