Go Down

Topic: trying to get this to work (Read 7447 times) previous topic - next topic

jimjam

I have been trying to get this to work with the pwm of my arduino.
http://uk.farnell.com/jsp/search/productdetail.jsp?CMP=cmwis_email&sku=1936419
It is a triak with proportional control and is controlled with 2-10v dc. I have made a circuit as below but it does not seem to work. The voltage on the input pins is ok as I get 10v when the pwm pin is at 255 and 5v at 120 etc. do I need to look at another method on the electronics side.
be gentle with me as this is my first project.

Any help would be appreciated.

AWOL

Quote
The voltage on the input pins is ok as I get 10v when the pwm pin is at 255 and 5v at 120 etc

Your PWM output is either 5V or 0V.
If you want anything in between, you need to smooth it.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

jimjam

why do I get the correct voltage when I test the  pos neg terminals of the triak. ie analoguewrite 255 I get 10v across the terminal analoguewrite  120 I get 5v . I have tested the triak with a battery and it is working perfect, so the problem has to be my circuit. how can i get the arduino to control 2-10v?

AWOL

Quote
when I test the  pos neg terminals of the triak. ie analoguewrite 255 I get 10v across the terminal analoguewrite  120 I get 5v

How are you testing this?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


AWOL

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.


AWOL

I really wasn't expecting that.
The fact remains, that with the circuit you showed, the voltage at the collector of the transistor will be either 0V or 10V.
How your Crydom device responds to this, I have no idea.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

jimjam

do you have any other method to allow me to control 0-10v.

AWOL

Yes, you could low-pass filter the PWM.
Sorry, I'm not an analogue person.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

CrossRoads

Take your arduino pin, run it thru a 1K resistor to the base of the transistor, and add a 1 uF cap to ground from the base of the resistor.
This will make a low pass filter, so the transistor will see a DC level and not a hard 0V or 5V level.

See "passive electronic realization" here

http://en.wikipedia.org/wiki/Low-pass_filter

Adust R & C so that the 490 Hz switching of the PWM output is filtered out.
F = 1/(2piRC)
F*2*pi*R = 1/C
C = 1/(F*2*pi*R), so for 300 Hz, 1K resistor, I think that works out to a 53uF cap.

Try different Rs & Cs, see how it works out.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

jimjam

Is this correct

kf2qd

How do you have this connected, and to what do you have it connected?

The data sheet says for resistive loads. With No Load it may not show that it is doing anything. And 50Amps is rather exciting...

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Runaway Pancake

http://arduino.cc/forum/index.php/topic,93735.0.html
I was leaning toward a DAC
An AD558 is still available, but expensive.
A DAC0808 is still available, less expensive, but req's a dual-ended supply and an op-amp.

The low-pass on the input to the base, above, will only result, still, in switching the transistor - it won't effect a variable voltage the way jimjam wants. 
Anyway, if you low-pass the pwm and then run that into a buffer, its output would be a variable voltage, likely with some ripple.  An op-amp might not be able to supply the current needed at 10V (20mA?).  So, something like a common-collector amp for the op-amp's out would take care of that.
"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Go Up