I'm working in a project that is about a construction of a device based on an embedded system that will replace the sensors and simulates
electrical failures in machines by changing the signals that are sent to ECU.
The hardware that I am using to communicate with the ECU is the Arduino, that works with a voltage range between 0-5V, and an amplifier based on transistors for reach higher voltages. With only the Arduino connected, the ECU recognizes the signals and makes the appropriate changes in the front panel, but when connected with the Arduino and the amplifier circuit, the ECU don’t recognizes and nothing happens. So I would be grateful if someone could help me with some advice about the electrical system involving the sensors and the ECU.
Whether that circuit will behave as you intend depends on the input resistance of the ECU. If it is high enough, then it will work; although TIP120 is a poor choice of transistor (you should use a small signal transistor such as BC337 or even 2N3904). Also, the 10V supply will need to be regulated, otherwise the output voltage will depend on the supply voltage.
The circuit you gave in reply #2 will work even if the input resistance of the ECU is quite low, although if V2 represents a PWM pin on a 5V Arduino, then R2 and R4 should have equal values. The output voltage will depend on the exact voltage of the 5V supply, but not on the 10V supply (as long as it is high enough).
PS - I am assuming that you have increased the PWM frequency, because the low-pass filters you are using (22K and 0.47uF in reply #2, or 10K and 0.47uF in reply #4) will not provide very good smoothing at the default PWM frequency of about 490Hz.
You said to increase the frequency, but the link show how to decrease.
And.. you said that the frequency is about 490Hz, but in the link, the frequency is 62500Hz.
Rafael5767:
Sorry, i didn`t understand some things.
You said to increase the frequency, but the link show how to decrease.
And.. you said that the frequency is about 490Hz, but in the link, the frequency is 62500Hz.
I`m a little confused.
tks for your time.
The frequency you normally get from analogWrite() is 490Hz. The maximum frequency you can get (referred to as the "base frequency" on that page, which is not the same as the default PWM frequency) is 62500Hz or 31250Hz, depending on the pin. The link shows how you can select the frequency, which (depending on your choice) may be above or below the usual frequency of 490Hz.
the problem is that i`m working with labview to communicate with the arduino, but i found a link that maybe will help me to change the frequency through the labview.
I will try all your advices, in case of fail i will post here the doubts.