Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Values ​​fluctuate continuously at zero

Rank

Total Posts: 1

Joined 2020-03-25

PM

Hi everyone.
I wrote a simple program in python and the python-ant library that estimate power that I'm generating using my indoor trainer (Lemond revolution) reading data from the speed sensor installed on the trainer and cadence sensor installed on my bike.

The program works, but I have this problem, the value of speed and cadence oscillate continuosly from the value read and zero, then print again the value and after again zero, it does not do so periodically and at the same time for both the value but randomly, maybe first speed and then cadence.

For example:

Instant 1
Speed: 30Km/h
Cadence: 100rpm

Instant 2
Speed: 30 Km/h
Cadence: 0 rpm

Instant 3
Speed: 30 Km/h
Cadence: 80 rpm

Instant 4
Speed: 0 Km/h
Cadence: 100 rpm


Do you know why I have this problem?

If you want here can find the source code of the project.
https://github.com/hobbit-xD/lemondRevolution_PowerCalc

Thank you very much.