<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Geek Circuits</title>
	<atom:link href="http://geekcircuits.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekcircuits.com</link>
	<description>Exotic circuits for electronic hobbyist</description>
	<lastBuildDate>Sun, 30 Oct 2011 07:34:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Active crossover network using 555 timer as class d amp</title>
		<link>http://geekcircuits.com/2010/08/active-crossover-network-using-555-timer-as-class-d-amp/</link>
		<comments>http://geekcircuits.com/2010/08/active-crossover-network-using-555-timer-as-class-d-amp/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 22:46:07 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=479</guid>
		<description><![CDATA[Perhaps some of you have already seen my blog in DIY audio forum showing practical use of 555 timer as class d amp source. Indeed, the circuit is quite an interesting subject to exploit specially to some curious folks looking for cheap but good sound class d audio amp project. The same circuit is shown [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps some of you have already seen <a href="http://www.diyaudio.com/forums/blogs/ledmania/324-active-crossover-network-using-555-timer-class-d-amp.html">my blog</a> in DIY audio forum showing practical use of 555 timer as class d amp source. Indeed, the circuit is quite an interesting subject to exploit specially to some curious folks looking for cheap but good sound class d audio amp project. The same circuit is shown in figure 1.<span id="more-479"></span></p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/08/Band-pass-active-filter.png"><img class="aligncenter size-medium wp-image-480" title="Band pass active filter" src="http://geekcircuits.com/wp-content/uploads/2010/08/Band-pass-active-filter-616x480.png" alt="" width="493" height="384" /></a></p>
<p style="text-align: center;"><span style="color: #0000ee;"><span><br style="text-decoration: underline;" /><span style="color: #000000;"><em>Figure 1</em></span></span></span></p>
<p style="text-align: center;">You might notice that there are numerous possible circuit configurations that may be used in producing good quality class d audio amp using this chip. Like for example to use normal opamp instead of 2N3904 as the pre amp. Figure 2 shows how it is implemented.<a href="http://geekcircuits.com/wp-content/uploads/2010/08/2-ch-opamp-input-5553.png"><img class="aligncenter size-medium wp-image-509" title="2 ch opamp input 555" src="http://geekcircuits.com/wp-content/uploads/2010/08/2-ch-opamp-input-5553-640x424.png" alt="" width="512" height="339" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;"><em>Figure 2</em></p>
<p>This circuit basically functions the same way as in figure 1 but use opamp as the pre amp for driving pin 5. Direct coupling is necessary to fulfill the required bias voltage of ½ VCC on pin 5. Fine adjustment to 50% duty cycle is done via R4 and R9.</p>
<p>Some folks may want to try without master sync oscillator, so another possible approach is to configure all channels wired in “astable mode”. The frequency determining networks are pot R1, R2 and capacitors connected to their pin 6 and 2 respectively. The capacitor is being charged from VCC via R4 thru D1 and the pot then discharged via D2 from pot by pin 7 to obtain near square wave output as required.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/08/transistorless-approach-2h-5554.png"><img class="aligncenter size-medium wp-image-500" title="transistorless approach 2h 555" src="http://geekcircuits.com/wp-content/uploads/2010/08/transistorless-approach-2h-5554-617x480.png" alt="" width="494" height="384" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;"><em>Figure 3</em></p>
<p>The circuit shown above is a “preliminary audio sound test” circuit that will give some folks the taste of 555 timer as class d audio amp that can drive your stock 32 ohm MP3 headphones. If the sound excites your enthusiasm, then you may exploit it by using different approach that will fit your taste. Of course final circuit will require pre amp to match the required input voltage of the 555 timer and to facilitate the inclusion of negative FB. This is the simplest approach and is good in giving a sound quality “different” to figure 1.</p>
<p>This circuit utilized two pots for more precise offset null adjust at the output. Pin 5 have internal bias of 2/3 VCC equal to 8V, giving near 50% duty cycle when the pot is at the center. The thing is when pin 5 is terminated with an audio source having normal ½ VCC output, the duty cycle drops to 40%. These can be easily corrected by tweaking pot R1, R2 to get back to 50%. Please take note that direct capacitive coupling should not be use here because the output audio source itself will be the one to give pin 5 the correct bias of ½ VCC to pin 5. Of course if you insist to use coupling capacitor for audio testing purposes, then you need voltage dividing network like the one already shown in figure 3. The only caveat here is that the input sensitivity is +/- 5 volts to get full dynamic swing at the output.</p>
<p>Although no negative FB was implemented here, the sound is still surprisingly good. I noticed that even the audio source I used is my Acer aspire one netbook at mid volume setting, the audio sound output is still loud and good enough for my audio testing needs. The voltage dividing network R7, R8, R9, R10 along with C3 can be omitted if direct coupled audio source is implemented and that the source is ½ VCC. In any case you can adjust to 50% duty via pot R1 and R2.</p>
<p>The purpose of assigning more than 200 KHz channel spacing is that even their RC timing network are ideally matched, they still tend to drift in oscillation giving audible beat frequency to occur if they are oscillating at same clock frequency. Not only that, this suggested <span style="text-decoration: line-through;">200 KHz</span> 400KHz channel spacing is essential for the reason I will discuss below.</p>
<p>Some folks may ask why <span style="text-decoration: line-through;">200 KHz</span> 400 KHz channel spacing? Here is the answer;</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/08/no-modulation-waveform.png"><img class="aligncenter size-medium wp-image-484" title="no modulation waveform" src="http://geekcircuits.com/wp-content/uploads/2010/08/no-modulation-waveform-640x208.png" alt="" width="512" height="166" /></a></p>
<p style="text-align: center;"><em>Figure 4. Waveform without modulation</em></p>
<p style="text-align: center;">
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/08/1V-modulated-waveform.png"><img class="aligncenter size-medium wp-image-485" title="1V modulated waveform" src="http://geekcircuits.com/wp-content/uploads/2010/08/1V-modulated-waveform-640x208.png" alt="" width="512" height="166" /></a></em></p>
<p><em>Figure 5.</em> <em>Upper channel circuit being modulated by +/- 1volt at 1 KHZ.</em></p>
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/08/5V-modulated-waveform-.png"><img class="aligncenter size-medium wp-image-486" title="5V modulated waveform" src="http://geekcircuits.com/wp-content/uploads/2010/08/5V-modulated-waveform--640x208.png" alt="" width="512" height="166" /></a></em></p>
<p><em>Figure 6. Waveform with 5 volts modulation at 1 KHz.</em></p>
<p>It is quite noticeable that by modulating pin 5 by +/- 1 volt at 1KHz, its oscillating frequency modulates to +/-26 KHz and when I increased the input voltage to +/- 5 volts, the frequency modulation becomes staggering. The frequency deviation stretches up to +/- 150 KHz!  That’s darn huge! This is the reason why at least <span style="text-decoration: line-through;">200 KHz</span> 400 KHz channel spacing is required to avoid cross-talk on their respective adjacent channel. If they do over-lap, then it would be audible.</p>
<p>My first thought regarding the behavior of the circuit made me to think that this very wide stretching of bandwidth might jeopardize the sound quality of the music being played, but the truth is—it’s benign. In fact even no matter how large the frequency modulation is, when the output is being filtered the result is just always stays like the original. This is depicted in figure 7.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/08/5V-modulation-at-5kHz1.png"><img class="aligncenter size-medium wp-image-488" title="5V modulation at 5kHz" src="http://geekcircuits.com/wp-content/uploads/2010/08/5V-modulation-at-5kHz1-640x309.png" alt="" width="512" height="247" /></a></p>
<p><em>Figure 7. Modulation at 5 KHz with 5 volts amplitude shows how severe stretching of frequency from V max to V min of audio.</em></p>
<p>When I listen to the headphone with this kind of circuit configuration, I noticed there is a little mixture of crisp treble being reproduced compared to figure 1. Maybe this is the secret spice inherent to all self oscillating class d audio amp? Mixing of FM with PWM might produce useful harmonics that tend to make it more crisp in audio reproduction. Well, I have to investigate this a little bit further or maybe I am on the placebo effect only, LOL!</p>
<p>Unfortunately, I tested this circuit using only one channel due to no available 2 channel audio jack in my assorted box, (I’m still here in Norway) so full testing implementation with 2 channel is still on hold until I got that stuff. I think 200 KHz channel spacing is not enough (<em>400</em><em> KHz would be adequate</em>, (<em>edited Aug. 8</em>)) therefore, negative FB must be strictly implemented to reduce the severity of the FM modulation.</p>
<p>Thanks for looking,</p>
<p>Cheers</p>
<p>IQspice-4</p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/08/active-crossover-network-using-555-timer-as-class-d-amp/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Class D amp using TL494 DC to DC converter chip</title>
		<link>http://geekcircuits.com/2010/07/class-d-amp-using-tl494-dc-to-dc-converter-chip-2/</link>
		<comments>http://geekcircuits.com/2010/07/class-d-amp-using-tl494-dc-to-dc-converter-chip-2/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 22:33:59 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=433</guid>
		<description><![CDATA[Class D amp using TL494 DC to DC converter chip It’s almost 5 years now since I publish a topic regarding how to use TL494 as class d amp in a popular DIY audio forum. I think it’s quite good to include this article here also. By the way, before I publish that topic I [...]]]></description>
			<content:encoded><![CDATA[<p>Class D amp using TL494 DC to DC converter chip</p>
<p>It’s almost 5 years now since I publish a topic regarding how to use TL494 as class d amp in a popular <a href="http://www.diyaudio.com/forums/class-d/67363-class-d-amp-using-tl494.html">DIY audio</a> forum. I think it’s quite good to include this article here also. By the way, before I publish that topic I thoroughly googled the said subject to see if there are some geek guys who have already done such a playful exploit of this chip but I simply got zero hit. This could mean that I am an early bird on this regard? Or maybe I am the only one who have a bizarre taste in choosing the right chip for such an application.<span id="more-433"></span></p>
<p>I tried to check that thread three years ago and noted that the counter say 15K views as I can remember, but when I checked it out recently, it increased to more than 24K views even the thread was buried and not being resurrected. This could mean that some are still peeping on that thread and it made me to think that I am not lone odd guy after all.</p>
<p>The circuit shown below is an improvised version from the original. The circuit use a NFB held at pin 3 of TL494 then feed back to pin 2 via resistor R<em>fb</em> as required. The error amp output at pin 3 of the tl494 requires about 2 volts to bring the output pin 11 and 8 to 50% duty cycle. This will need a bias voltage of the same magnitude on its non-inverting i/p pin 1 as provided by voltage divider pot. The inverting input pin 2 having same level of 2 volts via Rfb completes the balance of those 3 nodes just like biasing a conventional opamp. Take note that these three pins are linear nodes and that connecting pin 3 to pin 2 in series with R<em>fb</em> is a normal thing but what if we connect R<em>fb</em> to the switching output of power FETs?</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/simple-bias-tl4942.png"><img class="aligncenter size-medium wp-image-457" title="simple bias tl494" src="http://geekcircuits.com/wp-content/uploads/2010/07/simple-bias-tl4942-640x314.png" alt="" width="512" height="251" /></a></p>
<p><em>Figure a.</em></p>
<p><em>Schematic of a typical opamp biasing scheme. Pot R1 is used as DC offset null adjust and also 50% duty cycles adjust. You can connect a headphone in series with a coupling capacitor from the output to check if everything is fine.</em></p>
<p>The basic circuit above has a voltage gain of 10 based on conventional opamp gain equation of Av= R3/R4. This will require an input sensitivity of +/- 150mv to give an output of +/- 1.5 volt on pin 3 centered at 2 volts. The output at pin 11 and 8 will then modulate to approximately 5 to 95% centered at 50% on quiescent state (no audio).</p>
<p>The circuit showed below implements a FB also known as “pre filter negative feedback” (NFB) and obviously far better to reduce distortion and to improve frequency response. Since this output node is a switching mode with a voltage higher than 12 volts then there must be a constant amplitude regulator before we feed the NFB to pin 2. TL494 requires single-ended supply; this makes the audio input always referenced to ground. It’s a good option to use strings of diodes to act as “amplitude chopper” in such a way of accepting only “constant amplitude PWM” signal but not amplitude modulated signal. This is an attractive option because this technique will accept only the PWM signal from the power FETs and does not require filtering before feeding back the signal to the i/p of the opamp. Another unique feature of this FB schemes is that this will make the circuit inherently immune to power supply variations without affecting the NFB voltage. This means if a fellow is using either single ended or split bus supply of 30 volts, and he decides to use 50 volts or more, as long as the drivers and tl494 supply is regulated to 12 V, and the R11 is matched with a correct wattage, then it will not affect the NFB. But if the bus supply is increased or decreased, the NFB will aggravate the output of the amplifier if it were done without those diode strings. Substituting a simple voltage divider in a form of two resistors is possible but the required voltage for FB will change if the power supply varies so diode strings is far better. For 2 volts required for feedback, the diodes strings should have 4 volts (.62V + 3.3V approx.) square wave at 50% duty cycle on idle as seen from scope. This will yield an average of 2 volts DC from your DMM. Note! Please pay attention to the “phase inversion within the loop”. This means starting from input pin 2 via R<em>in</em> up to the nodes of power FETs, there should be phase inversion. Some newbie may lose their attention to this inversion when the signal is being split into two as required by FET driver. Watch closely dude.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-class-d-power-amp1.png"><img class="aligncenter size-medium wp-image-458" title="tl494 class d power amp" src="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-class-d-power-amp1-640x211.png" alt="" width="512" height="169" /></a></p>
<p>Figure b.</p>
<p>There are two important things to focus your attention regarding the circuit above. These are; implementation of dead time, and make sure phase inversion is present within the loop. Disregarding these 2 things may create trouble for the newbie to achieve correct operation. Dead time network D6, D7, R6, R7 along C8 and C9 are “optional components” just in case power FETs input dead time circuit is not enough. If high idling current is present then cross conduction is at work so you know what I mean. Second thing is the phase inversion within the loop must be present. Neglecting proper pull-up and pull-down of the input pins of exclusive OR gates will jeopardize the beauty of negative feedback. EXor gate output with input “pull-down” must be on the Hin pin 10 of IR2010 and the other gate output with input “pull-up” must be on the Lin pin 12. If those gate input pins were carelessly swapped differently from the drawing, then the entire loop will be converted into positive FB and will ruin the entire sound department. Please try to peep on your EXOR truth table to see what I mean.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/Tl494-with-filtered-FB2.png"><img class="aligncenter size-medium wp-image-459" title="Tl494 with filtered FB" src="http://geekcircuits.com/wp-content/uploads/2010/07/Tl494-with-filtered-FB2-640x330.png" alt="" width="512" height="264" /></a></p>
<p><em>Figure c.</em></p>
<p><em>Another filtered feedback variation can be seen above. This circuit utilized RC filter with -3db roll-off at 32kHz. <span style="text-decoration: line-through;">If you want to listen to the sound of the circuit</span></em><em><span style="text-decoration: line-through;"> in fig. c, you can connect directly R11 to output pin 11, 8</span></em><em> <span style="text-decoration: line-through;">because phase inversion is also present within that loop (from pin 2 to pin 11, 8).</span></em><em> Sorry for this mistake, I noticed that my 32 ohm headphone effectively &#8220;overload&#8221; the 680 ohm at pin 11 (with capacitor) giving only 0.93 volts output as measured by my DMM. I got a  distorted sound due to that and this loading also create wrong bias voltage to pin 2 as well. So, listening to this output with NFB and headphone together is not advisable.</em></p>
<p>Take note that removing RC filter R4 and C6 and connecting R11 directly to output pin 11,8 will produce good sound quality as well (yes, this is true if headphone is not connected there) possibly if additional buffer is available.  Take note that small amount of DC offset is still present from the output and this is a function of parameter spread variations such as diodes voltage drop per degree C, supply voltage changes and etc. Simply adjust the pot at pin 14 to reduce the offset to the lowest as possible. I always favor a pot to null the DC offset or adjusting to required 50% duty cycle.</p>
<p>Designing a class D from scratch is a tough proposition especially for a beginner. This might put Tl494 in the prime list of a newbie’s baby step towards such first attempt. The availability and low cost nature of this chip coupled with high degree of repeatability, simplicity and stable in operation will surely improve the skill of a beginner. If he is creative or little bit ambitious enough; with guts so to speak, he will be surprised to see how practical tl494 to be use as a class D audio source. The very first Tl494 that I experimented was just extracted from a junk ATX power supply but when I put it on the breadboard with some caps and resistors the sound is surprisingly good!</p>
<p><strong>Case in point:</strong> Tl494 contains three independent i/p pins that can be tailored to suite your listening needs. In my prototype an active band pass filter is tuned to 20 Hz (I love 20 Hz bass), another one as full audio band and then pin 4 take care of the treble at 7kHz, (I like rich in treble also). This practical approach simply eliminates my needs to build additional active crossover network. It’s totally complete inside the chip.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/Tl494-with-active-bandpass-filter2.png"><img class="aligncenter size-medium wp-image-460" title="Tl494 with active bandpass filter" src="http://geekcircuits.com/wp-content/uploads/2010/07/Tl494-with-active-bandpass-filter2-640x314.png" alt="" width="512" height="251" /></a></p>
<p>Figure d.</p>
<p><em>Suggested circuit employing tuned band pass active filter using the lower opamp as “mega bass enhancer” that peaks at 20Hz with +/-7Hz bandwidth. Then upper opamp is a simple full audio band, while pin 4 takes care of the treble with -3db roll-off at 7 KHz.  Java script calculator for this active filter can be found <a href="http://www.captain.at/electronics/active-filter/">here</a></em><em>.</em></p>
<p>Did you notice the additional pot R9 from the circuit above? This is another adjustment for removing the offset voltage from the output because pin 4 requires 1.65V bias voltage as compared to pin 2 that needs 2V.</p>
<p>Let’s explore the innards of Tl494<strong>. </strong>Data sheet says<strong>;</strong> if the voltage at dead time pin 4 is varied from 0 to 3.3 volts, the output duty cycle will change from 5% to 100% (that’s non-inverting relative to output pin). Also, if the voltage is varied from .5 to 3.5 volts on pin 3, the duty cycle will vary from 97% to 0% (that’s inverting relative to output pin). But take note that the input signal is feed thru R<em>in</em> of pin 2 which makes the loop also become “non-inverting” relative to output transistor. By the way, this pin 3 voltage should be centered at an average of 2 volts (.5+3.5/2) and also to pin 4 (0+3.3/2= 1.65V) to get 50% duty cycle from the output. Also take note that the author of the PDF did not mention if the output transistors are configured as emitter follower or just common emitter. These statements on PDF may confuse some folks (mind you, me too 6 years ago) but I just simply think that the author’s assumption referred it as emitter follower which is just fitted to the statement above. I also verified that on breadboard long time ago and it’s correct. But I preferred that the output transistors must be “common emitter” due to its lower saturation voltage than emitter follower. In this case, phase inversion will appear to pin 11, 8 output. Still confuse? Take a look at the schematic below for better enlightenment.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-schematic1.png"><img class="aligncenter size-medium wp-image-461" title="tl494 schematic" src="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-schematic1-640x367.png" alt="" width="512" height="294" /></a></p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-master-slave-syncing1.png"><img class="aligncenter size-medium wp-image-462" title="tl494 master slave syncing" src="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-master-slave-syncing1-640x301.png" alt="" width="512" height="241" /></a></p>
<p><em> Synching of tl494 for multiple channel application.</em></p>
<p>Synchronizing multiple channels using tl494 is easy without any problem regarding audible bit frequency to occur compared to self oscillating class D approach.</p>
<p>Here is another suggested circuit employing the popular “bass and treble” tone control being used from linear circuits that most of you are familiar with.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-bass-and-treble1.png"><img class="aligncenter size-medium wp-image-463" title="tl494 bass and treble" src="http://geekcircuits.com/wp-content/uploads/2010/07/tl494-bass-and-treble1-640x250.png" alt="" width="512" height="200" /></a></p>
<p>Figure e.</p>
<p>The circuit above requires +/- 1.5 volt of input to get the required +/- 1.5 volt output from pin 3. This is due to the nature of this tone control network. When the 2 pots are both on their midpoint position then the voltage gain is 1 on pin 3.</p>
<p><em><br />
</em></p>
<p>Before you try any of the circuit shown above, try it first on the breadboard so that you can tweak the bass, the mids and high frequency by altering the R or C to your desired audio band. Or you can simply use only one opamp with one fb resistor to be simple one.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/07/class-d-amp-using-tl494-dc-to-dc-converter-chip-2/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>2 channel 555 timer class d amp source</title>
		<link>http://geekcircuits.com/2010/04/2-channel-555-timer-class-d-amp-source/</link>
		<comments>http://geekcircuits.com/2010/04/2-channel-555-timer-class-d-amp-source/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 14:50:34 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=405</guid>
		<description><![CDATA[It’s more than one month now since I updated my last post and I regret that I couldn’t post anything within that length of time. This is due to the nature of my job. We left Tilbury last month and now we transferred here in Bremerhaven shipyard and our ship is still being dry docked [...]]]></description>
			<content:encoded><![CDATA[<p>It’s more than one month now since I updated my last post and I regret that I couldn’t post anything within that length of time. This is due to the nature of my job. We left Tilbury last month and now we transferred here in Bremerhaven shipyard and our ship is still being dry docked for repair. Unfortunately we still don’t have any internet connection and our satellite is still under repair too. I just rely on outside wifi access so, this is my new follow up post as continuation for the unfinished topic for that post below. Hopefully, I will make a new post again if our internet connection will be restored soon.<br />
My last article was still 555 timer so this is another neat idea how to get more useful circuit out of your 555 timer.  I think it is not good to move on to another topic using another chip because every time I made a circuit out of this 555 timer, another idea pops-up in my mind to share.<span id="more-405"></span></p>
<p>OK, here we go. Lets say a fellow wants to build a 2 channel class d amp using 555 timer. This is a bit tricky because using 2 of this chips will oscillate in different manner even if the frequency determining networks are ideally matched. So the need for syncing is a must. Quick thinkers immediately had in mind is that the circuit should have a master and a slave part for proper syncing of carrier signal to avoid audible bit frequency. Yes, this approach is correct but how to implement it? So here is a possible circuit that may pop-up in the mind of quick thinkers.</p>
<p><a href="http://geekcircuits.com/wp-content/uploads/2010/04/2-channel-555-PWM1.png"><img class="aligncenter size-medium wp-image-406" title="2 channel 555 PWM" src="http://geekcircuits.com/wp-content/uploads/2010/04/2-channel-555-PWM1-640x331.png" alt="" width="320" height="264" /></a></p>
<p>The circuit shown above was copied from my previous circuit I discussed recently. Here, pin 6 and 2 of slave A and B is being connected to the master pin 6 and 2 for syncing. The master controls the frequency of oscillation. This is the easiest and maybe the simplest syncing scheme that you may think (mind you, me too). But upon simulation, when the audio signal is introduced to either slave A or B, the output pulses to pin 3 does not behave as expected. Even if I carefully tuned pin 5 to any offset voltage that could bring the output more usable seems difficult.<br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/04/first-trial-waveform.png"><img class="aligncenter size-medium wp-image-407" title="first trial waveform" src="http://geekcircuits.com/wp-content/uploads/2010/04/first-trial-waveform-640x298.png" alt="" width="512" height="238" /></a></p>
<p>The output waveform of either slave A or B looks promising if no signal is present on pin 5 (pin 5 is floating).<br />
But when audio signal is present, and the collector of 2N3904 is  connected to pin 5,my enthusiasm to the circuit suddenly collapsed.</p>
<p><a href="http://geekcircuits.com/wp-content/uploads/2010/04/pathetic-waveform.png"><img class="aligncenter size-medium wp-image-408" title="pathetic waveform" src="http://geekcircuits.com/wp-content/uploads/2010/04/pathetic-waveform-640x298.png" alt="" width="512" height="238" /></a></p>
<p><em>Output waveform of pin 3 in both slave A and B</em>. Here, the output pulses are intermittently put into a halt by the Vmax and Vmin of 1 kHz audio input. I think that there is no simple remedy available here for the moment.<br />
This made me to conclude that this type of circuit is only applicable as single channel amplifier. Careful scrutiny within the entire circuit followed by several simulations attempt leads me to think that it is only necessary to link pin 6 and 2 to its very own oscillation or modulation and should not rely to external one.  There must be another way to implement two or more channel and the simple answer was already discussed by me at the very first article I post.</p>
<p>The circuit shown below will work in multiple channel application because the master’s output pin 3 has negligible loading effect of the trigger pin 2 of any  slaves connected to it. Also, this circuit is quite unique in its own right because the operating principle does not conform to a conventional setting where saw tooth is generated to sample the audio signal thru comparator’s two inputs to produce PWM. Here, the master generates continuous but fixed pulse width of approximately 98% for the purpose of two important things; To reset the internal flip flop of all slaves, and to discharge the timing capacitor via pin7 simultaneously. The most attractive feature of this circuit is that they are darn cheap. This circuit can produce wider modulation from 0% to 95%. But 100% is not allowed because the master is required to pull down pin 2 to ground of all slaves in short duration fast enough to accomplish its two task as already mentioned above. Opamp bias network R11 and R12 should be replaced with potentiometer for 50% duty cycle adjust.<br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/04/3-channel-555-class-5-amp.png"><img class="aligncenter size-medium wp-image-409" title="3 channel 555 class D amp" src="http://geekcircuits.com/wp-content/uploads/2010/04/3-channel-555-class-5-amp-640x476.png" alt="" width="512" height="380" /></a><br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/04/3-channel-555-waveform.png"><img class="aligncenter size-medium wp-image-410" title="3 channel 555 waveform" src="http://geekcircuits.com/wp-content/uploads/2010/04/3-channel-555-waveform-640x299.png" alt="" width="512" height="239" /></a></p>
<p>The master produce an output of very short negative going pulse which is sufficient to change the output state of all slaves into logic 1 but the “width” of that “on” state is governed by modulation voltage on pin 5 of all slaves.<br />
Please take note that even though the circuit looks good and simple, proper matching of the master and slave’s frequency is very important. Improper matching will result into unsuitable for class d application. This mismatched frequency scenario I’m referring to is; instead of producing class d amp, you will end up to get a frequency divider instead. Try to simulate it so that you know what I mean.<br />
Let’s scrutinize the basic function of the circuit.  The master is wired as an astable multivibrator having a fixed frequency F determined by;<br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/04/osc-astable-freq-equation.png"><img class="aligncenter size-full wp-image-411" title="osc astable freq equation" src="http://geekcircuits.com/wp-content/uploads/2010/04/osc-astable-freq-equation.png" alt="" width="142" height="68" /></a></p>
<p>and the duty cycle is;             <a href="http://geekcircuits.com/wp-content/uploads/2010/04/duty-cycle-equation.png"><img class="aligncenter size-full wp-image-412" title="duty cycle equation" src="http://geekcircuits.com/wp-content/uploads/2010/04/duty-cycle-equation.png" alt="" width="191" height="56" /></a></p>
<p>The slave which is configured as monostable or “one-shot” having a variable pulse width (PW) which is a function of;</p>
<p>PW= 1.1 R1 x C1</p>
<p>Take note That there are three possible ways in modulating the width of the pulse of the slaves; Its either to vary the timing resistor R1 or to vary the capacitance of C1, but the most easiest way is to modulate pin 5 with a correct signal. Some newbie might wonder how does PWM is being generated by simply modulating pin 5? Yeah, It is more easier to grasp the theory behind PWM generation by altering either R1 or C1, but how about pin 5? The answer is simply based on the fact that if the 3 internal voltage divider of 555 timer varies its voltage via pin 5, the cut-off and cut-in of upper and lower comparator voltages will &#8220;set&#8221; and &#8220;reset&#8221; the internal flip flop of all slaves accordingly thereby producing PWM from their outputs.<br />
In my breadboard, R2 doesn’t exist and I can produce 97% duty cycle for use as master. If you cannot produce this without R2, then you can add R2, then follow the astable equation above. By the way, my 555 timers are all CMOS type marked as LMC 555 and they are capable of oscillating up to 3 Mhz at 5 volts. They consumed less in power but with very fast rise and fall times of 15 nanoseconds. Of course any bipolar 555 timers will work as well. It just so happen that LMC 555 is the only available stuff in my cookie jar.</p>
<p>Simulation of the circuit above is available below:</p>
<p><a href="http://geekcircuits.com/wp-content/plugins/smartcounter/redirect.php?dcp_action=goto&dcp_id=10" target="_blank"><img alt="Download 3 CH sim" border="0" src="http://geekcircuits.com/wp-content/plugins/smartcounter/download.jpg"></a><br />210 Views Since 2011-02</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/04/2-channel-555-timer-class-d-amp-source/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>MCE Cree LEDS</title>
		<link>http://geekcircuits.com/2010/02/mce-cree-leds/</link>
		<comments>http://geekcircuits.com/2010/02/mce-cree-leds/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 00:34:14 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[Automotive lights]]></category>
		<category><![CDATA[Cree LEDS]]></category>
		<category><![CDATA[flashlights]]></category>
		<category><![CDATA[High power LEDs]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=344</guid>
		<description><![CDATA[I’m an avid collector of LED for 28 years and I was impressed how fast the technology grows in a very surprising rate. Take for example those 5 mm white LED that you can see from bargain key chain lights and small flashlights to a very bright signal lights on pedestrian lanes, traffic stop lights [...]]]></description>
			<content:encoded><![CDATA[<p>I’m an avid collector of LED for 28 years and I was impressed how fast the technology grows in a very surprising rate. Take for example those 5 mm white LED that you can see from bargain key chain lights and small flashlights to a very bright signal lights on pedestrian lanes, traffic stop lights and most recently from residential and commercial setting as well.<span id="more-344"></span></p>
<p>A month ago, I came across a site called DX deal extreme and by navigating through their hobby/DIY section I noticed that they are already selling the most powerful white LED emitter that I’ve been so eager to buy. As a member of candlepower forum this white LED is always on top of the wish list by most of us. MCE means “multi chip emiter” as opposed to single chip that I have in my possession.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0018.jpg"><img class="aligncenter size-medium wp-image-345" title="IMAG0018" src="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0018-640x480.jpg" alt="" width="512" height="384" /></a></p>
<p><strong><em>Picture of </em><em>Cree </em><em>MCE White LEDs</em></strong></p>
<p>My plan is to change the two head light bulbs of my motorcycle with these beasts and sure this will give a very bright white light shining along my path at night. My only concern is how to figure out in mounting appropriate heat sink at the back of the reflector (yes, this little boy generate heat when driven higher than its specs). Another thing of more concern is how to mount a dome cap to create a shadow on top of the beam for dimming purposes otherwise; this may affect the sight of a fellow motorist.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0022.jpg"><img class="aligncenter size-medium wp-image-346" title="IMAG0022" src="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0022-640x480.jpg" alt="" width="512" height="384" /></a></p>
<p><strong><em>Close-up of the Cree LED</em></strong></p>
<p style="text-align: center;"><strong><a href="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0024.jpg"><img class="aligncenter size-medium wp-image-347" title="IMAG0024" src="http://geekcircuits.com/wp-content/uploads/2010/02/IMAG0024-640x480.jpg" alt="" width="512" height="384" /></a><span style="text-decoration: line-through;"><em><br />
</em></span></strong></p>
<p><strong><em>The single chip LED on the left for size comparison </em></strong></p>
<p>By zooming-in reveals the quad chip with 4 independent bonding wires for configuring either parallel or in series connection mode. For automotive lighting apps, then series connection is the correct choice because each chip requires above 3 volts supply at 350ma of current. Most LED enthusiast I know from CPF usually drive them up to 1 amp without complain and of course the brightness is astounding indeed. I’m not yet prepared to do these overdriving schemes because if I encounter a bad egg from the group, I will wait for a couple of weeks for a replacement and each cost me 17.50 US$ each. Well, I love this stuff so this is not expensive to me. My only gripe is waiting for door to door delivery is a real “killing me softly” scenario and it took me to wait for 2 months due to out of stock from the supplier.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/02/mce-cree-leds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sound Card Oscilloscope</title>
		<link>http://geekcircuits.com/2010/02/sound-card-oscilloscope/</link>
		<comments>http://geekcircuits.com/2010/02/sound-card-oscilloscope/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 00:18:08 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[Sound Card Oscilloscope]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=326</guid>
		<description><![CDATA[sound card scope 1.32 As an electronic hobbyist, I always wanted to own a sound generator good enough as signal source for my audio test needs. Since most audio test instruments available are expensive and some are bulky to occupy my work bench, my options have been narrowed down when I came across on the [...]]]></description>
			<content:encoded><![CDATA[<p>sound card scope 1.32</p>
<p>As an electronic hobbyist, I always wanted to own a sound generator good enough as signal source for my audio test needs. Since most audio test instruments available are expensive and some are bulky to occupy my work bench, my options have been narrowed down when I came across on the internet a program called “sound card scope 1.32” by C. Zeitnitz. This program is free for private or public educational use but please read the license agreement from the author regarding this matter.<span id="more-326"></span></p>
<p>This program includes oscilloscope, spectrum analyzer, sound generator and numerous knobs and buttons as well as sliding controls that mimics like a real test gear of your dream. As the name implies, this program can measure frequencies up to the limit of your sound card, from few Hz up to 15 kHz. Also take note that the signal that you will measure is being feed into the ”mic input” of the sound card  having a maximum of 1 mv or up to 500 mv only depending on the type of the card being bundled on your PC. This sensitivity can be adjusted via windows volume control panel. If you use the other sound input such as its RCA jack then its typical sensitivity is 1 V to 2. 5 V (sound card dependent also). Likewise, typical input impedance is around 75 to 600 ohms (sound card dependent also). This very low input impedance can give heavy load to some small signal sources in fact when I measure the sawtooth at pin 6 of the 555 timer for checking, the oscillation simply stop, don&#8217;t laugh!. So you will need a series resistor to increase the input resistance and a voltage divider to measure voltages above those mentioned level. Please be careful!</p>
<p><em>A picture is worth more than a thousand words.</em></p>
<p style="text-align: center;"><strong><em><a href="http://geekcircuits.com/wp-content/uploads/2010/02/Scope-GUI.png"><img class="aligncenter size-medium wp-image-327" title="Scope GUI" src="http://geekcircuits.com/wp-content/uploads/2010/02/Scope-GUI-640x457.png" alt="" width="512" height="366" /></a><br />
</em></strong></p>
<p>This graphical user interface reminds me of a classical yet expensive test gear I’ve seen during the time when I was working in a semiconductor company. Yumm nostalgia. When I test fire this thingy and measure the output of my 555 timer oscillator in a breadboard, these are the result of my test:</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/427-HZ-signal.png"><img class="aligncenter size-medium wp-image-334" title="427 HZ signal" src="http://geekcircuits.com/wp-content/uploads/2010/02/427-HZ-signal-640x406.png" alt="" width="512" height="325" /></a></p>
<p style="text-align: center;">A 427 Hertz generated by 555 timer in the breadboard</p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/555-sawtooth.png"><img class="aligncenter size-medium wp-image-382" title="555 sawtooth" src="http://geekcircuits.com/wp-content/uploads/2010/02/555-sawtooth-640x457.png" alt="" width="512" height="366" /></a></p>
<p style="text-align: center;"><em>This sawtooth waveform is generated by 555 timer circuit via a breadboard. This is done by connecting a 100k resistor in series with 0.1uf capacitor at output pin3. </em></p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/scope-at-5-kHz.png"><img class="aligncenter size-medium wp-image-331" title="scope at 5 kHz" src="http://geekcircuits.com/wp-content/uploads/2010/02/scope-at-5-kHz-640x450.png" alt="" width="512" height="360" /></a><em>When I crank-up the frequency to 5 kHz my sound card start to show a pathetic waveform</em></p>
<p style="text-align: left;">You may notice that the waveform rise and fall times slowness occur at higher frequency but this is due to my sound card response time and not by the program itself. If you want better sound card experience then you may consider upgrading your sound card from creative labs sound blaster X-Fi series. These potent sound cards extend sampling rate above 80 kHz at 24 bit resolution. Though I have not test this either.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/waveform-dropdown-list.png"><img class="aligncenter size-medium wp-image-335" title="waveform dropdown list" src="http://geekcircuits.com/wp-content/uploads/2010/02/waveform-dropdown-list-640x456.png" alt="" width="512" height="365" /></a></p>
<p><em>Here are some shots taken from the function generator dropdown list options as sawtooth, squarewave, and triangular waves.</em></p>
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/02/triangular-wave.png"><img class="aligncenter size-medium wp-image-336" title="triangular wave" src="http://geekcircuits.com/wp-content/uploads/2010/02/triangular-wave-640x454.png" alt="" width="512" height="363" /></a>When I put a check on the triangle function, I was surprise how poor my sound card perform even at very low frequency. 1kHz is shown above </em></p>
<p>My sound card looks so pathetic that it cannot produce decent waveform quality even below 1 kHz for signals as listed above.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/function-generator.png"><img class="aligncenter size-medium wp-image-337" title="function generator" src="http://geekcircuits.com/wp-content/uploads/2010/02/function-generator-640x456.png" alt="" width="512" height="365" /></a></p>
<p><em>Its only good in showing sinewave below and above 5 kHz but the square wave also behave as sinewave as well. Oh well.</em></p>
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/02/frequency-analysis1.png"><img class="aligncenter size-medium wp-image-338" title="frequency analysis" src="http://geekcircuits.com/wp-content/uploads/2010/02/frequency-analysis1-640x396.png" alt="" width="512" height="317" /></a><br />
</em></p>
<p>Again, Please be careful in measuring audio signals with higher voltages. The last image shown above is taken when investigating the frequency spectrum of the 555 timer circuit being tested. The fundamental frequency contains several noises above and below the main frequency. You can use this to check the frequency response of your opamp when wired as active band pass filter or observing the response curve of your  active cross-over network.  Measuring the frequency of any oscillator within the limits of your sound card is also a good bet because of the added frequency counter too.  Well, at least this is how my sound card performs. How about yours? Have you ever use your sound card with these useful programs yet?</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/02/sound-card-oscilloscope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bias scheme for 555 timer as class d amp</title>
		<link>http://geekcircuits.com/2010/02/bias-scheme-for-555-timer-as-class-d-amp/</link>
		<comments>http://geekcircuits.com/2010/02/bias-scheme-for-555-timer-as-class-d-amp/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 07:12:04 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=351</guid>
		<description><![CDATA[I’m almost in the process of preparing another article to post but my attention was diverted again to the previous 555 timer circuits I made. I simply couldn’t afford to leave the circuit that way. I am concerned that by changing the 2N3904 with the same type of transistor but of different hfe, the duty [...]]]></description>
			<content:encoded><![CDATA[<p>I’m almost in the process of preparing another article to post but my attention was diverted again to the previous 555 timer circuits I made. I simply couldn’t afford to leave the circuit that way. I am concerned that by changing the 2N3904 with the same type of transistor but of different hfe, the duty cycle changes accordingly and this is annoying.<span id="more-351"></span>To get the correct bias voltage to pin 5 to bring the output pin 3 to 50% duty cycle without any pot or hfe requirement for the transistor is an interesting challenge for me to tackle with. Of course the simplest approach is to put an input coupling capacitor to pin 5 but doing so will eliminate the possibility of employing negative feedback to improve the frequency response and reduce distortion. But it seems the need for a pot for proper bias is somewhat unavoidable to eliminate the DC offset from the output.</p>
<p>My broken CRT oscilloscope is in the brink of extinction due to burned 1.5KV electrolytic filter capacitor, so my initial attempt is to rely again to LT spice simulation and compare the result in real world breadboard.</p>
<p>The schematic is shown below.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/8-pin-MINI-DIP-555.png"><img class="aligncenter size-full wp-image-353" title="8 pin MINI DIP 555" src="http://geekcircuits.com/wp-content/uploads/2010/02/8-pin-MINI-DIP-555.png" alt="" width="410" height="310" /></a></p>
<p>For any given supply voltage to pin 8, the voltage that will appear from pin 5 is always 2/3 of that Vcc. Since pins 6 and 2 are tied together, its oscillating voltage varies at 2/3 max and 1/3 min. At 12 V supply, pins 6 and 2 is at its threshold of 8 volts cut-off and 4 Volts cut-in respectively. If I get the average voltage of this two then I may get the desired 50% duty cycle. This statement is actually correct “if” pin 5 is open or floating. The timer will oscillate in astable mode at desired frequency but the problem usually occurs when that pin is terminated with a sound source. The impedance of the source effectively pulls down pin 5 to ground resulting to a change in frequency and duty cycle. In my breadboard the frequency drop to half, yeah I can live with that but the pain is so hard to ignore regarding the distorted sound with some noise. The circuit is shown below without transistor.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/without-transistor-sch1.png"><img class="aligncenter size-medium wp-image-354" title="without transistor sch" src="http://geekcircuits.com/wp-content/uploads/2010/02/without-transistor-sch1-640x276.png" alt="" width="512" height="221" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">When I transferred the headphone to pin 7 with pull-up resistor, the noise disappear. This means that the source of the noise is the amplified signal from pin 3 being feedback to pin 6. So, this is the suggested output termination if someone wants to amplify the signal.</p>
<p style="text-align: left;">
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/sch-with-pull-up-resistor1.png"><img class="aligncenter size-full wp-image-357" title="sch with pull-up resistor" src="http://geekcircuits.com/wp-content/uploads/2010/02/sch-with-pull-up-resistor1.png" alt="" width="483" height="233" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">
<p>The circuit shown above has a slight reduction in volume of sound due to the high output resistance of R2 but good enough for amplification due to the absence of noise compared to first circuit.</p>
<p>The necessity for a better sound quality and to improve frequency response is more desirable and can be achieve only by adding negative feedback (NFB). And that’s what 2N3904 comes in.</p>
<p style="text-align: center;"><a style="text-decoration: none;" href="http://geekcircuits.com/wp-content/uploads/2010/02/555-pin-5-floating.png"><img class="aligncenter size-full wp-image-359" title="555 pin 5 floating" src="http://geekcircuits.com/wp-content/uploads/2010/02/555-pin-5-floating.png" alt="" width="419" height="204" /></a></p>
<p>If pin 5 is not connected the 8 volts on that pin is constant while 2/3 and 1/3 Vcc at pin 6 and 2 behave in a normal astable form with 50% duty cycle.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/wave-555-with-floating-pin-5.png"><img class="aligncenter size-full wp-image-360" title="wave 555 with floating pin 5" src="http://geekcircuits.com/wp-content/uploads/2010/02/wave-555-with-floating-pin-5.png" alt="" width="621" height="349" /></a><em>Waveform of unconnected pin 5</em></p>
<p>When I connect pin 5 to 2N3904 collector, the waveforms changed to both quasi triangular form with voltages at pin 6 and 2 at lower amplitude while pin 5 is higher.</p>
<p><a href="http://geekcircuits.com/wp-content/uploads/2010/02/555-sch-with-transistor-pin-5-con.png"><img class="aligncenter size-full wp-image-362" title="555 sch with transistor pin 5 con" src="http://geekcircuits.com/wp-content/uploads/2010/02/555-sch-with-transistor-pin-5-con.png" alt="" width="419" height="204" /></a>And the corresponding waveform is shown bellow</p>
<p><a href="http://geekcircuits.com/wp-content/uploads/2010/02/wave-555-pin-5-connected.png"><img class="aligncenter size-full wp-image-363" title="wave 555 pin 5 connected" src="http://geekcircuits.com/wp-content/uploads/2010/02/wave-555-pin-5-connected.png" alt="" width="456" height="195" /></a></p>
<p>It’s quite noticeable that the duty cycle is being affected (red trace). The previous 8 and 4 Volts from pin 6 and 2 was diverted to pin 5 now with both “peaks” of green and blue voltages are functions of T rise and T fall output voltage of pin 3.</p>
<p>Note that by &#8220;pulling up&#8221; the green voltage i.e. the collector of 2N3904 in this case, that green will return back to its original 8 volts and the corresponding duty cycle at output pin 3 will return back to 50%. The only possible way to do this is to put a pot at the base of 2N3904, oh well here we go again, don’t laugh! I think for the time being, this will suffice until I figure out how to avoid it.<br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/02/555-final-waveform1.png"><img src="http://geekcircuits.com/wp-content/uploads/2010/02/555-final-waveform1.png" alt="" title="555 final waveform" width="468" height="200" class="aligncenter size-full wp-image-400" /></a><br />
Output waveform when the pot is adjusted to a lower resistance. This means the collector current is reduced to “pull-up” pin 5 to its original 8 volts.<br />
<a href="http://geekcircuits.com/wp-content/uploads/2010/02/555-final-schematic1.png"><img src="http://geekcircuits.com/wp-content/uploads/2010/02/555-final-schematic1.png" alt="" title="555 final schematic" width="471" height="269" class="aligncenter size-full wp-image-401" /></a><br />
Complete schematic with pot included.</p>
<p>The voltage gain of the circuit above is approximately R4 divided by Rin. With an input of +/-200 mv will modulate pin 5 to +/- 2 volts. Please take note that the voltage on pin 5 should not be driven to more than +/- 2.5 volts. Doing so will produce distortion. Also, you cannot expect 100% modulation here. Based on my simulated circuit, typical modulation is something like 15 to 85% max (centered at 50%). Of course, this is only a class D toy for the beginners and should not expect full swing modulation out of it. Take note that there’s a lot of room for further improvement in this circuit such as the use of opamp that will simplify the biasing schemes. </p>
<p><strong><em><br />
</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/02/bias-scheme-for-555-timer-as-class-d-amp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full bridge class d amp using 555 timer</title>
		<link>http://geekcircuits.com/2010/02/full-bridge-class-d-amp-using-555-timer/</link>
		<comments>http://geekcircuits.com/2010/02/full-bridge-class-d-amp-using-555-timer/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 17:11:03 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=314</guid>
		<description><![CDATA[Ok, I’ve been so busy for the past few weeks and I couldn’t make a follow-up from the last article of the 555 timer circuit. So here is another improvised model circuit that will eliminate the unwanted DC offset voltage from the output that affect the previous one discussed. By the way, all previous circuits [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I’ve been so busy for the past few weeks and I couldn’t make a follow-up from the last article of the 555 timer circuit. So here is another improvised model circuit that will eliminate the unwanted DC offset voltage from the output that affect the previous one discussed. By the way, all previous circuits that I discussed were intended as “low power” class d amp source that is adequate to drive head phones via a coupling capacitor. <span id="more-314"></span>This means DC offset is ignored due to the added capacitor. The schematic shown below is a reference design with added DC offset adjust pot and a high power fet driver from <a href="http://www.micrel.com/index.do">MICREL</a> but I used it as a power fet substitute to simplify the amplification and cost. With this approach, there’s no need for costly fet driver with level shifter because the PWM source requires same rail supply as with the output fet.  Although chip maker <a href="http://www.micrel.com/index.do">MICREL</a> mentioned that MIC4451 have built-in cross-conduction minimizer, I still provide an option to include it with the use of CD4030 exclusive or gate for added safety. This will also act as phase splitter as required by the two power switchers wired in full bridge topology. I also assumed that the “would be” builder of this circuit understand several subjects like, ringings, RFI, EMI, etc. so adequate power supply by-pass capacitors and short traces of copper tracks must be implemented. Well, building a class d amp from scratch contain lots of challenge and requires courage but for some adventurous hobbyist who are bored with linear, this is worth a try.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/02/corrected-full-bridge-amp1.png"><img class="aligncenter size-medium wp-image-556" title="corrected full bridge amp" src="http://geekcircuits.com/wp-content/uploads/2010/02/corrected-full-bridge-amp1-640x298.png" alt="" width="512" height="238" /></a></p>
<p>&nbsp;</p>
<p><em>Improvised circuit</em></p>
<p style="text-align: center;">
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/02/full-bridge-correction.png"><img class="aligncenter size-medium wp-image-516" title="full bridge correction" src="http://geekcircuits.com/wp-content/uploads/2010/02/full-bridge-correction-640x298.png" alt="" width="512" height="238" /></a><span style="color: #888888;"><strong><span style="color: #000000;">Edited version (October 16, 2010)</span></strong></span></em></p>
<p>The schematic shown above requires minor tweaking on the 555 timer side due to the changes in supply voltage which is at 12 volts now. Here, aside from added  offset adjust pot (50% adjust pot via R3), attention must be focused to pin 5 as well because this is the inverting input of the internal comparator which is tied-up from the voltage divider that requires tweaking also. Adjusting R1 pot will also help to accomplish this. Please refer on the schematic shown below.</p>
<p><em>555 schematic</em></p>
<p style="text-align: center;"><em><a href="http://geekcircuits.com/wp-content/uploads/2010/02/555-schematic.png"><img class="aligncenter size-full wp-image-316" title="555 schematic" src="http://geekcircuits.com/wp-content/uploads/2010/02/555-schematic.png" alt="" width="395" height="306" /></a><br />
</em></p>
<p>The sawtooth voltage variations from pin 6 does not conforms to the required 2/3 VCC of the timer but instead, something less than 2/3 of VCC to obtain low distortion. For best result, adding one opamp as a replacement to 2N3904 will give better result.</p>
<p>Edit:</p>
<p>I include LTspice simulation for you play with. Either R2 or C2 can be adjusted for dead time adjustment to the lowest distortion as possible without cross conduction. You may disregard this RC delaying network and its ORed diode resistor combination from the output and use it only as phase splitter if you like.</p>
<p>LT spice simulation</p>
<p><a href="http://geekcircuits.com/wp-content/plugins/smartcounter/redirect.php?dcp_action=goto&dcp_id=3" target="_blank"><img alt="Download " border="0" src="http://geekcircuits.com/wp-content/plugins/smartcounter/download.jpg"></a><br />297 Views Since 2011-02</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/02/full-bridge-class-d-amp-using-555-timer/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Class D amp made easy with 555 timer IC</title>
		<link>http://geekcircuits.com/2010/01/class-d-amp-made-easy-with-555-timer-ic/</link>
		<comments>http://geekcircuits.com/2010/01/class-d-amp-made-easy-with-555-timer-ic/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 17:46:26 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>
		<category><![CDATA[PWM]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=294</guid>
		<description><![CDATA[This is a continuation of my previous article regarding class d amp using 555 timer chip. Looking back to several schematics on that article, some of you may wonder why I include another 555 as U2 in the drawing. The main purpose of this U2 is to establish constant frequency trigger on pin 2 of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a continuation of my previous article regarding class d amp using 555 timer chip. Looking back to several schematics on that article, some of you may wonder why I include another 555 as U2 in the drawing. The main purpose of this U2 is to establish constant frequency trigger on pin 2 of U1 in such a way of maintaining stable PWM carrier frequency during audio input modulation.<span id="more-294"></span></p>
<p><strong>Schematic of dual 555 circuit</strong></p>
<p style="text-align: center;"><strong><a href="http://geekcircuits.com/wp-content/uploads/2010/01/fig-1-First-trial-PWM1.png"><img class="aligncenter size-medium wp-image-310" title="fig 1 First trial PWM" src="http://geekcircuits.com/wp-content/uploads/2010/01/fig-1-First-trial-PWM1-640x241.png" alt="" width="512" height="193" /></a><br />
</strong></p>
<p><strong>Dual 555 circuit. </strong>It is sometimes necessary to tweak the resistance of resistors slightly different from their LT spice model circuit. Oh well</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/dual-555-without-tran.png"><img class="aligncenter size-medium wp-image-296" title="dual 555 without tran" src="http://geekcircuits.com/wp-content/uploads/2010/01/dual-555-without-tran-640x480.png" alt="" width="512" height="384" /></a></p>
<p>By scrutinizing the behavior of the circuit in LT spice simulator, and listening to their sound thru the breadboard circuit layout, the sound is good and clean. Of course there are some interesting ways in doing this but the most interesting thing for me to satisfy my curiosity is to try to use U1 alone without  the trigger U2 to conserve space and  cost to the lowest value as possible. In this case, by feeding back the output pin 3 to the RC time network on pin 6 &amp; 2 the resulting switching mode is astable with 50% duty cycle.  I tried to apply music to pin 5 as usual but noticed a distorting sound even at lower volume settings.</p>
<p><strong>Oscillating frequency of the circuit at 240khz</strong></p>
<p style="text-align: center;"><strong><a href="http://geekcircuits.com/wp-content/uploads/2010/01/oscillating-frequency1.png"><img class="aligncenter size-medium wp-image-312" title="oscillating frequency" src="http://geekcircuits.com/wp-content/uploads/2010/01/oscillating-frequency1-640x410.png" alt="" width="512" height="328" /></a><br />
</strong></p>
<p style="text-align: center;">
<p><strong>Single 555 timer with added 2N3904</strong></p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/single-555-with-2N3904.png"><img class="aligncenter size-medium wp-image-299" title="single 555 with 2N3904" src="http://geekcircuits.com/wp-content/uploads/2010/01/single-555-with-2N3904-640x480.png" alt="" width="512" height="384" /></a></p>
<p>Fig. 1  Schematic of 555 circuit with negative FB added. Please take note that 2N3904 varies on their hfe depending on it&#8217;s production binning. So you may get different sound quality due to this variations. Better opt for opamp if you want.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/schematic-555-with-NFB-2N3904.png"><img class="aligncenter size-medium wp-image-303" title="schematic 555 with NFB 2N3904" src="http://geekcircuits.com/wp-content/uploads/2010/01/schematic-555-with-NFB-2N3904-640x309.png" alt="" width="512" height="247" /></a></p>
<p>By implementing negative feedback thru the help of 2N3904 transistor to self bias it in a conventional way, (see fig. 1) the resulting sound was so good that it seems better than the sound produced by using 2 chips. Why? Well, I don’t have specific answer for this question at the moment and by observing the behavior of the waveforms while the circuit is being modulated reveals a mixture of PWM and FM at the same time. It is quite surprising for me to hear a music in class d amp having a mixture of PWM with FM owing to the fact that most of my class d design works are always  time based as opposed to self oscillating approach.  I think class d amp design based in self oscillating mode experience the same thing like this which makes it (self oscillating) more favored my most audiophiles.                                                                 More circuits to follow.</p>
<p>Thanks for visiting my site</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/01/class-d-amp-made-easy-with-555-timer-ic/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Class D amp using 555 timer</title>
		<link>http://geekcircuits.com/2010/01/class-d-amp-using-555-timer/</link>
		<comments>http://geekcircuits.com/2010/01/class-d-amp-using-555-timer/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 10:22:11 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>
		<category><![CDATA[class D amp]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=261</guid>
		<description><![CDATA[Perhaps 555 timer is the most versatile chip ever introduced during the 70’s and still being used by many due to its inherently innumerable uses such as LED  flashers for toys, battery regulators for cars, precision timing device for instrumentations and the list goes on. Not to mention its dirt cheap price and one of [...]]]></description>
			<content:encoded><![CDATA[<p>Perhaps 555 timer is the most versatile chip ever introduced during the 70’s and still being used by many due to its inherently innumerable uses such as LED  flashers for toys, battery regulators for cars, precision timing device for instrumentations and the list goes on. Not to mention its dirt cheap price and one of the most ubiquitous IC on earth.<img class="aligncenter size-thumbnail wp-image-278" title="fig 1 First trial PWM" src="http://geekcircuits.com/wp-content/uploads/2010/01/fig-1-First-trial-PWM-170x170.png" alt="" width="170" height="170" /><span id="more-261"></span></p>
<p>Most hobbyist are already familiar how to bias this chip to function as either astable, monostable, FM or PWM. But recently, I’ve tried to figure out how I can use this chip to function as class d amp source that can drive a headphone good enough to play music (or a class D preamp source).</p>
<p>Enter Ltspice switch cad IV, whom I rely heavily in investigating the behavioral model of 555 timer which is pretty much identical to its real world brother. I started from a basic circuit configuration of a monostable multivibrator being triggered by astable one in order to establish constant frequency. Several discrete parts were added tuned to chosen frequency of operation and quiescent output state as well.</p>
<p>A good schematic is worth more than a thousand words. So here is the simplified schematic that can be easily understood by a newbie as shown in figure 1.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/fig-1-First-trial-PWM.png"><img class="size-medium wp-image-278 aligncenter" title="fig 1 First trial PWM" src="http://geekcircuits.com/wp-content/uploads/2010/01/fig-1-First-trial-PWM-640x241.png" alt="" width="512" height="193" /></a>Fig. 1</p>
<p>For a beginning student who hasn’t used Ltspice before, you can download it now or you will miss the trip to enjoyment. Honestly.</p>
<p>My initial attempt was a typical circuit configuration using R1 to charge capacitor C1 for sawtooth generation as shown from the circuit of fig.1. The 277khz clock frequency is generated by U2 at approx 98%  wired as astable oscillator while U1 is wired as monostable or one shot. PWM is produced at pin 3 by modulating an audio signal at pin 5 of U1. Of course Ltspice always behaves precisely as expected. By zooming in and out of the waveforms I noticed that there are some unwanted artifacts on the waves that I’m suspecting that the source of this culprit is the coupling capacitor C2. When I removed the capacitor and retain the offset voltage of 4V on pin 5 the problem disappear.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/Fig.-2-Opamp-added-without-coupling-capacitor.png"><img class="size-medium wp-image-279 aligncenter" title="Fig. 2 Opamp added without coupling capacitor" src="http://geekcircuits.com/wp-content/uploads/2010/01/Fig.-2-Opamp-added-without-coupling-capacitor-640x246.png" alt="" width="512" height="197" /></a>Fig. 2 Opamp added without coupling capacitor</p>
<p>Another thing that’s not good is the curved voltage across capacitor C1. This is shown in fig.3.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-3-curved-capacitor-voltage.png"><img class="size-medium wp-image-277 aligncenter" title="Fig 3 curved capacitor voltage" src="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-3-curved-capacitor-voltage-640x126.png" alt="" width="512" height="101" /></a>Fig. 3 The humpback sawtooth!</p>
<p>Most professional hobbyist usually stays away from this curved sawtooth because it creates distortion so I replaced R1 with 2N3906 biased as constant current source and so; before you can see it…</p>
<p>Now you don’t!</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-4-Linear-capacitor-voltage.png"><img class="size-medium wp-image-280 aligncenter" title="Fig 4 Linear capacitor voltage" src="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-4-Linear-capacitor-voltage-640x126.png" alt="" width="512" height="101" /></a>Fig. 4 linear sawtooth</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-5-Improved-version-by-Q1.png"><img class="size-medium wp-image-281 aligncenter" title="Fig 5 Improved version by Q1" src="http://geekcircuits.com/wp-content/uploads/2010/01/Fig-5-Improved-version-by-Q1-640x245.png" alt="" width="512" height="196" /></a>Figure 5 the improved version of fig.1</p>
<p>Then I immediately grab my breadboard and 555 timer + other parts for verification in real world, (while I’m holding my breath). Lo and behold! I hope it’s not a placebo effect I’m hearing with my two ears.</p>
<p>While my ear cannot distinguish THD precisely, and since I am an ordinary geek guy who usually loves my own discovery, for me the sound is good enough (as usual). Of course there is always room for improvement. Several things to consider in improving the robustness of this chip for audio apps is notably to use voltage regulator for Vcc. Because if small changes occur from the supply voltage, the PWM output is severely affected as well. There’s no negative feedback from input to output; So NFB must be added to improve the overall response.</p>
<p>Did you notice that there’s no coupling capacitor tied to the output of opamp? This is because 4 to 5 volts DC bias to pin 5 is essential to force the upper comparator to sit at 50% of the entire dynamic charge and discharge of capacitor C1. If you attempt to put coupling capacitor there, the carrier frequency will drop to almost half. This is because C1 at pin 6 is being mirrored thru input pin 5 (or vice versa) exactly identical to conventional comparators.</p>
<p>I’m trying to repair my old CRT scope to capture the real word waveforms but I don’t have any luck in procuring 2.5Kv .01uf filter capacitor that leaked on its power supply a week ago. So I ended up like a cameraless paparachi.</p>
<p>So stick around and I’ll be back soon.  Thanks for visiting my site.</p>
<p>Edit: BTW, I include the spice simulated file for you to play with. Just unzip it and open it inside your Ltspice switchcad. You can post a comment for what you&#8217;ve noticed or to be added to improve its usability. Good IQ exercise heh?</p>
<p><strong>Simulation below:</strong></p>
<p><a href="http://geekcircuits.com/wp-content/plugins/smartcounter/redirect.php?dcp_action=goto&dcp_id=1" target="_blank"><img alt="Download LT sim" border="0" src="http://geekcircuits.com/wp-content/plugins/smartcounter/download.jpg"></a><br />301 Views Since 2011-02</p>
<p>Regards</p>
<p>IQspice-4</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2010/01/class-d-amp-using-555-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Low power class d amp turorial</title>
		<link>http://geekcircuits.com/2009/12/low-power-class-d-amp-turorial/</link>
		<comments>http://geekcircuits.com/2009/12/low-power-class-d-amp-turorial/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 14:13:13 +0000</pubDate>
		<dc:creator>IQspice4</dc:creator>
				<category><![CDATA[audio]]></category>

		<guid isPermaLink="false">http://geekcircuits.com/?p=226</guid>
		<description><![CDATA[This article is intended for electronic hobbyist or students alike who are interested in learning the basic operating principle of these audio amplifiers popularly known as class D amp. These types of switching amps are ideally suited for battery operated gadgets and are popularly being used in cell phones, set top boxes, and most MP3 [...]]]></description>
			<content:encoded><![CDATA[<p>This article is intended for electronic hobbyist or students alike who are interested in learning the basic operating principle of these audio amplifiers popularly known as class D amp. These types of switching amps are ideally suited for battery operated gadgets and are popularly being used in cell phones, set top boxes, and most MP3 players due to its inherently high efficiency and low power consumption as opposed to linear amps. The sample circuit bellow is for low power headphone amplifier but can also drive small speakers as well.</p>
<p>The basic operating principles of these audio amps are similar to those of switching DC to DC converters utilizing PWM (pulse width modulation). But when used in audio applications, the output is purely in a clock pulses being modulated on its duty cycle in proportion to audio signal as a modulator.</p>
<p>Let’s say at chosen clock frequency of 200 kHz, the quiescent output pulses are at 50% duty cycle without audio but being modulated to +/- 50 when strong audio is present. This will yield an output of from 0 to 100% centered at 50.<span id="more-226"></span></p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2009/12/50-percent-duty-cycle5.png"><img class="size-medium wp-image-259 aligncenter" title="50 percent duty cycle" src="http://geekcircuits.com/wp-content/uploads/2009/12/50-percent-duty-cycle5-640x125.png" alt="" width="512" height="100" /></a>Fig. 1 shows the waveform at 50% no audio.</p>
<p style="text-align: center;">
<p>In a real world scenario, audio modulations should not necessarily swing to 100% but practically less than that. In this case, a 10 to 90% centered at 50 are common to avoid distortions.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2009/12/90-percent-duty-cycle.png"><img class="size-medium wp-image-254 aligncenter" title="90 percent duty cycle" src="http://geekcircuits.com/wp-content/uploads/2009/12/90-percent-duty-cycle-640x203.png" alt="" width="512" height="162" /></a>Fig. 2 shows the waveform at 90% large signal swing.</p>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2009/12/10-percent-duty-cycle.png"><img class="size-medium wp-image-255 aligncenter" title="10 percent duty cycle" src="http://geekcircuits.com/wp-content/uploads/2009/12/10-percent-duty-cycle-640x184.png" alt="" width="512" height="147" /></a>Fig. 3 shows the waveform at 10% at minimum signal swing.</p>
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2009/12/composite-200-kHz-+-1-kHz-sine-wave.png"><img class="size-medium wp-image-256 aligncenter" title="composite 200 kHz + 1 kHz sine wave" src="http://geekcircuits.com/wp-content/uploads/2009/12/composite-200-kHz-+-1-kHz-sine-wave-640x126.png" alt="" width="512" height="101" /></a>Fig. 4 shows the composite signal containing 1 KHz audio sine wave as the modulator, and the 200 KHz pulse width modulated carrier.</p>
<p style="text-align: center;">
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://geekcircuits.com/wp-content/uploads/2009/12/magnified-composite-of-two-signals.png"><img class="size-medium wp-image-257 aligncenter" title="magnified composite of two signals" src="http://geekcircuits.com/wp-content/uploads/2009/12/magnified-composite-of-two-signals-640x126.png" alt="" width="512" height="101" /></a>Fig. 5 shows the &#8220;magnified&#8221; view of the modulated carrier signal on it&#8217;s rising and falling contours of the sine wave.</p>
<p>The waveforms shown above were done in a circuit simulator using LTspice IV with its integral signal generator configured to produce PWM. The next thing I’m going to show you is how to implement it in real circuit but the big question is, where will I get a low cost and readily available chip that can provide a decent sound that can satisfy my taste in music quality?</p>
<p>Well, this question is somewhat subjective and varies from person to person. So, the measurements and data that I may get are strictly for personal evaluation only and not for commercial application purposes.</p>
<p>Another thing I would like to emphasize is to use “non-audio chip” as the primary source of PWM signal as opposed to expensive and hard to get high speed opamps or comparators.  So, as the name of this site implies, I will use exotic circuits but relatively low cost and readily available IC’s that are not intended for audio applications but are specifically made by chip makers for dc to dc converters. Well, this doesn&#8217;t mean that the music quality is not good enough but if you will try it, you&#8217;ll be surprise. Dont worry guys, this will not necessarily put your learning at risk but it will merely stretch your skill beyond your existing one. So, stand-by please for the following demo circuit soon……….</p>
<p>Thanks for visiting my site&#8230;</p>
<p>Class D amp using 555 timer</p>
]]></content:encoded>
			<wfw:commentRss>http://geekcircuits.com/2009/12/low-power-class-d-amp-turorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	<img style='margin:0;padding:0;border:0;' width='1px' height='1px' src="http://geekcircuits.com/wp-content/plugins/mystat/mystat.php?act=time_load&id=89487&rnd=1162871706" /></channel>
</rss>

