Skip to content
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

Power Manager #274

Open
hhenry01 opened this issue Mar 9, 2024 · 0 comments
Open

Power Manager #274

hhenry01 opened this issue Mar 9, 2024 · 0 comments
Labels
can transceiver Pertaining to the Network Systems CAN Transceiver enhancement New feature or request net Network Systems team

Comments

@hhenry01
Copy link
Member

hhenry01 commented Mar 9, 2024

Purpose

Conserve power when batteries are low on charge.

Description

  • The mainframe/software will be a central node in the CAN network for power management
  • We currently receive battery voltage and current data from CAN
  • We will define a CAN command structure to tell ELEC's devices to enter a low power mode
  • (maybe) publish to a ROS topic telling software to enter a low power mode
    • Basically a mode that lowers the frequency of operations
    • May not be worth it

Do not just define a static threshold value for switching to low power mode and back, as it can lead to frequent flip-flopping between states.
For example, if we set 20% as a static threshold, and drop below 20%:

  • We enter low power mode
  • Power consumption goes down
  • It's now immediately possible for the batteries to charge faster than they discharge
  • We charge above 20% and exit low power mode
  • Power consumption increases
  • It's immediately possible for batteries to discharge faster than they charge
  • We drop below 20% and repeat
    To prevent this fluctuation, it's necessary to have some form of hysteresis/delay after switching states to prevent us from switching back after a short period of time. Potential solutions:
  • Temporarily raise the switching threshold after dropping to low power mode such that we need to charge to a higher power level before switching out of low power mode, and restore the original threshold after exiting low power mode
  • Have a set time delay after switching into lower power mode before we can switch back out. Not sure if the inverse is a good idea or not.

Resources

@hhenry01 hhenry01 added enhancement New feature or request net Network Systems team can transceiver Pertaining to the Network Systems CAN Transceiver labels Mar 9, 2024
@samdai01 samdai01 self-assigned this Mar 23, 2024
@samdai01 samdai01 removed their assignment May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can transceiver Pertaining to the Network Systems CAN Transceiver enhancement New feature or request net Network Systems team
Projects
Status: Backlog
Development

No branches or pull requests

2 participants