Skip to content

[BUG] VEML7700 Does Not Provide Readings After Power Cycle #268

Description

@Mikefly123

Summary

For some reason, once the VEML7700 is initialized, if we turn the solar panel face off and on again it just gives us 0 readings. See the attached example:

>>> xy_panel.get_light_level()
4980
>>> xy_panel.disable_load()
{"time": "2000-01-01 00:51:55", "level": "DEBUG", "msg": "XY solar panel load switch pin set to False"}
{"time": "2000-01-01 00:51:55", "level": "DEBUG", "msg": "XY solar panel load switch disabled"}
True
>>> xy_panel.enable_load()
{"time": "2000-01-01 00:51:57", "level": "DEBUG", "msg": "XY solar panel load switch pin set to True"}
{"time": "2000-01-01 00:51:57", "level": "DEBUG", "msg": "XY solar panel load switch enabled"}
True
>>> xy_panel.get_light_level()
0

Steps to reproduce

  1. Turn on face
  2. Initialize VEML7700
  3. Turn off face
  4. Turn on face
  5. Poll VEML7700 for light data

Environment

V5b Flight Controller Board running pysquared_version = mike-252-bring-back-big-data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions