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 831 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20890934
    baracha
    Level 10  
    Posts: 12

    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
  • #2 20891227
    sosarek

    Level 43  
    Posts: 83875
    Help: 9318
    Rate: 15430
    There should be a short circuit when the action is triggered.
    Company Account:
    Z
    Pka, Poznań, 60-850
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • Helpful post
    #3 20891239
    maciej_333
    Level 38  
    Posts: 4211
    Help: 486
    Rate: 1573
    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.
  • #4 20891258
    baracha
    Level 10  
    Posts: 12

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

    Greetings
    Marcin
  • ADVERTISEMENT
  • #5 20891345
    maciej_333
    Level 38  
    Posts: 4211
    Help: 486
    Rate: 1573
    baracha wrote:
    So some kind of software debounce?

    Yes, especially if changes in the states of these lines were to be detected via interrupts.
  • ADVERTISEMENT
  • #7 20897374
    baracha
    Level 10  
    Posts: 12
    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.
Generated by the language model.
ADVERTISEMENT