Characterise Waveshare HP AD/DA board Raspberry PI

版本 1.0.1 (2.6 KB) 作者: Austin Gosling
Use MATLAB to characterise the high precision AD/DA board for Raspberry Pi from Waveshare.
208.0 次下载
更新时间 2019/1/26

查看许可证

This MATLAB script runs a test of the Waveshare high precision AD/DA board using the ADS1256 and DAC8532. number of samples "n" and time between samples "dt" can be set at the beginning of the script. dt is generally not accurately enforced by the script. VREF must be input at the beginning of the script. I measured it using a Keithley DMM 6500 61/2 digit multi meter. The source for VREF was a LIPO battery that was stable to within +/- 5uV throughout the test.

The script shows how to access the registers on the ADC and DAC chips directly via SPI through the Raspberry Pi.

The results are shown as a graph of ADC input versus commanded DAC output with a linear fit and analysis of residuals. The results show that the board can be used to within +/- 10mV. There is a definite bias of ~20mV and there is a non-linearity of +2mV/V.

IMPORTANT NOTE: This has only been tested with R2018A and Raspberry Pi server_v18.1.0. It is known NOT to work with R2018B and Raspberry Pi server_v18.2.1 (I have posted this problem, in which R2018B loses the connection to the Raspberry Pi very quickly).

引用格式

Austin Gosling (2024). Characterise Waveshare HP AD/DA board Raspberry PI (https://www.mathworks.com/matlabcentral/fileexchange/70089-characterise-waveshare-hp-ad-da-board-raspberry-pi), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容 R2018a
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Vehicle Network Toolbox 的更多信息
社区

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Now includes adcdumpregs function.

1.0.0