12th Anniversary Sale 12% Off in July & August with the voucher code "SUMMER12" *excludes trade customers
Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

DAC set voltage or set raw, written value different as measured one

The Expander Pi is an Analogue, Digital and RTC Expansion Interface for the Raspberry Pi

27/09/2020

Posted by:
belette

belette Avatar

Hi,

I face to a new mistake with my Expander Pi, for example : when I write "expi.dac_set_voltage(2.8;1;2)" measured value on output 1 is 2.54V. There is always a gap between requested value and measured one.

I don't use an external voltage reference, what can explain this gap how can I solve it ?

program in C++ with Qt., same issue with code blocks.

Regards

27/09/2020

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

Hi

Sorry, there was a bug with the dac_set_raw function in the Expander Pi class. Please can you try downloading the updated version of ABE_ExpanderPi.cpp in our GitHub repository and see if that fixes your problem?

28/09/2020

Posted by:
belette

belette Avatar

Hi,

ok, it works with this updated file.

MANY THANKS

Sign in to post your reply


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.