I'd like to control a frequency inverter using an Arduino Uno board and inverter analog input, in order to control AC motor speed. To do this I need to vary inverter analog input voltage. Inverter analog input is 0-40mA and 0-10V. Is it possible to build a circuit to accomplish this function using Arduino PWM output? Is there any other way to accomplish this?
update:
I've created a simple Sketch below and a prototype to test the circuit you've showed.
int potPin = A0; // select the input pin for the potentiometer
int potValue = 0; // variable to store the value coming from the sensor
int outPin = 3; // select the pin for the LED
void setup() {
// declare the outPin as an OUTPUT:
pinMode(outPin, OUTPUT);
}// setup
void loop() {
potValue = analogRead(potPin);
analogWrite(outPin, map(potValue, 0, 1023, 0, 255));
delay(300);
}// loop
The potentiometer is responsible to generate a PWM 0-10V output by pin 3. I've plugged 12V source to Arduino and tested each part using a multimeter. First I've measured red arrow and GND and checked 0-5V was ok. But when I measured amplifier LM324N output pin 14 (blue arrow) and GND, it's always 0 Volts even moving potenciometer to each way. Could you help me solving this problem? Do you need any other information?