New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current sensor value jumping around (on SP F3) #2429
Comments
What are you using for your current sensor? When I flew the SP Racing F3 I used a PDB with current sensor. Once calibrated, it was very accurate. This was thru about 1.7.2 when I got rid of my last F3 FC. |
It is a CJMCU 758 with an ACS758LCB hall effect sensor. I already tried both outputs of the sensor-board with similar results. |
@Dronek this is likely due to ground loop effect. Try different ground. I had similar situation once and it was due to wrong ground used |
Thanks for the hint @DzikuVx . I already paid attention to avoid groundloops when setting everything up but it's a good idea to check and try different grounds for this sensor. |
So I checked everything for ground loops and disconnected most of the components.
The log: blackbox_log_2017-10-30_175713.TXT And the diff:
|
Is the RX transmitting telemetry? |
In my previous post I forgot to comment on the actual log. It is the "amperageLatest" curve where you can see the fluctuation. Following screenshots show transitions where throttle is raised from zero to approx. 20% and lowered from approx. 50% to zero, respectively. Obviously the amplitude of fluctuation is correlated with throttle (or motor rpm) and negligible at zero throttle. Interestingly, the fluctuation includes negative current values as well, at least at 50% throttle. I'm going to try and measure the sensor signal again with a simple scope. |
Checking with oscilloscope on the actual sensor output could say something. |
Thanks for your reply. I'm narrowing it down actually. With the scope I noticed an oscillation on the signal. My previous fault was measuring the signal with a multimeter which showed me a clean voltage. Now I built an RC low pass for the signal and the oscillation is gone, hurray !! :) However, when hooking all up to the FC, I now have a drift in the current reading. May probably have to tune the RC filter with different components. I'm closing the issue because it seems to be not iNav specific. |
Once figured out please report here what RC filter worked best for you. For reference: here are useful FAQs regarding the sensor: |
Of course. I just finished putting everything together again and recorded a log for the sake of completeness: Finally I went with a 10 uF capacitor and a 75 Ohm resistor which results roughly in a 220 Hz low pass filter. Actually I took whatever I had lying around and many different combinations worked out equally well, including low pass at some kHz. I'm using a BLHeli_S ESC on this wing, so the "noise" on the power should be at a relatively high frequency. This could be different with other ESCs where you can actually hear e.g. a 8 kHz tone when the motor is driven. |
Not sure if this is a hardware or code issue but it goes as follows:
Me and two other guys have been experiencing heavily fluctuating current reading in iNav when motor is running. This has been going on for some iNav versions (I started with 1.4) up to 1.7.3 (had no chance to try 1.8 RC yet). The fluctuation shows up in the minimosd as well as in the configurator on the bench. However, the mAh consumption reading is quite accurate so the amperage value seems to be fluctuating around the correct value.
We all use sp f3 deluxe boards on different fixed wing setups. I measured the output voltage of the current sensor and found very stable values at any given throttle position. Technically the board should therefore receive a non-fluctuating signal at the "current" adc.
Are there known issues with this particular ADC and inav for this board? Could it be a software issue?
The text was updated successfully, but these errors were encountered: