<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
  <title>Philipp on scriptogr.am</title>
  <link>http://blog.psten.de</link>
  <description>A blog dedicated to the making of things, tinkering and photography</description>
  <pubDate>2013</pubDate>
 
  <item>
    <title>Fuel for the Stellaris rocket</title>
    <pubDate>Mon, 15 Oct 2012 00:00:00 -0400</pubDate>
    <link>http://blog.psten.de/post/fuel-for-the-stellaris-rocket</link>
    <guid>http://blog.psten.de/post/fuel-for-the-stellaris-rocket</guid>     
    <description><![CDATA[<p><img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/title.jpg" alt="Stellaris Launchpad powered by a LiPo" title="Stellaris Launchpad powered by a LiPo" /></p>

<h2>Howto: Powering the Stellaris Launchpad with a LiPo battery</h2>

<p>According to the Stellaris Launchpad User's Manual there are only two power options:</p>

<blockquote>
  <p>4.75-5.25 VDC from one of the following sources:<br />
  Debugger (ICDI) USB Micro-B cable (connected to a PC)<br />
  USB Device Micro-B cable (connected to a PC)</p>
</blockquote>

<p>Well, powering this thing with USB is very convenient, but I like to make my projects portable or at least 'untethered' if USB is not needed for debugging or communications. And there is this unpopulated 3-pin header in the bottom-left corner of the board, labeled <code>VBUS</code> just begging to be populated with a 2mm JST header for a <a href="https://www.sparkfun.com/search/results?term=Polymer+Lithium+Ion+Battery&amp;what=products">single-cell LiPo</a>.
There is a twist, though: The Launchpad expects 4.75-5.25 VDC on <code>VBUS</code>, nothing that a single cell LiPo could provide. I know that the system voltage is 3.3 VDC and that the voltage regulator on the board has a very low dropout voltage, so powering the Launchpad with anything between 3.4-5.25 VDC should work well. The voltage of a single-cell LiPo ranges between 3.0-4.2 VDC, so let's populate this header and plug a fully charged LiPo in it! Being a practical guy, I did just that.</p>

<h2>Guess what, nothing happened!</h2>

<p>At least there was no magic smoke released, but no fancy fading of the RGB led either. But the green LED on the debugger portion of the board lit up, so I started probing voltages with a multimeter. Imagine my surprise when I measured perfectly stable 3.3V on the <code>3V3</code> rail! Everything seemed to be fine, so I dug out the schematic aka the <a href="http://www.ti.com/lit/ug/spmu289/spmu289.pdf">'User Manual'</a> for the Stellaris Launchpad. The interesting part for me was the schematic of the power management circuitry, found on page 19:
<a href="http://www.ti.com/lit/ug/spmu289/spmu289.pdf#page=19"><img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/power_mgmt.sch.png" alt="power management circuitry" title="Excerpt from TI's SPMU289 - Click to open the PDF" /></a>
You'll see the problem within seconds, if you're familiar with the operation of voltage supervisors. The green LED <code>D4</code> lit up and I measured 3.3V on the <code>3.3V</code> rail, hence the voltage regulator <code>U8</code> was working fine.
<img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/ldo.sch.png" alt="LDO schematic" title="Stellaris Launchpad voltage regulator" />
The power select switch <code>SW3</code> is not relevant because the LiPo is connected to <code>+VBUS</code> directly. My guess was that <code>U4</code> pulled <code>RESET</code> low for some reason, therefore preventing the micro from running its code.
<img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/voltage_supervisor.sch.png" alt="voltage supervisor schematic" title="Stellaris Launchpad voltage supervisor" />
Probing <code>RESET</code> with a multimeter and taking a look on the first page of the <code>TLV803</code> <a href="http://www.ti.com/lit/ds/symlink/tlv803m.pdf">datasheet</a> confirmed my theory: Turns out that <code>U4</code> is a 5V voltage supervisor, pulling <code>RESET</code> low if <code>+VBUS</code> is below 4.38V.
<img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/voltage_supervisor.data.png" alt="TLV803 datasheet" title="Excerpt from TLV803m.pdf" />
I'm not familiar with the correct implementation of these voltage supervisors, but for maximum hackability it would have been nice to use a 3.3V supervisor on the <code>3V3</code> rail instead of a 5V one on <code>+VBUS</code>.</p>

<h2>Howto outsmart mission control</h2>

<p>Although the Launchpad design includes the voltage supervisor for a reason, to ensure stable operation, this design feature was more of a design flaw for me: The 5V version of TLV803 has a treshold voltage of 4.38V, a LiPo battery has a maximum of 4.2V which means that the TLV803 would pull <code>RESET</code> low all the time, rendering the Launchpad unusable powered with a LiPo.<br />
Simple problem, simple solution: Remove <code>U4</code>!  <code>R17</code> is a 10k pullup resitor and will keep both, <code>TARGETRST</code> and <code>ICDI_RST</code> high. Even simpler and no desoldering involved: Cut the tiny trace between <code>U4</code> and <code>D2</code>:
<img src="http://dl.dropbox.com/u/15709093/blog/stellaris%20lipo/trace.jpg" alt="cut trace between U4 and D2" title="cut trace between U4 and D2" />
Now you can power your Launchpad with a standard single cell LiPo or anything between 3.4VDC and 5.25VDC.</p>

<p><strong>Disclaimer:</strong></p>

<pre class="prettyprint"><code>This is a quick'n'dirty hack, so please be aware that connecting your Launchpad to USB while a LiPo is plugged into it will propably harm the LiPo and maybe the USB port, too. I highly recommend to use LiPo batteries with integrated protection circuitry for this hack, because LiPo batteries tend to react very bad to overcharge!
Additionally you should keep an eye on your battery voltage, a LiPo should not be discharged under 3V or it may take damage and will lose some of its capacity. Keep in mind that there is no kind of low-voltage shutdown on the Launchpad with the voltage supervisor removed!
</code></pre>

<p>If you are willing to take these 'risks' this hack will give you plenty of power for your portable experiments with the Stellaris Launchpad. <em>Happy hacking! ;)</em>
<img src="http://goo.gl/c725c" alt="modified Stellaris Launchpad" title="Stellaris Launchpad powered by LiPo" /></p>

<p style="text-align:center !important"><a style="width:88px !important" rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="CC-BY-SA" title="Article and Photographs licensed under CC-BY-SA" style="border-width:0; width:88px !important; height:31px;" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a></p>

<p><img src="http://api.stathat.com/c?ukey=MTQyNSDzVxQgxD-dLHGb7gDufStY&key=-tjM5WNsaY-kHlssiok-_SBSOVgy&count=13" style="display:none;" width="1" height="1"/></p>
]]></description>
  </item>
 
  <item>
    <title>Knock, knock...</title>
    <pubDate>Sat, 31 Dec 2011 12:31:00 -0500</pubDate>
    <link>http://blog.psten.de/post/knock-knock...</link>
    <guid>http://blog.psten.de/post/knock-knock...</guid>     
    <description><![CDATA[<blockquote>
  <p>Thank you for using scriptogr.am. While we’re still in early beta development, we think you’ll enjoy the app. It’s designed to be fast, simple and to get the most creativity out of you.</p>
</blockquote>

<p>scriptogr.am uses <a href="http://daringfireball.net/projects/markdown/" title="Markdown">Markdown</a>, a lightweight markup language, originally created by <a href="http://daringfireball.net/" title="Daring Fireball">John Gruber</a> and <a href="http://www.aaronsw.com/" title="Aaron Swartz">Aaron Swartz</a>. Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML). See the <a href="http://daringfireball.net/projects/markdown/syntax" title="Markdown syntax">Syntax</a> page for details pertaining to Markdown’s formatting syntax. You can try it out, right now, using the online <a href="http://daringfireball.net/projects/markdown/dingus" title="Dingus">Dingus</a>.</p>

<h2>Getting started</h2>

<p>After connecting your Dropbox account to scriptogr.am, some necessary files and folders are added to your Dropbox at <code>Apps/scriptogram</code>. First the <em>GET_STARTED.txt</em> text file that pretty much explains the exact same as what you’re reading now. Next, we’ve added a <code>posts</code> folder. This is where you add your blog <em>post</em> (&amp; <em>page</em>) files. These files are plain textfiles, but needs to be saved with the .md (markdown) extension like this: <em>yourfile.md</em></p>

<p><img src="http://dl.dropbox.com/u/35476/_scriptogram/folder.png" alt="" /></p>

<p>Please use standard, non foreign filenames. Dropbox sometimes have problem syncing filenames that contains invalid HTML characters. 
We’ve added a post example page (this file) there for you to get familiar with.</p>

<h2>The template data</h2>

<p>All files needs to contain "front block". The front block must be the first thing in the file and takes the form of:</p>

<pre class="prettyprint"><code>Date: 2012-04-17
Title: My first post
</code></pre>

<p>You can set any of the predefined variables (see below for a reference). But, the <em>Title</em> is required. Without the title, the system will fail.</p>

<h3>Predefined global variables</h3>

<p><em>All the variable names below are case-sensitive:</em></p>

<p><code>Required:</code></p>

<pre class="prettyprint"><code>Title
</code></pre>

<p>The title of your post (or page)</p>

<p><code>Not required, but close to:</code></p>

<pre class="prettyprint"><code>Date
</code></pre>

<p>The following date format is the correct one to use: <em>2011-12-31 12:31</em> or <em>2011-12-31</em>.
(The <em>Date</em> variable can be used to ensure correct sorting of posts.)</p>

<hr />

<p><code>Optional:</code></p>

<pre class="prettyprint"><code>Published
</code></pre>

<p>Set to ’false’ if you don’t want a post to show up when the site is generated.</p>

<pre class="prettyprint"><code>Type
</code></pre>

<p>Set to ’page’ if you wan’t the post to act as a ’page’ instead of a ’post’.</p>

<pre class="prettyprint"><code>Slug
</code></pre>

<p>Custom permalink (replaces the auto generated url based on the "Title:" variable), especially useful if titles tend to be long or they change frequently. E.g ’my-custom-permalink-url’</p>

<pre class="prettyprint"><code>Link
</code></pre>

<p>Links the "post" or "page" title to an external source. E.g ’http://google.com’</p>

<pre class="prettyprint"><code>Tags
</code></pre>

<p>Add tags to your posts and pages. Comma separated words. Once added, scriptogr.am will transform all tags to valid basic HTML characters.</p>

<pre class="prettyprint"><code>Excerpt
</code></pre>

<p>Add an excerpt<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> to your post or page.</p>

<h2>Difference between ’posts’ and ’pages’</h2>

<p>A <code>post</code> is a blog post.</p>

<p>A <code>page</code> is a similar as a <em>post</em>, but generates a link visible in the <em>menu</em> on your site that will lean to a page permalink.</p>

<h2>Publishing your posts</h2>

<p>This is simple. Just head to your admin panel and hit the ”Synchronize” button. When logged in to scriptogr.am and visiting your own page, you’ll see the scriptogr.am logotype symbol on the top right of the browser window. This is the link that leads to your admin panel.</p>

<h2>Published vs unpublished</h2>

<p>Total count of published and unpublished posts (&amp; pages) are visible next to the ”Synchronize” button. ”Unpublished” means that you either removed a post text file from your Dropbox or that something went wrong while trying to sync your Dropbox with scriptogr.am. Also, if you’ve set a post to be published with the <code>Published: false</code> variable.</p>

<p><strong>Finally,</strong> happy posting. If you have any questions, suggestions or thoughts just drop us an <a href="mailto:info@scriptogr.am">e-mail</a> at any time.</p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>An <a href="http://en.wikipedia.org/wiki/Excerpt" title="Excerpt on Wikipedia">excerpt</a> is a relatively small sample passage from a longer work, such as a book or article.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></description>
  </item>
    
</channel>
</rss>