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

DO NOT MERGE - Charger Controller #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

DO NOT MERGE - Charger Controller #7

wants to merge 1 commit into from

Conversation

ducky64
Copy link
Member

@ducky64 ducky64 commented Jul 5, 2022

... because when you're at the race and need to repurpose the datalogger to send messages to tell the charger to go, here it is. Do not merge, this is only a PR to track changes.

I think there's a 1.2v offset on the voltage control - that is, the voltage control here needs to be set 1.2v below the actual setpoint as ready by BMS.

To change the setpoint, modify these lines:

        charger_control.voltage_be = swap16(115*10 + 7);  // 115.7V
        charger_control.current_be = swap16(10*10);  // 10A

The raw voltage is in 1/10 V units and the raw current is in 1/10 A units - hence the *10.

@ducky64 ducky64 requested a review from DC37 July 5, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant