Thanks everyone for the suggestions, but I'm not sure I follow. Excuse my ignorance, but how is tyeing the PWM to +5v threw a pu going to scale the voltage?
Maybe I am not explaining it correctly, I'm not looking for a logic high or low but rather a scale form 0 to 5 volts.
The MCU reads the sensor and sets the PWM to a percentage of what the sensor reads between to set points. If the sensor is at 50%, the PWM is set to 2.5volts, half of the max 5volts. If the sensor is read at 75%, the PWM is set to 3.75 volts, etc. This in turn then displays 0 to 100% on the 10 LED bar graph. So I need to scale the 0 to 3.3v PWM to a 0 to 5 volt output. 75% of 3.3v is 2.475, this will need to be scaled to 3.75 to show 75% (~7 bars) on the LED Bar graph.
The I2C potentiometer that Christian suggested might be a simple solution.
I would like to consider using the mbed but I have a couple issues;
1. I need it to read presure sensors that output a voltage from 0.5 to 4.5 volts full scale. The mbed analog inputs can only read 0 to 3.3 volts. One alternative here is the company makes an Identical sensor that uses the I2C protocal.
2. Likewise, I need the PWMs to output 0 to 5 volts, but the mbed outputs 3.3 volts. I'm sure there is a way to scale this useing transitors, FETs, or some such but not sure where to start.
Whats your suggestions?
Thanks