<?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>Micro Servo Tester #3 : Now With Pulse Generator! (Video now working)</title><link>/challenges-projects/project14/dataconversion/b/blog/posts/micro-servo-tester-3-now-with-pulse-generator-video-now-working</link><description>I have now written the code to produce pulses to implement the pulse generator mode of the Micro Servo Tester, see the listing below. I have only included the pulse generatong function as that is the only part that has changed. void pulseg...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Micro Servo Tester #3 : Now With Pulse Generator! (Video now working)</title><link>https://community.element14.com/challenges-projects/project14/dataconversion/b/blog/posts/micro-servo-tester-3-now-with-pulse-generator-video-now-working</link><pubDate>Sat, 20 Mar 2021 11:08:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7505f673-f301-4cd4-bc6a-61c474e7b007</guid><dc:creator>beacon_dave</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;You may be able to use some of the AVR timer architecture to offload some of the timing work allowing you to use the display.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can set up a timer compare match interrupt to directly toggle an output pin, so your 10 turn pot would load the value in the output compare register and the rest is taken care of in the background, potentially leaving you time to update the display.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Arduino uses some of the AVR timers for its own functions so you would need to be mindful of that. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;More information here which may be of interest:&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://ww1.microchip.com/downloads/en/AppNotes/Atmel-2505-Setup-and-Use-of-AVR-Timers_ApplicationNote_AVR130.pdf" rel="nofollow ugc noopener" target="_blank" title="http://ww1.microchip.com/downloads/en/AppNotes/Atmel-2505-Setup-and-Use-of-AVR-Timers_ApplicationNote_AVR130.pdf"&gt;http://ww1.microchip.com/downloads/en/AppNotes/Atmel-2505-Setup-and-Use-of-AVR-Timers_ApplicationNote_AVR130.pdf&lt;/a&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p&gt;Compare Match&lt;/p&gt;&lt;p&gt;&lt;strong&gt; &lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In cases where it is not sufficient to monitor a timer overflow, the compare match interrupt can be used.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The Output Compare Register (OCRx) can be loaded with a value [0 .. MaxVal] which the TCNTn will be compared against in every timer cycle. When the timer reaches the compare value, the corresponding Output Compare Flag (OCFx) in the TIFRn register is set. The Timer can be configured to clear the count register to zero on a compare match.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Related output pins can be configured to be set, cleared, or toggled automatically on a compare match.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This feature is very useful to generate square wave signals of different frequencies. It offers a wide range of possibilities, which makes it possible to implement a DAC. The PWM mode is a special mode which is even better suited for wave generation. See the device datasheet for details.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10983&amp;AppID=280&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Micro Servo Tester #3 : Now With Pulse Generator! (Video now working)</title><link>https://community.element14.com/challenges-projects/project14/dataconversion/b/blog/posts/micro-servo-tester-3-now-with-pulse-generator-video-now-working</link><pubDate>Mon, 15 Mar 2021 19:05:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7505f673-f301-4cd4-bc6a-61c474e7b007</guid><dc:creator>ralphjy</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Seems like video encoding is having problems again.&amp;nbsp; You should try it again or put a link to YouTube.&amp;nbsp; After a couple of tries encoding failed yesterday, I just linked to YouTube and it worked fine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you like ESP32s, that is another inexpensive option for dual core and you get WiFi.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10983&amp;AppID=280&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Micro Servo Tester #3 : Now With Pulse Generator! (Video now working)</title><link>https://community.element14.com/challenges-projects/project14/dataconversion/b/blog/posts/micro-servo-tester-3-now-with-pulse-generator-video-now-working</link><pubDate>Mon, 15 Mar 2021 14:40:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7505f673-f301-4cd4-bc6a-61c474e7b007</guid><dc:creator>dougw</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;It sounds like a good application for a dual core MCU like the Pi Pico or arduino Nano RP2040.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=10983&amp;AppID=280&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>