logo elektroda
logo elektroda
X
logo elektroda

ESP8266-12 - Voltage divider for ADC input - how to select to work with ACS712?

darek_78 3357 4
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 15417108
    darek_78
    Level 8  
    I want to measure on the ADC from the ESP8266-12 module the voltage provided by a Hall current sensor - specifically an ACS712 20A with 100mA sensitivity.

    ESP8266-12 - Voltage divider for ADC input - how to select to work with ACS712?

    The ACS712 module as it is known operates on a 5V bus. There is 2.5V on the middle pin of the ACS712 which is supposed to lead to the analogue input. On the ESP8266-12, on the other hand, we have an input in the range from 0 to 1V where the input itself operates on a 10-bit converter. That is, the possible logic states for this input range from 0-1024 depending on the voltage.

    To make the voltage on the analogue input match, I made a voltage divider using resistors.


    I made a voltage divider using resistors R1 (220k) and R2 (100k) which gives a voltage of 1/5. I now have about 0.5 V at the output, but unfortunately the signal looks terrible. It completely misses the current waveform that the circuit originally delivers before applying the divider.

    What can I do to improve this signal? Will lower resistors help? I also have a problem with the voltage filtering because I sometimes get peaks that deviate by 1/10th of the scale of the converter. I try to filter them digitally by writing functions in C. Unfortunately I am not happy with the quality of the measurements using the divider.
  • ADVERTISEMENT
  • Helpful post
    #2 15417232
    Piotr Piechota
    Level 22  
    darek_78 wrote:
    (...)
    I made a voltage divider with resistors R1 (220k) and R2 (100k) which gives a voltage of 1/5. I now have about 0.5 V at the output, but unfortunately the signal looks terrible. It completely misses the current waveform that the circuit originally delivers before applying the divider.

    What can I do to improve this signal? Will lower resistors help? (...)


    will help - give resistors 10x smaller and add a simple rc filter.
  • ADVERTISEMENT
  • #3 15418002
    darek_78
    Level 8  
    Actually it is better, but the bandwidth unfortunately floats a bit. I am wondering how to make RC filters? I now have a divider R1 (20k) and R2 (5k).

    If anyone has experience with waveform shaping for this circuit then please advise.
  • ADVERTISEMENT
  • #4 15418042
    Anonymous
    Anonymous  
  • #5 15424189
    darek_78
    Level 8  
    What amplifier would be best for this type of application? I have no experience with these circuits yet.

    This is supposed to be a subtraction amplifier I understand?
ADVERTISEMENT