<?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/projects/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://4ms.org/projects</link>
	<description>works and projects from the 4ms studio</description>
	<lastBuildDate>Fri, 03 Sep 2010 14:38:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building an RCD Breakout Panel</title>
		<link>http://4ms.org/projects/?p=122</link>
		<comments>http://4ms.org/projects/?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 
For PCB version 1.0.2 and later&#8230;.
You will need:

 RCD with PCB 1.0.2 or 1.0.3 (see the bottom for instructions on pcb version 1.0.1 and 1.0)
4HP panel or similar size (large enough to fit 6 SPST switches)
6 SPST switches
16-conductor cable with a 2&#215;8 connector on one end (standard Doepfer power [...]]]></description>
			<content:encoded><![CDATA[<h2><span style="color: #000000;"><strong>How to make an RCD Breakout </strong></span></h2>
<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 1.0.3 (see the bottom for instructions on pcb version 1.0.1 and 1.0)</li>
<li>4HP panel or similar size (large enough to fit 6 SPST switches)</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>To make it easier to see what&#8217;s going on in this tutorial, I&#8217;ve used rainbow colored wire, but the normal gray/red cables are just fine.</p>
<p>Here&#8217;s how it goes together in a nutshell:</p>
<div id="attachment_123" class="wp-caption alignnone" style="width: 624px"><a href="http://4ms.org/projects/wp-content/uploads/2010/09/wiring-guide.jpg"><img class="size-full wp-image-123 " title="RCD Breakout wiring guide" src="http://4ms.org/projects/wp-content/uploads/2010/09/wiring-guide.jpg" alt="RCD Breakout wiring guide" width="614" height="457" /></a><p class="wp-caption-text">RCD Breakout Wiring -- Click to enlarge</p></div>
<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>
<div id="attachment_125" class="wp-caption alignnone" style="width: 369px"><a href="http://4ms.org/projects/wp-content/uploads/2010/09/panel.jpg"><img class="size-medium wp-image-125" title="Panel backside" src="http://4ms.org/projects/wp-content/uploads/2010/09/panel-359x479.jpg" alt="Back of breakout panel -- Click to enlarge" width="359" height="479" /></a><p class="wp-caption-text">Back of breakout panel -- Click to enlarge</p></div>
<p>Allrighty&#8230; Now let&#8217;s look at the front of the faceplate. Nothing special here&#8230; The artwork will improve before we start selling the kits, this is just a test demo!</p>
<div id="attachment_127" class="wp-caption alignnone" style="width: 490px"><a href="http://4ms.org/projects/wp-content/uploads/2010/09/faceplate.jpg"><img class="size-medium wp-image-127" title="Faceplate" src="http://4ms.org/projects/wp-content/uploads/2010/09/faceplate-480x360.jpg" alt="Breakout faceplate Beta version (test)" width="480" height="360" /></a><p class="wp-caption-text">Breakout faceplate Beta version (test)</p></div>
<h2>PCB version 1.0.1 and earlier</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 rainbow cable above, it goes:</p>
<pre style="padding-left: 30px;">Max Div Range 1: 1 Blue &amp; 2 Green
Max Div Range 2: 3 Yellow &amp; 4 Orange
Auto Reset 1: 5 Red &amp; 6 Brown
Auto Reset 2: 7 Black &amp; 8 White
Up/Down: 9 Gray &amp; 10 Purple
Gate/Trig: 11 Blue &amp; 12 Green
Not used: 13, 14, 15, 16</pre>
<p>Obviously you will have to upgrade your chip firmware to v1.0.2 if you want to use Gate/Trig or Up/Down counting. You can read about upgrading on the <a href="http://4mspedals.com/rcd.php" target="_blank">RCD page on 4mspedals.com</a></p>
<p>For PCB 1.0, there&#8217;s only 4 switches hard-wired to the breakout connector pins, so you have to solder two wires from the back of the PCB to get use of the Auto Reset jumpers. I will post a photo of this soon&#8230; Until then you will be able to use the other 4 switches</p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/projects/?feed=rss2&amp;p=122</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating firmware on AVR chips</title>
		<link>http://4ms.org/projects/?p=64</link>
		<comments>http://4ms.org/projects/?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>

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

ISP (In-circuit Programmer): [...]]]></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>If you just want to upgrade your firmware, you can just download <a href="http://www.vonnieda.org/software/avrfuses" target="_blank">AVRFuses</a> (version 1.4 was the latest at the time of this post)<strong>. </strong>If you want to hack/edit/compile code, you need OSX-AVR which is actually called <a href="http://www.obdev.at/products/crosspack/index.html">Crosspack</a> now.</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/rcd.php">Rotating Clock Divider</a></li>
<li><a href="http://4mspedals.com/scm.php" 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><strong> </strong></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, 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; (again, 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>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.vonnieda.org/software/avrfuses">AVR Fuses</a> from http://www.vonnieda.org/software/avrfuses</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.</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!)<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/projects/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solar Pump display panel design</title>
		<link>http://4ms.org/projects/?p=90</link>
		<comments>http://4ms.org/projects/?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&#8217;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/projects/?feed=rss2&amp;p=90</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Guitchurn</title>
		<link>http://4ms.org/projects/?p=82</link>
		<comments>http://4ms.org/projects/?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 &#8216;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/projects/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SimSam</title>
		<link>http://4ms.org/projects/?p=77</link>
		<comments>http://4ms.org/projects/?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 when [...]]]></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/projects/?feed=rss2&amp;p=77</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #3</title>
		<link>http://4ms.org/projects/?p=74</link>
		<comments>http://4ms.org/projects/?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 DIY [...]]]></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/projects/?feed=rss2&amp;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #2 superfun!</title>
		<link>http://4ms.org/projects/?p=61</link>
		<comments>http://4ms.org/projects/?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/projects/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Andromeda Space Rockers interactive jam</title>
		<link>http://4ms.org/projects/?p=67</link>
		<comments>http://4ms.org/projects/?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/projects/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handmade Music Austin #1 video</title>
		<link>http://4ms.org/projects/?p=57</link>
		<comments>http://4ms.org/projects/?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/projects/?feed=rss2&amp;p=57</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autonomous Bassline kit</title>
		<link>http://4ms.org/projects/?p=49</link>
		<comments>http://4ms.org/projects/?p=49#comments</comments>
		<pubDate>Mon, 26 Oct 2009 21:40:43 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Autonomous Bassline]]></category>

		<guid isPermaLink="false">http://4ms.org/projects/?p=49</guid>
		<description><![CDATA[I finally finished the ABG kit! The boards are here and we&#8217;re ready to roll for the Nov 14 workshop at Handmade Music Austin&#8230;

Schematic: v1.1 (png) or v1.1 (gEDA sch file)
PCB layout: v1.1 (JPG)
Code v1.0 (AVR Studio 4)
User Manual: page 1 PDF and page 2 PDF
Kit building guide: PDF
Kit parts list: Graphical, and text

You can [...]]]></description>
			<content:encoded><![CDATA[<p>I finally finished the ABG kit! The boards are here and we&#8217;re ready to roll for the Nov 14 workshop at Handmade Music Austin&#8230;</p>
<ul>
<li>Schematic: <a href="http://commonsound.com/abg/schematic84.png">v1.1 (png)</a> or <a href="http://commonsound.com/abg/schematic84.sch">v1.1 (gEDA sch file)</a></li>
<li>PCB layout: <a href="http://commonsound.com/abg/pcblayout.jpg">v1.1 (JPG)</a></li>
<li>Code <a href="http://commonsound.com/abg/tinybass.zip">v1.0 (AVR Studio 4)</a></li>
<li>User Manual: <a href="http://commonsound.com/abg/usermanualp1.pdf">page 1 PDF</a> and <a href="http://commonsound.com/abg/usermanualp2.pdf">page 2 PDF</a></li>
<li>Kit building guide: <a href="http://commonsound.com/abg/buildguide.pdf">PDF</a></li>
<li>Kit parts list: <a href="http://commonsound.com/abg/kit.pdf">Graphical</a>, and <a href="http://commonsound.com/abg/parts_list.txt">text</a></li>
</ul>
<p>You can purchase the kit, the PCB, or a programmed AVR chip <a href="http://4mspedals.com/kits.php">here</a><br />
<strong>Basic Demo:</strong></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/gTPAXJtLR6M" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/gTPAXJtLR6M"></embed></object></p>
<p><strong>What it does with default settings:</strong></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/dcqpxd0O6Mw" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/dcqpxd0O6Mw"></embed></object></p>
<p><strong>IR Sync Demo:</strong></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/Wfq9PWmk7HM" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/Wfq9PWmk7HM"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/projects/?feed=rss2&amp;p=49</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
