Hello,I am new to the Arduino so bear with me. I am trying to vary voltage to a a device. I need the voltage to go from 0-8 volts. so my Question is: how can I hook up the POT,code the Arduino, and hook up the deviceI have got a good idea from watching this Vid :http://www.youtube.com/watch?v=FKj9jJgj8PcHowever, unlike the Servo my device does not come with Arduino code to make my life easier.

what I have so far is this:I have connected the POT to the 5V, Ground, and control pin # 2 ( analog ).My output device is simply connected to Ground and pin #13 ( digital ).

my code is not doing what it needs to ( i.e vary the voltage ) all its doing is going from 0 V straight to 8 V.

can anyone suggest a way to make the voltage vary from 0-8V using the POT .. Thank you

Because you are working with voltages higher than the 5V output of the Arduino and possibly currents higher than Arduino can provide you will need some transistors to switch the 8V to the resistor ladder. There are tutorials around for using transistors to drive higher voltage and current loads like DC motors.