Hello every one!
can i use this circuit to sense the output high DC voltage with ADC of LPC1768?
i have connected it to lpc like this:
two of my LPCs have burnt:shock::!: with this circuit.
what is the problem?!
thank in advance
if i sense 220-GND two GNDs(i.e. circuit,and micro's and also optocoupler's GND) will be connected together,right?
and as you know ADCs maximum input voltage should be less than 3.3V
should i isolate the adc part of micro from power circuit?
this is my complete schematic
as you see i have two voltage feedback
i think i have found the problem,represented with red arrow in below picture, is it correct?
but now how can i sense two voltages and connect them to two ADCs?
please check it connections to lpc,
thank u all.
--> The LPC is referenced to GND2...it can not output PWM to TLP which is referenced to GND1
--> Voltage measurement is referenced to GND1.. you can not connect it to ADC od LPC which is referenced to GND2.
Presumed GND1 and GND2 are actually different nodes, the circuit still won't work, because you have ADC1/ADC2 shorting the secondary inductor/transformer winding. I also wonder if the processor has an isolated power supply as required.
You need some kind of high voltage differential amplifier, e.g. differential voltage divider followed by an instrumentation amplifier. Or a single OP differential amplifier with respective large input resistors.
--> The LPC is referenced to GND2...it can not output PWM to TLP which is referenced to GND1
--> Voltage measurement is referenced to GND1.. you can not connect it to ADC od LPC which is referenced to GND2.
but GNDs in first side and second side of tlp must be different,(lpc has one supply and tlp has another one for itself).
about the voltage measurement the GNDs from resistors to lpc have different voltages,so i think this is the problem, on the other hand if I measure the voltage from ground to the upper node all the GND will shorted together,yes?
maybe i should isolate the lpc ADC from circuit using linear optocoupler or sth such as lm331.
do you have any other idea to solve this problem?
thank u
this is a LED driver that i wand make a pwm switching for mosfet using two voltage feedbacks,
this two feedback used to find the proper duty cycle for current regulation.
(i know that i can sense the current or use other methods but i have to sense voltages to control the circuit)
thank u.
LEDs seem to be harmless. But with your non isolated supply they may hurt and/or kill people.
--> I strongly recommend to use an "isolating" power supply ... and if you really want to build it on your own you first have to go through the safety regulations of your country. And for sure follow them.
LEDs seem to be harmless. But with your non isolated supply they may hurt and/or kill people.
--> I strongly recommend to use an "isolating" power supply ... and if you really want to build it on your own you first have to go through the safety regulations of your country. And for sure follow them.