这是indexloc提供的服务,不要输入任何密码
Skip to content

When there's no load, the current value is not null due to the noise.  #3

@Ciusss89

Description

@Ciusss89
  1. file energy_meter/measure.c
  2. When there's no load, the current value is not null due to the noise. As a consequence when we compute the square in the function get_measure the amount error continue growing.
▸       /* !TODO: Remove dc bias, find better solution */                                                                                                                
▸       if(bias_rem)
▸       ▸       val -= BIAS_OFFSET;

#if VERBOSE >= 4
▸       /* WARNING: printf is much time expensive */
▸       printf("adc_measure: val=%d\n", val);
#endif

▸       return val;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions