Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
maoning committed Apr 16, 2016
1 parent b858b1c commit 7d82e68
Show file tree
Hide file tree
Showing 11 changed files with 294 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_Store
.sass-cache/

27 changes: 27 additions & 0 deletions _posts/2016-04-15-FFT-with-Arduino.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: post
title: Real-time Signal Processing with Arduino
excerpt: "How to use Arduino for real-time audio signal processing."
categories: Arduino
comments: true
---

The objective of this exercise is to reproduce "Sitting Wave" using an Arduino. The audio signal from a microphone connected to the Arduino is modulated with a signal with a known frequency to bring the audio signal to base band. A low pass filter is applied to the result. Then the audio signal is output to SWIM stick to illustrate the phenomenon of the Sitting Wave with the use of a long exposure photograph.

### Background Knowledge
Nyquist Theorem:

We can only accurately measure frequencies equal or less than half of the sampling rate.




<!-- Code example goes here -->


<!-- Questions
1. Inside the same app, could multiple instance of tasks exist?
-->

[You can find the awesome Adafruit tutorial here.]( https://learn.adafruit.com/fft-fun-with-fourier-transforms?view=all)
[Documentation on Wave Shield from Adafruit.](https://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino?view=all)
2 changes: 1 addition & 1 deletion _sass/pages/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// background-color: $background-color;
// background: url(../../img/bg.jpg) no-repeat center fixed;
background-image: $background-image;
background-size: 160%;
background-size: 250%;
background-repeat: no-repeat;
position: fixed;
text-align: center;;
Expand Down
12 changes: 10 additions & 2 deletions _site/archive/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<img src="/img/avatar.jpg" alt="" class="avatar">

<a href="/" class="author_name">Neomorning</a>
<a href="/" class="author_name">neomorning</a>
<span class="author_job">Developer</span>
<span class="author_bio mbm">Code monkey, fantasy/scifi/coffee addict, soldering fume maker, whah? A blog for like-minded people, and a notepad for myself. Have fun...</span>
<nav class="nav">
Expand Down Expand Up @@ -104,6 +104,14 @@ <h4 class="archive-year">2016</h4>

<ul>

<li>
<span>Apr 15</span>&nbsp;~&nbsp;<i class="fa fa-angle-right"></i>&nbsp;<a href="/articles/2016-04/FFT-with-Arduino">Real-time Signal Processing with Arduino</a></li>






<li>
<span>Apr 15</span>&nbsp;~&nbsp;<i class="fa fa-angle-right"></i>&nbsp;<a href="/articles/2016-04/Android-task-and-activity-management">Android Task and Activity Management</a></li>

Expand All @@ -122,7 +130,7 @@ <h4 class="archive-year">2016</h4>
<!--

<footer>
&copy; 2016 Neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
&copy; 2016 neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
</footer>

</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<img src="/img/avatar.jpg" alt="" class="avatar">

<a href="/" class="author_name">Neomorning</a>
<a href="/" class="author_name">neomorning</a>
<span class="author_job">Developer</span>
<span class="author_bio mbm">Code monkey, fantasy/scifi/coffee addict, soldering fume maker, whah? A blog for like-minded people, and a notepad for myself. Have fun...</span>
<nav class="nav">
Expand Down Expand Up @@ -208,7 +208,7 @@ <h6>Share on: </h6>
<!--

<footer>
&copy; 2016 Neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
&copy; 2016 neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
</footer>

</div>
Expand Down
171 changes: 171 additions & 0 deletions _site/articles/2016-04/FFT-with-Arduino.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Real-time Signal Processing with Arduino</title>
<meta name="description" content="How to use Arduino for real-time audio signal processing.">

<!-- CSS files -->
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/main.css">

<link rel="canonical" href="/articles/2016-04/FFT-with-Arduino">
<link rel="alternate" type="application/rss+xml" title="neomorning's blog" href=" /feed.xml " />

<!-- Icons -->
<!-- 16x16 -->
<link rel="shortcut icon" href="/favicon.ico">
<!-- 32x32 -->
<link rel="shortcut icon" href="/favicon.png">
</head>


<body>
<div class="row">
<div class="col s12 m4">
<div class="table cover">


<div class="cover-card table-cell table-bottom">

<img src="/img/avatar.jpg" alt="" class="avatar">

<a href="/" class="author_name">neomorning</a>
<span class="author_job">Developer</span>
<span class="author_bio mbm">Code monkey, fantasy/scifi/coffee addict, soldering fume maker, whah? A blog for like-minded people, and a notepad for myself. Have fun...</span>
<nav class="nav">
<ul class="nav-list">

<li class="nav-item">
<a href="/archive/">Archive</a>
<span>/</span>
</li>

<li class="nav-item">
<a href="/categories/">Categories</a>
<span>/</span>
</li>

<li class="nav-item">
<a href="/tags/">Tags</a>
</li>

</ul>
</nav>
<div class="social-links">
<ul>

<li><a href="http://twitter.com/annienmao" class="social-link-item" target="_blank"><i class="fa fa-fw fa-twitter"></i></a></li>






<li><a href="http://github.com/maoning" class="social-link-item" target="_blank"><i class="fa fa-fw fa-github"></i></a></li>











</ul>
</div>

</div>

</div>
</div>
<div class="col s12 m8">
<div class="post-listing">
<div class="back-home">
<a href="/">< back Home.</a>
</div>



<div id="post">
<header class="post-header">
<h1 title="Real-time Signal Processing with Arduino">Real-time Signal Processing with Arduino</h1>
<span class="post-meta">
<span class="post-date">
15 APR 2016
</span>
<span class="read-time" title="Estimated read time">


1 min read

</span>

</span>

</header>

<article class="post-content">
<p>The objective of this exercise is to reproduce “Sitting Wave” using an Arduino. The audio signal from a microphone connected to the Arduino is modulated with a signal with a known frequency to bring the audio signal to base band. A low pass filter is applied to the result. Then the audio signal is output to SWIM stick to illustrate the phenomenon of the Sitting Wave with the use of a long exposure photograph.</p>

<h3 id="background-knowledge">Background Knowledge</h3>
<p>Nyquist Theorem:</p>

<pre><code>We can only accurately measure frequencies equal or less than half of the sampling rate.
</code></pre>

<!-- Code example goes here -->

<!-- Questions
1. Inside the same app, could multiple instance of tasks exist?
-->

<p><a href="https://learn.adafruit.com/fft-fun-with-fourier-transforms?view=all">You can find the awesome Adafruit tutorial here.</a>
<a href="https://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino?view=all">Documentation on Wave Shield from Adafruit.</a></p>

</article>
</div>

<div class="share-buttons">
<h6>Share on: </h6>
<ul>
<li>
<a href="https://twitter.com/intent/tweet?text=/articles/2016-04/FFT-with-Arduino" class="twitter btn" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=/articles/2016-04/FFT-with-Arduino" class="facebook btn" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
</li>
<li>
<a href="https://plus.google.com/share?url=/articles/2016-04/FFT-with-Arduino" class="google-plus btn" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
</li>
<li>
<a href="https://news.ycombinator.com/submitlink?u=/articles/2016-04/FFT-with-Arduino" class="hacker-news btn" title="Share on Hacker News"><i class="fa fa-hacker-news"></i><span> Hacker News</span></a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=/articles/2016-04/FFT-with-Arduino" class="reddit btn" title="Share on Reddit"><i class="fa fa-reddit"></i><span> Reddit</span></a>
</li>
</ul>
</div><!-- end share-buttons -->

<!--

<footer>
&copy; 2016 neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
</footer>

</div>
</div>
</div>
<script type="text/javascript" src="/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="/js/main.js"></script>


</body>
</html>
14 changes: 12 additions & 2 deletions _site/categories/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<img src="/img/avatar.jpg" alt="" class="avatar">

<a href="/" class="author_name">Neomorning</a>
<a href="/" class="author_name">neomorning</a>
<span class="author_job">Developer</span>
<span class="author_bio mbm">Code monkey, fantasy/scifi/coffee addict, soldering fume maker, whah? A blog for like-minded people, and a notepad for myself. Have fun...</span>
<nav class="nav">
Expand Down Expand Up @@ -106,6 +106,16 @@ <h5 class="tag-group-title" id="Android">Android</h5>

</div>

<div class="tag-group">

<h5 class="tag-group-title" id="Arduino">Arduino</h5>

<article class="tag-item">
<a class="tag-item-title" href="/articles/2016-04/FFT-with-Arduino">Real-time Signal Processing with Arduino</a>
</article>

</div>

</div>

</article>
Expand All @@ -117,7 +127,7 @@ <h5 class="tag-group-title" id="Android">Android</h5>
<!--

<footer>
&copy; 2016 Neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
&copy; 2016 neomorning. Powered by <a href="http://jekyllrb.com/">Jekyll</a>, <a href="http://github.com/renyuanz/leonids/">leonids theme</a> made with <i class="fa fa-heart heart-icon"></i>
</footer>

</div>
Expand Down
2 changes: 1 addition & 1 deletion _site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ pre code {
/* LAYOUT CSS */
.cover {
background-image: url(../../img/bg.jpg);
background-size: 160%;
background-size: 250%;
background-repeat: no-repeat;
position: fixed;
text-align: center;
Expand Down
32 changes: 30 additions & 2 deletions _site/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,38 @@
</description>
<link>/</link>
<atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
<pubDate>Fri, 15 Apr 2016 18:04:10 +0000</pubDate>
<lastBuildDate>Fri, 15 Apr 2016 18:04:10 +0000</lastBuildDate>
<pubDate>Sat, 16 Apr 2016 00:52:28 +0000</pubDate>
<lastBuildDate>Sat, 16 Apr 2016 00:52:28 +0000</lastBuildDate>
<generator>Jekyll v3.0.3</generator>

<item>
<title>Real-time Signal Processing with Arduino</title>
<description>&lt;p&gt;The objective of this exercise is to reproduce “Sitting Wave” using an Arduino. The audio signal from a microphone connected to the Arduino is modulated with a signal with a known frequency to bring the audio signal to base band. A low pass filter is applied to the result. Then the audio signal is output to SWIM stick to illustrate the phenomenon of the Sitting Wave with the use of a long exposure photograph.&lt;/p&gt;

&lt;h3 id=&quot;background-knowledge&quot;&gt;Background Knowledge&lt;/h3&gt;
&lt;p&gt;Nyquist Theorem:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;We can only accurately measure frequencies equal or less than half of the sampling rate.
&lt;/code&gt;&lt;/pre&gt;

&lt;!-- Code example goes here --&gt;

&lt;!-- Questions
1. Inside the same app, could multiple instance of tasks exist?
--&gt;

&lt;p&gt;&lt;a href=&quot;https://learn.adafruit.com/fft-fun-with-fourier-transforms?view=all&quot;&gt;You can find the awesome Adafruit tutorial here.&lt;/a&gt;
&lt;a href=&quot;https://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino?view=all&quot;&gt;Documentation on Wave Shield from Adafruit.&lt;/a&gt;&lt;/p&gt;
</description>
<pubDate>Fri, 15 Apr 2016 00:00:00 +0000</pubDate>
<link>/articles/2016-04/FFT-with-Arduino</link>
<guid isPermaLink="true">/articles/2016-04/FFT-with-Arduino</guid>


<category>Arduino</category>

</item>

<item>
<title>Android Task and Activity Management</title>
<description>&lt;p&gt;Definition of tasks and activities&lt;/p&gt;
Expand Down
Loading

0 comments on commit 7d82e68

Please sign in to comment.