<?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&#038;p=13" rel="self" type="application/rss+xml" />
	<link>http://4ms.org</link>
	<description>works and projects from the 4ms studio</description>
	<lastBuildDate>Mon, 26 Nov 2012 01:53:08 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Rhodes piano 72-channel color organ</title>
		<link>http://4ms.org/?p=156</link>
		<comments>http://4ms.org/?p=156#comments</comments>
		<pubDate>Mon, 05 Nov 2012 07:09:35 +0000</pubDate>
		<dc:creator>Dann Green</dc:creator>
				<category><![CDATA[Installations]]></category>

		<guid isPermaLink="false">http://4ms.org/?p=156</guid>
		<description><![CDATA[In 2010, Ezra Masch, who was pursuing his MFA at University of Texas, Austin at the time, approached me about designing the electronics for a color organ project he was planning to show at UT and at the Artpost during the East Austin Studio Tour. We went over some ideas and ended up building a [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignnone" style="width: 378px"><a href="http://4ms.org/wp-content/uploads/2012/10/UT_overhead_med.jpg"><img class="wp-image-180 " title="Rhodes Piano Overhead view" src="http://4ms.org/wp-content/uploads/2012/10/UT_overhead_med.jpg" alt="Rhodes Piano Overhead view" width="368" height="615" /></a><p class="wp-caption-text">Rhodes Piano Color Organ installation at University of Texas, Austin.</p></div>
<p>In 2010, Ezra Masch, who was pursuing his MFA at University of Texas, Austin at the time, approached me about designing the electronics for a color organ project he was planning to show at UT and at the Artpost during the <a href="http://eastaustinstudiotour.com">East Austin Studio Tour</a>. We went over some ideas and ended up building a 72-channel light display controlled by a Rhodes piano. Each key on the Rhodes would not only play a note (like a normal Rhodes), but would also trigger an AC circuit to turn a light on. The lights were arranged by color so that the same notes were the same colors in any octave (F=red, G=orange, A=yellow, etc). This blog post is intended to document my work on the project, which was mainly the electronics.</p>
<h2>Overview</h2>
<p>Our system consisted of mounting a strip of tact buttons under the keys of the Rhodes, and running those signals to three DB-25 ports (aka parallel port cable, or old-school printer cable) on the back of the Rhodes. The DB-25 cables ran to three AC boxes, each box having 24 normal household 120V electrical plus on it. Each of these outlets corresponded to a key on the Rhodes. Each of the 72 clip-lamps plugged into one of the electrical plugs and was mounted on a rack frame the Ezra designed and built.</p>
<div class="wp-caption alignnone" style="width: 767px"><a href="http://4ms.org/wp-content/uploads/2012/10/rhodes_color_organ_schematic.pdf"><img class="  " title="Schematic" src="http://4ms.org/wp-content/uploads/2012/10/rhodes_color_organ_schematic.png" alt="" width="757" height="620" /></a><p class="wp-caption-text">Schematic for the 3 PCBs. A 72-key Rhodes requires 3 PCBs. The fourth section shows the wiring for the AC boxes</p></div>
<h2>Button board</h2>
<p>I designed a PCB that we could mount 16 buttons onto, so we needed 6 of these to get 72 buttons. (They&#8217;re the same buttons I used on the <a title="Autonomous Bassline Generator" href="http://4ms.org/?p=13">Autonomous Bassline Generator</a>). We both assembled and soldered the PC-boards, they&#8217;re a good quality so it went fast. The PCBs themselves mounted to an aluminum angle, which provided enough rigidity to keep a constant level under the keys. Ezra designed and fabricated this angle with a slotted mounting system so we could precisely set the clearance between the button-board rail and the keys. This was critical for ensuring good play-ability.<br />
Each button closed a circuit to feed a DC voltage to one of the header pins. Since there&#8217;s no power normally on a Rhodes (they work wonderfully like guitar pickups), the DC voltage was provided by a power-supply in the AC boxes.</p>
<div class="wp-caption alignnone" style="width: 231px"><a href="http://4ms.org/wp-content/uploads/2012/10/button_board.jpg"><img title="Button board" src="http://4ms.org/wp-content/uploads/2012/10/button_board.jpg" alt="Button board" width="221" height="480" /></a><p class="wp-caption-text">Button board, mounted to custom rail.</p></div>
<h2>Inside the Rhodes</h2>
<p>Traces ran from the buttons to 2&#215;8 header pins on the end each PCB. Six ribbon cables (16-conductors each) ran from the header pins to a breakout board in the back that had three DB-25 plugs. With one pin reserved for a reference voltage, and ground taken from the shield, each DB-25 left us with 24 signal pins, meaning 24 lights could be switched on/off from one DB-25 cable.</p>
<p>The whole system could be removed from the Rhodes without any damage or change to this vintage instrument (besides the DB-25 jacks mounted the rear).</p>
<div class="wp-caption alignnone" style="width: 810px"><a href="http://4ms.org/wp-content/uploads/2012/10/ribbons_inside_med.jpg"><img title="Ribbon cables" src="http://4ms.org/wp-content/uploads/2012/10/ribbons_inside_med.jpg" alt="Inside the Rhodes" width="800" height="1334" /></a><p class="wp-caption-text">Inside the Rhodes, the button board wired with ribbon cables leading to the DB25 ports on the back (not shown)</p></div>
<h2>AC boxes</h2>
<p>The other end of each DB-25 cable went to an AC box. When a key was pressed on the Rhodes, the DC voltage coming from the button boards would trigger an SCR to allow AC current to flow to one of the AC outlets. In the foreground you can see there&#8217;s two identical yellow PCBs, each with 12 SCRs on it. The IC sockets are there to hold resistor arrays (which helped to keep stray currents from falsely triggering the circuits). It took us a few hours to do the wiring together. Afterwards, the wires were zip-tied and organized neatly before the boxes were closed (not shown in photos). Ezra built the boxes out of wood and aluminum angle, and mounted all the AC outlets before we began the wiring process.</p>
<p>Also you can see the DC power supply (green PCB, foreground), which was just a wall-wart I busted open and mounted inside each AC box. The DC voltage goes through the DB-25 cable to the button boards inside the Rhodes. This setup is not ideal from a signal/noise perspective because the reference voltage is running inside the same shielded cable (the DB-25) as the signal conductors. However we stuck with this method instead of generating the DC voltage inside the Rhodes because it meant the expensive Rhodes would be modified as little as possible, and it also kept any AC power out of the Rhodes itself (which could contaminate the audio). We also wanted to avoid using batteries since this would be set up for long periods of time in a musuem/gallery setting. So the DC came off the same AC circuit that&#8217;s switching the lights, and ran along side the switching voltages, and with some extra attention to keeping noise out of the system, it worked great.</p>
<div class="wp-caption alignleft" style="width: 353px"><a href="http://4ms.org/wp-content/uploads/2012/10/pre_wiring.jpg"><img title="Pre-wiring" src="http://4ms.org/wp-content/uploads/2012/10/pre_wiring.jpg" alt="Inside the power switching box, pre-wiring" width="343" height="800" /></a><p class="wp-caption-text">Inside the power switching box, before wiring the AC outlets. The SCR boards (left and right) are visible, as well as the DC power supply (bottom, green)</p></div>
<div class="wp-caption alignnone" style="width: 337px"><a href="http://4ms.org/wp-content/uploads/2012/10/post_wiring.jpg"><img title="Post-wiring" src="http://4ms.org/wp-content/uploads/2012/10/post_wiring.jpg" alt="Inside power switching box, post-wiring" width="327" height="800" /></a><p class="wp-caption-text">Inside the power-switching box, after wiring the AC outlets</p></div>
<h2>Setup</h2>
<p>For setup, Ezra mounted all the lights in a pattern on a rack (approximately 30&#8242; x 10&#8242;). A group of us spent a long night extending the cords of all 72 lights so they would hang down to the AC boxes with some comfortable slack. The Rhodes was in the center of the light racks, behind the performer&#8217;s back, with it&#8217;s three printer cables running out to the AC boxes. The audience stood or sat in front and watched the wall of light flash behind and above the performer.</p>
<div class="wp-caption alignnone" style="width: 394px"><a href="http://4ms.org/wp-content/uploads/2012/10/plugged_in_med.jpg"><img title="Plugged in" src="http://4ms.org/wp-content/uploads/2012/10/plugged_in_med.jpg" alt="Power switching box, in use" width="384" height="623" /></a><p class="wp-caption-text">Power switching box (1 of 3), connected to 24 lamps</p></div>
<h2>Testing</h2>
<p>But before the audience showed up, we tested and tweaked. The button board had to be adjusted very precisely in order to maintain a consistent triggering force across the whole keyboard. Also we found some cheaper DB-25 cables caused false-triggering, so we had to use good ones (which are hard to find, since they have fallen out of demand with the advent of USB). A few trips to the computer Goodwill and Radioshack solved this.</p>
<div class="wp-caption alignnone" style="width: 624px"><a href="http://4ms.org/wp-content/uploads/2012/10/ezra_testing_med.jpg"><img class=" " title="Ezra testing" src="http://4ms.org/wp-content/uploads/2012/10/ezra_testing_med.jpg" alt="Ezra testing the unit" width="614" height="368" /></a><p class="wp-caption-text">Ezra Masch, testing the channels before a performance</p></div>
<h2>Performances</h2>
<p>Ezra gave his master&#8217;s show at UT, in the sculpture building. Later that week he performed at the Artpost as a part of the <a href="http://eastaustinstudiotour.com">East Austin Studio Tours</a>, with smoke machines, clapping and cheering, and I even recall a limo pulling into the space.</p>
<p>A few months later (?) it was again set up at the Visual Arts Center at UT. This time there were more performers, elaborate costumes, and psychedelic patterns on the walls.</p>
<div class="wp-caption alignnone" style="width: 490px"><a href="http://4ms.org/wp-content/uploads/2012/10/costumed.jpg"><img class="  " title="Performance" src="http://4ms.org/wp-content/uploads/2012/10/costumed.jpg" alt="In costume" width="480" height="652" /></a><p class="wp-caption-text">In costume, performing. In the foreground are silver-painted greco drummers</p></div>
<h2></h2>
<p><a href="http://4ms.org/wp-content/uploads/2012/10/backdrop_front_med.jpg"><img class="alignnone" title="Backdrop front" src="http://4ms.org/wp-content/uploads/2012/10/backdrop_front_med.jpg" alt="" width="840" height="504" /></a></p>
<h2>Critique</h2>
<p>At the end of the day, we were pretty happy: the experiment was a success. Along the way we had to sacrifice a few ideals to meet deadlines and make the project practical. One big one was the sustain pedal. Since the buttons responded only when a key was physically held down, the lights would turn off when the key was released even if the sound continued because the sustain pedal was held down. This meant the lights didn&#8217;t quite &#8220;ring&#8221; the same way the sound would. However, watching the lights flicker and flash in time, space, and color to the music was mesmerizing enough. Some ideas to add this sustain functionality would be using a 72-channel CMOS latch circuit (use the sustain pedal to latch the data from the buttons, and then clear it when the pedal is released). Or a micro-controller circuit could accomplish this easily (as well as fancy stuff like arpeggiation!)</p>
<p>A critique of the electrical circuit would be that the unit is not grounded well. The DC ground needs to be connected to the AC neutral in order for the SCRs to trigger. No exposed metal is connected to the neutral, so there is little risk of shock, but I didn&#8217;t like having to use AC neutral as the interference shield in the long DB-25 cables. If a performance space had bad ground in the building, or if there was noisy AC power, it might effect how well the SCRs trigger, and that could cause problems. We addressed this issue in our next project, by using relays instead. More on that in another post&#8230;</p>
<p>Another issue was the use of physical buttons. A slight force was necessary to close the button, so the Rhodes didn&#8217;t respond the same way it did without the button board installed. With a little practice, it could be ignored, but it would have been nice to use something optical or magnetic/Hall effect. But, getting 72 optical or magnetic switches to operate without interference in tight quarters seemed daunting, so we chose the mechanical switch approach despite the change in &#8220;feel&#8221; on the instrument.</p>
<p>Finally, the system looked much better when played in the dark. This might be obvious, but it had an impact since the first performance had to be done in the daytime. Ezra and I considered this when we collaborated on our next project&#8230;.the Light Matrix&#8230; To be continued</p>
<p><a href="http://4ms.org/wp-content/uploads/2012/10/backdrop_skewed_med.jpg"><img class="alignnone" title="Backdrop angle" src="http://4ms.org/wp-content/uploads/2012/10/backdrop_skewed_med.jpg" alt="" width="288" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://4ms.org/?feed=rss2&#038;p=156</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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[AVR chips]]></category>
		<category><![CDATA[Modules]]></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="wp-caption alignnone" style="width: 609px"><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><p class="wp-caption-text">Programming the Red channel</p></div>
<div class="wp-caption alignnone" style="width: 624px"><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><p class="wp-caption-text">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></div>
<p class="wp-caption-dd" style="text-align: left;">
<p><strong>Detailed Instructions: </strong><br />
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>
<p><strong>Technical Note on fuses:</strong></p>
<p>Normally, you won&#8217;t have to do anything to the fuses. But if your chips got a static shock, or if you are using brand-new chips from mouser or an electronics supplier (as opposed to chips that you bought from 4ms) then you will need to program the fuses.</p>
<p>With avrdude (which is installed if you have AVRFuses running in OSX) the command is this:</p>
<pre>avrdude -F -B 16 -P usb -c avrispmkII -p atmega328p -U hfuse:w:0xd9:m -U lfuse:w:0xce:m</pre>
<p>Note that it contains -B 16, which forces avrdude to run at a slower bit-rate since the chips come pre-set at 8Mhz (internal RC osc). When we run this command, we are enabling the external 20MHz ceramic resonator on the PEG pcb, so future commands can be run at a faster bit rate. For example, after executing the above command, we can execute:</p>
<pre>avrdude -F -B 0.5 -P usb -c avrispmkII -p atmega328p -U flash:w:peg.hex</pre>
<p>(Assuming that the file peg.hex is in the current directory). This runs at -B 0.5 which is must faster!</p>
<p>If you are using AVRStudio, simply type in the following values on the fuses section of the programmer page:</p>
<p>High Fuses: 0xD9</p>
<p>Low Fuse 0xCE</p>
<p>Or, simply go with the default fuse settings, but change the clock settings to Ext. Crystal Res, &gt;8Mhz (fastest), 258 CK/14CK + 4.1ms</p>
]]></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>
<ol>
<li>
<div class="wp-caption alignright" style="width: 110px"><a href="http://www.4mspedals.com/other/avrispmk2ee.jpg"><img title="AVR ISP" src="http://www.4mspedals.com/other/avrispmk2ee.jpg" alt="AVR ISP mk2" width="100" height="80" /></a><p class="wp-caption-text">AVR ISP mk2</p></div>
<p><strong>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>
<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>. I have not tested AVR Studio 6, I still use AVR Studio 4 (4.18, build 6), so consider downloading an<a href="http://www.atmel.com/tools/STUDIOARCHIVE.aspx">archived version</a>. You&#8217;ll have to &#8220;register&#8221; by typing in a real email 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>
</ol>
<h2><strong>Detailed instructions:</strong></h2>
<p>Read <a title="Programming the Pingable Envelope Generator" href="http://4ms.org/?p=160" target="_blank">this article specifically about the PEG</a>, if that&#8217;s the device you&#8217;re programming. The article references this one, so you need to read them both.</p>
<div class="wp-caption alignnone" style="width: 418px"><a href="http://4ms.org/?p=160"><img class="   " title="Pingable Envelope Generator" src="http://www.4mspedals.com/peg/programming-red.jpg" alt="" width="408" height="288" /></a><p class="wp-caption-text">Click the image for instructions specific to the PEG</p></div>
<p>&nbsp;</p>
<p><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></p>
<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>
	</channel>
</rss>
