<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>4ms Projects</title>
	<atom:link href="http://4ms.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://4ms.org</link>
	<description>works and projects from the 4ms studio</description>
	<lastBuildDate>Tue, 24 Apr 2012 01:54:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Programming the Pingable Envelope Generator</title>
		<link>http://4ms.org/?p=160</link>
		<comments>http://4ms.org/?p=160#comments</comments>
		<pubDate>Thu, 29 Mar 2012 18:13:57 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4ms.org/?p=160</guid>
		<description><![CDATA[How to re-program your P.E.G. In a nutshell: Set up the hardware and software: Updating Firmware on AVR chips Download the current release of PEG code Connect ISP to red channel and flash code from your computer (see photo below) Remove blue channel jumper Connect ISP to blue channel and flash code from your computer [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to re-program your P.E.G.</strong></p>
<p><strong>In a nutshell:</strong></p>
<ol>
<li>Set up the hardware and software: <a title="Updating firmware on AVR chips" href="http://4ms.org/?p=64" target="_blank">Updating Firmware on AVR chips</a></li>
<li>Download <a title="4ms Pedals: PEG" href="http://www.4mspedals.com/peg.php#firmware" target="_blank">the current release of PEG code</a></li>
<li>Connect ISP to red channel and flash code from your computer (see photo below)</li>
<li>Remove blue channel jumper</li>
<li>Connect ISP to blue channel and flash code from your computer  (see photo below)</li>
<li>Re-install blue channel jumper</li>
<li>Cycle power</li>
<li>Play time!</li>
</ol>
<p>(see bottom of post for detailed instructions)</p>
<div class="mceTemp" style="text-align: left;">
<dl class="wp-caption alignnone" style="width: 609px;">
<dt class="wp-caption-dt"><a href="http://4mspedals.com/peg/programming-red.jpg"><img class="  " title="Programming the Red channel" src="http://4mspedals.com/peg/programming-red.jpg" alt="" width="599" height="422" /></a></dt>
</dl>
<p class="wp-caption-dd">Programming the Red channel</p>
</div>
<div class="mceTemp">
<dl class="wp-caption alignnone" style="width: 624px;">
<dt class="wp-caption-dt"><a href="http://4mspedals.com/peg/programming-blue.jpg"><img class="  " title="Programming the blue channel" src="http://4mspedals.com/peg/programming-blue.jpg" alt="" width="614" height="410" /></a></dt>
</dl>
<p class="wp-caption-dd" style="text-align: left;">Programming the blue channel. Note the blue jumper has been removed so that the 6-pin ISP cable can fit. Replace the jumper after programming, and cycle power before using the PEG.</p>
<p><strong>Detailed Instructions:<br />
</strong></p>
<p>First, if don&#8217;t already have your computer set up for programming AVR chips, then read <a title="Updating firmware on AVR chips" href="http://4ms.org/?p=64" target="_blank">the article on programming firmware</a>. You&#8217;ll need software installed on your computer (AVR Fuses or CrossPack for OSX, or AVRStudio).</p>
<p>Now, remove your PEG from your rack and power it up. You may need a longer ribbon cable, or somehow rig something up so you can keep it powered on while programming.</p>
<p>Next, connect the AVR ISP programmer to the 6-pin header under the red channel chip. Note the red stripe orientation. On your computer, flash the code to the PEG. See photo below.</p>
<p>Next, connect the 6-pin ISP cable to the blue channel header that&#8217;s to the right of the blue channel chip. You&#8217;ll have to remove the blue jumper from this header, and replace it when you&#8217;re done. Flash the code onto the blue channel.</p>
<p>Finally, disconnect the AVR ISP and turn off the PEG, and then turn it back on. This final step is necessary because the jumper on the blue channel is only read at boot-time, so the PEG must be turned off and back on with this jumper installed.</p>
<p>To clear up any confusion, notice that there&#8217;s a second blue jumper on the PEG that&#8217;s located near the power cable. Just leave this alone during programming. The blue jumper that&#8217;s mentioned above is located next to the blue channel AVR chip (towards the top, center of the board).</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=160</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building an RCD Breakout Module</title>
		<link>http://4ms.org/?p=122</link>
		<comments>http://4ms.org/?p=122#comments</comments>
		<pubDate>Fri, 03 Sep 2010 02:39:52 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Modules]]></category>
		<category><![CDATA[Eurorack]]></category>
		<category><![CDATA[RCD]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=122</guid>
		<description><![CDATA[How to make an RCD Breakout Intro The Rotating Clock Divider is a Euro-rack format module from 4ms that takes an incoming clock signal and outputs 8 simultaneous divided clocks, each in the range of /1 to /64. It also has a Rotate CV input that re-assigns the divide-amount on the jacks. More information is [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000000;"><strong>How to make an RCD Breakout </strong></span></h2>
<h3>Intro</h3>
<p>The Rotating Clock Divider is a Euro-rack format module from 4ms that takes an incoming clock signal and outputs 8 simultaneous divided clocks, each in the range of /1 to /64. It also has a Rotate CV input that re-assigns the divide-amount on the jacks. More information is at <a href="http://4mspedals.com/rcd.php">4mspedals</a>.</p>
<p>The RCD features 6 jumpers that can control various features. The <a href="http://4mspedals.com/clocker/manual/manual1.0.2b.pdf">User Manual</a> goes into depth about what these do. The breakout panel is a way to bring those jumpers to the front, so you can use flip switches to change the jumper settings on the fly.</p>
<h3>For PCB version 1.0.2 and later&#8230;.</h3>
<p>You will need:</p>
<ul>
<li>RCD with PCB 1.0.2 or later (see the bottom for instructions on pcb version 1.0.1 and 1.0)</li>
<li>4HP panel</li>
<li>6 SPST switches</li>
<li>16-conductor cable with a 2&#215;8 connector on one end (standard Doepfer power cable, cut in half).</li>
</ul>
<p>Here&#8217;s how it goes together in a nutshell:</p>
<p><a href="http://4mspedals.com/clocker/RCDBO/pcb102_wiring.pdf"><img class="alignnone" title="RCD PCB 1.0.2 and later wiring to RCDBO" src="http://4mspedals.com/clocker/RCDBO/pcb102_wiring_pdf.jpg" alt="PCB 1.0.2 RCDBO" width="792" height="612" /></a></p>
<p>Let&#8217;s start by looking at the connection to the board. There&#8217;s only 12 pins on the board, but the connector has 16 holes. That&#8217;s OK! Just let the bottom four holes hang off (those four wires don&#8217;t go to anything anyways, as you can see in the first diagram). To be clear, by the &#8220;bottom four holes&#8221; I mean the four holes on the right hand side in the photo below (they are on the bottom in the photo above). The edge of the connector should <strong>not</strong> stick over the edge of the board.</p>
<div id="attachment_124" class="wp-caption alignnone" style="width: 490px"><a href="http://4ms.org/projects/wp-content/uploads/2010/09/cable-connect.jpg"><img class="size-medium wp-image-124" title="cable-connect" src="http://4ms.org/projects/wp-content/uploads/2010/09/cable-connect-480x330.jpg" alt="Cable connection to RCD board -- Click to enlarge" width="480" height="330" /></a><p class="wp-caption-text">Cable connection to RCD board -- Click to enlarge</p></div>
<p>OK, now let&#8217;s look at the wiring of the panel. There are six switches, each has two connections.</p>
<p>Notice the Max Divide 1 and 2 switches are flipped from the other 4 switches: the lugs are on the right side. That&#8217;s just because of the way I labeled the panel (which is the same one included in the 4ms kit, so do it exactly like this if you got the panel in the kit). For the top two switches, flipping the switch lever to the left will open the connection (same as removing the jumper) and flipping it to the right will close the connection (same as putting on the jumper). For the bottom 4 switches, flipping the switch to the right is like removing the jumper, flipping to the left is like installing the jumper. See the <a href="http://4mspedals.com/rcd.php" target="_blank">User Manual</a>for a description of what the jumpers do!</p>
<p>&nbsp;</p>
<h2>PCB version 1.0.1 (and 1.0)</h2>
<p>For PCB version 1.0.1, it&#8217;s the same process, but the switches are in a different order. Using the same cable above, it goes:</p>
<pre style="padding-left: 30px;">1 (Red) &amp; 2: Max Div 32
3 &amp; 4: Max Div 16
5 &amp; 6: Spread
7 &amp; 8: Auto-Reset
9 &amp; 10: Counting
11 &amp; 12: Gate/Trig
13-16: not used
</pre>
<p><a href="http://4mspedals.com/clocker/RCDBO/pcb101_wiring.pdf"><img class="alignnone" title="RCD PCB 1.0.1 wiring to RCDBO" src="http://4mspedals.com/clocker/RCDBO/pcb101_wiring_pdf.jpg" alt="RCD PCB 1.0.1 wiring to RCDBO" width="475" height="367" /></a></p>
<p>Obviously you will have to upgrade your chip firmware to v1.1 if you want to use Gate/Trig or Up/Down counting or Spread. You can read about upgrading on the <a href="http://4mspedals.com/rcd.php" target="_blank">RCD page on 4mspedals.com</a></p>
<h2>PCB version 1.0</h2>
<p>For PCB 1.0, there&#8217;s only 4 switches hard-wired to the breakout connector pins, so you have to solder wires from the back of the PCB to some jumper pins which you insert into the breakout&#8217;s connector. Look at the photo:</p>
<div id="attachment_137" class="wp-caption alignnone" style="width: 490px"><a href="http://4ms.org/wp-content/uploads/2010/09/pcb1.0jumpers_4pin.jpg"><img class="size-medium wp-image-137 " title="PCB 1.0 wires to solder" src="http://4ms.org/wp-content/uploads/2010/09/pcb1.0jumpers_4pin-480x256.jpg" alt="" width="480" height="256" /></a><p class="wp-caption-text">PCB 1.0, solder the three wires to the 4-pin connector</p></div>
<p>You will be soldering the red, yellow, and black wires from the PCB to the back of a 4-pin (2&#215;2) connector. Note that the black wire connects to BOTH pins in a row, but the red and yellow wires connect to one pin each. The inset photo shows the back of the 4-pin connector.</p>
<p>To use your new 4-pin, just push it into the breakout&#8217;s 16-pin connector where the Up/Down and Gate/Trig jumpers are supposed to go. Follow the pin numbering from the PCB 1.0.1 section (above). The red wire is Up/Down and that should be closest to the existing breakout pins. The yellow wire is next to the red, farthest from the existing pins. The black wires should be on the top.</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=122</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating firmware on AVR chips</title>
		<link>http://4ms.org/?p=64</link>
		<comments>http://4ms.org/?p=64#comments</comments>
		<pubDate>Mon, 10 May 2010 06:44:04 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>
		<category><![CDATA[Modules]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=64</guid>
		<description><![CDATA[A number of 4ms devices use an AVR microcontroller. These chips run a small program. On most 4ms devices that use an AVR chip, there&#8217;s a 6-pin header (2 rows of 3 pins) near the chip. This header lets you update, upgrade, or hack the AVR chip. Here&#8217;s how to do it: You will need&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>A number of 4ms devices use an AVR microcontroller. These chips run a small program. On most 4ms devices that use an AVR chip, there&#8217;s a 6-pin header (2 rows of 3 pins) near the chip. This header lets you update, upgrade, or hack the AVR chip.</p>
<h2>Here&#8217;s how to do it:</h2>
<p>You will need&#8230;</p>
<ul>
<li><strong><img class="alignleft" title="AVR ISP mkII" src="http://www.atmel.com/dyn/resources/prod_images/AVRISPmkII.jpg" alt="" width="69" height="54" />ISP (In-circuit Programmer)</strong>: I recommend the <a href="http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3808">AVR ISP MKII</a> available from <a href="http://mouser.com/ProductDetail/Atmel/ATAVRISP2/?qs=2mdvTlUeTfBRoycsKqwYpg%3d%3d">Mouser</a> for $34, or elsewhere sometimes cheaper! In Europe, try <a href="http://de.farnell.com/atmel/atavrisp2/programmiergeraet-in-system-avr/dp/1135517">Farnell</a></li>
</ul>
<ul>
<li><strong>A computer with a USB port</strong>. Windows actually has the most seamless installer, but I also use Mac and Linux to burn code just fine. Download and install one of these:
<ul>
<li><strong>Windows: </strong>AVR Studio 4, download it from <a href="http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725">atmel.com</a>. Scroll down and get the latest version (4.18, build 6 as of this post). You&#8217;ll have to &#8220;register&#8221; by typing in a real or fake name and address.</li>
<li><strong>Mac OS X: </strong>Download and install <a href="http://www.obdev.at/products/crosspack/index.html">Crosspack-AVR</a> and then <a href="http://4mspedals.com/avrfuses_m328.zip" target="_blank">AVRFuses</a></li>
<li><strong>Linux:</strong> You just need the <a href="http://savannah.nongnu.org/projects/avrdude">avrdude</a> program to burn code, but can install the whole <a href="http://nongnu.org/avr-libc/user-manual/install_tools.html">avr-gcc toolchain</a> if you might be compiling your own firmware.</li>
</ul>
</li>
<li><strong>The hex file</strong>: This is the actual file that contains the firmware update. If you&#8217;re upgrading a device, this will be available for download on the device&#8217;s web page. If you&#8217;re an advanced hacker, you&#8217;ll probably compile your own code using avr-gcc (part of AVR Studio and OSX_SAVE/Crosspack) which will generate a hex file for you. The file should be in intel hex format, ending in .hex
<ul>
<li><a href="http://4mspedals.com/peg.php#firmware" target="_blank">Pingable Envelope Generator</a></li>
<li><a href="http://4mspedals.com/rcd.php#firmware" target="_blank">Rotating Clock Divider</a></li>
<li><a href="http://4mspedals.com/scm.php#firmware" target="_blank">Shuffling Clock Multiplier</a></li>
<li><a href="http://4ms.org/projects/?p=49">Autonomous Bassline Generator</a></li>
<li><a href="http://www.commonsound.com/kits/doku.php?id=commonsound:bendmatrixcode">Bend Matrix</a></li>
</ul>
</li>
</ul>
<h2><strong>Detailed instructions:</strong></h2>
<p>&nbsp;</p>
<div id="attachment_114" class="wp-caption alignnone" style="width: 490px"><strong><strong><a href="http://4ms.org/projects/wp-content/uploads/2010/05/avrispRCD.jpg"><img class="size-medium wp-image-114" title="avrispRCD" src="http://4ms.org/projects/wp-content/uploads/2010/05/avrispRCD-480x360.jpg" alt="PLuig the AVR ISP mkII into the 6-pin header of your device, making sure to line the red stripe up with the printed white box on the PCB" width="480" height="360" /></a></strong></strong><p class="wp-caption-text">Plug the AVR ISP mkII into the 6-pin header of your device, making sure to line the red stripe up with the printed white box on the PCB</p></div>
<p><strong>Windows (AVR Studio 4):</strong></p>
<ol>
<li>Download and install<strong> </strong>AVR Studio 4 from <a href="http://www.atmel.com/dyn/Products/tools_card.asp?tool_id=2725">atmel.com</a>. Make sure you are downloading AVRStudio4Setup.exe, not just a service pack upgrade!</li>
<li>Run the installer and click OK/Next to everything. Yes, you want the &#8220;Jungo/USB&#8221; driver to be installed.</li>
<li>Plug in your AVR ISP mkII into the USB port and make sure Windows finds and automatically installs the drivers. The green light near the USB plug should come on.</li>
<li>Power your device up (that is, plug your Rotating Clock Divider into your Eurorack system, or power up your Bend Matrix, etc&#8230;). Your device should be running normally, but don&#8217;t plug any patch cables into it</li>
<li>Plug the 6-pin ISP header of the AVRISP mkII into your device. Note the orientation: the red stripe should go towards the white box that&#8217;s printed on the PCB: see photo above.</li>
<li>The light near the 6-pin cable on the AVRISP mkII should turn green, indicating that it detects power. If you plugged it in backwards, it might flash orange. Nothing&#8217;s damaged, just flip it around&#8230;</li>
<li>Run AVRStudio 4</li>
<li>Click the little &#8220;AVR Programmer&#8221; icon: <a href="http://4ms.org/projects/wp-content/uploads/2010/05/Stk500_show.bmp"><img class="alignnone size-full wp-image-112" title="AVR Programmer" src="http://4ms.org/projects/wp-content/uploads/2010/05/Stk500_show.bmp" alt="AVR Programmer" /></a></li>
<li>If it doesn&#8217;t automatically detect your AVR ISP mkII, then select it from the box on the left, and click &#8220;USB&#8221;, and then click &#8220;Connect&#8230;&#8221;</li>
<li>Click on the &#8220;Main&#8221; tab, and select &#8220;ISP mode&#8221; from the bottom box. Click &#8220;Settings&#8221; and choose an ISP Frequency of 125kHz.</li>
<li>Select &#8220;ATmega168&#8243; for the RCD, or ATtiny84 for the ABG, or ATmega32 for the BM, or ATmega328 for the PEG, from the top drop-down box. Click &#8220;Read Signature&#8221; and it should say &#8220;Signature matches device&#8221;</li>
<li>Click the &#8220;Program&#8221; tab. Under &#8220;Flash&#8221; click the &#8220;&#8230;&#8221; button next to &#8220;Input HEX File&#8221; (the top one). Make sure you&#8217;re not under EEPROM! Select your hex file that you downloaded (or compiled yourself)</li>
<li>Now, click &#8220;Program&#8221; (under the Flash section, not under the EEPROM section). It should give you no errors at the bottom of the window</li>
<li>Unplug your ISP 6-pin header and you should be good to go!</li>
</ol>
<p><a href="http://4ms.org/projects/wp-content/uploads/2012/02/programming-avr-chips-1.jpg"><img class="alignnone" title="Programming AVR Studio 1" src="http://4ms.org/projects/wp-content/uploads/2012/02/programming-avr-chips-1.jpg" alt="" width="689" height="575" /></a></p>
<p><a href="http://4ms.org/projects/wp-content/uploads/2012/02/programming-avr-chips-2.jpg"><img class="alignnone" title="Programming with AVR studio 2" src="http://4ms.org/projects/wp-content/uploads/2012/02/programming-avr-chips-2.jpg" alt="" width="707" height="590" /></a></p>
<p>Please let me know if you have any problems!</p>
<p><strong>Mac OSX (AVR Fuses) &#8211;the easy way to upgrade your firmware:</strong></p>
<ol>
<li>Download and install <a href="http://www.obdev.at/products/crosspack/index.html">Crosspack-AVR</a></li>
<li>Download and install <a href="http://www.vonnieda.org/software/avrfuses">AVR Fuses</a>
<ul>
<li><strong>For programming an atmega328 chip (such as used in the P.E.G.), download and install <a href="http://4mspedals.com/avrfuses_m328.zip">this hacked version of AVRFuses</a></strong> <strong>and follow the README.txt instructions for installation<br />
</strong></li>
</ul>
</li>
<li>Download the hex file for your upgrade from 4mspedals.com</li>
<li>Plug in your AVR ISP mkII. The green light by the USB plug might not come on.</li>
<li>Do steps 4, 5, and 6 of the Windows installation (power up your device, plug in the AVR ISP mkII, make sure the green light comes on)</li>
<li>Open up the AVR Fuses program that you downloaded. <strong></strong></li>
<li>Select the AVR chip type that you&#8217;re using (the name of the chip is also printed on the chip itself, use a flashlight to read the tiny letters!)</li>
<li>Pingable Envelope Generator (PEG) uses ATMEGA328<br />
Bend Matrix uses ATMEGA32 or ATMEGA32A<br />
RCD and SCM: ATMEGA168 or ATMEGA168P<br />
AutoBassGen: ATTINY84</li>
<li>Select the hex file you downlaoded in step 2, and burn it onto your chip!</li>
</ol>
<p><strong>Mac OSX (Crosspack) &#8211;the advanced way to hack your code:</strong></p>
<ol>
<li>Download and install Crosspack from here: http://www.obdev.at/products/crosspack/index.html]</li>
<li>Download the hex file for your upgrade. Save the file in your Home directory, so you can find it easily with the Terminal.</li>
<li>Plug in your AVR ISP mkII. The green light by the USB plug might not come on.</li>
<li>Do steps 4, 5, and 6 of the Windows installation (power up your device, plug in the AVR ISP mkII, make sure the green light comes on)</li>
<li>Open up your Terminal program (in Utilities folder)</li>
<li>In Terminal, type &#8220;ls&#8221; and hit enter. You should see the name of the hex file that you saved in your Home directory (along with everything else in your Home directory). If not, you didn&#8217;t save it in the right place.</li>
<li>Now tell it to burn the code. For the RCD, type this command:
<pre>avrdude -P usb -c avrispmkII -p atmega168  -U flash:w:clocker.hex -v -v</pre>
<p>And press enter. This assumes your hex file is named &#8220;clocker.hex&#8221;. It should say &#8220;avrdude: Thank you&#8221; and have no errors above that. If all goes well, unplug your 6-pin cable and your RCD is updated!</p>
<p>If you&#8217;re using a fresh chip, you&#8217;ll need to use this command to burn the fuses:</p>
<pre>avrdude -P usb -c avrispmkII -p atmega168 -U hfuse:w:0xd7:m -U lfuse:w:0xef:m -U efuse:w:0x01:m -U flash:w:clocker.hex</pre>
</li>
</ol>
<p><strong>Linux: </strong></p>
<ol>
<li>Install <a href="http://savannah.nongnu.org/projects/avrdude">avrdude</a>. You can probably install it with your package manager, such as Aptitude: (type &#8220;sudo aptitude install avrdude&#8221;), or Ubuntu&#8217;s Synaptic</li>
<li>Follow the OSX instructions starting at step 2. Hint, if avrdude is not finding a usb connection, you might need to type &#8220;sudo&#8221; before the avrdude commands. Then it&#8217;ll ask you for your password before running avrdude.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solar Pump display panel design</title>
		<link>http://4ms.org/?p=90</link>
		<comments>http://4ms.org/?p=90#comments</comments>
		<pubDate>Mon, 22 Mar 2010 15:48:37 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=90</guid>
		<description><![CDATA[Sol Design Lab&#8217;s Solar Pump, a solar-powered charging station for mobile electronics, was an official part of South-by-Southwest this year. The stations have standard outlets, so anyone can walk up and charge a cell phone, laptop, or even an electric bike or scooter. The power comes from solar panels on the roof of the stations, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_91" class="wp-caption alignnone" style="width: 516px"><a href="http://4ms.org/projects/wp-content/uploads/2010/03/4435547099_cb89302c52_b.jpg"><img class="alignnone size-full wp-image-95" title="4435547099_cb89302c52_b" src="http://4ms.org/projects/wp-content/uploads/2010/03/4435547099_cb89302c52_b.jpg" alt="4435547099_cb89302c52_b" width="506" height="553" /></a><p class="wp-caption-text">Solar charging station at the Austin fire station Trinity/4th</p></div>
<p>Sol Design Lab&#8217;s Solar Pump, a solar-powered charging station for mobile electronics, was an official part of South-by-Southwest this year. The stations have standard outlets, so anyone can walk up and charge a cell phone, laptop, or even an electric bike or scooter. The power comes from solar panels on the roof of the stations, so there&#8217;s no <em>charge</em> for <em>charging</em> (sorry&#8230; couldn&#8217;t resist). Refurbished 1950&#8242;s gas pumps provide a retro-future look that catch the public&#8217;s eye and twists the concept of &#8220;fill-up station&#8221;.</p>
<p>We set up three stations throughout Austin, including a large station downtown by the convention center, a smaller &#8220;pump&#8221; outside the South Lamar Alamo theater, and a mobile &#8220;pump&#8221; at Auditorium Shores. The Solar Pump grew out of Beth Ferguson&#8217;s MFA project, and these represent the third generation of prototypes.</p>
<div id="attachment_100" class="wp-caption alignnone" style="width: 610px"><a href="http://4ms.org/projects/wp-content/uploads/2010/03/powered-up2.jpg"><img class="size-full wp-image-100 " title="LED display panel" src="http://4ms.org/projects/wp-content/uploads/2010/03/powered-up2.jpg" alt="LED display panel" width="600" height="450" /></a><p class="wp-caption-text">LED display panel</p></div>
<p>My main role was the design and construction of the digital display, which used LEDs to indicate solar panel voltage, power output (to the inverter) and battery bank voltage. More technical details below&#8230;.</p>
<p>Each station is a little bit different, with either 2 or 4 deep cycle 100AH 12V batteries creating a 24V system. A 1100W inverter supplies standard 110VAC power to the user through a GFCI outlet (including a big red Emergency-Stop button!). Between 2 and 4 bi-facial Sanyo solar panels charge the batteries through a Morningstar charge controller. We used the Pentametrix system to read the shunts and voltages, and then send that data digitally over RS-232 to the custom digital display module.</p>
<div id="attachment_94" class="wp-caption alignleft" style="width: 490px"><a href="http://4ms.org/projects/wp-content/uploads/2010/03/solarpump.jpg"><img class="size-medium wp-image-91 " title="Solar Pump at SXSW 2010" src="http://4ms.org/projects/wp-content/uploads/2010/03/4436323092_5f822139cf_b-480x322.jpg" alt="Solar charging station at the Austin fire station Trinity/4th" width="480" height="322" /></a><br />
<p class="wp-caption-text">Gotta love that E-stop button!</p></div>
<div id="attachment_94" class="wp-caption alignnone" style="width: 375px"><a href="http://4ms.org/projects/wp-content/uploads/2010/03/solarpump.jpg"><img class="size-full wp-image-94" title="solarpump" src="http://4ms.org/projects/wp-content/uploads/2010/03/solarpump.jpg" alt="solarpump" width="365" height="450" /></a><p class="wp-caption-text">Solar Pump at Alamo Drafthouse, South Lamar</p></div>
<p><strong>Tech details</strong></p>
<p>Here&#8217;s the schematic:</p>
<p><strong> </strong></p>
<div id="attachment_103" class="wp-caption alignnone" style="width: 110px"><strong><strong><a href="http://4ms.org/projects/wp-content/uploads/2010/03/schematic.png"><img class="size-thumbnail wp-image-103" title="Solar Pump front panel schematic" src="http://4ms.org/projects/wp-content/uploads/2010/03/schematic-100x64.png" alt="Front panel schematic" width="100" height="64" /></a></strong></strong><p class="wp-caption-text">Front panel schematic</p></div>
<p><strong> </strong></p>
<p>Here&#8217;s the code (avr-gcc, using AVR Studio 4): <a href="http://4ms.org/projects/wp-content/uploads/2010/03/solarpumppanel.c">solarpumppanel.c</a></p>
<p><strong>Software</strong></p>
<p>An Atmel AVR <a href="http://www.atmel.com/dyn/products/product_card_mcu.asp?PN=ATmega32A">ATmega32A</a> chip is at the core, communicating with the <a href="http://www.bogartengineering.com/" target="_blank">Pentametrix</a> meter over a serial cable. The AVR makes a &#8220;request&#8221; to the Pentametrix every 500mS or so, and the Pentametrix responds with the latest readings: voltage on the solar panels, voltage on the battery bank, and current flowing out of the batteries to the inverter. The AVR then scales and converts these numbers and outputs them to the LED displays. The UART runs at 2400 baud, and the final byte is a checksum. If the checksum is off, or if the AVR doens&#8217;t hear a response from the Pentametrix, an error light goes on inside the box. Not terribly useful for debugging on the field, but on the bench this was handy.</p>
<p><strong>Hardware</strong></p>
<p>A Max232 chip handles the RS232 voltages, converting RS232 levels (-7V/+7V) to/from TTL levels (0V/5V). This directly connects to the AVR&#8217;s UART pins (RX/TX). These chips rule, they are totally worth the cost and board space.</p>
<p>Driving the LED displays turned out to be a little harder than I originally thought because the <a href="http://www.lc-led.com/Catalog/department/36/category/49/3" target="_blank">super-bright displays</a> we found drop 7.4V, which is obviously higher than the 5V the AVR chip runs on. So I had to use an NPN/PNP transistor pair for each blue LED digit to switch +9V. (Q4/Q4B, Q5/Q5B, Q6/Q6B). This turned out to work well once I became OK with modifying the PCB and changing the code invert the &#8220;on&#8221; and &#8220;off&#8221; signals on the AVR pins for the blue digits only.</p>
<p>The yellow digits drop much less voltage, so I ran them on +5V and only needed on PNP transistor per digit (Q1, Q2, Q3). I&#8217;ve used the 2N5401 PNP transistor with good results for switching LED segments in other projects, and also have seen it around in the Peggy project&#8230; it&#8217;s fast and can drop a good amount of power&#8230; a keeper.</p>
<p>Finally, there&#8217;s a &#8220;bar graph&#8221; LED display which is 5 sets of LEDs, with 4 LEDs in parallel in each set. Each LED set is a different type of LED so they have a trimpot to set their brightness. I used the same 2N5401 PNP transistor on a 5V rail for these.</p>
<p>I went super-conservative on the powersupply, dropping the original 24V down to 18V, then to 9V, then to 5V.</p>
<p>Oh did I mention I found <a href="http://buy-leds-online.com/530.html">Pink LEDs</a>! Yeah!!</p>
<p><strong>Enclosure</strong></p>
<p>Beth and drew up the front panel graphics in Illustrator, and I sheared some panels from 2mm aluminum. I then took that to a friend with a mill, who cut the rectangular holes for the numerical displays. I drilled out the round holes figured out a (perhaps excessively elaborate) way to mount the PCB to the front panel, and bend a flanged box to shield the circuit from the rear. The front panel is the main structural element and is mounted to braces which mounted to the frame of the pump.</p>
<p>I powdercoated the front panels white, and then applied the graphics with a decal, and baked that on. It came out pretty nice!</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=90</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Guitchurn</title>
		<link>http://4ms.org/?p=82</link>
		<comments>http://4ms.org/?p=82#comments</comments>
		<pubDate>Sun, 21 Feb 2010 16:02:53 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=82</guid>
		<description><![CDATA[Michael Merck asked me to collaborate on upgrading his Guitchurn, which was (at the time) an acoustic musical instrument coupled to the shell of a common hand-built olde tyme kitchen appliance. Naturally I thought any cottage churner would enjoy electronic basslines while doing the deed, so we connected an Autonomous Bassline Generator to it for [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_83" class="wp-caption alignnone" style="width: 329px"><a href="http://4ms.org/projects/wp-content/uploads/2010/02/MG_3965.jpg"><img class="size-medium wp-image-83" title="Guitchurn" src="http://4ms.org/projects/wp-content/uploads/2010/02/MG_3965-319x480.jpg" alt="Making butter and basslines" width="319" height="480" /></a><p class="wp-caption-text">Making butter and basslines</p></div>
<p><a href="http://michaelmerck.com/">Michael Merck</a> asked me to collaborate on upgrading his Guitchurn, which was (at the time) an acoustic musical instrument coupled to the shell of a common hand-built olde tyme kitchen appliance. Naturally I thought any cottage churner would enjoy electronic basslines while doing the deed, so we connected an <a href="http://4ms.org/projects/?p=13">Autonomous Bassline Generator</a> to it for the <a href="http://www.cantanker.com" target="_blank">Cantanker Magazine</a> show (issue 7) at the Big Medium Gallery in October &#8217;09, and then later at the Creative Research Gallery.</p>
<p>The Guitchurn works by a little paddle on the arm breaking an infrared light beam each time you bring the arm down. The Bassline Generator detects the broken beam and plays the next note in the autonomously-generated melody. So you only get music if you&#8217;re making butter and vice-versa.</p>
<p>Bread was set out, with a note asking you to &#8220;wait until the butter comes&#8221;, which surely was incentive to take a turn on the churn. For some people it was their first time churning butter and playing electronic bass! Imagine! Copious amounts of hand-sanitizer, wine bags hanging from framed art, banana pudding in lettered mugs, and Marcel Duchamp speaking backwards also added to the festivities.</p>
<div id="attachment_86" class="wp-caption alignnone" style="width: 490px"><a href="http://4ms.org/projects/wp-content/uploads/2010/02/MG_3933.jpg"><img class="size-medium wp-image-86" title="Guitchurn Installation at Big Medium" src="http://4ms.org/projects/wp-content/uploads/2010/02/MG_3933-480x319.jpg" alt="Guitchurn Installation at Big Medium Gallery" width="480" height="319" /></a><p class="wp-caption-text">Guitchurn Installation at Big Medium Gallery</p></div>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimSam</title>
		<link>http://4ms.org/?p=77</link>
		<comments>http://4ms.org/?p=77#comments</comments>
		<pubDate>Wed, 20 Jan 2010 01:43:06 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=77</guid>
		<description><![CDATA[SimSam 1.0 Unveiled at the beginner&#8217;s class at Handmade Music Austin #4, the SimSam (Simple Sampler) is a single-chip &#8220;sample-rate cruncher&#8221; that&#8217;s glitchy as all-get-out but only costs about $8 in parts. It&#8217;s an effect with an input and output jack; and it&#8217;s a noise-maker since a jumper shorts the output back into the input [...]]]></description>
			<content:encoded><![CDATA[<h2><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/2OjS7QCntCw" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/2OjS7QCntCw"></embed></object></h2>
<h2>SimSam 1.0</h2>
<p>Unveiled at the beginner&#8217;s class at <a href="http://handmademusic.noisepages.com/2010/01/handmade-music-austin-4/" target="_blank">Handmade Music Austin #4</a>, the SimSam (<strong>Sim</strong>ple <strong>Sam</strong>pler) is a single-chip &#8220;sample-rate cruncher&#8221; that&#8217;s glitchy as all-get-out but only costs about $8 in parts. It&#8217;s an effect with an input and output jack; and it&#8217;s a noise-maker since a jumper shorts the output back into the input when nothing is plugged into the input jack. We built 28 SimSams in a couple hours at the workshop.<br />
<span id="more-77"></span></p>
<h2>What the heck is this thing?</h2>
<p>The heart of it is a programmable AVR chip, the ATTINY85. This 8-pin chip has 512 bytes of SRAM memory, which is used to simultaneously record and play a constantly changing &#8220;sample.&#8221; Think of the SRAM as a very very short tape loop (a few milliseconds long). The signal comes in the Audio Input jack and gets stored into SRAM (via a virtual &#8220;record head&#8221;) at a variable rate called the &#8220;sample rate&#8221;. Sample rate can be thought of as the speed of the motor on a tape-deck that&#8217;s recording. While that&#8217;s happening, the SRAM is also being played back (via a virtual &#8220;playback head&#8221;) and sent out the Audio Output jack. Two buttons affect the sample rate to get different effects. <strong>The button on the right</strong> cycles through one of 8 different rates, which effectively changes the pitch of the output&#8211; but don&#8217;t think of it like a pitch shifter, it&#8217;s way glitchier than that. If you hold this button down, recording to SRAM is disabled, and the playback just plays whatever happens to be stored in SRAM. Since the SRAM is so tiny, this &#8220;sample&#8221; sounds like a tone with a weird waveshape. Finally, when you hold down <strong>the button on the left</strong>, it cycles through all the sample rates at a fast pace to create a warble effect.</p>
<p>That&#8217;s it, that&#8217;s all it does.</p>
<h2>Ok, whatever, show me the tech</h2>
<p>Yeah yeah,Â  it&#8217;s documented:</p>
<ul>
<li><a href="http://4mspedals.com/simsam/simsam_1.0c_schematic.pdf" target="_blank">Schematic</a></li>
<li><a href="http://www.4mspedals.com/simsam/pcblayout.pdf" target="_blank">PCB layout</a></li>
<li><a href="http://www.4mspedals.com/simsam/simsamasm.asm" target="_blank">Assembly code</a></li>
</ul>
<h2>What&#8217;s wrong with you</h2>
<p>I&#8217;m a workaholic. Quit bothering me with questions&#8230;. But there are some things wrong with the SimSam. For one, it has to have the watchdog timer enabled, and that thing goes off <em>every few seconds</em>. For those of you who aren&#8217;t cringing, the watchdog timer is a little counter that runs in the background and automatically resets the SimSam whenever it freezes up&#8230; so the translation is that the SimSam is trying its darndest to freeze up constantly, but the watchdog keeps bailing it out.</p>
<p>Since it&#8217;s resetting all the time, your current sample rate would also get reset, so to keep the sound somewhat consistant (heh heh) it stores the sample rate into EEPROM everytime you press the sample button. EEPROM is a non-volatile memory which means it doesn&#8217;t get erased when the chip is reset. Then when the chip starts back up again, it reads the settings from EEPROM and all you hear is a tiny click amidst a gazillion other clicks pops robots whines zooms and crashes. Of course, EEPROM can only be written relieably 100,000 times, and any decent game player can top that in a day. So forget reliability. Tomorrow it won&#8217;t work the same as it did today. If you don&#8217;t like it, fix my code and send me something better. Bah.</p>
<p>Now leave me alone so I can make more circuits</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=77</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #3</title>
		<link>http://4ms.org/?p=74</link>
		<comments>http://4ms.org/?p=74#comments</comments>
		<pubDate>Wed, 23 Dec 2009 04:58:17 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>
		<category><![CDATA[Handmade Music Austin]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=74</guid>
		<description><![CDATA[YouTube via EA78751 &#8220;Video from Handmade Music Austin #3, Dec. 20th 2009. At this workshop 13 people built the free project, Mini Space Rockers. After that we witnessed live electroacoustic sound by Lustigovi. And then 19 people built the upper division project, Andromeda Mk-4 Analog Bass Drum. And last there was an open jam with [...]]]></description>
			<content:encoded><![CDATA[<p><object width="560" height="340"><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/OGJSqRe7BO0&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
YouTube via EA78751<br />
&#8220;Video from Handmade Music Austin #3, Dec. 20th 2009. At this workshop 13 people built the free project, Mini Space Rockers. After that we witnessed live electroacoustic sound by Lustigovi. And then 19 people built the upper division project, Andromeda Mk-4 Analog Bass Drum. And last there was an open jam with DIY bassline and drum machines from this workshop series, plus acid lines from a MIDIbox SID.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #2 superfun!</title>
		<link>http://4ms.org/?p=61</link>
		<comments>http://4ms.org/?p=61#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:39:14 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>
		<category><![CDATA[Handmade Music Austin]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=61</guid>
		<description><![CDATA[It was a success, we built 30 mini-Space-Rockers and 25 Autonomous Bassline Generators (in 5 hours!). Treasure City was there selling some used electronica miscellanica&#8230; Douglas Ferguson &#38; Steve Marsh , Red X Red M, and Telepathic Friend rocked the house, and we capped it off with a set using a couple dozen Andromeda Space [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/wERWuvYvvf4" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/wERWuvYvvf4"></embed></object></p>
<p>It was a success, we built 30 mini-Space-Rockers and 25 Autonomous Bassline Generators (in 5 hours!). Treasure City was there selling some used <em>electronica miscellanica</em>&#8230; Douglas Ferguson &amp; Steve Marsh , Red X Red M, and Telepathic Friend rocked the house, and we capped it off with a set using a couple dozen Andromeda Space Rocker devices&#8230; yeah!</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=61</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Andromeda Space Rockers interactive jam</title>
		<link>http://4ms.org/?p=67</link>
		<comments>http://4ms.org/?p=67#comments</comments>
		<pubDate>Mon, 07 Dec 2009 05:18:28 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=67</guid>
		<description><![CDATA[4ms Pedals and Eric Archer teamed up to present an interactive bass&#38;beats installation at the Hope Center last night in Austin, TX. There were four stations around a table, each station had three Andromeda MK analog drum machines and one Autoanomous Bassline Generator. Each station also had four LEDacle bendy-light tentacles courtesy of Bleeplabs, which [...]]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/9bwuN24MbCg" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/9bwuN24MbCg"></embed></object></p>
<p>4ms Pedals and Eric Archer teamed up to present an interactive bass&amp;beats installation at the Hope Center last night in Austin, TX. There were four stations around a table, each station had three <a class="newslink" href="http://www.ericarcher.net">Andromeda MK analog drum machines</a> and one <a class="newslink" href="autobass.php">Autoanomous Bassline Generator</a>. Each station also had four LEDacle bendy-light tentacles courtesy of <a class="newslink" href="http://www.bleeplabs.com">Bleeplabs</a>, which you couldÂ  shine on the photocells to sweep the filter sounds. Each device kept in time with an IR beam, and a MIDI clock ran between each board to bridge Nathan Wooster&#8217;s <a class="newslink" href="http://woosteraudio.com">MIDI-IR Sync</a> devices. It was packed!!</p>
<p>We&#8217;ll break it out again at the next <a class="newslink" href="http://handmademusic.noisepages.com/">Handmade Music Austin</a> event Dec. 20 at the Salvage Vanguard Theater&#8230;. Maybe some more events too?</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #1 video</title>
		<link>http://4ms.org/?p=57</link>
		<comments>http://4ms.org/?p=57#comments</comments>
		<pubDate>Thu, 29 Oct 2009 19:19:42 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Handmade Music Austin]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=57</guid>
		<description><![CDATA[HMA October was a success! Here&#8217;s a video&#8230; Next one is Sunday November 14, 2009]]></description>
			<content:encoded><![CDATA[<p>HMA October was a success! Here&#8217;s a video&#8230; Next one is Sunday November 14, 2009</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/Jqp2OfjqfEU" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/Jqp2OfjqfEU"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=57</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

