Pages: [1]   Go Down
Author Topic: How can i increase Analog Pins on ATMEGA328P-PU?  (Read 798 times)
0 Members and 1 Guest are viewing this topic.
Pakistan
Offline Offline
Sr. Member
****
Karma: 6
Posts: 357
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I am short of Analog pins on my standalone Arduino. All the six connected to different sensors, now i want to add temperature sensor? Any idea How to:
1- Increase the Analog Pins on Arduino (any shiftregister sort of things available in market)
2- Is their any sort of library that can convert Digital pin into Analoge Pin smiley-twist

Please help....
Logged


Danger Boy
Offline Offline
Edison Member
*
Karma: 14
Posts: 1108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The CMOS 4051 and 4067 are famous for this.  It multiplexes either analog inputs or outputs - it's bidirectional.  You control the multiplexing with three (for the 4051) or four (4067) of the other digital lines.  No, you can't change a digital pin to an analog pin, that is the hardware itself.  Three digital pins plus an analog pin gets you eight additional analog pins and four digital pins plus that analog pin gets you sixteen additional analog pins.

I bet there are some more modern chips that do what the 4051 and 4067 do but they generally do it very well and are available as DIPs.

This guy looks like a decent seller:

http://www.ebay.com/itm/CD74HC4051E-8-ch-analog-multiplexer-demultiplexer-Lot-of-20-CD74HC405-/261154094758

You can get them at Jameco or wherever.

https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_909791_-1
« Last Edit: February 05, 2013, 01:03:33 am by JoeN » Logged

I have only come here seeking knowledge. Things they would not teach me of in college.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I am short of Analog pins on my standalone Arduino. All the six connected to different sensors, now i want to add temperature sensor? Any idea How to:
1- Increase the Analog Pins on Arduino (any shiftregister sort of things available in market)
2- Is their any sort of library that can convert Digital pin into Analoge Pin smiley-twist

Please help....

Well there are temperature sensors that use I2C or SPI or 'one-wire' or even serial communications available.
If you just want to expand analog sensors I like the Adafruit 4 channel I2C module that adds four 12 bit high performance ADC channels to any arduino. They have an arduino software library that supports this module.

http://www.adafruit.com/products/1083

Lefty
Logged

Pakistan
Offline Offline
Sr. Member
****
Karma: 6
Posts: 357
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank You JoeN and Lefty for putting me onto the right track:)...
Regards
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 545
Posts: 27361
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

You can also add an SPI-interfaced 12-bit ADC, microchip.com's MCP3208 in DIP. Very easy to use.
http://www.digikey.com/product-detail/en/MCP3208-CI%2FP/MCP3208-CI%2FP-ND/305928
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.

Pages: [1]   Go Up
Jump to: