Hi,
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.
Thanks,
Brian H.
Toronto Ont
MAX1236 driver?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: MAX1236 driver?
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.
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.
Please be positive and constructive with your questions and comments.