Go Down

Topic: Matlab reads from adafruit 16bit 1115 ADC (Read 1 time) previous topic - next topic

jiyindna

Hi,

I was trying to use matlab and arduino uno to read a voltage between 0.8 - 1.5 V, but the resolution was too low because the default analog input is only 10bit. So I bought a 16bit ADC from adafruit and connected to my arduino, but then I realized it was not supported by the matlab-arduino support package.

http://www.mathworks.com/hardware-support/arduino-matlab.html

Now the problem is, I do not know how to incorporate the ADC component into the pde and the matlab code so I can read the voltage via matlab and use the ADC.

http://www.mathworks.com/matlabcentral/fileexchange/41602-i2c-block-for-arduinoio-simulink-package

I found this package similar to what I wish to do, but it was not design for the communication of the specific ADC I tried to use (ADS1115). Also I was quite confused by the instrument address and register address. Can anyone help me to:

1. use matlab to read the voltage with higher resolution
2. Understand what are the difference between instrument address and register address

Thank you very much!




robtillaart


This tutorial gives a lot of answers - https://learn.adafruit.com/adafruit-4-channel-adc-breakouts/programming -
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Sardo

#2
Sep 05, 2017, 11:42 am Last Edit: Sep 05, 2017, 11:48 am by Sardo
For reference:
https://uk.mathworks.com/matlabcentral/answers/286348-how-i-can-read-a-signal-from-asd1115-with-arduino-and-matlab

Go Up