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 03-11-2009, 09:28 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road
Funny Noise Problem

Background:

I am helping some older gentlemen in the neighborhood on their model train setup. They want to develop a control circuit so the train can travel the whole track without them having to do anything. This involves automatically switching the track in several places to keep the train going in the right direction.

I have a circuit on the breadboard which works for the most part. I am using QRD1114 optosensors to sense the train. This signal is fed through a schmitt trigger, then onto a 74ls221 one-shot. The signal then goes to a ULN2003 which is driving relays to switch the ~15 VAC to switch the track turnout back and forth. The sensor sees the train, the schmitt trigger cleans up the signal. The one-shot terminates the pulse to switch the track so the coils in the turnout don't burn up if a train stops on the sensor.

Problem:

The circuit is working fine with the track power turned off. When the track and turnouts are turned on, I get noise in my circuit. If I use the manual button to trigger the track turnout, when I release the button (turn off the coil) my one-shot outputs a pulse. The signal is absent from the input to the one-shot but it is there in the output.

I thought it might be due to noise in the power so I added a 47uF and .1uF cap to the power near the one-shot, which did not solve my problem. I am not sure how the noise is getting into the circuit as the 5V and 12V are isolated from the AC powering the turnout. The only way I see is if the leads to power the optosensor are acting as an antenna and picking up EMI from the spike in the coil voltage when its turned off. I have poked around with a scope but have not seen any significant noise. It is either of a small magnitude or such a quick impulse that I am not seeing it.

Should I add snubbers to the coils on the turnouts? Any way to increase the noise filtering on the circuit?

Sorry for the long post, needs a bit of explanation.

Thanks for any advice
Matt
Reply With Quote

  #2   Ban this user!
Old 03-12-2009, 06:56 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

What are you powering the one-shot and relay from? Is it isolated from the track and turnout power source?

Is the sensor wiring physically isolated (not bundled with) the wiring to the turnout coils?

There are a couple of places that you could be picking up noise from:
1 ) power supply, like a common ground or a shared supply.
2 ) sense input. logic inputs are notoriously sensative when connected to long wires.

To troubleshoot the problem, I would disconnect the sense line from the one-shot and ground or tie the one-shot trigger input to +V so it is not triggered. If the one-shot still fires when you release the manual button, it is probably a power coupling. If it does not, you might think about putting a small cap from the trigger input to ground and maybe a small series resistor as well.

sense line --------/\/\/\------------| trigger input of one-shot
50 |
== .1uF
|
----
gnd of
logic
ckt.

An optoisolator would be another idea. Not so much because of the isolation which is good, but it makes the signal require several mA of current to transition it.

I foget if the ULN2003 has catch diodes to protect the transistor from the inductive kickback of the relay coil, but if it does not, adding one per relay would be a good thing.

Good Luck,
BobH
Reply With Quote

  #3  
Old 03-12-2009, 07:36 PM
Al_The_Man's Avatar
Community Moderator
 
Join Date: Dec 2003
Location: Canada
Posts: 16,540
Al_The_Man is on a distinguished road
Buy me a Beer?

I wonder why AC is used? DC is more efficient and does not burn out if there is no pick up.
If AC devices, I would use RC snubbers across each.
You may be better off to take each supply common to a common ground from each supply, this would also be connected to the incoming service ground also.
This is a method I have always subscribed to and have never had any noise induced problems.
I have always felt there is too much stock placed in trying to isolate everything, particularly where AC is involved.
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

  #4   Ban this user!
Old 03-12-2009, 09:53 PM
 
Join Date: Jan 2006
Location: USA
Posts: 1,764
keebler303 is on a distinguished road

Well I worked on the circuit some more tonight. I only go to work on it once a week so it is hard to test things out quickly. I think I have it working now.

The logic and relay are powered from an adjustable voltage bench supply. The AC is coming from a separate isolated transformer. The sensor wires are not bundled with the coil wires but within a foot or so.

I first tried installing some RC snubbers to the coils. I used 100 ohm and .1uF as it seemed a good baseline from what google had to say about it. Problem still existed. I started poking around with the scope some more and found the problem. I did not see it earlier as it is a super short duration spike. The spike is on the emitter of the optosensor. It is about 4V in magnitude and only several 10's of ns in duration. I am still not sure where it is coming from. I think the 6ft long unshielded wires to the sensor may be picking up emi and causing the impulse on the line. The schmitt trigger sees the spike and then all bets are off.

I solved the issue for now by installing a .1uf cap between the emitter of the optosensor and ground, that is the input to the schmitt trigger. This pretty well damps out that spike and it functions correctly now. I think when I move to a real circuit board I will put in a proper low pass filter to make sure I don't have any more problems with it.

ULN2003 already has flyback diodes inside.

Not sure why they use AC. Maybe to avoid wiring mistakes? Cheaper? Tradition?

Thanks for the help, I think I've got enough to keep it working now.

Matt
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
Funny Dovetail cnc2 Linear and Rotary Motion 94 05-10-2009 07:06 PM
Limits/Noise problem RichardV48 Mach Mill 31 07-08-2007 05:02 AM
cnc cutting funny tomcook DIY-CNC Router Table Machines 2 10-27-2006 05:31 AM
Inverter noise problem Help !!! mbam Phase Converters and VFD 17 06-06-2005 05:24 PM
Funny motomitch1 CNCzone Club House 8 01-27-2004 04:01 AM




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