the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
icon

dual pwm interference issue


Post ReplyPost New Topic
< Prev Topic Next Topic >
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 24, 2013 at 5:38 PM / IP Logged  
Hi guys and gals, I'm trying to work out a solution to a little circuit I've created. Let me start by saying that I'm no electronics guru. I can follow logic and flow but never learned the intricacies of circuit electronics. I'm hoping someone here can help me understand where my problem lies and how to overcome it. OK - enough of that, here's my issue:
I have two LED DRL modules and want to run them with dual PWM controlled dimmer modules. I wanted each light to have two independent dimming modes (hence the twin PWMs). The PWM modules I'm using are commercially bought (555 chip based) dimmers. They regulate the pulse width on the negative output side leading to the lights and can be varied through a potentiometer (1K).
To give each PWM two dimming states, I've taken out the potentiometer and ran those lines through a DPDT relay and then to two 1K trimpots. So depending on the trigger state of the relay, the circuit runs from either one or the other potentiometer and this gives me my dual mode dimming. All works great - but here's the issue:
When I introduce the second PWM (same principle as above), the output lights all start to pulse (i.e. slightly vary in brightness). I'm guessing that the PWM pulse frequency waves are somehow cancelling each other out or clashing because they are not in sync. Since the PWM signal is on the negative side I'm not sure how to isolate or block the interference between the two modulators.
I've attached the drawing of the circuit board I made. Apologies if I've used incorrect symbology so please ask if anything seems unclear.
Thanks for any help. dual pwm interference issue -- posted image.
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 24, 2013 at 5:42 PM / IP Logged  
Hmmm.. image didn't attach. I'll try again with the circuit drawing:
dual pwm interference issue -- posted image.
oldspark 
Gold - Posts: 4,913
Gold spacespace
Joined: November 03, 2008
Location: Australia
Posted: October 24, 2013 at 6:02 PM / IP Logged  
Are you "beating" (mixing) the 2 signals - do you have sufficient track separation and decoupling (caps across each 555 etc)?
I assume by dual you do not mean 2 PWMs feeding the same LEDs...
With a circuit diagram I might be able to suggest more.
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 24, 2013 at 6:53 PM / IP Logged  
Thanks for the quick reply. No, the dual PWMs are meant to be independent of each other. Each bank of LEDs has its own PWM.
I'm not sure what you mean about the decoupling. The 555 based PWMs are unmodified apart from the changes mentioned above.
With regards to the diagram.. is the 2nd post not showing it? Seems to come up alright when I'm viewing it here.
Thanks for your help.
oldspark 
Gold - Posts: 4,913
Gold spacespace
Joined: November 03, 2008
Location: Australia
Posted: October 24, 2013 at 7:29 PM / IP Logged  
That's a wiring or layout diagram - ie, "physical" - not circuit. I usually only reverse-engineer physicals when I am cracking something for my own benefit, though I do allow the "relay pin physicals" of the typical DIN (Bosch etc) relays as often used on this site. [My circuit diagrams show the coils & contacts so that the circuit (behavior) can be understood.]
In short, you may have to separate the tracks & wires carrying the PWM pulses, or make them heavier (especially the +V & GND supplies; maybe by adding solder to the tracks), or add decoupling caps.
The latter might include a biggish cap across the power input and rails (eg, 10uF to 10,000uF electrolytic caps) and small fast caps (0.1uF or 0.01uF) across signal (PWM) lines as well as power rails.
Maybe discarding the PCB is the solution - ie, wire direct to relay sockets and keep the 2 "channels" separated.   
I've given some more (optional) misc info below, but circuit noise is an art in itself. PCB layouts can be critical. In some cases, PCB tracks require shielding tracks (GND) on both sides. That's where ground planes and multisided-PCB layer order require their expertise.
Decoupling caps are those used across power supplies to filter out spikes. EG - 555s are notorious for switching transients and often have a 0.01uF or similar as close as possible to its supply pins - ie pins 1 & 8 - but most digital chips have the same. Otherwise spikes thru the power rails can cause undesirable triggering.
But such transients can also be coupled across tracks and wires that are parallel and too close, hence why power and signal or audio wiring requires separation, else decoupling.
This (inductive or capacitive) coupling increases with current and steepness of the waveform. And PWM like digital signals are "sharp" edged square or rectangular waves.
Digital signals can be decoupled (filtered) with caps, but the cap needs to be small so as to filter out the high frequency noise but not smooth out the digital signal. EG - you do not want a cap across a PWM to turn it into a "continuous" sinusoidal wave (despite what some Swedish "expert" BMW owners seemed to think - dig dig! dual pwm interference issue -- posted image. ) as that defeats the purpose of PWM.
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 24, 2013 at 10:45 PM / IP Logged  
oldspark wrote:
I've given some more (optional) misc info below, but circuit noise is an art in itself. PCB layouts can be critical. In some cases, PCB tracks require shielding tracks (GND) on both sides. That's where ground planes and multisided-PCB layer order require their expertise.
Dang.. I almost knew there wouldn't be a simple answer :)
I did try the non-PCB way as well thinking I may have screwed up somewhere in the circuit design. Unfortunately it's the same outcome. I can balance the waves if the trimpots are set absolutely the same between the PWMs. As soon as one of them switches to a longer pulse width the problems re-emerge.
Thanks anyway for your help. I may have to discard this concept and just go back to running a single PWM.
oldspark 
Gold - Posts: 4,913
Gold spacespace
Joined: November 03, 2008
Location: Australia
Posted: October 25, 2013 at 1:23 AM / IP Logged  
Again, if you can provide the circuit diagram.
It does sound like you are combining both PWMs onto the same LEDs, but if you say they are electrically separate... (excluding crosstalk etc).
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 26, 2013 at 7:45 PM / IP Logged  
OK.. I've tried to draw up the circuit of what I've done. Unfortunately I don't have the circuits for the PWM as they have been bought commercially. All I've done to them is to take out the potentiometer and used the three pins to splice it into my circuit (i.e. going to the two potentiometers; one or the other depending on the relay). The LEDs are wired directly into the pins on the PWM (no cross over there) but the PWMs share the main power feed and the ground.
dual pwm interference issue -- posted image.
oldspark 
Gold - Posts: 4,913
Gold spacespace
Joined: November 03, 2008
Location: Australia
Posted: October 27, 2013 at 11:12 PM / IP Logged  
What value potentiometer?
That pot in 555 PWM circuits is usually connected to a diode; a diode is an AM detector (receiver) and you have long leads to external pots.
If might be paralleling the kit's pot circuit and going below (say) the minimum 1k required in that circuit (to protect the 555??).    
But ensure the GND paths are good - ie, enough track width or solder, and the 555 GNDs and relay-coil's GNDs are reasonably independent (not through each other).
dbo12 
Member - Posts: 6
Member spacespace
Joined: October 24, 2013
Location: Australia
Posted: October 27, 2013 at 11:51 PM / IP Logged  
Thanks for your help Oldspark. The potentiometers are all 1K.
I've taken a snapshot of the PWM in default trim. The ribbon wire coming off the board top left is where I'm replacing the standard pot with my circuit.
dual pwm interference issue -- posted image.
Luckily I had a couple of these spare so I tried wiring them direct to my lab power supply; so no using my circuit or the twin trim pot idea. Same issue. As soon as you combine the two dimmers onto the same ground they interfere.
I'm guessing there's probably better ways to skin the cat for what I want to do but here I was hoping for a relatively simple and compact solution. At the moment I run the lights just by using a controlled power supply and then through a single PWM to get the dimming state. I might just stick with that and be done with it since my circuit design knowledge isn't quite up to the task of designing a complete solution.
Page of 2

  Printable version Printable version Post ReplyPost New Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

  •  
Search the12volt.com
Follow the12volt.com Follow the12volt.com on Facebook
Sunday, May 26, 2024 • Copyright © 1999-2024 the12volt.com, All Rights Reserved Privacy Policy & Use of Cookies
Disclaimer: *All information on this site ( the12volt.com ) is provided "as is" without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular use. Any user assumes the entire risk as to the accuracy and use of this information. Please verify all wire colors and diagrams before applying any information.

Secured by Sectigo
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
Support the12volt.com
Top
the12volt.com spacer
the12volt.com spacer