CarbonV
(Person)
September 29, 2024, 2:59pm
1
Dear All,
I do not seem to be able to get any power measurement from my IFlight Blitz Whoop F7 AIO. I copied all settings from the ardupilot wiki here: WIKI .
Could it be the pin setup on the wiki is wrong or should I assume my board is broken?
Anything else I can try?
Thanks in advance!
CarbonV
andyp1per
(Andyp1per)
September 30, 2024, 7:47am
2
It’s possible the pin assignment is wrong - worth checking the hwdef against what betaflight has
CarbonV
(Person)
September 30, 2024, 11:43am
3
Hi Andy,
Thanks for your reply! I’ve been digging in the Githubs and the following is what I found:
The Wiki says the following:
BATT_MONITOR =4
BATT_VOLT_PIN 12
BATT_CURR_PIN 13
BATT_VOLT_MULT 10.9
BATT_AMP_PERVLT 50
While in the HWDef on github I found the following:
PC3 BATT_VOLTAGE_SENS ADC1 SCALE(1)
PC2 BATT_CURRENT_SENS ADC1 SCALE(1)
define default battery setup
define HAL_BATT_VOLT_PIN 13
define HAL_BATT_CURR_PIN 12
define HAL_BATT_VOLT_SCALE 10.9
define HAL_BATT_CURR_SCALE 50
define HAL_BATT_MONITOR_DEFAULT 4
This is what I found on the BF github :
#define ADC_VBAT_PIN PC3
#define ADC_RSSI_PIN PC5
#define ADC_CURR_PIN PC2
At the least the wiki does not seem to match the HWDef github, I don’t really know what to do with that info. The PIN definition does seem to follow the ADC definition from Betaflight however it defines “_SENS” variable while underneath the pins are defined as HAL.
Any advice?
Kind regards,
CarbonV
andyp1per
(Andyp1per)
September 30, 2024, 7:31pm
4
So on that basis the hwdef is correct and the wiki is wrong. It should be:
BATT_MONITOR =4
BATT_VOLT_PIN=13
BATT_CURR_PIN=12
CarbonV
(Person)
October 1, 2024, 3:17pm
5
Dear Andy,
Was just able to test this and it does do the trick for the voltage! Is is possible for me to update the WIKI to reflect this?
Kind regards,
CarbonV
andyp1per
(Andyp1per)
October 1, 2024, 3:37pm
6
@hwurzburg there is a bug in the wiki
hwurzburg
(Henry Wurzburg aka ATXHELI)
October 1, 2024, 3:53pm
7
yeah we both missed that the readme.md (which I create the wiki from) was wrong on those pins when we reviewed it…will fix the wiki later today
1 Like