<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Sinónimo Geral: MOIRO</title>
	<atom:link href="http://mouro.info/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mouro.info</link>
	<description>s. m. Indivíduo árabe ou berbere habitante do Norte de África. Eu sou do Cacém!</description>
	<lastBuildDate>Sat, 25 Feb 2012 12:08:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Ping))) &amp; Arduino = Simple Theremin by mouro</title>
		<link>http://mouro.info/parallax-ping-arduino-theremin/comment-page-1/#comment-474</link>
		<dc:creator>mouro</dc:creator>
		<pubDate>Sat, 25 Feb 2012 12:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=733#comment-474</guid>
		<description>The audio part is basically the same described here:  http://mouro.info/signal-generator-using-arduino-and-dds/.


For info regarding the PING))) check http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor.

Hope this helps.
cheers</description>
		<content:encoded><![CDATA[<p>The audio part is basically the same described here:  <a href="http://mouro.info/signal-generator-using-arduino-and-dds/" rel="nofollow">http://mouro.info/signal-generator-using-arduino-and-dds/</a>.</p>
<p>For info regarding the PING))) check <a href="http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor" rel="nofollow">http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor</a>.</p>
<p>Hope this helps.<br />
cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ping))) &amp; Arduino = Simple Theremin by Botzi</title>
		<link>http://mouro.info/parallax-ping-arduino-theremin/comment-page-1/#comment-473</link>
		<dc:creator>Botzi</dc:creator>
		<pubDate>Fri, 17 Feb 2012 19:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=733#comment-473</guid>
		<description>Hi Moiro,

I was wondering if you might be able to show the schematics of this project. I&#039;m trying to replicate it for an school art project. I will cite all your work of course. 

Thank you,
Botzi</description>
		<content:encoded><![CDATA[<p>Hi Moiro,</p>
<p>I was wondering if you might be able to show the schematics of this project. I&#8217;m trying to replicate it for an school art project. I will cite all your work of course. </p>
<p>Thank you,<br />
Botzi</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by mouro</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-435</link>
		<dc:creator>mouro</dc:creator>
		<pubDate>Mon, 09 Jan 2012 23:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-435</guid>
		<description>hey wings, thanks for bringing that up. When I first posted it was correct but I guess the code plugin changed it. 
cheers</description>
		<content:encoded><![CDATA[<p>hey wings, thanks for bringing that up. When I first posted it was correct but I guess the code plugin changed it.<br />
cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by wings</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-434</link>
		<dc:creator>wings</dc:creator>
		<pubDate>Sun, 11 Dec 2011 17:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-434</guid>
		<description>Looks like the comment cannot be posted correctly, so here goes again a little differently: On line 107, remove the ampersand, the text &quot;amp&quot;, and the semicolon in order to compile on an Arduino Uno.

wings</description>
		<content:encoded><![CDATA[<p>Looks like the comment cannot be posted correctly, so here goes again a little differently: On line 107, remove the ampersand, the text &#8220;amp&#8221;, and the semicolon in order to compile on an Arduino Uno.</p>
<p>wings</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by wings</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-433</link>
		<dc:creator>wings</dc:creator>
		<pubDate>Sun, 11 Dec 2011 17:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-433</guid>
		<description>Odd, my comment was posted incorrectly.  Should read:
Removed &quot;&amp;&quot; from line 107...

wings</description>
		<content:encoded><![CDATA[<p>Odd, my comment was posted incorrectly.  Should read:<br />
Removed &#8220;&amp;&#8221; from line 107&#8230;</p>
<p>wings</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by wings</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-432</link>
		<dc:creator>wings</dc:creator>
		<pubDate>Sun, 11 Dec 2011 17:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-432</guid>
		<description>This sketch would not compile without errors (Arduino Uno).

Removed &amp; from line 107 and program compiles and runs ok.

Regards,
wings</description>
		<content:encoded><![CDATA[<p>This sketch would not compile without errors (Arduino Uno).</p>
<p>Removed &amp; from line 107 and program compiles and runs ok.</p>
<p>Regards,<br />
wings</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by mouro</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-431</link>
		<dc:creator>mouro</dc:creator>
		<pubDate>Tue, 12 Apr 2011 11:28:25 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-431</guid>
		<description>The components I used were spare ones, I don&#039;t remember the values by heart. 
1)  You can replace R1 and R2 with a linear POT to adjust the volume (for instance 10Kohm); Keep in mind that the line input should be kept in the 1V Peak to Peak range.
2) The low pass filter components R3 and C1 could be 1Kohm and .01uF for a cuttof frequency of ~16KHz.
3)  The AC coupling capacitor you actually don&#039;t need it since the computer line input already has AC coupling builtin.

 I haven&#039;t tried these values, but I hope this helps.</description>
		<content:encoded><![CDATA[<p>The components I used were spare ones, I don&#8217;t remember the values by heart.<br />
1)  You can replace R1 and R2 with a linear POT to adjust the volume (for instance 10Kohm); Keep in mind that the line input should be kept in the 1V Peak to Peak range.<br />
2) The low pass filter components R3 and C1 could be 1Kohm and .01uF for a cuttof frequency of ~16KHz.<br />
3)  The AC coupling capacitor you actually don&#8217;t need it since the computer line input already has AC coupling builtin.</p>
<p> I haven&#8217;t tried these values, but I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by J M Wilkes</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-430</link>
		<dc:creator>J M Wilkes</dc:creator>
		<pubDate>Thu, 07 Apr 2011 00:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-430</guid>
		<description>Could you email the values of the components in the oscillator schematic that generates a 440Hzfrequency sinewave?

Thanks</description>
		<content:encoded><![CDATA[<p>Could you email the values of the components in the oscillator schematic that generates a 440Hzfrequency sinewave?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Signal generator using Arduino and DDS by mouro</title>
		<link>http://mouro.info/signal-generator-using-arduino-and-dds/comment-page-1/#comment-403</link>
		<dc:creator>mouro</dc:creator>
		<pubDate>Sat, 04 Dec 2010 14:21:23 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=631#comment-403</guid>
		<description>Hi Alessando, 

For defining which wavetable you want to use, you can either use a
digital pin (for 2 different waveforms) , &#039;n&#039; digital pins (for 2^n
different waveforms) or a analog signal with different waveforms
mapped onto it.

If you only use two wavetables, you can use one digital pin for this purpose:

(...)
  // ... main loop
    if (digitalRead(waveSelectorPin) == HIGH)
        waveSelector = SINE_WAVE;
    else
         waveSelector = SQUARE_WAVE;
(...)

If using more than 2 wavetables and you need the digital pins for
other stuff, just use an analog pin.

(...)
   // main loop
   int waveSelector_analog = analogRead(waveSelectorPin);
   if (waveSelector_analog &lt; ANALOG_TOP_SINE)
       waveSelector = SINE_WAVE;
   else if (waveSelector_analog &lt; ANALOG_TOP_SQUARE)
       waveSelector = SQUARE_WAVE;
  ....
    else (waveSelector_analog &lt; ANALOG_TOP_TOOTHSAW)
       waveSelector = TOOTHSAW_WAVE;
(...)

The values ANALOG_TOP_TOOTHSAW, ANALOG_TOP_SQUARE, ANALOG_TOP_SINE,
etc , depend on the number of wavetables you use, and how you map them
in the analog signal. for instance, using 3 tables you&#039;ll have:
 ANALOG_TOP_SINE = 1023/3
 ANALOG_TOP_SQUARE = 1023/2
 ANALOG_TOP_SINE = 1023/1

so values between [0, 1023/3[ are for sinewave selection,  [1023/3,
1023/2[ squarewave selection, and [1023/2, 1023] for toothsaw wave.

(please note that this is one way of doing this.)


Now you should use the &#039;waveSelector&#039; value on the ISR to select the table:

ISR(TIMER1_OVF_vect)
{
   static uint8_t osc = 0;

   // Send oscillator output to PWM
   OCR1A = osc;

   // Update accumulator
   phaseAccumulator += phaseIncrement;
   index = phaseAccumulator &gt;&gt; 8;

   // Read oscillator value for next interrupt
   switch(waveSelector)
   {
       case SQUARE_WAVE:
            osc = pgm_read_byte( &amp;squareTable[index] );
            break;
       case SINE_WAVE:
            osc = pgm_read_byte( &amp;squareTable[index] );
            break;
       ....

       case TOOTHSAW_WAVE:
            osc = pgm_read_byte( &amp;toothsawTable[index] );
            break;
   }
}


hope this hels,
regards</description>
		<content:encoded><![CDATA[<p>Hi Alessando, </p>
<p>For defining which wavetable you want to use, you can either use a<br />
digital pin (for 2 different waveforms) , &#8216;n&#8217; digital pins (for 2^n<br />
different waveforms) or a analog signal with different waveforms<br />
mapped onto it.</p>
<p>If you only use two wavetables, you can use one digital pin for this purpose:</p>
<p>(&#8230;)<br />
  // &#8230; main loop<br />
    if (digitalRead(waveSelectorPin) == HIGH)<br />
        waveSelector = SINE_WAVE;<br />
    else<br />
         waveSelector = SQUARE_WAVE;<br />
(&#8230;)</p>
<p>If using more than 2 wavetables and you need the digital pins for<br />
other stuff, just use an analog pin.</p>
<p>(&#8230;)<br />
   // main loop<br />
   int waveSelector_analog = analogRead(waveSelectorPin);<br />
   if (waveSelector_analog < ANALOG_TOP_SINE)<br />
       waveSelector = SINE_WAVE;<br />
   else if (waveSelector_analog < ANALOG_TOP_SQUARE)<br />
       waveSelector = SQUARE_WAVE;<br />
  ....<br />
    else (waveSelector_analog < ANALOG_TOP_TOOTHSAW)<br />
       waveSelector = TOOTHSAW_WAVE;<br />
(...)</p>
<p>The values ANALOG_TOP_TOOTHSAW, ANALOG_TOP_SQUARE, ANALOG_TOP_SINE,<br />
etc , depend on the number of wavetables you use, and how you map them<br />
in the analog signal. for instance, using 3 tables you'll have:<br />
 ANALOG_TOP_SINE = 1023/3<br />
 ANALOG_TOP_SQUARE = 1023/2<br />
 ANALOG_TOP_SINE = 1023/1</p>
<p>so values between [0, 1023/3[ are for sinewave selection,  [1023/3,<br />
1023/2[ squarewave selection, and [1023/2, 1023] for toothsaw wave.</p>
<p>(please note that this is one way of doing this.)</p>
<p>Now you should use the 'waveSelector' value on the ISR to select the table:</p>
<p>ISR(TIMER1_OVF_vect)<br />
{<br />
   static uint8_t osc = 0;</p>
<p>   // Send oscillator output to PWM<br />
   OCR1A = osc;</p>
<p>   // Update accumulator<br />
   phaseAccumulator += phaseIncrement;<br />
   index = phaseAccumulator >> 8;</p>
<p>   // Read oscillator value for next interrupt<br />
   switch(waveSelector)<br />
   {<br />
       case SQUARE_WAVE:<br />
            osc = pgm_read_byte( &#038;squareTable[index] );<br />
            break;<br />
       case SINE_WAVE:<br />
            osc = pgm_read_byte( &#038;squareTable[index] );<br />
            break;<br />
       &#8230;.</p>
<p>       case TOOTHSAW_WAVE:<br />
            osc = pgm_read_byte( &#038;toothsawTable[index] );<br />
            break;<br />
   }<br />
}</p>
<p>hope this hels,<br />
regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on azenhas do oeste by Luis A. P. de Sá</title>
		<link>http://mouro.info/azenhas-do-oeste/comment-page-1/#comment-224</link>
		<dc:creator>Luis A. P. de Sá</dc:creator>
		<pubDate>Mon, 18 Oct 2010 21:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://mouro.info/?p=461#comment-224</guid>
		<description>Esta azenha foi nos meus tempos de criança local de brincadeiras e bons passatempos, Lá se moia a farinha
e se fazia o pão. actualmente ainda
se econtra com vida a dona maria dos anjos que mais o marido e filho
abitavão a quela azenha ela já com cerca de 90 anos.</description>
		<content:encoded><![CDATA[<p>Esta azenha foi nos meus tempos de criança local de brincadeiras e bons passatempos, Lá se moia a farinha<br />
e se fazia o pão. actualmente ainda<br />
se econtra com vida a dona maria dos anjos que mais o marido e filho<br />
abitavão a quela azenha ela já com cerca de 90 anos.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

