<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Latest posts from “adafruit industries” board.</title>
	<description>Latest posts from “adafruit industries” board.</description>
	<link>http://forums.adafruit.com/index.php</link>
	<atom:link href="http://forums.adafruit.com/generate_feed.php?content=posts&amp;global=1" rel="self" type="application/rss+xml" />
	<lastBuildDate>Mon, 08 Feb 2010 15:48:18 -0500</lastBuildDate>

			<item>
			<dc:creator>sirket</dc:creator>
			<pubDate>Mon, 08 Feb 2010 21:39:38 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71067#p71067</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71067#p71067</link>
			<title>Re: Organizing componets</title>
			<description><![CDATA[Here are some pictures of my parts boxes and the shelving they fit in.<br />
<br />
<!-- m --><a class="postlink" href="http://www.flickr.com/photos/serialtech/4342597198/">http://www.flickr.com/photos/serialtech/4342597198/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.flickr.com/photos/serialtech/4342597260/">http://www.flickr.com/photos/serialtech/4342597260/</a><!-- m --><br />
<!-- m --><a class="postlink" href="http://www.flickr.com/photos/serialtech/4342597326/">http://www.flickr.com/photos/serialtech/4342597326/</a><!-- m -->]]></description>
		</item>
			<item>
			<dc:creator>sirket</dc:creator>
			<pubDate>Mon, 08 Feb 2010 21:22:55 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71066#p71066</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71066#p71066</link>
			<title>Re: Organizing componets</title>
			<description><![CDATA[<blockquote><div><cite>Entropy wrote:</cite>It may be online-only, but check George's first link.  <img src="http://forums.adafruit.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /></div></blockquote><br />
I think you need to read the rest of my post- I talked about the links in the third sentence or so <img src="http://forums.adafruit.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" />]]></description>
		</item>
			<item>
			<dc:creator>Chankster</dc:creator>
			<pubDate>Mon, 08 Feb 2010 20:30:35 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=9&amp;p=71065#p71065</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=9&amp;p=71065#p71065</link>
			<title>Re: What's up with UPS?</title>
			<description><![CDATA[UPS is good unless for some reason I have to call their customer support.  At that point it always goes down hill and fast.]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 20:01:56 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71064#p71064</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71064#p71064</link>
			<title>Re: XBee Wireless Midi - Switched Midi Pins</title>
			<description><![CDATA[yes]]></description>
		</item>
			<item>
			<dc:creator>stevekiraly</dc:creator>
			<pubDate>Mon, 08 Feb 2010 19:45:48 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71063#p71063</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71063#p71063</link>
			<title>Re: XBee Wireless Midi - Switched Midi Pins</title>
			<description><![CDATA[Thanks for the reply and I trust the circuit diagram images are correct but....in this application can reversed midi pin wiring cause communication problems ?]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:24:16 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=25&amp;p=71062#p71062</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=25&amp;p=71062#p71062</link>
			<title>Re: Music Box Using Wave Shield Help</title>
			<description><![CDATA[we suggest getting all the hardware in place -before- trying to write code. you can always try out the examples to see how it works]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:23:30 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71061#p71061</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71061#p71061</link>
			<title>Re: Wave shild library troubles</title>
			<description><![CDATA[the info on the waveshield pages need to be updated as well]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:21:56 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71060#p71060</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71060#p71060</link>
			<title>Re: Music Box Circuit Help</title>
			<description><![CDATA[4 AA's are best and will last a long time. the switch itself can be used to switch power.]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:20:35 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71059#p71059</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71059#p71059</link>
			<title>Re: XBee Wireless Midi - Switched Midi Pins</title>
			<description><![CDATA[the images are correct]]></description>
		</item>
			<item>
			<dc:creator>jgotthardt</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:15:20 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=24&amp;p=71058#p71058</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=24&amp;p=71058#p71058</link>
			<title>Re: avrdude: initialization failed, rc=-1</title>
			<description><![CDATA[Different way of looking at the same thing.]]></description>
		</item>
			<item>
			<dc:creator>noctolater</dc:creator>
			<pubDate>Mon, 08 Feb 2010 18:10:48 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=25&amp;p=71057#p71057</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=25&amp;p=71057#p71057</link>
			<title>Music Box Using Wave Shield Help</title>
			<description><![CDATA[So I am trying to make a music box for my girlfriend for valentines day, and I just have a few quick questions about my code.  I am using the Wave Shield to generate the sound, and the idea is pretty simple.  Whenever the box is opened (a switch is released), power will run to the Arduino.  The Arduino will look in EEPROM for the song number to play.  It will set EEPROM to play the next song the next time it starts up.  It will play the song, and once the song is finished it will power down.  The issue I am having is that I honestly have no idea how to iterate through the files stored on the SD card.  I have read SdReader.h, but it just made me more confused...  Below is my code that I have so far, with the actual file interaction missing, namely numFiles and playSong...  Can anyone point me in the right direction?  Even just a link to a tutorial on how to use SdReader would be so very helpful...  Thanks in advance!<br />
<br />
<dl class="codebox"><dt>Code: <a href="#" onclick="selectCode(this); return false;">Select all</a></dt><dd><code>#include &lt;EEPROM.h&gt;<br />
#include &lt;FatReader.h&gt;<br />
#include &lt;SdReader.h&gt;<br />
#include &lt;avr/pgmspace.h&gt;<br />
#include &lt;avr/sleep.h&gt;<br />
#include &quot;WaveUtil.h&quot;<br />
#include &quot;WaveHC.h&quot;<br />
<br />
int songNumber;&nbsp; // the song to play<br />
int numSongs;&nbsp; &nbsp; // the number of songs<br />
SdReader card;&nbsp; &nbsp;// info for the card<br />
FatVolume vol;&nbsp; &nbsp;// info for the partition<br />
FatReader root;&nbsp; // info for the filesystem<br />
WaveHC wave;&nbsp; &nbsp; &nbsp;// wave Object<br />
dir_t dirBuf;&nbsp; &nbsp; // buffer for directory reads<br />
<br />
/* <br />
 * numFiles determines how many files there are on the SD Card<br />
 */<br />
void numFiles() {<br />
&nbsp; numSongs = 0;<br />
&nbsp; int8_t r;<br />
&nbsp; while ((r = root.readDir(dirBuf)) &gt; 0) {<br />
&nbsp; &nbsp; //skip subdirs . and ..<br />
&nbsp; &nbsp; if (dirBuf.name&#91;0&#93; == '.')<br />
&nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; }<br />
}<br />
<br />
/* <br />
 * songToPlay figures out what song to play this time, and sets the song to play next time<br />
 */<br />
void songToPlay() {<br />
&nbsp; songNumber = EEPROM.read(0);&nbsp; // read the song number to play<br />
&nbsp; // assign the song to play next startup<br />
&nbsp; if (songNumber &lt; numSongs) {<br />
&nbsp; &nbsp; EEPROM.write(0, songNumber + 1);<br />
&nbsp; } <br />
&nbsp; else { // if songNumber &gt;= numSongs<br />
&nbsp; &nbsp; EEPROM.write(0, 1);<br />
&nbsp; }<br />
}<br />
<br />
/* <br />
 * playSong finds the right song to play, and starts to play it<br />
 */<br />
void playSong() {<br />
&nbsp; // find the song to play by iterating through the files on the <br />
&nbsp; // SD Card until you get to the right one.<br />
&nbsp; for (int i = 0; i &lt;= songNumber; i++) {<br />
<br />
&nbsp; }<br />
}<br />
<br />
/* <br />
 * sleep puts the ardunio into power down mode<br />
 */<br />
void sleep() {<br />
&nbsp; set_sleep_mode(SLEEP_MODE_PWR_DOWN);<br />
&nbsp; sleep_enable();<br />
}<br />
<br />
void setup() {<br />
&nbsp; numFiles();<br />
&nbsp; songToPlay();<br />
&nbsp; playSong();<br />
&nbsp; // while the song is playing, wait<br />
&nbsp; while (wave.isplaying) {<br />
&nbsp; &nbsp; // wait 1 second, and check again.<br />
&nbsp; &nbsp; delay(1000);<br />
&nbsp; }<br />
&nbsp; // once it is done playing, shut it down.<br />
&nbsp; sleep();<br />
}<br />
<br />
void loop() {<br />
}<br />
</code></dd></dl>]]></description>
		</item>
			<item>
			<dc:creator>noctolater</dc:creator>
			<pubDate>Mon, 08 Feb 2010 17:58:25 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71056#p71056</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71056#p71056</link>
			<title>Music Box Circuit Help</title>
			<description><![CDATA[Just a few quick questions about a circuit.  I am trying to build a music box for my girlfriend for valentines day, and here's the circuit that I have so far.  I just wanted to get some more experienced opinions before I continue much farther.<br />
<br />
A <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=552" class="postlink">4x AA battery pack</a> is connected to a <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9414" class="postlink">leaf switch</a> with just the positive terminal.  The other side of the leaf switch is connected to an <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9219" class="postlink">arduino pro</a> when the switch is open (when the music box has been opened).  The arduino pro is then using a <a href="http://www.adafruit.com/index.php?main_page=product_info&amp;cPath=17_21&amp;products_id=94" class="postlink">wave shield from adafruit</a> to generate sound from an SD card.  The ground for the Arduino is connected to the ground for the battery pack.<br />
<br />
My question is this:  Is this a reasonably safe setup, to have power flowing to the leaf switch without a ground continuously?  Will I harm any of the electronics by cutting the power off in the middle of a song?  And, am I going to need a voltage regulator on the battery pack to keep the voltage stable at 5v (battery pack is 6v with new batteries, but under 5v when depleted)?  Or should I use a <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8483" class="postlink">2000 mAh LiPo Battery</a> with a <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8999" class="postlink">5v step-up regulator</a> instead of 4x AA batteries?<br />
<br />
Thank you so much for your help, as I am still trying to learn everything I can about electrical engineering <img src="http://forums.adafruit.com/images/smilies/icon_razz.gif" alt=":P" title="Razz" />]]></description>
		</item>
			<item>
			<dc:creator>harley2</dc:creator>
			<pubDate>Mon, 08 Feb 2010 17:42:54 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71055#p71055</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71055#p71055</link>
			<title>Re: gps datalogger v1.1</title>
			<description><![CDATA[<div class="inline-attachment"><!-- ia2 -->20758_298374442527_526592527_3466350_8031686_s.jpg<!-- ia2 --></div><div class="inline-attachment"><!-- ia1 -->20758_298374467527_526592527_3466351_6335598_s.jpg<!-- ia1 --></div><div class="inline-attachment"><!-- ia0 -->20758_298374482527_526592527_3466352_4761497_s.jpg<!-- ia0 --></div>]]></description>
		</item>
			<item>
			<dc:creator>FullEnglish_Acid</dc:creator>
			<pubDate>Mon, 08 Feb 2010 16:58:57 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=7&amp;p=71054#p71054</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=7&amp;p=71054#p71054</link>
			<title>Re: good acidlabels/artists</title>
			<description><![CDATA[No mate its not on chosen lords, rephlex records have recently released all the Analords on digital download, each Analord has extra tracks.  The digital downloads are £3.50 per Analord.  Many people are raving about the extra tracks over a WATMM forum.<br />
<br />
<!-- m --><a class="postlink" href="http://www.rephlex.com/">http://www.rephlex.com/</a><!-- m -->]]></description>
		</item>
			<item>
			<dc:creator>Entropy</dc:creator>
			<pubDate>Mon, 08 Feb 2010 16:54:51 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71053#p71053</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=10&amp;p=71053#p71053</link>
			<title>Re: Organizing componets</title>
			<description><![CDATA[<blockquote><div><cite>sirket wrote:</cite><blockquote><div><cite>Entropy wrote:</cite>If I'm reading the links correctly, half of those Walmart cases ARE Flambeau cases?</div></blockquote><br />
I haven't seen Flambeau cases at Walmart- but I've never shopped there so I wouldn't know <img src="http://forums.adafruit.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /><br />
</div></blockquote><br />
It may be online-only, but check George's first link.  <img src="http://forums.adafruit.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" />]]></description>
		</item>
			<item>
			<dc:creator>stevekiraly</dc:creator>
			<pubDate>Mon, 08 Feb 2010 16:47:54 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71052#p71052</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=40&amp;p=71052#p71052</link>
			<title>XBee Wireless Midi - Switched Midi Pins</title>
			<description><![CDATA[This post is relative the Xbee Wireless Midi project.<br />
As I understand it, the pinout for a midi connector is Pin 2 is GND, Pin 4 is &quot;+&quot; (current source) and Pin 5 is &quot;-&quot; (current sink).  From the schematic, for the midi IN, I can assume if the pins are mis-wired (reversed), the LED in the opto-isolator will not work because the polarity is reversed at the connector.  I am not clear about the midi OUT side....does the same assumption hold for circuits being driven by the midi OUT connector ?  Is my analysis and assumptions correct ?]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 16:16:11 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=15&amp;p=71051#p71051</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=15&amp;p=71051#p71051</link>
			<title>Re: Rechargeable lithium batteries</title>
			<description><![CDATA[we have added a note to the FAQ that has the precise resistor setup we found in an 'authorized' charger <img src="http://forums.adafruit.com/images/smilies/icon_wink.gif" alt=";)" title="Wink" /><br />
<!-- m --><a class="postlink" href="http://www.ladyada.net/make/mintyboost/faq.html">http://www.ladyada.net/make/mintyboost/faq.html</a><!-- m -->]]></description>
		</item>
			<item>
			<dc:creator>adafruit</dc:creator>
			<pubDate>Mon, 08 Feb 2010 16:15:17 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=15&amp;p=71050#p71050</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=15&amp;p=71050#p71050</link>
			<title>Re: iPhone 3Gs does not work with my minty boost 2.0</title>
			<description><![CDATA[we have added a note to the FAQ that has the precise resistor setup you would want to use<br />
<!-- m --><a class="postlink" href="http://www.ladyada.net/make/mintyboost/faq.html">http://www.ladyada.net/make/mintyboost/faq.html</a><!-- m -->]]></description>
		</item>
			<item>
			<dc:creator>fat16lib</dc:creator>
			<pubDate>Mon, 08 Feb 2010 15:58:20 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71049#p71049</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=31&amp;p=71049#p71049</link>
			<title>Re: Wave shild library troubles</title>
			<description><![CDATA[Sorry, I tried to put the instructions early in the readme but people miss it<br />
<br />
<blockquote class="uncited"><div>To use this library place the uncompressed WaveHC folder into the <br />
libraries subfolder in your main sketches folder.  You may need to<br />
create the libraries folder.  Restart the Arduino IDE if it was open.<br />
</div></blockquote> <br />
<br />
Any suggestions how to improve the instructions?]]></description>
		</item>
			<item>
			<dc:creator>shobley</dc:creator>
			<pubDate>Mon, 08 Feb 2010 15:48:18 -0500</pubDate>
			<guid>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71048#p71048</guid>
			<link>http://forums.adafruit.com/viewtopic.php?f=8&amp;p=71048#p71048</link>
			<title>Re: Looking for advice on sensor output</title>
			<description><![CDATA[Thanks for the tip - I'll certainly check them out.]]></description>
		</item>
	</channel>
</rss>