Author Topic: help with Comparator design  (Read 1144 times)

0 Members and 1 Guest are viewing this topic.

Offline anishkgtTopic starter

  • Frequent Contributor
  • **
  • Posts: 769
  • Country: qa
    • George Hobby
help with Comparator design
« on: December 20, 2017, 03:54:40 am »
Hi All,
Forgive me for this silly design and questions. I am just getting started with comparators i understand the basics of comparators but need some help understanding it when applying this in real life.

In the schematic the voltage is sensed during the off state of the transformer via an optocoupler only sensed when the mains voltage is OFF via an arduino. The voltage is 1.05vac, this is sensed by a comparator and it is compared to a reference voltage of 1vdc. My normal voltage at the open circuit is 1.05vac and when the secondary are shorted it is 0.5vac, i wish to detect the voltage drop and trigger a MOT via an SCR controlled by an Arduino.

The idea here is to detect when the secondary are shorted.

Thank you in advance.
« Last Edit: December 20, 2017, 04:02:21 am by anishkgt »
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: help with Comparator design
« Reply #1 on: December 20, 2017, 11:31:36 am »
In an Arduino you could do this mostly in code, using A/D. You
would have to offset the AC signal into Arduino, or just use 1/2
the sine and use diode clamps to insure you do not exceed rails.
Thats a -

AC Source >> Resistor (1K) >> Diode to + rail & diode to - rail >> Arduino input.





In Arduino just sample input and code for peak detect.


Regards, Dana.
« Last Edit: December 20, 2017, 11:33:37 am by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline anishkgtTopic starter

  • Frequent Contributor
  • **
  • Posts: 769
  • Country: qa
    • George Hobby
Re: help with Comparator design
« Reply #2 on: December 20, 2017, 01:51:54 pm »
Thank you dan !

Could you please explain with a bit more clarity. Trying to make it as simple with least BOM and safety in mind (preferably an isolation like an opto-coupler)
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: help with Comparator design
« Reply #3 on: December 20, 2017, 02:05:01 pm »
In this ap note is an interface circuit.


http://www.cypress.com/file/157911/download


Here are some approaches for power supplies but show general considerations for AC line interface,
transformerless.


http://ww1.microchip.com/downloads/en/AppNotes/00954A.pdf


https://www.edn.com/design/power-management/4418393/AC-power-your-circuit-without-a-transformer


http://www.farnell.com/datasheets/1930673.pdf




Regards, Dana.
« Last Edit: December 20, 2017, 02:10:38 pm by danadak »
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf