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 11-10-2006, 05:48 AM
 
Join Date: Aug 2005
Location: can't tell you XD
Posts: 98
sunmix is on a distinguished road
Unhappy Weird Things Happening At My Relay @.@

after starting a thread about 24v - 5vdc convert, i finally managed to get a regulated 5v- cheers to everyone who contributed information on that thread!

the 5v is meant for my 7406 buffer, so it produces enough currents and voltage to kick up my big and bulky solid state relay, which is connected to a mechanical relay.

Then, i am trying to diversify all these circuits into electronics, and the problem starts here.

A parallel port pin supplys 5v signal to the buffer, and after buffer comes the pull up of 10k ohms, and next is to a blue 5v electronic relay, shown on the pic. I am running mach3, so i am able to stimulate the process by turning on and off the active low and high settings.

As i turn it into active high, nothing happens.

I asked a local electronics guy regarding this problem and he says that I should be using a 3v relay, for this application. So i bought the white 3v relay, and tried it out. nothing happened again.

But i've notice that if my pin is at active High, the voltage is at 4.2vdc at free load, and after I connect it to those 2 relays, it drops to 1.5-2vdc.

I took both relays and tried it using 3x1.5v batteries (4.5v) and it manages to trigger the relay.

What exactly happened? Help me..! going nuts soon!
Attached Thumbnails
Click image for larger version

Name:	5vand3vrelay.jpg‎
Views:	50
Size:	52.5 KB
ID:	25429  
Reply With Quote

  #2  
Old 11-10-2006, 06:23 AM
Gold Member
 
Join Date: Sep 2003
Location: USA
Posts: 530
HillBilly is on a distinguished road

The 7406 is a open collector devise. You are relying on the 10k resistor to turn on the relay. The way to do this is to put voltage on the relay and let the 7406 ground it.

Darek
Reply With Quote

  #3   Ban this user!
Old 11-10-2006, 08:18 PM
 
Join Date: Aug 2005
Location: can't tell you XD
Posts: 98
sunmix is on a distinguished road

HillBilly,
Do you mean by taking away the 10k resistor or putting the 10k resistor before the 7406?
Reply With Quote

  #4  
Old 11-10-2006, 09:00 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

As Darek said, with open collector (7406) the 10k pull up resistor should be replaced by the relay coil. Make sure the 7406 can sink the current required by the coil (ohms law).
You may also want to look at relay drivers like the DS2003 these have reverse emf diodes installed, are darlington output and can be used to switch 24vdc relays, with 5v input. They come 7 to a chip.
You also need to wire a 1n4005 or similar across the coil, reverse biased, or you may lose the 7406 due to back emf on switch off.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #5   Ban this user!
Old 11-11-2006, 03:22 AM
 
Join Date: Aug 2005
Location: can't tell you XD
Posts: 98
sunmix is on a distinguished road

em, can you kindly draw out a simple schematic plan? I couldn't really understand! Sorry, my bad, my english is not that good..
Reply With Quote

Sponsored Links
  #6  
Old 11-11-2006, 09:53 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

This should explain it. http://www.kpsec.freeuk.com/components/relay.htm
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #7   Ban this user!
Old 11-11-2006, 10:14 AM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

A way to look at it is this: sourcing current versus sinking current.

A parallel port can fairly easily "sink" current (pull down a signal that is pulled high via an external pull up resistor).

When you ask a parallel port to "source current" as in provide enough power to actually drive the device high that you're trying to drive, that's when things can become difficult.

Might want to google "parallel port interfacing".

Yes, parallel ports can do neat things BUT sometimes the actual way they "communicate" with external devices is NOT intuitively obvious.
Reply With Quote

  #8  
Old 11-11-2006, 10:31 AM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by NC Cams View Post
A parallel port can fairly easily "sink" current (pull down a signal that is pulled high via an external pull up resistor).

When you ask a parallel port to "source current" as in provide enough power to actually drive the device high that you're trying to drive, that's when things can become difficult.

.
But It looks like he is already looked at buffering, hence the 7406.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

  #9   Ban this user!
Old 11-11-2006, 11:59 AM
 
Join Date: Jul 2005
Location: USA
Age: 42
Posts: 442
pastera is on a distinguished road

The Songle relay in your picture needs 78mA for the coil and the 7406 is only rated for 48mA.

Take a look at the link Al posted. Under the heading "Protection diodes for relays" you will se a schematic. This is what you need. Use a 2n3904 for the transistor and a 1.6K base resistor.

Aaron
Reply With Quote

  #10  
Old 11-11-2006, 12:07 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

This is what makes the DS2003 nice is that it will drive up to 350ma.
and has the rev. diode in the chip.
For single driver, I prefer the 2N7000 as no other resistors are required usually.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 11-11-2006, 03:40 PM
 
Join Date: Dec 2005
Location: USA
Posts: 3,319
NC Cams is on a distinguished road

The 7406 is both current limited in its ability to source current AND it depends what it is using for its +5vdc source. I don't think we know what that source is, do we????

A common trick is to use pin 17 (I think) off the LPT port as a 5v source for pull up reference. In a reference book I have (that I can't find or else I'd pos the ISBN for it), it clearly states that this pin is NOT a reliable voltage source - yet, folks persist on using it.... Hence, it may also NOT provide the current needed to properly drive a buffer IC.

If there is a stiff power supply powering the 7406, it is probably a decent buffer IF its current sourcing capabilities are not exceeded.

For a decent amount of current, you might be better off driving a 2N4401/2N4403 totem pole or better yet, perhaps a fet driver. In either case, a wall bug would be what I'd use for the +5vdc voltage source.
Reply With Quote

  #12  
Old 11-11-2006, 03:58 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,543
Al_The_Man is on a distinguished road
Buy me a Beer?

Originally Posted by NC Cams View Post
For a decent amount of current, you might be better off driving a 2N4401/2N4403 totem pole or better yet, perhaps a fet driver. In either case, a wall bug would be what I'd use for the +5vdc voltage source.
I disagree with the 2n4401 over the 2n7000, the 2n7000 is a 'Fetlington' Darlington equivalent in a fet and is TTL compatible input, this is what it is designed for as a TTL driver to buffer high current loads.
Personally if you are going to alternatively source a relay power supply, why go with 5vdc? I would recommend at least 24vdc.
But if you want to stick with the PC power supply, there is already a high current 5v source using one of the power supply HD connectors.
Al.
__________________
CNC, Mechatronics Integration and Machine Design.
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.
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





All times are GMT -5. The time now is 09:14 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