Output of HCPL3700 AC detection; need pull-up?

Hi -- I'm planning to use an HCPL3700 as shown in this post to detect 120VAC with an Arduino Nano Every GPIO pin.

I know that the output (pin 6, aka VO) goes low when AC is detected -- is this a steady state low, or is it going to bounce high/low with every AC cycle? I think it's the former, but some things I've read seem to imply that it will be toggling with the AC. I guess the cap across pins 2/3 is smoothing the rectified input, so maybe that answers my question, but I just want to be sure!

I've seen pretty different values used for that pin 2/3 cap -- I was planning to go with 10uF as shown in that schematic...

Some implementations with the HCPL3700 use what appears to be a pull-up resistor between pin 6/VO to Vcc... if I'm going into the Nano Every and I set INPUT_PULLUP, I won't need this extra resistor, correct?

Thanks!

What is Your education regarding mains elextricity? You're adviced not to proceed with this way of detecting mains.
Using a phone chargers 5 volt output is much safer.
Look at "Test circuit" down in the datasheet. It shows that.
INPUT_PULLUP should work.

1 Like

Yes the cap will smooth the rectified AC so the opto will output a steady state.

image

Tom.. :smiley: :+1: :coffee: :australia:

1 Like

Thanks!

I appreciate the concern; my education is minimal and ad-hoc; while I will always be humble here in this forum of people far more knowledgeable than me, I have wired a couple houses with mains electrical (inspected jobs), and done enough working with it in circuits to feel reasonably capable of not starting any fires or zapping anyone.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.