YHDC current sensor - the theory please


+ Reply to Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default YHDC current sensor - the theory please

    Richard,

    I've connected my YHDC sensor one pin to ground and the other to RA5. Got readings (see hereunder).

    Because I'm not sure what I'm doing right now with the current sensor, I tried to add a 1Mohms resistor and a 100nF polarized cap between GND and RA5. Same readings.

    Just for info, my multimeter shows 0.157mVAC - I'm measuring a 230VAC 42W light bulb for now.

    I get readings on my serial monitor but the values don't make too much sense to me, for now - there's going to be some kinf of scaling to do, no?


    This is what I get for now with bulb "ON":
    Name:  Readings.jpg
Views: 175
Size:  36.9 KB


    And bulb "OFF":
    Name:  Bulb OFF.jpg
Views: 175
Size:  26.8 KB
    Roger

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    It can't work wired the way you described. The ac signal must be biased by vcc/2 and be less than vcc peak to peak.
    If the serial baud rate is too low it will ruin the sample rate.
    If the burden resistance is incorrect extremely high voltage may be possible

    Post code and schematic
    Last edited by richard; - 1st December 2025 at 22:14.
    Warning I'm not a teacher

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    Have you connected your CT as shown in your first post? That is, the bottom to 2.5V (or VRef/2) and the top to input pin AND - VERY IMPORTANT - a load resistor shown as 33ohms in diagram? You must have a load resistor or the output voltage across the secondary of the CT can get very high, possibly damaging the ADC input.

    Then, your CT produces 50mA with a 100A primary current. 1A primary give 0.5mA and so yout 42W load gives about 100uA secondary current. Keep that in mind when selecting the load resistor.

    EDIT: OK, Richard beat me to it while I was typing.

  4. #4
    Join Date
    Aug 2011
    Posts
    460


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    You might want to specify the model number of the sensor since there are a number of different types, and the circuit shown may not even apply

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    adjust resister to for the mid current used incase of some nonlinearity... shotkey diode has .3 volt drop
    Name:  ct.JPG
Views: 165
Size:  41.8 KB

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    Sorry guys for not reponding earlier - I'm still waiting for 20A:50mA current sensor to arrive; my 100A:50mA are far too low and "out of range" for what I intend to measure.

    BUT I could grab a 5A:1V one from a friend today so I'm back on my workbench.

    To have "better" values -measures with FLUKE 177- , I now use my 230VAC hairdryer:
    Pos 1: fan only = YHDC:54mVAC - FLUKE: 1.1A
    Pos 2: fan + low heating = YHDC: 170mVAC - FLUKE: 3.5A
    Pos 3: fan + high heating = YHDC: 320mVAC - FLUKE: 6.6A


    Since I now use a voltage output type sensor, I leave the burden resistor out, right?

    Name:  YHDC_500.jpg
Views: 155
Size:  15.9 KB


    And here are my readings:

    OFF:
    Name:  Haidryer_OFF.jpg
Views: 149
Size:  45.2 KB


    Pos 1:
    Name:  Hairdryer_1.jpg
Views: 152
Size:  46.4 KB


    Pos 2:
    Name:  HairDryer_2.jpg
Views: 150
Size:  45.0 KB


    Pos 3:
    Name:  Hairdryer_3.jpg
Views: 151
Size:  46.4 KB


    I can't still figure out what I'm reading.
    Last edited by flotulopex; - 7th December 2025 at 21:43.
    Roger

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: YHDC current sensor - the theory please

    you cannot use a current transformer that way without a burden resistor.
    by voltage sensor do you mean ACS712 or similar ?
    if so that circuit is incorrect, typical use
    Name:  acs712.jpg
Views: 152
Size:  41.4 KB
    Warning I'm not a teacher

Similar Threads

  1. Current sensor output modification. PIC or opamp or something else?
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th December 2020, 06:22
  2. Counter and interrupt theory
    By astouffer in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd January 2014, 02:21
  3. Replies: 8
    Last Post: - 5th May 2009, 21:10
  4. current sensor interfacing
    By hell_pk in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th January 2009, 05:55
  5. PIC based mAh meter/current draw sensor
    By skimask in forum Off Topic
    Replies: 6
    Last Post: - 26th February 2008, 03:10

Members who have read this thread : 14

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts