|
||||||||
|
||||||||
|
DAN151 MAX127 12 Bit Data Acquisition System By Michael Simpson
I picked up a MAX127 Data Acquisition System chip. After some playing around I now see where it gets its name. The chip has 8 channels and each channel can read up to -10 to +10 volts on each channel even with a 5v power source. After playing with the built-in AtoD in various microcontrollers I can really appreciate the MAX127. It can do up to 8k conversion per second. Even with my crazy hook up (see below) the readings were spot on and only varied 1 or 2 points. That's about .008 volts.
For real critical readings the chip can separate the analog and digital ground for less interference.
The only downside for this chip is the cost. This chip will cost you between $20 and $25. This means unless your application needs the accuracy and bipolar capability use something else. But if you need to detect negative and positive sweeps of an AC voltage this chip is for you. Hookup I saw a couple of different configurations for this chip but this one works the best for experimentation. Its pretty much right off the datasheet. I show it connected to Port 0 and Port 1 of a Dios 32 pin module but you can use and ports or any Dios chip or board.
Schematic 1 (click picture to enlarge)
I really don't want to get into the actual bits and bytes of the I2c Interface. You can get that from the data sheet. I created a function called MAX127read that should work for most applications. Just copy the function to your program and start playing. The comments lists the arguments and they match the MAX127 data sheet. The demo program will print the raw reading and converted voltage from channel 0. Program (download it here) 'MAX127 Demo Parts
|
Copyright © 2001 - 2007 Kronos Robotics