Offline
Newbie
Karma: 0
Posts: 47
|
 |
« on: February 29, 2012, 03:12:15 pm » |
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=1936419It 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.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #1 on: February 29, 2012, 03:27:40 pm » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 47
|
 |
« Reply #2 on: February 29, 2012, 03:33:57 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: February 29, 2012, 03:35:42 pm » |
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?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 47
|
 |
« Reply #4 on: February 29, 2012, 03:43:48 pm » |
with a multimeter
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #5 on: February 29, 2012, 03:44:28 pm » |
Analogue, or digital?
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 47
|
 |
« Reply #6 on: February 29, 2012, 03:47:05 pm » |
digital
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #7 on: February 29, 2012, 03:52:29 pm » |
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.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 47
|
 |
« Reply #8 on: February 29, 2012, 04:00:49 pm » |
do you have any other method to allow me to control 0-10v.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 137
Posts: 19001
I don't think you connected the grounds, Dave.
|
 |
« Reply #9 on: February 29, 2012, 04:09:45 pm » |
Yes, you could low-pass filter the PWM. Sorry, I'm not an analogue person.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16429
Available for Design & Build services
|
 |
« Reply #10 on: February 29, 2012, 04:16:43 pm » |
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_filterAdust 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.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 47
|
 |
« Reply #11 on: March 01, 2012, 01:30:54 pm » |
Is this correct
|
|
|
|
|
Logged
|
|
|
|
|
South Texas
Offline
God Member
Karma: 8
Posts: 976
|
 |
« Reply #12 on: March 01, 2012, 04:36:37 pm » |
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...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 240
Posts: 16429
Available for Design & Build services
|
 |
« Reply #13 on: March 01, 2012, 09:59:28 pm » |
I'd say yes.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 21
Posts: 1354
Now, More Than Ever
|
 |
« Reply #14 on: March 01, 2012, 10:48:02 pm » |
http://arduino.cc/forum/index.php/topic,93735.0.htmlI 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.
|
|
|
|
|
Logged
|
Don't Be Upset By The Results You Didn't Get With The Work You Didn't Do
|
|
|
|
|