Home‎ > ‎Librarys‎ > ‎

ADC


I haven't tested any other ADCs then the MAX1272 with this library, if you want to help me, look here.

This library is made to interface with various SPI interfaced ADCs. A list with the currently supported ones can be found at the bottom of this page.



Functions:



MyADC(char* type_, int pinToUse1);

Parameters:
char* type_        The type of the chip as defined (see bottom of page). ADCs witch are not supported are not defined and will give an error message when compiling
int pinToUse1    The chip select (CS) pin to use with this chip.


int readADC(int channel);

Parameter:
int channel            The channel to use. This is optional and if not applicated it will use channel one.

Returns:
The value for the ADC channel channel.


Wishlist:

If you have an idea on how to solve the following "wishes", please look under Contact.

  • Support power down modes and other features on various ADCs like internal/external voltage reference etc.
  • Support more ADCs.

Supported ADCs:

Almost every ADC with SPI interface should work with this library with minimal work. If you want me to add a chip, please send me a link to the datasheet.

Already supported ADCs:

MAX1272    (tested)
MAX1273    (not tested)
MAX1240
    (not tested)
MAX1241    (not tested)
MAX1242    (not tested)
MAX1243    (not tested)
MAX187    (not tested)
MAX189    (not tested)
MAX191    (not tested)


Creative Commons-licens
ADC library for Arduino by Jan Dalheimer is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at www.arduino.cc.

Č
ċ
ď
ADC.zip
(4k)
02JanDal .,
Mar 1, 2011, 5:58 AM
Comments