Outputting a voltage

Hi,

I just wanted to know if it's faisable with a arduino, and especially with a arduino BT board to outputting a voltage between 0v and 5v.

For example the number 100 corresponds to 0V and 345 corresponds to 5V.

Thank you

Yes, but not directly. You'll either need to use a PWM output and run that through a low-pass filter to get your voltage, or use something like a SPI/I2C interfaced DAC to do the job. Depending how much precision you want, I might be tempted to start with the first option as you only need a resistor and a capacitor :)

With PWM, 0 would correspond to 0, 128 to ~2.5V, and 255 to 5V.

Ok so i don't need to buy extra hardware ? Actually the values is between 70 and 200 so it should be ok

ZazOufUmI: Hi,

I just wanted to know if it's faisable with a arduino, and especially with a arduino BT board to outputting a voltage between 0v and 5v.

For example the number 100 corresponds to 0V and 345 corresponds to 5V.

Thank you

You could map it, and then use PWM. Something like this: int x = NumberToOutput; //replace with your value int y = map(x, 100, 345, 0, 255);// map 100 - 345 to 0 - 255 analogWrite(PWMpin, y); // write value to your (PWM-capable) output pin

Thank you for your help. I'm not already at this point of my project, I will try ASAP and I come back if I have more questions.

Hi, See http://arduinoinfo.info http://arduino-info.wikispaces.com/Analog-Output