Go Down

Topic: How can i increase Analog Pins on ATMEGA328P-PU? (Read 845 times) previous topic - next topic

Khalid

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 ]:D

Please help....

JoeN

#1
Feb 05, 2013, 06:57 am Last Edit: Feb 05, 2013, 07:03 am by JoeN Reason: 1
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
I have only come here seeking knowledge. Things they would not teach me of in college.

retrolefty


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 ]:D

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

Khalid

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

CrossRoads

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
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.

Go Up