Using MCP3008 with Arduino

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Using MCP3008 with Arduino

Post by rahatmaini »

I know how to use this chip with the Raspberry Pi thanks to Adafruit, but I am confused on how to add this to the Arduino (wiring and code) because of the pin layout in the datasheet. How do I add 8 analog pins to my Arduino Uno?

Thanks, any help is appreciated. 8)

User avatar
adafruit_support_mike
 
Posts: 67485
Joined: Thu Feb 11, 2010 2:51 pm

Re: Using MCP3008 with Arduino

Post by adafruit_support_mike »

The 3008 uses the SPI interface, so you'll want to use Arduino digital pins 10-13. Here are a couple of articles about using SPI with the Arduino:

This one talks about using the AVR's built-in SPI port: http://tronixstuff.BANNED.com/2011/0 ... e-spi-bus/

And here's one that shows examples of talking to various devices using SPI: http://tronixstuff.BANNED.com/2011/0 ... s-part-ii/

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”