MCP3002 is Arduino Library for communicating with MCP3002 Analog to digital converter. Based on the MCP3008 Library created by Uros Petrevski, Nodesign.net 2013 Released into the public domain.
ported from Python code originaly written by Adafruit learning system for rPI : http://learn.adafruit.com/send-raspberry-pi-data-to-cosm/python-script
MCP3002 VDD -> 5V or 3.3V
MCP3002 CLK -> arduino gpio
MCP3002 DOUT -> arduino gpio
MCP3002 DIN -> arduino gpio
MCP3002 CS -> arduino gpio
MCP3002 VSS -> GND
Copy files inside "libraries" folder in principal sketch folder (where are all your sketches)