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

MPPT 2420 LC "No battery temp sensor" detection does not work anymore on v21.0 #126

Open
hogthrob opened this issue Jan 16, 2022 · 2 comments

Comments

@hogthrob
Copy link
Collaborator

The calculated "open sensor" temperature on the MPP 2420 LC is around -32.5 and not below -50 as required for

if (bat_temp > -50) {

to do its magic. Was working with old firmware from 2019. Could not see the difference in the code easily, looks to me more or less identical, hence raising the issue here. I personally solved the problem by entirely disabling the sensor via an mppt_2420_lc.overlay file in the app directory:

/*
 * Copyright (c) The Libre Solar Project Contributors
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/ {
        pcb {
                version-str = "v0.10";
                version-num = <10>;
        };

        adc-inputs {
                // /delete-node/ temp-bat;
        };
};

but it would be nicer, if we get back the original automatic detection capability.

@martinjaeger
Copy link
Member

That's interesting. Previously I got values below -70°C IIRC, so I thought the -50 setting would be pretty safe. I'll double-check if the Zephyr pinctrl driver set some pull-ups or pull-downs automatically, which would be an explanation for the changed behavior.

@martinjaeger martinjaeger changed the title MPPT 2420 LC "No battery temp sensor" detection does not work anymore on v0.21 MPPT 2420 LC "No battery temp sensor" detection does not work anymore on v21.0 Jan 16, 2022
@hogthrob
Copy link
Collaborator Author

Just for the record: I tried to put a 10k resistor on the NTC connections and it does show exactly the expected 25°C on the display.

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

No branches or pull requests

2 participants