Arduino Due and simulink voltage resolution

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

 채택된 답변

sho
sho 2014년 11월 3일

0 개 추천

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)".

추가 답변 (4개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 10월 24일

0 개 추천

This depends on the analog-to-digital converter of your card.
Nathanael
Nathanael 2014년 10월 28일

0 개 추천

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
sho
sho 2014년 10월 29일

0 개 추천

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?
Nathanael
Nathanael 2014년 11월 3일

0 개 추천

Ok great I'll have to test that out.
Thank you.

댓글 수: 1

Have you manage to change the resolution to 12 bits. Mind to share your achievement? thank you.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Arduino Hardware에 대해 자세히 알아보기

질문:

2014년 10월 24일

댓글:

2015년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by