<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Coding on rawmeat.org</title>
    <link>https://www.rawmeat.org/categories/coding/</link>
    <description>Recent content in Coding on rawmeat.org</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 12 Feb 2014 20:38:00 +0000</lastBuildDate>
    <atom:link href="https://www.rawmeat.org/categories/coding/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Exponential smoothing in Python</title>
      <link>https://www.rawmeat.org/code/python-exponential-smoothing/</link>
      <pubDate>Wed, 12 Feb 2014 20:38:00 +0000</pubDate>
      <guid>https://www.rawmeat.org/code/python-exponential-smoothing/</guid>
      <description>&lt;h2 id=&#34;the-problem&#34;&gt;The problem&lt;/h2&gt;&#xA;&lt;p&gt;While measuring temperature using my Arduino and a&#xA;&lt;a href=&#34;https://www.sparkfun.com/products/10988&#34;&gt;TMP36&lt;/a&gt;, I found that the temperature&#xA;reading fluctuated wildly. After reading up a little, it became clear that&#xA;since the Arduino&amp;rsquo;s analog pin measures discrete values of 0-1023, and the&#xA;voltage varies between 0-5V, the smallest difference that can be detected is&#xA;ca. 4.9mV. For the TMP36, a temperature change of 1°C triggers a voltage change&#xA;of 10mV, so the smallest temperature increment that can be registered is&#xA;±0.5°C. For additional fun, the sensor is only accurate to ±2°C, so plenty of&#xA;opportunities for sensor fluctuations.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Networking monitoring with a RaspberryPI</title>
      <link>https://www.rawmeat.org/code/raspberrypi-network-monitor/</link>
      <pubDate>Sat, 29 Jun 2013 10:20:00 +0000</pubDate>
      <guid>https://www.rawmeat.org/code/raspberrypi-network-monitor/</guid>
      <description>&lt;p&gt;A while back my house mates and I found that our internet connection was&#xA;terribly slow in the evenings.&lt;/p&gt;&#xA;&lt;p&gt;I decided to use my newly arrived &lt;a href=&#34;http://www.raspberrypi.org/&#34;&gt;Raspberry Pi&lt;/a&gt;&#xA;to write some monitoring tools to see what the pattern was and how bad it was.&#xA;This way we would also have something to give to Virgin Media to show there was&#xA;a problem. At the same time, I had been wanting to write some software to push&#xA;data into the graphing system &lt;a href=&#34;http://graphite.wikidot.com/&#34;&gt;Graphite&lt;/a&gt;, so this&#xA;seemed like a good time to do that.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
