droneprojetsn2 / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Attopilot unable to correctly display or calculate voltage/current #645

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I have an APM2.  Right now it is fully functioning.  To be clear:

1.  It has 4 servos hooked up, 2 aileron (Y split cable to one channel), 1 
elevator 1 rudder.

2.  It is powered by exactly 5.1V coming from a 35A ESC with a 5V/2A BEC that 
is connected to channel 3 on the output (servo side rails)

3.  I have a 3DR radio for telemetry that works like a champ.  I can connect 
every time and get GPS love

4.  Channel 5 is hooked into Ch 8 on the input side, 3 flight modes (default 
ones suggested) all work just fine.

5.  I have never fried the board, nor damaged it.

6.  The daughter board is soldered to the APM2 motherboard.

7.  The AttoPilot current sensor (50V/90A) tiny circuit board is hooked up 
exactly as pictured in the wiki to the APM2 rails.  White wire from the current 
hole to the APM2 board, black is ground and red is the voltage.  I have double 
checked this connection a LOT.

8.  The jumper pin is connected so the entire APM2 board is powered via the 5.1 
BEC hooked into ch 3 on the output rails.

The only thing I did different in the connection is that I made two 
female-female cables that plug into the APM2 board (in the correct slots 
without connecting any wires to the 5V middle pin on the rails) and instead of 
soldering the wires to the AttoPilot current sensor I put in pins and made a 
removable connection.  This removable connection is the same connection servos 
use.  They all tested fine when I checked for continuity via my fluke.

PROBLEM:

When I load up the MP, version 1.1.87 (the latest, I love updates so I know its 
the latest and greatest), and I connect to my aircraft (after a normal boot of 
the APM2 board) the flight data HUD displays nothing (as in 0 volts and 0%).  I 
go to the configure tab and select Battery Monitor.  I go from Disabled to 
Battery Voltage (the next in the sequence).  This lights up the first input 
field for BEC voltage as measured minus .3V.  I put in 4.8V for the first field 
as the measured voltage coming out of my ESC is 5.1V.  I click on the 3rd 
option on the pulldown menu and select voltage and current.  That allows me to 
enter the measure battery voltage.  I input 11.31.  Nothing happens.  I click 
on the flight data button to see if its displaying something.  It is not.  I 
click back to battery monitor tab and the 4.8V is still there for first field, 
but calcd voltage is 0 and my measured voltage input field is also now 0.  The 
bottom two fields sometimes displays 15.7 or 27 whatever, its calcd so I cant 
mess with that(?).  The sensor selected is the 90A version on the pulldown 
menu.  That matches with what is on my AttoPilot circuit as well.

What is the expected output? What do you see instead?
I expected to see a calculated voltage close to the actual measured output of 
the battery and then see it displayed on the HUD.  What I saw was no calc'd 
voltage and nothing displayed on the HUD, not even current was correct.

What version of the product are you using? On what operating system?

MP ver. 1.1.87, using windows 7 (fully updated).

Please provide any additional information below.

I want to have Lady GaGa's lovechild.  Yes, yes I want to.  Good luck to you 
guys too.

Original issue reported on code.google.com by thearcdr...@yahoo.com on 23 May 2012 at 4:29

GoogleCodeExporter commented 8 years ago
Looking through the list of parameters list there does not seem to be a 
variable for measured voltage of the battery anywhere, yet that is an input.

Original comment by thearcdr...@yahoo.com on 23 May 2012 at 9:20

GoogleCodeExporter commented 8 years ago
Please delete all of this.  It is NOT a software issue.  I did not hook up the 
Attopilot circuit between my battery and motor, therefore, no voltage could be 
sensed as the power for the APM2 comes through a regulated 5.2V BEC from my 
ESC.  Thanks!

Original comment by thearcdr...@yahoo.com on 16 Jun 2012 at 7:37