How to measure AC & DC Current using Hall Effect Current Transformer HSTS016L and Arduino UNO

Поделиться
HTML-код
  • Опубликовано: 6 авг 2020
  • This video shows how we can simply measure AC and DC current using Hall Effect Current Transformer HSTS016L sensor. Many people going a hard way to measure AC current typically using a non invasive Current Transformer and a signal converter module while using typical ACS712 Hall Effect module to measure DC current. The Hall Effect Current Transformer not only is a 2 in 1 sensor but also has better accuracy and also safety without need to physically connect the measurement wire. It also can be used to measure direction of DC current and AC current (if there is a AC Voltage sensor).
    Solarduino blog page : solarduino.com/how-to-measure...
    We would need readers like you to support us in order to keep growing. You can support us in the following ways :
    1) Donate & fund raising
    2) Purchase components from our Aliexpress Affiliate links
    3) Like & Share videos & posts
    Aliexpress Affiliate Links :
    Aliexpress Mainpage - s.click.aliexpress.com/e/_d6XZp98
    1) Peacefair DC Energy Meter - s.click.aliexpress.com/e/DWRlRbHQ
    2) Arduino Uno - s.click.aliexpress.com/e/N6VvX6K8
    3) LCD Display Shield - s.click.aliexpress.com/e/5IiKQFs8
    4) Hall Effect Transformer - s.click.aliexpress.com/e/t2AsNk7W
    5) Expansion Shield - s.click.aliexpress.com/e/rZsmmKJA
    6) Arduino Starter Kit - s.click.aliexpress.com/e/_d71x0Cg
    7) Ferrule Lugs & Crimper Sets - s.click.aliexpress.com/e/nX0FGyuC
    8) Terminal Plier Set - s.click.aliexpress.com/e/_d6ozNbf
  • НаукаНаука

Комментарии • 47

  • @bernym4047
    @bernym4047 Год назад

    Just what I need for my energy measuring project. Thank you.

  • @9scorpions
    @9scorpions Год назад

    Thanks for this video! For the low end amperage (10A version), what is the lowest amperage you can read? You mentioned in your article for the 50A version, if it dips below 0.5A...then it will set the ADC value to 0. For the 10A edition, does it push the threshold lower? Can you measure current such as 0.25A or 0.10A? Looking at all the datasheets that I can find on this sensor, I cannot see this value documented. Again, thanks for sharing this with your detailed right up. Seems there is not much on the market in regards to low current (mA) DC current sensors and measuring in general.

  • @jslonisch
    @jslonisch Год назад +1

    These work well and I have found that they will work on 3.3V supply. 5V is not essential. So if you have a 3.3V board like the Arduino MKR series, you can power this sensor from the Vcc pin which is supplied at 3.3V from the rechargeable 3.7V Li-Po battery. It doesn't matter that you don't have 5V. It will work fine.
    Obviously you need to be careful that your 3.3V supply is strong enough to power the sensor. The MKR board's is strong enough.

  • @fakhrulamri191
    @fakhrulamri191 3 года назад

    Hello sir, can this sensor use asa current sensor at end to end distribution line?

  • @tablatronix
    @tablatronix 3 года назад

    Does anyone know if they make a DIN mount bracket for these?

  • @tharonerussianman
    @tharonerussianman 10 месяцев назад

    if we are using 3 of these, can we connect the reference cable all to the same analog pin?

  • @K2itto
    @K2itto 4 месяца назад

    I'm using an ESP32 I changed the suuply voltage to 3300 and changed FinalRMSCurrent's 1023(arduino's 10 bits) to 4095(ESP's 12 bits) .. both just won't give me accurate metering, on idle I get 1.xxA not 0A like in the arduino.
    any help would be appreciated.

  • @iotan09
    @iotan09 Год назад

    sir, thanks for sharing, but when Current DC 0A lcd show 1.8A, not 0A
    but, when we measure upper 1.3A, it will measure good enough

  • @STOP57oO
    @STOP57oO 2 года назад

    Hello sir, how can we connect the arduino - to three CTs - from each CT we connect them with a line in the electrical panel for a house ?
    what CT specification do we need to do this with 60 Hz and how ? i tried to search more but your video is the closest to our idea :D

  • @GolDROGER-sn5bi
    @GolDROGER-sn5bi 2 года назад

    Please what is the minimum current that we can mesure with this current sensor !?

  • @kevinhoublon8630
    @kevinhoublon8630 Год назад

    Hello, great video 😄.
    What is the name of the music played during the first minute of the video?
    Thank you in advance 😉.
    Happy new year ☺️.
    Cordially.

  • @madhura305
    @madhura305 7 месяцев назад

    hi, firstly great video. i need help with how exactly should i measure the ac current without the help of arduino. At Vout we do get some voltage how exactly to validate it according to the current. please do help
    thanks in advance

  • @Reudiga
    @Reudiga Год назад

    Did someone has ESPHome running with that sensor and can share code please?

  • @diyk-h-m2423
    @diyk-h-m2423 Год назад

    Can we use HSTS016L for measure DC current from Sola DC sir
    Thank you for share video

  • @JeffZiegler76
    @JeffZiegler76 3 года назад

    If connecting multiple HSTS016L of the same value, can they share the same voltage ref pin?

    • @solarduino1374
      @solarduino1374  3 года назад

      Hi, yes you can. Voltage measurement technically able to be connected in parallel.

  • @t1d100
    @t1d100 11 месяцев назад

    Anyone know where to find ATtiny85 code? Please and thank you. For DC current.

  • @vaibhavxyt
    @vaibhavxyt 3 года назад

    Can we use this for solar and battery power moniter with nodemcu?

    • @solarduino1374
      @solarduino1374  3 года назад

      Hi, yes, bidirectional current meter is suitable for power monitoring for solar & battery application

  • @alokverma7327
    @alokverma7327 3 года назад

    Hi,
    I want to measure DC current of range 120 Amp. So, selected 150 Amp Transformer. Will you suggest any changes in circuit and code? Please, advice. Its an urgent. Thanks

    • @solarduino1374
      @solarduino1374  3 года назад +2

      Hi, the code is applicable to Hall Effect CT of any ampere rating. You just need to change based on the sensitivity of your CT that you purchase (like in the video)

    • @alokverma7327
      @alokverma7327 3 года назад

      @@solarduino1374 Thanks for the reply.

  • @surenbono6063
    @surenbono6063 Год назад

    ..does this mean we need not to wire ammeter in series anymore?...and make the microcontroller measure DC wattage with voltage combo ..I need one of these since the available clamp meter only measure AC current, AC voltage & DC voltage only ...this fills in the missing link with voltage combo you could measure wattage as well ..DC Watt = Amp * DC Volt .. example for solar & batteries

    • @solarduino1374
      @solarduino1374  Год назад +1

      Hi, yes you are correct. this method does not require direct cable termination in order to measure DC current. You can program it to combine DC voltage to come out DC wattage. Hope it explains.

    • @surenbono6063
      @surenbono6063 Год назад

      @@solarduino1374 ..it just need to be calibrated a little more for more accurate measurements

  • @Saadjie99
    @Saadjie99 9 месяцев назад

    I got one of the 50A transformers and I'm not convinced that these are accurate.
    To test I connected it to the house's main ground wire & switched on the kettle (2000w).
    Before switching on the kettle the reading was +- 6.4A, and while the kettle was on, it shot up to +-46A which can't be right.
    From my calculation the kettle should be drawing around 8.7A (2000W/230V=8.7A).
    Does this look right to you?
    Thanks for the video

    • @solarduino1374
      @solarduino1374  9 месяцев назад

      Hi, are you using normal CT or hall effect sensor like shown? As my CT measurement is very accurate. If there is large fluctuation and inaccuracy, it may be due to sampling rate or setting of the CT ratio etc. Hope it helps

    • @Saadjie99
      @Saadjie99 9 месяцев назад

      @@solarduino1374 It is the exact same one as you used in the video & i tested it using the provided code.

    • @Saadjie99
      @Saadjie99 9 месяцев назад

      I got a connex smart plug to compare the readings & it confirmed my suspicion.
      I've confirmed that:
      -> mVperAmpValue = 12.5
      -> currentAnalogInputPin & calibrationPin are set to the right pins
      -> For testing purposes I ran only the provided code on a ESP32-Wrover-B. Tested both the voltage provided to the CT (5v) & the reference cable (2.5v).
      While using Tuya to monitor the power consumption of devices connected to the smart plug (CT is connected to the neutral cable of a multiplug lead that is plugged into smart plug) I saw that drawing 8.110 A the
      "FinalRMSCurrent" would be 45.81A.

  • @chickenz4604
    @chickenz4604 Год назад

    Nice Video!, btw can this module HSTS016L measure 24V DC current 3-10mA?

    • @solarduino1374
      @solarduino1374  Год назад

      Hi, unfortunately not accurate if you measure mA current from large resolution module such as 0-20A

  • @zuhaibchoudhary7118
    @zuhaibchoudhary7118 Год назад

    the split core has two potentiometer as well below the sensor named as K and L what are they used for please let me know

    • @solarduino1374
      @solarduino1374  Год назад

      Hi, I believe it is for calibration purposes. Upon purchased it is already sealed by manufacturer, any modifications may lead to inaccuracy.

    • @zuhaibchoudhary4635
      @zuhaibchoudhary4635 Год назад

      @@solarduino1374 Well I am trying creating these can I have you email ID lets see if you can further help me

  • @nabeelahmed9946
    @nabeelahmed9946 3 года назад

    bro please help me how to find ac power flow direction, howto find ac current direction?
    please urgent

    • @solarduino1374
      @solarduino1374  3 года назад +1

      Hi, as mentioned in the video, in order to find ac current flow, you also need to measure waveform of AC Voltage. If you get negative value most of the time (values of instantaneous voltage x instantaneous current ), the current is flowing opposite of the CT direction. You can check it out my bidirectional meter video for more info. Hope it clarifies.

    • @nabeelahmed9946
      @nabeelahmed9946 3 года назад

      @@solarduino1374 Can we use simple ACS712 current sensor instead of HSTS016L ?

    • @solarduino1374
      @solarduino1374  3 года назад +1

      Hi,
      Yes you can. ACS712 module is a direct connection sensor. It must be used with great caution and care especially dealing with AC power source. If you use CT sensor type it is surely much safer.

    • @nabeelahmed9946
      @nabeelahmed9946 3 года назад

      @@solarduino1374 thanku so much you saved a lot of my time.

  • @prathapperumal4069
    @prathapperumal4069 3 года назад +1

    Please share code

  • @nabeelahmed9946
    @nabeelahmed9946 3 года назад

    please help

  • @DIYDaveT
    @DIYDaveT 3 года назад +1

    Why don't you put a precision voltage divider in the package so that it becomes a 3 pin unit and the user doesn't have to create the voltage divider himself to come up with the vref?? Make it easy on the user!

  • @barefoot69
    @barefoot69 2 года назад

    Why is someone playing the piano all the way through your video ?

  • @cliant1
    @cliant1 2 года назад

    Does not work, just static value and never changes waste of time.