CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 10-17-2009, 07:19 AM
 
Join Date: Dec 2008
Location: N/A
Posts: 32
Sunmixed is on a distinguished road
Triggering PC817 with 24VDC, 2AMPS?

Hello guys, I hope i'm in the right place to post this help about triggering PC817 with 24VDC, 2AMPs, for an input pin in parallel port for Mach 3.

Back 4 years ago, i started using and have been using 24VDC Relays to assist me in triggering input pins. The circuit was:



This worked very, very well. However, its very bulky in size. Besides, electronics are vital these days. Wouldn't want to be left out

So, I came up with this schematic:


I soldered it into a PCB Breadboard, all soldering correct, and all of the PCB lines have been enhanced with thicker solder.

Very weird reason of why it doesn't work.

CON1 Pin 1 is fed with 24VDC 2AMPS -
CON1 Pin 2 is fed with 24VDC 2AMPS +

Power is a switching power supply with +/- 0.1V Tolerance.

At the end of the power, i measured 6.9VDC. Looks promising to trigger PC817, however, it doesn't work.

Anyone know why? I'm sorry that it could sound newbie, but this is what i'm struggling at

Thank you in advance!

Sunmixed
__________________
"I will not let you regret knowing me."
Reply With Quote

  #2   Ban this user!
Old 10-17-2009, 07:46 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
What's the purpose of the zenerdiode? Try removing it.
Reply With Quote

  #3   Ban this user!
Old 10-17-2009, 08:14 AM
 
Join Date: Dec 2008
Location: N/A
Posts: 32
Sunmixed is on a distinguished road

Henrik,

I'm not quite sure. I saw on some PCB board who is doing the same thing. @@ Well, I'm gonna remove it soon.
__________________
"I will not let you regret knowing me."
Reply With Quote

  #4   Ban this user!
Old 10-17-2009, 08:39 AM
 
Join Date: Jul 2005
Location: USA
Posts: 1,877
Torchhead is on a distinguished road

That part number is a transit voltage protector (kinda like a zener but has a softer "knee") and will withstand greater overloads. If it's a 6.8 volt device as the part indicates it will grab all the current intended for the opto and not enough will flow to turn it on. The resistor value is right for 24 V (about 10ma) and the cap help reduce any noise from the outside. The TVS diode can go away unless you think the input voltage could spik above about 75VDC. The value needs to be about a 48VDC device. It just protects the opto.

The resistor has to drop about 22.8 V at so the series current is about 9.5 ma. At that the resistor dissipation is 200mw (1/4W) which will run a standard 1/4W resistor on the warm side. Depending on the opto you use you made need a tad more current in the emitter side. Dropping the resistor to a 2.2K would give you wider margin of operation.

The Gain of the opto (stated in the spec sheets) will predict how much current you can get on the other side (NPN transistor). You want to try and run the transistor at fairly close to the suggested current to get decent On and (especially) off times. In most inputs it does not matter and if it worked with relays it certainly will work with a slow opto (:-)

TOM Caudle
www.CandCNC.com
Totally Modular CNC Electronics
Reply With Quote

  #5   Ban this user!
Old 10-17-2009, 09:16 AM
 
Join Date: Dec 2008
Location: N/A
Posts: 32
Sunmixed is on a distinguished road

Originally Posted by Torchhead View Post
That part number is a transit voltage protector (kinda like a zener but has a softer "knee") and will withstand greater overloads. If it's a 6.8 volt device as the part indicates it will grab all the current intended for the opto and not enough will flow to turn it on. The resistor value is right for 24 V (about 10ma) and the cap help reduce any noise from the outside. The TVS diode can go away unless you think the input voltage could spik above about 75VDC. The value needs to be about a 48VDC device. It just protects the opto.

The resistor has to drop about 22.8 V at so the series current is about 9.5 ma. At that the resistor dissipation is 200mw (1/4W) which will run a standard 1/4W resistor on the warm side. Depending on the opto you use you made need a tad more current in the emitter side. Dropping the resistor to a 2.2K would give you wider margin of operation.

The Gain of the opto (stated in the spec sheets) will predict how much current you can get on the other side (NPN transistor). You want to try and run the transistor at fairly close to the suggested current to get decent On and (especially) off times. In most inputs it does not matter and if it worked with relays it certainly will work with a slow opto (:-)

TOM Caudle
www.CandCNC.com
Totally Modular CNC Electronics
Thank you Tom! Well both of you, I did try removing the 1.5KE6.8, it came out with 23.98VDC.

I suppose i will put it back, and replace it with a 2K2 resistor!

I was wondering, if this 24VDC 2A can be step down into 5V with just this schematic, is it good to power a 5V Relay?

And uhm, can it replace a 7805 and 7812? Just being curious
__________________
"I will not let you regret knowing me."
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 10-17-2009, 09:42 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
If you have 24V across pin 1 and pin 2 of the PC817 then you either have the pins reversed or the LED in the opto-isolator is shot.

LEDs are current driven and the have a nominal forward voltage drop. In the case of the PC817 this voltage drop is 1.2V typical and the forward current should be somewhere between 10 and 50mA depending on how much current you need to pull thru the transistor on the other side.

If you want to drive the PC817 with a 24V signal, then 22.8V needs to be dropped across the series resistor. Let's say you want 15mA thru the LED then Ohms law (R=U/I) tells you the resistor needs to be 22.8V/0.015=1520ohm. If you want to drive the same PC817 with a 5V signal then resistor needs to be 3.8/0.015=253ohm.

The diode doesn't do you any good for now, simply get rid of it, double check the polarity of the 24V signal and the pin orientation of the opto-isolator. With a resistor of anything between 1 and 2.7k you should read a voltage of around 1.2V across pin 1 and 2 of the PC817, if you still se 24V then the PC817 is shot.

/Henrik.

EDIT: Short answer to the question if it can replace a 78nn voltage regulator is no. You can use a resistor to "drop" voltage like is being done above but the current needs to be known and constant or the "output" voltage will go up and down as the current changes.
Reply With Quote

  #7   Ban this user!
Old 10-17-2009, 09:53 AM
 
Join Date: Dec 2008
Location: N/A
Posts: 32
Sunmixed is on a distinguished road

Originally Posted by H.O View Post
Hi,
If you have 24V across pin 1 and pin 2 of the PC817 then you either have the pins reversed or the LED in the opto-isolator is shot.

LEDs are current driven and the have a nominal forward voltage drop. In the case of the PC817 this voltage drop is 1.2V typical and the forward current should be somewhere between 10 and 50mA depending on how much current you need to pull thru the transistor on the other side.

If you want to drive the PC817 with a 24V signal, then 22.8V needs to be dropped across the series resistor. Let's say you want 15mA thru the LED then Ohms law (R=U/I) tells you the resistor needs to be 22.8V/0.015=1520ohm. If you want to drive the same PC817 with a 5V signal then resistor needs to be 3.8/0.015=253ohm.

THe diode doesn't do you any good for now, simply ger rid of it, double check the polarity of the 24V signal and the pin orientation of the opto-isolator. With a resistor of anything between 1 and 2.7k you should read a voltage of around 1.2V across pin 1 and 2 of the PC817, if you still se 24V then the PC817 is shot.

/Henrik.
Henrik, I did try your method earlier before posting. For some what reason, it still doesnt work. Like you said, in between 1 and 2.7k, my original resistor was 2.4K. Still, it ended up at 23.98. But i'm not quite sure with the current. Wouldn't you think that that little resistor is too big for 2AMPs? Should I get something higher for your proposed method?

While measuring the voltage, i've removed the PC817. Guess I will try it again, but with the optocoupler mounted.

Sunmixed
__________________
"I will not let you regret knowing me."
Reply With Quote

  #8   Ban this user!
Old 10-17-2009, 11:01 AM
H.O H.O is offline
 
Join Date: Jul 2007
Location: Sweden
Posts: 886
H.O is on a distinguished road

Hi,
It doesn't matter if the powersupply can deliver 0.2A, 2A or 200A in this case - you only need 0.015A and as long as it can deliver that amount it's fine.

The circuit will only pull the amount of current from the supply that it "needs" no matter how many amps the supply can deliver. Once again Ohm's law dictates, Current=Voltage/Resistance. So if you put your 2.2k resistor between + and - on the supply there will be a current of 24/2200=0.011A or 11mA flowing even if you have a 24V, 200A supply.

Do you have an ordinary LED handy? If so, replace the PC817 with the LED then you can see if lights up or not. Make sure you get the polarity right.

If you remove the PC817 there's definetly no current flowing and when there's no current flowing thru the resistor there won't be any voltage dropped across it so you'll get 24V on both sides of it. See, it's Ohm's law again, Voltage=Current*Resistance. Zero current=zero voltage drop results in the same voltage on both sides.

/Henrik.
Reply With Quote

  #9   Ban this user!
Old 10-18-2009, 03:37 AM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

All good suggestions.

I would suggest that you further try connecting an LED in series with the Optocoupler LED to check if it is in fact conducting current.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
24vdc Power supply thuffner3 General Electronics Discussion 27 10-06-2011 06:33 PM
series II interact II 24vdc solenoid valve bigtoad170 Bridgeport and Hardinge Mills 0 12-13-2007 02:17 PM
convert 24vdc to 5vdc?? sunmix General Electronics Discussion 37 11-11-2006 09:39 PM
24vdc motor control blksmith General Electronics Discussion 17 10-21-2006 09:39 PM
plasma torch triggering anthony SheetCam 3 05-05-2005 01:03 PM




All times are GMT -5. The time now is 04:54 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361