Memorial day is 05/25/2015 – Orders will ship out on May 26th. There will not be any deliveries or shipping on Monday. Any order placed after 11am ET on Friday May 22nd will not start to ship out until Tuesday May 26th.

MCP3008 help?
Moderators: adafruit_support_bill, adafruit

MCP3008 help?

by rahatmaini on Fri Mar 08, 2013 6:49 pm

I am extremely confused about how I can use a MCP3008 for the Arduino. I have been sent to links about the SPI bus, but I am very much a noob at Arduino. Is there an easy way to learn how to connect the chip to the Arduino and some software examples as well? A tutorial?

Thanks :D :D :D :D

rahatmaini
 
Posts: 167
Joined: Wed Aug 29, 2012 5:15 pm

Re: MCP3008 help?

by adafruit_support_rick on Fri Mar 08, 2013 7:52 pm

Is there some reason you can't use the Arduino's built-in A/D converter? The MCP3008 is more of a Raspberry Pi thing for us, since the Pi doesn't have an ADC.

adafruit_support_rick
 
Posts: 18390
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: MCP3008 help?

by rahatmaini on Fri Mar 08, 2013 9:21 pm

You mean to say that the Arduino can convert digital pins to analog??

If that's right, I feel extremely stupid yet extremely thankful!

rahatmaini
 
Posts: 167
Joined: Wed Aug 29, 2012 5:15 pm

Re: MCP3008 help?

by adafruit_support_rick on Fri Mar 08, 2013 9:48 pm

Pins A0 through A5 can be used for either digital I/O or for analog input.
Lesson 8 of our Learning Arduino series covers analog input.

Also, check out section 3 on the Arduino Tutorial page

adafruit_support_rick
 
Posts: 18390
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: MCP3008 help?

by rahatmaini on Fri Mar 08, 2013 9:58 pm

Oh no no I want to ADD more analog pins. I need more analog inputs!

rahatmaini
 
Posts: 167
Joined: Wed Aug 29, 2012 5:15 pm

Re: MCP3008 help?

by adafruit_support_rick on Fri Mar 08, 2013 10:37 pm

Ah. Well, if you want to use the MCP3008, then I'm afraid you will have to write a library.

However, one of our I2C 4-channel ADCs would be a lot easier, and you'll get 4 channels instead of 1. You can string up to four of them on an I2C bus, giving you up to 16 channels.

12-bit, 4 channel
16-bit, 4 channel

We do have an Arduino library for these guys.

adafruit_support_rick
 
Posts: 18390
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: MCP3008 help?

by ottobonn on Tue Mar 26, 2013 4:32 pm

The MCP3008 has 8 channels, not one.
ottobonn
 
Posts: 10
Joined: Sun Dec 12, 2010 12:37 am