This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Value = 0 after there is no input ?

Dear Members,

I got the value for cadence, speed and HRM, then display it to LCD,

but after they are all (the input) in 0 value,

LCD is not displaying zero, but still displaying old value, how can I reset it to 0 ?

When startup, I got extreme number, how can change it to 0 ?

in terminal when it started, how can I make it 0,

nfo> app: Computed speed value:                         3608 kph
             

nfo> app: Computed cadence value:                       4294942982 rpm

and when there is no input, how can I make it zero again ?

Thanks

  • Hi! I'm gonna need some more information to help you with this.

    You get the cadence, speed and HRM and display this on an LCD screen. What LCD screen are you using, and how is it connected to the nRF52840 DK?

    Have you based your application on a sample in the nRF5 SDK or is it written from scratch?

    and when there is no input, how can I make it zero again ?

     Could you elaborate on this question please? When there is no input from what?

    Best regards,

    Heidi

  • What LCD screen are you using, and how is it connected to the nRF52840 DK?

    I'm using I2C LCD SSD1306,

    Have you based your application on a sample in the nRF5 SDK or is it written from scratch?

    I based on sample in the nRF5 SDK,

    ...and when there is no input, how can I make it zero again ?.....

    When the wheel stop rotating, it's not showing 0 value straight away,

    When there is no input from what?

    It's from Garmin GSC10 speed and cadence sensor.

    any ideas ?

  • Okay, there's probably just a logical error in the application so the data that is being displayed on the LCD screen doesn't get updated with the sensor data from the wheel often enough. 

    Could you provide me with the application you are using so I can take a look?

Related