<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Building a Fast Edge Square Wave Generator</title><link>/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><description>Introduction 


 How does it work? 


 Building It 


 Parts 


 Trying It Out 


 Summary 

 IntroductionSometimes it’s useful having the ability to generate signals with sharp edges! It can be handy for time-domain reflectometer (TDR) experiments or</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 17 Apr 2021 08:27:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>embeddedguy</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice! So you don&amp;#39;t need MCU for doing this.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Fri, 16 Apr 2021 17:51:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>fmilburn</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I really enjoyed this project and learned a lot.&amp;nbsp; I am curious about what you think about adding variable output frequency to the circuit controlled by a microcontroller.&amp;nbsp; Perhaps using a DDS chip like the &lt;a class="jive-link-external-small" href="https://www.analog.com/media/en/technical-documentation/data-sheets/AD9850.pdf" rel="nofollow ugc noopener" target="_blank"&gt;AD9850 DDS Synthesizer&lt;/a&gt; to replace the oscillator.&amp;nbsp; I&amp;#39;m not sure how to read the datasheet of the AD9850 on rise / fall time but it appears your circuit is much faster.&amp;nbsp; Would something like that work?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Frank&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;edit: or perhaps just use the uC clock &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Fri, 16 Apr 2021 12:28:55 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Just a quick update on this project..&lt;/p&gt;&lt;p&gt;I wasn&amp;#39;t expecting it, but the PCB version turned out to be faster.. or maybe it&amp;#39;s the particular IC that I used.. this one: &lt;span&gt;&lt;span class="e14-init-shown" id="addProduct-y96H70DI-linked"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2534672&amp;amp;nsku=71J5560&amp;amp;COM=noscript" target="_blank"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2534672&amp;amp;nsku=71J5560&amp;amp;COM=noscript" target="_blank"&gt;MC74AC02DG&lt;/a&gt;&lt;/span&gt;&lt;span class="e14-init-hidden" id="addProduct-y96H70DI-unlinked"&gt;MC74AC02DG&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Now the rise-time is 500 ps, and the fall-time is around 420 ps.&lt;/p&gt;&lt;p&gt;This was tested with a 5V DC supply.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/620x475/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7edbcc91-1387-4d28-9bfb-5c21ca2b6f04/2451.contentimage_5F00_207643.jpg:620:475]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 20:47:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>three-phase</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice project and well implemented. I went down the official route and purchased a pulse generator from Leo Bodnar when I wanted to check the performance of instruments.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kind regards.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 19:22:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice build.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DAB&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 16:28:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>neilk</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Nice little project with a great result.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please can yo do a quick blog about the prototyping technique with adhesive copper tapr and Kapton tape??&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Neil&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 15:35:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>jc2048</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;That looks like good fun. A nice project.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I, too, like the prototype method. Although I carve up pcb board, I hadn&amp;#39;t thought of adding supply rails.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;AC logic is impressive, though keep in mind can also be a bit of a liability (from an EMC point of view &lt;/p&gt;&lt;p&gt;because of the edge rates) if you don&amp;#39;t actually need it.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;With my scope (200MHz) I don&amp;#39;t have the capability to look at rise times like that, but I was curious how &lt;/p&gt;&lt;p&gt;AC logic compares to the output drivers in a modern microcontroller, so I&amp;#39;ve done essentially the same &lt;/p&gt;&lt;p&gt;thing as you with a UNO.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/400x300/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7edbcc91-1387-4d28-9bfb-5c21ca2b6f04/contentimage_5F00_207640.jpg:400:300]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The outputs I&amp;#39;ve chosen are all on the same port, so I can switch them all simultaneously. This is down a &lt;/p&gt;&lt;p&gt;1m length of 50R coax with a &amp;#39;T&amp;#39; piece and a 50R terminator at the end [my crummy scope doesn&amp;#39;t do 50R &lt;/p&gt;&lt;p&gt;inputs, worst luck].&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/480x234/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7edbcc91-1387-4d28-9bfb-5c21ca2b6f04/contentimage_5F00_207641.png:480:234]&lt;/span&gt;&lt;span&gt;[View:/resized-image/__size/480x234/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-7edbcc91-1387-4d28-9bfb-5c21ca2b6f04/contentimage_5F00_207642.png:480:234]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Resistors are 180R [that was based on the idea that the MOSFETs in the Atmel part are probably around the &lt;/p&gt;&lt;p&gt;20R area for rds(on): I&amp;#39;m obviously not too far out, as I&amp;#39;m getting the 2.5V you&amp;#39;d expect with a 5V supply &lt;/p&gt;&lt;p&gt;and series termination at the drive end of the cable].&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So yours is a good ten times quicker. You win! (But then you always were going to.)&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 09:11:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>michaelkellett</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Useful tips here Shabaz - thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I managed to buy an HP8082A at an auction for about £75 a couple of years ago - it can do 1ns edges (fastest it can do) but it&amp;#39;s huge and old and won&amp;#39;t be eay to fix if it ever goes wrong.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;MK&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 08:42:57 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>14rhb</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Aside from the project aim, which is very interesting as well, I particularly like your prototype method of Kapton and copper tapes.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 05:24:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>jw0752</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Cool project. Once I catch up a little I will have to give it a try.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;John&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Building a Fast Edge Square Wave Generator</title><link>https://community.element14.com/technologies/open-source-hardware/b/blog/posts/building-a-fast-edge-square-wave-generator</link><pubDate>Sat, 06 Feb 2021 02:18:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7edbcc91-1387-4d28-9bfb-5c21ca2b6f04</guid><dc:creator>genebren</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice experiment/test. I hope that this device will serve you well in your future experiments.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10817&amp;AppID=18&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>