Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Indicate that SMA inverter allows contactor closing via LED #703

Conversation

lenvm
Copy link
Collaborator

@lenvm lenvm commented Dec 26, 2024

What

This PR implements turning on/off an LED pin to indicate that SMA inverter allows/does not allow contactor closing, respectively.

To make use of the implemented code, a GPIO pin must be defined in the hardware file used. For instance
#define INVERTER_CONTACTOR_ENABLE_LED_PIN GPIO_NUM_2 can be defined in hw_liligo.h when using one of the SD card pins for the LED.

Why

This PR is implemented to get visual information if the SMA inverter request to close the contactors is sent and recognized up by the battery emulator.

How

The code checks whether the SMA inverter allows contactor closing, and turns on an LED when the inverter allows contactor closing, and turns off the LED when the inverter does not allow contactor closing.

@lenvm lenvm force-pushed the feature/add-sma-contactor-endable-led-pin branch from 4e44679 to 7d9f8cf Compare December 26, 2024 16:22
Copy link
Owner

@dalathegreat dalathegreat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to seeing the HAL for STM32 DEV board!

@dalathegreat dalathegreat merged commit 52b45f0 into dalathegreat:main Dec 28, 2024
46 checks passed
@lenvm lenvm deleted the feature/add-sma-contactor-endable-led-pin branch December 29, 2024 21:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants