#1
Posted 08 December 2011 - 01:13 AM
Is the Battery module be in a state that's close to working? Is this the way I should go in integrating this capability? Has anybody else done this on the CC?
#2
Posted 08 December 2011 - 01:29 AM
I'm using the attopilot voltage and current sensor. Code is yet to be integrated into Next.
#3
Posted 08 December 2011 - 01:58 AM
What I would like it some sort of battery gauge on the GCS and/or at least a warning when the battery goes below a certain level.
#4
Posted 08 December 2011 - 02:14 AM
#5
Posted 08 December 2011 - 09:28 AM
I bought two ACS715 current sensor and intend to do the first method, but not in the near future :-).
#6
Posted 08 December 2011 - 02:00 PM
D-Lite, on 08 December 2011 - 09:28 AM, said:
I bought two ACS715 current sensor and intend to do the first method, but not in the near future :-).
Actually, the last 4 PWM input pins support ADC, so I plan to use the last 2 for the purpose. There's some extra components on those lines (resisters, capacitors, and diodes, I think), so I need to make sure that they wont interfere, but I don't think they will.
I don't mind changing the code to remap the pins. On my Vtail I am using 4 of the PWM input ports as outputs. Of course I looked at the documentation AFTER I wired it, so I wired it to outputs 2,3,4,5. The PPM+servo mode remaps 4 of the inputs as outputs, and I had planned to just use that, but it remaps pins 3,4, 5,6, so I ended up changing the code anyway!
I would really like to have another configuration screen in the GCS that allows one to assign a set of functions to each of the pins on the CC board individually. The flight code is very flexible, and almost supports that now, but it would take some more significant changes to the GCS.
#7
Posted 08 December 2011 - 10:56 PM
#8
Posted 09 December 2011 - 08:31 AM
Reddog, on 08 December 2011 - 10:56 PM, said:
The problem here is not so much I2C. It's a bus system where you can simply connect several devices to the same I/O lines. The problem with I2C on CC is, that it shares the connector and I/O lines with one of the USARTs. If you need two USARTs, you cannot use I2C any more. Only solution to work around this would probably be an USART controller that hooks up to I2C but this doesn't make too much sense in my opinion. Or find a GPS or telemetry device that uses I2C instead of USART.
#9
Posted 09 December 2011 - 08:51 AM
D-Lite, on 09 December 2011 - 08:31 AM, said:
Funny you mention this. I actually thought about implementing the I2C interface for the Ublox GPS. Perfect for the low frequency updates but seems to be a lot of work that may not be necessary with the Revo comming up.
#10
Posted 09 December 2011 - 09:21 PM
Scott, on 09 December 2011 - 08:51 AM, said:
I also thought about this already but the I2C pins on my GPS modules are not easily accessible. And the I2C layer for the GPS would have to be re-written for every manufacturer. Apart from that, it's a good option and not too much work, I think.
#11
Posted 17 December 2011 - 03:37 PM
//------------------------- // Battery ADC //------------------------- #define PIOS_BATTERY_VOLTAGE_CHANNEL 4 #define PIOS_BATTERY_CURRENT_CHANNEL 5
There it no support in the GCS to change battery settings, so you need to edit the settings in the object browser (Setting/FlightBatterySettings). When you get these setup correctly, the battery status will show on the PFD, and you will also see warning/errors when the battery goes below your preset thresholds.
I started a review to get my updates merged into the next branch.
#12
Posted 27 December 2011 - 10:11 PM
object name="FlightBatterySettings" id="0x8F3E8B2">
<field name="Type" values="LiPo"/>
<field name="NbCells" values="3"/>
<field name="Capacity" values="2200"/>
<field name="VoltageThresholds" values="9.8,9.2"/>
<field name="SensorType" values="None"/>
<field name="SensorCalibrations" values="1,1"/>
</object>Edited by Harbormaster, 27 December 2011 - 10:11 PM.
#13
Posted 28 December 2011 - 01:04 AM
Harbormaster, on 27 December 2011 - 10:11 PM, said:
I believe that you are correct that these are values that a user will want to set eventually, but not currently.
The holdup currently on the battery module is that there is no standard interface for reading battery stats on the CC. I wired mine through an ADC channel, which is not ideal because the ADC channels are used by the gyros on the CC, and reading the gyros fast and accurately is critical to stabilization.
Others have used an ADC that sits on the I2C bus, which is probably better, and I may switch to doing that, but it's still not standard. There is some work being done on a generic I2C driver that would feed values of the I2C bus to the GCS. I haven't looked at in in detail, but this may be a way to make it configurable.
In any case, I think it's important to be able to monitor battery status via the GCS, and I hope this will eventually be easy for a user to configure.
#14
Posted 28 December 2011 - 01:41 AM
Also tagged with Battery, Modules, ADC
CopterControl Users →
MultiRotors →
Rookie FPV QuestionsStarted by J Regulator, 09 Apr 2012 |
|
|
||
CopterControl Users →
MultiRotors →
Choosing Perfect Electric SetupStarted by c2po, 30 Jan 2012 |
|
|
||
Misc →
For Sale →
Brand LiPo Battery - Sky Lipo 5000mAh 18.5V 40C - $50 ShippedStarted by YouMadeMeDoIt, 26 Jan 2012 |
|
|
||
CopterControl Users →
MultiRotors →
Question about Telemetry, CC Board, and Battery PowerStarted by YouMadeMeDoIt, 16 Jan 2012 |
|
|



United States
Australia
Germany








