I am working on a project that uses a 12V 100Ah LiFePo4 battery and a Pixhawk. I want to use YDHC current sensors [Link below] and an Arduino as a battery monitor setup and send that value to Pixhawk via MAVROS for failsafe mode triggering.
My questions are:
Can I actually measure LiFePo4 battery percentage status using Pixhawk? I read everywhere that Pixhawk works with LiPo batteries. The discharge curves for both batteries are different, would that not affect the battery estimation logic?
Can I by any chance, skip the Arduino and use YHDC current sensors to directly send current measurements? In this case, are there any voltage sensors that are recommended for LiFePo4 batteries that I can use to provide voltage readings to Pixhawk?
Hi, thank you for responding.
So I can directly hook up any standard power module that powers Pixhawk and is connected along the mainline and I’ll get my battery status accurately as long as I configure those few parameters?
I am limited by other factors in the system that is preventing me to use those battery monitors at the moment, hence I was thinking of using a sensor like YHDC. What if I use an Arduino in between to decipher the data more easily and send that to Pixhawk from Arduino.
What type of current and voltage reading is Pixhawk expecting would be the question essentially.
I may be ignorant here, but couldn’t you just setup the battery monitor as an Analog Voltage and Current monitor. Then connect the output from your hall-effect sensor into Pin 3 and Pin 4 for the voltage sensor on the Power Connector. This assumes the output from from your hall-effect doesn’t go above 3.3V. https://ardupilot.org/copter/docs/common-pixhawk-overview.html#power
I have seen and considered Batmon before, but it’s very expensive. I would not be using all of its features to justify the cost. I have other components like an ATX on board helping with Power Distribution across different voltages.
But I think amilcarlucas answer was a relief. I still need to test if I can send values via Arduino to Pixhawk. If that works, then my problem is eliminated.
Sorry for the late reply. That’s what I thought I would do as well. I’ll test this out and notify my findings here for anyone else looking at hall effect sensors integration with their build.