MAX1236 driver?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MAX1236 driver?

by uxhamby on Sun Mar 10, 2013 1:03 pm


I have a few MAX1236 ADC's in hand and I'd like to use one to read the position of my garage doors with my Raspberry Pi. Is there a MAX1236 driver I can use for this? My RPi is running the occidentalis o/s at the moment.


Brian H.
Toronto Ont

Posts: 10
Joined: Sun Feb 24, 2013 11:55 am

Re: MAX1236 driver?

by adafruit_support_mike on Tue Mar 12, 2013 5:37 pm

I don't know of any such library offhand, but according to the datasheet the MAX1236 uses a "Two Wire" interface, which is what people call I2C when they don't want to pay a trademark licensing fee. ;-)

You should be able to talk to the chip through the Arduino's 'Wire' library or the RasPi's I2C tools. This item from the learning system tells you how to set up I2C on a RasPi:

http://learn.adafruit.com/adafruits-ras ... guring-i2c

From there, it's mostly a matter of reading the datasheet (http://datasheets.maximintegrated.com/e ... X1239M.pdf) and seeing what set of commands you need to send to get the chip to do what you want.

The chip looks to be fairly.. ambitious. It has 12 analog inputs that can be run individually or paired into six different differential pairs. The differential pairs have an option to be run as bipolar inputs (either input can have a higher voltage than the other) or unipolar inputs (the + input has to be higher voltage than the - input).

It doesn't look like any specific way of using the thing will be too complicated, you'll just have to narrow down the range of things if can do to the list of things you want it do.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

Posts: 30922
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.