Duemilanove and potentiometers

Hello, everyone, i would like to ask a question. Is it possible to connect 9 potentiometers to a Duemilanove? I know it doesent have that much analog inputs, and as far as i read, digital ones dont work for it, theyre for buttons only. So is there any way to connect them without getting a Arduino Mega?
Thank you, KeNNy.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1138666403

Or look at the way I did it on this project:-
http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.html

Thank you guys, for the fast and great anwsers, it worked like a charm.
Just one question, i got 2x sliding potentiometers to test it, theyre both 125k, and well.. The start is 0%, the end is 100%, and value equal to 50% is not really at the middle of the potentiometer... It like 25% to the top... Do i need some other resistance for 50% value be located at the middle? If yes, that what resistance sould it be?

Sounds like you've got logarithmic audio pots - any markings on them?

This will show you how to linearise it with some resistors.

@AWOL theyre old USSR faders (Linear potentiometers?). Cant tell the marking on it, all i can tell is that it goes like on this image: http://www.rmnt.ru/pub/docs_details/25769/25769_html_m2ee9212f.gif
I would need it to straight, from 0 to Max. Not as it goes right now.

@Grumpy_Mike Well, im not really much into electronics, if there would be concrete instructions where and what to buy and how to connect it, it would really help me ::slight_smile:

As you have an Arduino, you can use the log function (or an interpolation table) to re-calibrate the values.

I am not at home right now, but i have tested the function in PHP and i think it will do the hob. Will try it when i get home. Thank you.

if there would be concrete instructions where and what to buy and how to connect it

Spoon feeding:-

http://www.elby-designs.com/documents/tailoringpotentionometers.pdf

@Grumpy_Mike Thank you :slight_smile:

One more question, i created a C++ program that reads from the serial port. I can output all the arduino values recieved. Kinda like the COM Port listener built in the arduino SDK. But i got a question, i want to send the values to something like Virtual DJ or Tractor, for it i need to emulate a midi port, well the main problem is that i dont really get how i can emulate a Midi port from C++. Quick google search didnt give any results, but i think i need to use some custom writen drivers. Thought i hope i can use some alreay made .dll for it (Or Win API), does anyone know how i can do it?

I'd suggest checking out the Java MIDI libraries. I think it would be much easier to use Processing and use the Java MIDI libraries.

My guess is you are better off not using the Processing IDE, as I don't know if it lets you bring in outside libraries. Eclipse works fine though.

But, it does look like this guy made it pretty easy to do some basic MIDI functionality in Processing:
http://ruinwesen.com/blog?id=95

@oscarcar Java.. Im more into C++ Type syntax.. PHP, C++ mostly. Thats why im searching for a C++ solution..

I saw a bunch of C++ MIDI stuff come up in google. I'm sure there's solutions out there. Good luck.

Ok, i found a perfect solution for myself, and thought i would share it.
Im just sending midi messages from Arduino and they are converted (Serial > MIDI) and sent to Virtual Midi port in windows.
More info Serial_MIDI