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

STM32: DS2786 Fuel Gauge #20

Closed
leocelente opened this issue Jul 17, 2021 · 2 comments
Closed

STM32: DS2786 Fuel Gauge #20

leocelente opened this issue Jul 17, 2021 · 2 comments
Assignees
Labels
CubeSat The main/first purpose of this IC is the CubeSat project based on the Genus Platform EPS
Projects

Comments

@leocelente
Copy link
Member

Driver e Documentação do Fuel Gauge DS2786

Sensor usado para monitorar a quantidade de carga presente num conjunto de baterias

Protocolo: I2C
Datasheet: PDF

Documentar

  • Funcionamento básico ( Qual o jeito mais simples de usar o sensor )
  • Funcionalidades adicionais ( Quais são as outras funcionalidades/configurações interessantes )
  • Qual a sequencia de comunicação para o uso básico ( Quais registradores )

Biblioteca

  • Fazer uma struct ds2786_tpara conter o i2c utilizado e configurações
    • Se existem muitas configurações, separar em uma outra struct ds2786_config_t
  • Fazer uma função ds2786_init que inicialize um ds2786_t
  • Fazer uma função para pegar o valor de interesse em bytes "brutos"
  • Fazer uma função para transformar os bytes brutos em valores uteis
  • Lembrar de colocar as constantes, endereço I2C, valores de configuração etc no .h como #define DS2786_<NOME>

Validação

Vish, como não dá pra simular, nem dá para comprar módulos baratos, o melhor jeito é com o 3LT, mas como ainda não está pronto e idealmente são necessárias duas pessoas com conhecimento do funcionamento do sensor (uma para escrever a biblioteca e outra para escrever o mock) é melhor esperar e reavaliar meios de testar futuramente.

@leocelente leocelente added CubeSat The main/first purpose of this IC is the CubeSat project based on the Genus Platform EPS labels Jul 17, 2021
@leocelente leocelente added this to To do in GenusZero via automation Jul 17, 2021
@github-actions
Copy link

Hey, thank you for opening your first Issue ! 🚀 Feel free to add assignees and tags. Also don't forget to read our README.md for contribution guidelines!
We'll address this issue soon ;)

@leocelente
Copy link
Member Author

Esse driver foi movido para outro issue (#24)

GenusZero automation moved this from To do to Done Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CubeSat The main/first purpose of this IC is the CubeSat project based on the Genus Platform EPS
Projects
Development

No branches or pull requests

2 participants