フィルターのクリア

MCP4725 DAC through Arduino due in simulink

20 ビュー (過去 30 日間)
aakash dewangan
aakash dewangan 2023 年 3 月 21 日
コメント済み: aakash dewangan 2024 年 3 月 31 日
Hi, i tried to generate analog output voltage by Arduino due in simulink using MCP4725. But the file does not work, and gives an error. It says code generation file does not exist.I have used the files provided in the official mathworks website by one person.Could you please let me know how to use it.The link of files is given: https://in.mathworks.com/matlabcentral/fileexchange/82480-mcp4725-12-bit-dac-i2c-block-for-arduino-due?s_tid=prof_contriblnk

採用された回答

aakash dewangan
aakash dewangan 2023 年 3 月 31 日
Hi,
I found the solution. I used I2C communication block provided by MATLAB, It worked well. Thanks MATHWORKS :)
  2 件のコメント
Finn
Finn 2024 年 3 月 7 日
編集済み: Finn 2024 年 3 月 7 日
Hi,
i want to use the MCP4725 in simulink 2023 with the Raspberry Pi 4B. Did you use the I2C Controller write block? How did you configure the block? Did you need to install libraries on the raspberry pi, or include headers somewhere ? Could you provide a simple slx example? Please i need help
aakash dewangan
aakash dewangan 2024 年 3 月 31 日
Hi,
I used Arduino Due (Not Rasberry Pi) for MCP4725. You need to check only the Peripheral address. Put number 96 or 97, which are corresponding to 0x61 and 0x62, rewspectively, as far as I remember.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by