MATLAB Answers

Arduino Due and simulink voltage resolution

조회 수: 16(최근 30일)
Nathanael
Nathanael 24 Oct 2014
I would like to use the analog inputs on the arduino Due board for a project I am doing, but I need a voltage resolution of 12 bits and the default is 10 bits.
Is there a way to change this? either in simulink or by hard coding it in?
Thanks,
Nathanael

  댓글 수: 0

로그인 to comment.

채택된 답변

sho
sho 3 Nov 2014
ok i solved the problem with a easy s-function. check out this vid and just implement it with the arduino library command "analogReadResolution(12)".

  댓글 수: 0

로그인 to comment.

More Answers (4)

Azzi Abdelmalek
Azzi Abdelmalek 24 Oct 2014
This depends on the analog-to-digital converter of your card.

  댓글 수: 0

로그인 to comment.


Nathanael
Nathanael 28 Oct 2014
Thanks Azzi,
I am using the Arduino Due board, which is capable of 12-bit ADC, however when it is initialized in simulink it is set to 10-bit ADC. Is there a way to change it from 10-bit to 12-bit within simulink?
Thanks again

  댓글 수: 0

로그인 to comment.


sho
sho 29 Oct 2014
have the same "problem" and would like to know if there is a way to change the input resolution of the arduino due from 10 to 12 bit. Maybe with a s-function?

  댓글 수: 0

로그인 to comment.


Nathanael
Nathanael 3 Nov 2014
Ok great I'll have to test that out.
Thank you.

  댓글 수: 1

Hou-Pin Yoong
Hou-Pin Yoong 27 Apr 2015
Have you manage to change the resolution to 12 bits. Mind to share your achievement? thank you.

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by