What's that high-pitched squeal
KenFordham
Posts: 12
I just got a Propeller Proto board. Naturally, my first program is a LED blinker. After I downloaded it to the Propeller, it worked fine the first time. But I noticed that there is a very high-pitched squeal that comes and goes with each blink. Has anyone else experienced this? Any ideas on how to prevent it?
Comments
If your Propeller is running with an 80MHz clock, it draws about 10mA per cog. If it's running with the default internal clock (RCFAST), it would draw maybe 2mA. The pilot LED on the Protoboard draws more than that and the blinking LED wouldn't make that much difference (maybe another 10-15mA).
I really can't tell where the squeal is coming from.
The power comes from a wall wart that outputs 8.4 volts DC. This is then plugged into the power input on the proto board where the power supply on the board knocks it down to 5v and 3.3v. I unplugged the wall wart to look at it and then plugged it back in. Wouldn't you know it, the squeal is now gone.
Thanks for the help.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 7/7/2008 8:20:17 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/7/2008 8:30:58 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The board is an ordinary protoboard (non-USB). I listened to both regulators as you described and couldn't tell any difference in volume level for either one. Both sounded equally loud as I put my ear to them. All I can really tell is that it's coming from the board and not the wall wart.
Ken
Post Edited (KenFordham) : 7/10/2008 2:12:24 AM GMT
The reason this is happening is some voltage regulators require the output capacitor to have some amount of ESR (equivalent series resistance) to achieve output stability. Ceramic capacitors are among the lowest ESR capacitors availible. At some point either a more sensitive regulator or an ultra low ESR lot of caps entered the picture, and the output of the 5V regulator began oscillating. Since silicon substrate is piezoelectric, and the output mosfet was designed to be a well regulated DC voltage and not designed to output AC, the substrate vibrates causing the sound heard.
The permanent fix is to replace the ceramics with tantalums, the temporary fix on booards already produced is to add a parallel tantalum across the output of the 5V regulator as I described above.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/10/2008 3:55:59 AM GMT
Have you ever run into this issue with the LM2937 3.3V regulators? They spec a 0.01 to 3 ohm ESR range. (I was planning to replace the tantalums in a new board design with ceramics to save room.)
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
ESR of some ceramic capacitors is not good at all. A high value Y5V 10 volt capacitor may have a dissipation factor at 1000hz of 0.125, that is, 1/8 of the reactive power gets burned up as heat in the capacitor. The capacitive reactance of 1µF at 1000 Hz is 1/(2piFC) = 159 ohms, and 1/8 of that is 20 ohms. Of course X5R and X7R dielectrics are much better, with dissipation factors down to 2%, which is comparable with tantalum capacitors. Putting a tantalum in parallel with a ceramic lowers the overall ESR.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/10/2008 5:20:24 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
This was an interesting thread to read and to learn from others experiences.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com·- Prop Blade, LED Painter, RGB LEDs, uOLED-IOC
www.sxmicro.com - a blog·exploring the SX micro
www.tdswieter.com
Would it be possible to get you to send me one of those 10uf caps? I don't really want to exchange boards since I've already soldered some stuff to it.
Thanks,
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
Rayman, no it was not an issue of value but of ESR.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/15/2008 7:49:52 PM GMT
I see what you mean, sorta. In Tracy's example, the ESR of the ceramics is too high, and adding a tantalum helps to lower it. On the Proto board, the ESR is too low to start with and outside the regulator's stable region. I'm not sure I see, though, how adding a tantalum helps to raise the overall ESR if the ceramic cap is still in place. My intuition tells me the ESR would be lower still (but not by much, since the ceramic cap still dominates):
····ESRnet = ESRcer || ESRtan = ESRcer x ESRtan / (ESRcer + ESRtan)
This assumes, of course, that ESR calculations are equivalent to simple resistance calculations. Perhaps it's not as simple as that.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Still some PropSTICK Kit bare PCBs left!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/15/2008 8:41:29 PM GMT
Maybe I'm wrong in my thinking that the regulators go nuts because there is too LITTLE resistance into the capacitor.
Could it be that the impedance (resistance and imaginary) could have been to HIGH, not too low?
Again, maybe I'm way off. I'm only a junior studying EE, so there is probably more to it than just simple circuit analysis of a complex regulator circuit. Interesting thread, nevertheless.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 7/15/2008 10:43:53 PM GMT
Is it still an LM1086 regulator on the protoboard? The LM1086 data sheet recommends a 10uF tantalum, or higher capacitance without limit. If a larger capacitance is used (think capacitors in parallel) the ESR does go down (which might lead one to think, less stability), but so does the overall break frequency in the feedback loop. The ESR restriction has to be coupled with the value of capacitance. I'd guess that a second 10uF ceramic in parallel with the first might also stabilize the output, by simply swamping the output with sufficient capacitance. However, ceramics do have strong resonant frequencies, in the kHz or mHz range, and there are strong phase shifts associated with the resonance. Varies by construction and brand. Tantalums do not have that kind of strong resonance. And tanalums are not piezoelectric and can't sing!
The LM1086 is a quasi-LDO regulator, as described in the following Q&A from the National Semi knowledgebase:
<<
Why is there a difference in the bandwidth and stability of the LDO, Quasi-LDO, and standard NPN regulators?
The standard NPN linear regulator tends to have wide bandwidth and be insensitive to output capacitive loading. The LDO (PNP) regulator tends to have lower bandwidth and require specific output capacitors to maintain stability. A Quasi-LDO regulator has characteristics somewhere between the NPN and LDO.
The reason for these differences has to do with the orientation and type of the output transistor. In an NPN regulator, the input voltage is applied to the collector and the load is placed on the emitter. In an LDO, or PNP-based design, the input voltage is applied to the emitter and the load is applied to the collector. If you mentally turn the circuit on its side, you will see that the standard, or NPN-based regulator forms an emitter follower. The overall circuit generally has a gain of less than 1. With the PNP LDO circuit, the load impedance acts as a collector resistance. The LDO circuit creates a common collector amplifier, with the load impedance acting as a collector gain resistor. At some combination of load current (re) and load impedance (Rc), you will create an amplifier out of the output stage - and a poor quality one at that. This extra gain and phase shift by the output stage creates the condidtions for severe oscillations.
The capacitor on the output is required to shunt the load impedance (Rc) and keep the gain below 1. This requires the output capacitor to have very low series resistance. Since we are only talking about a few ohms, standard off-the-shelf electrolytics cannot be used because of their high internal resistance (ESR). Tantalum, Ceramic or special low ESR output capacitors must be used. Because not every regulator design is the same, some regulators require certain types of capacitors with certain ESR ranges. The regulator manufacturer will usually specify the type of capacitor that should be used, or the range of acceptable ESR for the capacitor.
Heed their warnings and use the recommended capacitor types. When replacing a "Standard" regulator with a LDO device in an exisiting design, make sure the exisiting output capacitors meet the regulator manufacturer''s requirements.
>>
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I just got the caps and soldered one in. That solved the problem of the "singing" proto board. Thanks very much for your help.
Ken
I was having the same issue with my 5Volt Regulator singing, it has been doing it for probably about 10 hours of use. would this have damaged the regulator?
Also after using a 10uF cap on the terminals of the Regulator, i am still noticing the singing, but it is significantly quieter. would a larger cap make the noise completely disappear?
I noticed the pitch of the noise changes depending on how much is being driven. also that my speakers situated maybe 5 meters from the propeller board are also picking up the high frequency noise and reproducing it,...
The Brand of singing regulator that i used in my board was a National Semiconductor, LM1086CS-5.0/NOPB if others have this issue again it could be related to this chip itself.
any help is greatly appreciated,
Josh
Post Edited (JoshuaLewis) : 9/1/2008 11:46:48 AM GMT
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 9/1/2008 12:09:33 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
It is desirable to have large output capacitance for applications that entail large changes in load current (microprocessors for example). The higher the capacitance, the larger the available charge per demand. It is also desirable to provide low ESR to reduce the change in output voltage: ΔV = ΔI x ESR It is common practice to use several tantalum and ceramic capacitors in parallel to reduce this change in the output voltage by reducing the overall ESR. Output capacitance can be increased indefinitely to improve transient response and stability.
I am going to try 2 10uF tantalum capacitors on the output lines. this should minimize the singing further.
Thank you
--Josh
John
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Inigo Montoya: Let me 'splain. (pause)
Inigo Montoya: No, there is too much. Let me sum up.
The Princess Bride (1987)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.