1

I am working on a portable RPI 2 retropie (another version of Raspbian) powered game console. I have bought an analog psp thumbstick, and an mcp3002 analog to digital converter, that I want to use for the project... However, it seems like the mcp3002 ADC needs a driver for the Pi to register it... So I've found a driver that should work on the old Pi, but I couldn't get it to work on the Pi 2, so I contacted the developer and found out that it would not work on the new RPI 2's CPU :( So my question is if any of you have found a way, or know how to get the mcp3002 ADC to run on the Pi 2??

Any answers will be greatly appreciated! :)

Rasmus

0

The MCP3002 is a SPI chip.

The Linux SPI driver works.

It may be helpful if you add details of what you are doing.


If SPI is properly enabled the following devices will be visible in /dev.

$ ls -l /dev/spi*
crw-rw---T 1 root spi 153, 0 Jan  1  1970 /dev/spidev0.0
crw-rw---T 1 root spi 153, 1 Jan  1  1970 /dev/spidev0.1
$ 
  • Hi Joan. Thanks for your quick reply! I have connected my analog joystick, the mcp3002 ADC and the RPI 2's GPIO via a bread board. Thanks for letting me know about the Linux SPI driver! I went and searched the web for it, and found a page on the official RPI Foundation website. I skimmed the page, and found out that the driver was already installed, but blacklisted. I cut this comment up in two parts because it was too long :) – Rasmus Mar 11 '15 at 17:57
  • -NEXT PART. I removed the Linux driver from the blacklist, just as it said. However it still doesn't work, but it's probably because I did something wrong, or missed something, though I don't know what. Can you tell me, or give me an a little bit more detailed guide?? I hope you will help a newbie like me out :) – Rasmus Mar 11 '15 at 17:57
  • What still doesn't work? What does work? You need to give details of what you are doing. Preferably edit your original post to add the details. – joan Mar 11 '15 at 18:01
  • Hi Joan. I have connected my analog joystick, the mcp3002 ADC and the RPI 2's GPIO via a bread board. I have unblacklisted the spi-mcp2708, by setting a # before it in the raspi-blacklist.conf. I have also downloaded, and installed the WiringPi, but i'm not sure if the Linux SPI driver works. How can I see if the Pi can read the mcp3002's input's? And how can I see exactly what they are? – Rasmus Mar 14 '15 at 19:08
  • @Rasmus see edited post. – joan Mar 14 '15 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.