Skip to content

Commit

Permalink
new incompleted posts
Browse files Browse the repository at this point in the history
  • Loading branch information
maoning committed May 28, 2016
1 parent 7d82e68 commit d96d39b
Show file tree
Hide file tree
Showing 15 changed files with 953 additions and 30 deletions.
5 changes: 4 additions & 1 deletion _posts/2016-04-15-FFT-with-Arduino.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Nyquist Theorem:

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


### Arduino Timer


<!-- Code example goes here -->
Expand All @@ -24,4 +24,7 @@ Nyquist Theorem:
-->

[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)

[Visualize Signal From Arduino](https://www.arduino.cc/en/Tutorial/Graph)
27 changes: 27 additions & 0 deletions _posts/2016-04-20-Artificial-Neural_Network.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
layout: post
title: Neural Network with Arduino 101
excerpt: "How to do some basic machine learning with Arduino"
categories: Arduino Machine Learning
comments: true
---

### Neurons Are Like Switches That Are Connected Together
When stimulated, a neuron could be thought as switched on, and it would activate other neutrons in the network. However, unlike switches, the amount of stimulus is related how strong each connections is. The output would be based on the stimulus passing through all these varying strength connections.

### How Software Models Neural Network
It uses Math of course! The software would receive a pattern an input, and it would adds up the input's stimulus effect on each neutron and calculate the output, in a cascaded style.

The software also has to have weights to define the strength of each neuron connection. For backpropagation algorithm specifically, the network is first initialized with random weights. Then the system would start receiving training sets (patterns that we know what they mean) and compare the computed outputs with the known outputs. If any error is found, the error is then fed back through the system to adjust the weights. After thousands or more training sets, all the weights inside the system would be adjusted to an optimal value to produce the correct output. Therefore, the system learned how to properly respond to (interprete) any input patterns.

Example of a 3 layer feed forward network: [Input -> Hidden -> output].
This layout can solve any truth table!!!

<!-- Code example goes here -->


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

[For more detailed information, see this tutorial.](http://robotics.hobbizine.com/arduinoann.html)
26 changes: 26 additions & 0 deletions _posts/2016-05-28-Git-Cmds-For-All-Occasions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
layout: post
title: Most Useful Git Operations
excerpt: "A personal git cheatsheet"
categories: Git Terminal
comments: true
---

I am nowhere near to be a git expert. After using ClearCase as the version control tool for over a year,
git to me is an entirely new beast. One irritation I had using git was that it is pretty challenging
to memorize all the commands beyond git add, commit, and push. I would usually them up again and again
on StackOverflow, write them down on a scrap of paper and forget about them. Therefore, I am
dedicating this post to sum up all the most used git operations for me.

#### Delete All the Untracked Files and Directories

```bash
git reset --hard HEAD
git clean -f -d
```

#### Undo git add --all

```bash
git reset
```
28 changes: 28 additions & 0 deletions _posts/2016-05-28-Mac-Terminal-Keyboard-Shortcuts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: post
title: Most Useful Mac Terminal Knowledge
excerpt: "A personal mac terminal cheatsheet"
categories: Mac Terminal
comments: true
---

## Keyboard Shortcuts

I use mac terminal almost daily, but for some reason, these keyboard shortcuts had evaded me
all these years...

- Go to beginning of a line: ``` cmd + a ```
- Go to end of a line: ``` cmd + e ```
- Move left word-by-word: ``` alt + <- ```
- Move right word-by-word: ``` alt + -> ```

## Terminal Style

After using my personal terminal style for so long, it has become a necessity.
To be filled in later...

1. color scheme + window transparency
2. prompt format
3. directory highlight
4. fortune + cowsay
5. shortcuts + aliases
15 changes: 7 additions & 8 deletions _sass/components/_syntax-highlighting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,9 @@ pre, code {
font-family: $font-family-monospace;
color: #525252;
font-size: 0.9em;
background-color: #f8f8f8;
background-color: #DDEEFE;
font-size: ($font-size-base - 2);
}
code {
color: #e96900;
padding: 3px 5px;
margin: 0 2px;
border-radius: 2px;
white-space: nowrap;
}
pre { // only apply for code blocks
overflow: auto;
display: block;
Expand All @@ -28,6 +21,12 @@ pre { // only apply for code blocks
border-radius: 0;
font-weight: normal;
}
code {
color: #e96900;
border-radius: 2px;
white-space: nowrap;
}

pre code {
background: transparent;
white-space: pre;
Expand Down
6 changes: 3 additions & 3 deletions _sass/pages/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
}
.author_name {
display: block;
color: #F36170;
color: #000000;
font-size: 1.75em;
text-transform: lowercase;
}
Expand All @@ -45,8 +45,8 @@
margin: -5px auto 10px;
}
.author_bio {
font-size: 95%;
font-weight: 300;
font-size: 100%;
font-weight: 600;
display: block;
}
@include media-query($medium-screen) {
Expand Down
24 changes: 24 additions & 0 deletions _site/archive/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,30 @@ <h4 class="archive-year">2016</h4>

<ul>

<li>
<span>May 28</span>&nbsp;~&nbsp;<i class="fa fa-angle-right"></i>&nbsp;<a href="/articles/2016-05/Mac-Terminal-Keyboard-Shortcuts">Most Useful Mac Terminal Knowledge</a></li>






<li>
<span>May 28</span>&nbsp;~&nbsp;<i class="fa fa-angle-right"></i>&nbsp;<a href="/articles/2016-05/Git-Cmds-For-All-Occasions">Most Useful Git Operations</a></li>






<li>
<span>Apr 20</span>&nbsp;~&nbsp;<i class="fa fa-angle-right"></i>&nbsp;<a href="/articles/2016-04/Artificial-Neural_Network">Neural Network with Arduino 101</a></li>






<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>

Expand Down
173 changes: 173 additions & 0 deletions _site/articles/2016-04/Artificial-Neural_Network.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
<!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>Neural Network with Arduino 101</title>
<meta name="description" content="How to do some basic machine learning with Arduino">

<!-- 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/Artificial-Neural_Network">
<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="Neural Network with Arduino 101">Neural Network with Arduino 101</h1>
<span class="post-meta">
<span class="post-date">
20 APR 2016
</span>
<span class="read-time" title="Estimated read time">


1 min read

</span>

</span>

</header>

<article class="post-content">
<h3 id="neurons-are-like-switches-that-are-connected-together">Neurons Are Like Switches That Are Connected Together</h3>
<p>When stimulated, a neuron could be thought as switched on, and it would activate other neutrons in the network. However, unlike switches, the amount of stimulus is related how strong each connections is. The output would be based on the stimulus passing through all these varying strength connections.</p>

<h3 id="how-software-models-neural-network">How Software Models Neural Network</h3>
<p>It uses Math of course! The software would receive a pattern an input, and it would adds up the input’s stimulus effect on each neutron and calculate the output, in a cascaded style.</p>

<p>The software also has to have weights to define the strength of each neuron connection. For backpropagation algorithm specifically, the network is first initialized with random weights. Then the system would start receiving training sets (patterns that we know what they mean) and compare the computed outputs with the known outputs. If any error is found, the error is then fed back through the system to adjust the weights. After thousands or more training sets, all the weights inside the system would be adjusted to an optimal value to produce the correct output. Therefore, the system learned how to properly respond to (interprete) any input patterns.</p>

<p>Example of a 3 layer feed forward network: [Input -&gt; Hidden -&gt; output].
This layout can solve any truth table!!!</p>

<!-- Code example goes here -->

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

<p><a href="http://robotics.hobbizine.com/arduinoann.html">For more detailed information, see this tutorial.</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/Artificial-Neural_Network" 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/Artificial-Neural_Network" 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/Artificial-Neural_Network" 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/Artificial-Neural_Network" 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/Artificial-Neural_Network" 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>
9 changes: 7 additions & 2 deletions _site/articles/2016-04/FFT-with-Arduino.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,19 @@ <h3 id="background-knowledge">Background Knowledge</h3>
<pre><code>We can only accurately measure frequencies equal or less than half of the sampling rate.
</code></pre>

<h3 id="arduino-timer">Arduino Timer</h3>

<!-- 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>
<p><a href="https://learn.adafruit.com/fft-fun-with-fourier-transforms?view=all">You can find the awesome Adafruit tutorial here.</a></p>

<p><a href="https://learn.adafruit.com/adafruit-wave-shield-audio-shield-for-arduino?view=all">Documentation on Wave Shield from Adafruit.</a></p>

<p><a href="https://www.arduino.cc/en/Tutorial/Graph">Visualize Signal From Arduino</a></p>

</article>
</div>
Expand Down
Loading

0 comments on commit d96d39b

Please sign in to comment.