logo elektroda
logo elektroda
X
logo elektroda

[Solved] Reading the AC OK and Battery Low status of the DRC-60A power supply with ESP

baracha 519 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20890934
    baracha
    Level 10  

    Hey,

    How could I read the status of the outputs:
    - AC OK
    - Battery Low
    of the MeanWell DRC-60A power supply (https://www.meanwell-web.com/content/files/pdfs/productPdfs/MW/DRC-60/DRC-60-spec.pdf)?

    I would like to do this with the ESP32/ESP8266.
    I am concerned with the electrical part of this project. Which physical components do I need in order to be able to connect these outputs to the ESP?

    Thanks in advance for your answer.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • Helpful post
    #3 20891239
    maciej_333
    Level 38  
    From what can be seen in the documentation these are relay outputs. So as a colleague has pointed out sosarek e.g. when the battery is discharged there should be a short circuit between the terminals "Bat. Low". Therefore, practically nothing is needed to read the states of these outputs via, for example, the ESP32. It would therefore be sufficient to configure the GPIO lines as inputs with internal pull-up and connect e.g. one terminal of e.g. the "Bat. Low" to ground and the other to the ESP32 line in question. However, as these are relay outputs, contact damping would need to be included in the software.
  • ADVERTISEMENT
  • #4 20891258
    baracha
    Level 10  

    Thank you very much.
    So some kind of program debounce?

    Greetings
    Marcin
  • ADVERTISEMENT
  • #5 20891345
    maciej_333
    Level 38  
    baracha wrote:
    So some kind of software debounce?

    Yes, especially if changes in the states of these lines were to be detected via interrupts.
  • #7 20897374
    baracha
    Level 10  
    As suggested by colleagues on the forum, no additional components were needed to read the information from the power supply.

Topic summary

To read the AC OK and Battery Low status outputs of the MeanWell DRC-60A power supply using an ESP32 or ESP8266, it is noted that these outputs are relay-based. A simple connection can be made by configuring the GPIO lines as inputs with internal pull-up resistors. One terminal of the "Bat. Low" output should be connected to ground, while the other connects to the ESP32 GPIO pin. It is recommended to implement software debounce, especially if using interrupts to detect state changes. No additional physical components are necessary for this setup.
Summary generated by the language model.
ADVERTISEMENT