MCP3008 help?

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

MCP3008 help?

Postby Rahatmaini » Fri Mar 08, 2013 5: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: 147
Joined: Wed Aug 29, 2012 4:15 pm

Re: MCP3008 help?

Postby adafruit_support_rick » Fri Mar 08, 2013 6: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.
User avatar
adafruit_support_rick
 
Posts: 2888
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: MCP3008 help?

Postby Rahatmaini » Fri Mar 08, 2013 8: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: 147
Joined: Wed Aug 29, 2012 4:15 pm

Re: MCP3008 help?

Postby adafruit_support_rick » Fri Mar 08, 2013 8: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
User avatar
adafruit_support_rick
 
Posts: 2888
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: MCP3008 help?

Postby Rahatmaini » Fri Mar 08, 2013 8:58 pm

Oh no no I want to ADD more analog pins. I need more analog inputs!
Rahatmaini
 
Posts: 147
Joined: Wed Aug 29, 2012 4:15 pm

Re: MCP3008 help?

Postby adafruit_support_rick » Fri Mar 08, 2013 9: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.
User avatar
adafruit_support_rick
 
Posts: 2888
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: MCP3008 help?

Postby ottobonn » Tue Mar 26, 2013 3:32 pm

The MCP3008 has 8 channels, not one.
ottobonn
 
Posts: 10
Joined: Sat Dec 11, 2010 11:37 pm


Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]