Hi,
I am putting together an LED driver/Current monitor circuit and i am having some issues with the input voltage offset of the opamp being too high.
The circuit takes a PWM signal from an Atmega 328p (arduino), at 490Hz at the positive input of the opamp, divided by 4 through the R66 and R68 voltage divider. This takes the 5v amplitude of the PWM signal down to 1v. R66 also limits the current going to the opamp input.
The output of the opamp drives the mosfet gate through R81. The value of the resistor is chosen from the graph in Figure 4-5 in page 16 of the datasheet (Capacitive Loads).
I'm not sure what the capacitance of the mosfet is, from the datasheet i can see 2 values, input capacitance and output capacitance, 447pf and 96pf respectively.
The voltage at the shunt resistor R69 (1Ohm) os fed back to the inverting input of the opamp.
Capacitor C8 is there to eliminate noise in the supply input as suggested in the opamp datasheet.
This opamp has a maximum offset voltage at the inputs of -+250uV, however I am seeing between 2-20mV offset depending on the duty cycle of the PWM signal.
I have observed that the voltage offset increases as the frequency of the PWM signal increases. I have tried lowering the PWM frequency as low as 120Hz but I am still seeing 2-3mV offset.
By just placing a .47uF capacitor after R66, acting as a low pass filter and smoothing out the PWM signal, the offser voltage goes into spec being less than 1mV.
The reason however why i don't want to filter the PWM signal is becasue the LED has different Vf depending on the current. Therefore if I'd have to change the voltage together with the current.
I've tried removing R81, R82 and C8 and makes no difference.
If anyone could shed some light into the issue i'd really appreciate it.
Thanks in advance!
The schematic is attached to the post.
The opamp being used is the MCP609, a quad opamp.
http://ww1.microchip.com/downloads/en/DeviceDoc/11177f.pdfThe Mosfet is a PSMN022-30PL, a N-Channel, Logic Level.
http://www.nxp.com/documents/data_sheet/PSMN022-30PL.pdfThe LED Cree XP-G2.
http://www.cree.com/~/media/Files/Cree/LED-Components-and-Modules/XLamp/Data-and-Binning/XLampXPG2.pdf