It might be cheaper in that website but its even more expensive on ebay and none of my local electronic stores that I went to sell the mcp3008 or the mcp3002 so I have to order it from outside ..
joan wrote:Have a look at a PCF8591 based module. It is only 8 bit but may be better suited to educational use.
Four input channels, one output channel. I2C based.
http://www.ebay.co.uk/itm/391012308875
I am a little confused with how that one works, I am not very used to work with A/D Converters ..
I want to convert the analog signals of one joystick to digital for use with the raspberry pi as inputs for directions on retropie, I learnt how to do that with a MCP3002 but that is pretty expensive since i have to order it from outside my country and none are free shipping on ebay, the cheapest I found was at 4 euros in AliExpress ..
That
PCF8591 is way cheaper and it might be a good alternative for me if I figure out how to use it ..
This is the map that I found from
this website.

And this is from the datasheet of the PCF8591.
With the PCF8591, the 3V3 goes to V
DD or V
REF right?
GPIO 8 (SPI0 CE0) can go to the A0/A1/A2 ?
GPIO 9 (SPI0 MISO) can go to the SDA?
GPIO 10 (SPI0 MOSI) can go to the SDA too?
GPIO 11 (SPI0 SCLK) can go to the SCL ?
GND goes to V
SS?
Joystick
3V3 to V
DD or
VREF
X Axis to Ain0?
GND to V
SS
Y Axis to Ain1?
I probably messed something up with that but that's what I am trying to learn, I need to know how it works and if it does with a joystick before I order it so if someone can correct me that would be greatly appreciated
Thanks