0
\$\begingroup\$

I driven the mcp4922 using my Arduino. I just used my power rail as the vref and t worked fine. However when I used my 5v ref it stopped working. Strange thing is the voltge reference is fine and I feed it to both pin 13 and 11 of the dac. I set the dac to give me around 5 on vout a and 3 on b. But get millivolts on both . However I've check on 13 and 11 and I get 5v from the ref.

Here's the schematic am following: schematic

Related subset:

enter image description here

I just did some debugging. I was thinking of doing this but it was late and I need my sleep. Even on a breadboard with just the dac and vref, I still get a low vout but works fine when tied to 5v rail.

I took a look at the datasheet it said input impedance = 165K, is that why?

\$\endgroup\$
2
  • \$\begingroup\$ Circuit diagram of what you are ACTUALLY doing? What is load on each DAC output? What voltage is "my power rail"? MCP4922 datasheet here. What voltage is DAC Vdd? What current can your Ref supply as it is a shunt regulator it depends on feed resistopr). Try feeding DAC Vdd also from Vref. Is ground connected correctly in all cases? \$\endgroup\$
    – Russell McMahon
    Commented Apr 3, 2012 at 1:14
  • \$\begingroup\$ See addition to my answer. \$\endgroup\$
    – Russell McMahon
    Commented Apr 3, 2012 at 11:00

1 Answer 1

1
\$\begingroup\$

More questions than answers, but the answer should emerge as you answer these questions:

MCP4922 datasheet here.

Please provide complete circuit diagram of what you are ACTUALLY doing?

Try feeding DAC Vdd also from Vref.

Note that DAC Vdd needs to be such that SPI signals provide valid high and low logical levels at both ends of SPI link. This MAY be able to be accomplished when Vdd_sender <> Vdd_DAC but it is usually better if they are the same.

What is load on each DAC output?

What voltage is "my power rail"?

What voltage is DAC Vdd?

What current can your Ref supply?
NB: as it is a shunt regulator its current feed capability at 5V depends critically on its feed resistor.

Is ground connected correctly in all cases?


ADDED

This is ambiguous:

  • ... (DAC) vdd should be the same voltage as my arduino They both run at 5v. The psu rail is also at 5v. Its can supply upto 10ma. It's the same one I post posted about earlier on (LM336). However I didnt have the resistor size you suggested so I reapplied ohms law and came up with 8.2k. According to my dodgy math it's 1ma current.

The circuit diagram that you posted is what you are APPROXIMATELY trying to copy.
You have changed a number of things.
You are using words like 'power supply', "It can supply", "psu rail" etc but it is unclear what reference is to which device and what connections are really made. I could probably have a reasonably good guess at what you mean and what you think you are doing BUT I may get it wrong and YOU may have got it wrong. If you post a diagram of EXACTLY what you think you hav done then we can tell you what you should see and we can go from there. As is there are too many uncertainties. You need to show Arduino as a block diagram, basic Arduino powering with voltages, SPI connections, ALL DAC power and signal connections and regulators and resistors and connections. In you other post you mention a 12V supply - is this still supplying the Vref regulator. Don't just tell me - show it on your diagram. A hand drawn diagram is fine as long as it is clear, well labelled and unambiguous. It need only include the circuitry relevant to the question, but more is OK.


165k input impedance is NOT a problem. This just shows that the DAC load is light compared to drive capability or other loads, which is good.

\$\endgroup\$
1
  • \$\begingroup\$ so you are saying the vdd should be the same voltage as my arduino They both run at 5v. The psu rail is also at 5v. Its can supply upto 10ma. It's the same one I post posted about earlier on (LM336). However I didnt have the resistor size you suggested so I reapplied ohms law and came up with 8.2k. According to my dodgy math it's 1ma current. \$\endgroup\$
    – Ageis
    Commented Apr 3, 2012 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.