Pages: [1]   Go Down
Author Topic: Best way to get more analog inputs  (Read 537 times)
0 Members and 1 Guest are viewing this topic.
Aalborg, Denmark
Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I need more analog inputs on my Arduino Ethernet board.

What would be the best way to do this? I've read something about multiplexing?
Or is it possible to have an ADC and the just use a digital input instead?

Also if anyone have a working tutorial as example I would be very grateful smiley
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 538
Posts: 27147
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

1.  Use an analog switch chip(s)/analog multipexer chip(s). For example, the MAX4617 an 8:1 analog switch.
http://www.maxim-ic.com/datasheet/index.mvp/id/2064

2. Yes, use an ADC(s) with I2C or SPI interfaces. An example would be this chip MCP3208
http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en010534
12-bit ADC, octal part, SPI interface. Connect up as many as you need, common SCK/MOSI/MISO connections, need a unique slave seelct per device.

I have one on a board now, got some basic code written, will be testing soon.

3. Have you looked in the Playground section yet? I bet you will find an example there.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Shannon Member
****
Karma: 207
Posts: 12205
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'd agree with the 3208 - its available in DIP and surface mount, and works at 3.3V as well as 5.0V, and gives 12 bits and is faster than built-in ADC.  (You do need to use 4 pins, but 3 can be shared with other SPI bus devices).

Analog multiplexing chip might be a little cheaper though (still needs some digital pins to address it though, which would be harder to share with other devices?).
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: