<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; User Favorites: LostLess</title>
		<link><a href='http://forums.leaflabs.com/profile.php?id=6649'>6649</a></link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:19:10 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?profile=6649" rel="self" type="application/rss+xml" />

		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22383</link>
			<pubDate>Fri, 15 Feb 2013 01:24:23 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22383@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sweet! Good to know it works! Pity I don't drink beer, ginger beer though... maybe!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22382</link>
			<pubDate>Thu, 14 Feb 2013 23:18:38 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22382@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Alright, I downloaded the library and wrote a quick program based on one of the examples to test. It works great! I had built a sample program that works with the bluetooth, and that one works fine as well.&#60;/p&#62;
&#60;p&#62;crenn, I certainly owe you a beer! Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22378</link>
			<pubDate>Thu, 14 Feb 2013 20:32:43 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22378@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Let me know if the library works, either here or in a new thread!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22377</link>
			<pubDate>Thu, 14 Feb 2013 14:29:01 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22377@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;That's very kind of you crenn...thanks again! I will try out the ported library. I think I can take it from here. After trying out the library, I am going to look at re-integrating the serial port code so I can use bluetooth. If there are any problems from here, I will start a new thread, as the problem is no longer identified with hardware.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22373</link>
			<pubDate>Thu, 14 Feb 2013 06:19:50 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22373@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Just finished porting the library, since I don't have the hardware to test, I can only confirm that the code compiles. Let me know if you have any problems with the library.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://github.com/crenn/LPD8806&#34; rel=&#34;nofollow&#34;&#62;http://github.com/crenn/LPD8806&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22372</link>
			<pubDate>Thu, 14 Feb 2013 02:33:25 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22372@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The best solution I feel would be to port the library to allow easier coding for you. I'm not promising anything, but I'll take a look into it.&#60;/p&#62;
&#60;p&#62;The problems I feel your code was having is it wasn't doing the right number of latches, and all colours need to be ORed with 0x80 to ensure the LEDs received the appropriate data.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22370</link>
			<pubDate>Thu, 14 Feb 2013 02:11:42 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22370@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;crenn, your code works! It even works with my 4.8V battery! I don't even need the logic level converter...it works fine without it!&#60;/p&#62;
&#60;p&#62;So, it looks like the hardware situation is fine now. What I don't understand is why the code involving the opening of the serial port @ 115200 bps for the bluetooth modem causes a problem (by the way, the modem is still plugged in, so its power draw can't be an issue as far as I can see).&#60;/p&#62;
&#60;p&#62;What I am going to do now is try to add in the serial port code into yours to make a modified version and see what happens from there.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22358</link>
			<pubDate>Wed, 13 Feb 2013 07:31:41 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22358@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;LostLess - The datasheet I eventually found (from Greeled Electronics) says the maximum speed for the LPD8806 clock/data signals is 20 MHz, but recommends 0~2 MHz, so speed might matter.&#60;/p&#62;
&#60;p&#62;Also if it works with one power supply, yet not another, it might be close to an edge of some sort, so it is worth backing-off.&#60;/p&#62;
&#60;p&#62;&#60;em&#62;&#34;... I have verified that Vcc out is working (it is outputting around 3.6V, but that's ok...I don't expect it to be exact).&#34;&#60;/em&#62;&#60;br /&#62;
I wouldn't expect Vcc to be exactly 3.3V, but 3.6V is high for Vcc (the STM32F maximum operating voltage range is 2V to 3.6V). Also AFAIK the voltage regulators are usually within 100mV (or better) when operating within their spec, so 3.6V seems odd. Can you disconnect everything from the Maple Mini and check the voltage on Vcc again?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22356</link>
			<pubDate>Wed, 13 Feb 2013 02:05:35 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22356@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The code I linked to doesn't actually bit bang.&#60;/p&#62;
&#60;p&#62;EDIT: So the code you're using when connected to the computer, actually works completely? Is the ground of the external power supply connected to the gnd of the Maple Mini?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22354</link>
			<pubDate>Wed, 13 Feb 2013 01:07:14 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22354@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;Have you got a multimeter or something to double-check the voltage? You could wire an LED and current-limiting resistor across Vcc to ensure it's easy to see that something is happening.
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Yes, I have a multimeter and I have verified that Vcc out is working (it is outputting around 3.6V, but that's ok...I don't expect it to be exact).&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;I notice your pastebin code uses SPI at 18MHz, which is pretty quick.&#60;br /&#62;
I would be tempted to use simple bit-banging to drive the LED strip.&#60;br /&#62;
Use two ordinary pins and digitalWrite, to drive the clock and data.&#60;/p&#62;
&#60;p&#62;Have you had the LEDs working at all?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I can try to slow down the speed, but I am not sure if it will make much difference. The LEDs do work, but only when the Maple Mini is connected to the PC. I don't have an Arduino unfortunately...&#60;/p&#62;
&#60;p&#62;@crenn:I will try to drop the frequency down to the suggested frequency of SPI_281_250KHZ. I just find it strange that at 18Mhz, when the Maple Mini is connected to the PC, everything works fine. If that does not work, I will try the bit banging code you suggested.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>crenn on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22352</link>
			<pubDate>Tue, 12 Feb 2013 23:34:43 +0000</pubDate>
			<dc:creator>crenn</dc:creator>
			<guid isPermaLink="false">22352@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'd suggest dropping the SPI speed to SPI_281_250KHZ as you might be able to see if there is any changes!&#60;/p&#62;
&#60;p&#62;Bit banging is also possible. From what I can see, with a few minor adjustments, you could actually use the library. I'd also try to simplify your code, just attempt to get a single colour written to the strip. Something like this:&#60;br /&#62;
&#60;a href=&#34;http://www.crennsmind.com/Code/Maple/LEDstriptest.pde&#34; rel=&#34;nofollow&#34;&#62;http://www.crennsmind.com/Code/Maple/LEDstriptest.pde&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22349</link>
			<pubDate>Tue, 12 Feb 2013 14:33:04 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22349@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;LostLess - &#60;em&#62;&#34;Just to make sure, do I have to enable that port in my code, or is Vcc already outputting 3.3V?&#34;&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;If the Maple Mini is being powered then Vcc is providing 3.3V.&#60;br /&#62;
Vcc isn't connected to a port, but directly to a voltage regulator. Have you got a multimeter or something to double-check the voltage? You could wire an LED and current-limiting resistor across Vcc to ensure it's easy to see that something is happening.&#60;/p&#62;
&#60;p&#62;I notice your pastebin code uses SPI at 18MHz, which is pretty quick.&#60;br /&#62;
I would be tempted to use simple bit-banging to drive the LED strip.&#60;br /&#62;
Use two ordinary pins and digitalWrite, to drive the clock and data.&#60;/p&#62;
&#60;p&#62;Have you had the LEDs working at all?&#60;br /&#62;
Have you got an Arduino, so that you could use Adafruits code &#60;a href=&#34;https://github.com/adafruit/LPD8806&#34; rel=&#34;nofollow&#34;&#62;https://github.com/adafruit/LPD8806&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186&amp;page=2#post-22347</link>
			<pubDate>Mon, 11 Feb 2013 23:13:38 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22347@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@gbulmer: I see. Thank you for the clarification.&#60;/p&#62;
&#60;p&#62;I tried connecting Vcc to the low voltage pin of the logic level converter...still nothing. I suspect something may be wrong with the data (SCLK, MOSI) connections on the LPD8806...I will double check those. Otherwise, everything seems intact. Just to make sure, do I have to enable that port in my code, or is Vcc already outputting 3.3V?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186#post-22345</link>
			<pubDate>Mon, 11 Feb 2013 21:54:21 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">22345@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;LostLess - yes Vcc.&#60;/p&#62;
&#60;p&#62;The Maple IDE language is close to Arduino IDE language, but it isn't identical. LeafLabs aimed to make some of the extra features of the STM32F available, so it wasn't going to match exactly.&#60;/p&#62;
&#60;p&#62;Arduino and Maple both use C++ (not a subset). A source of confusion is they use a bit of pre-processing to remove the need to #include a header file, and it auto-magically creates function declarations at the top of the source file (which does make it easier for newbies to get started, and oldies to hack something together quickly). There is a bit of error message processing too. Otherwise, it's C++
&#60;/p&#62;</description>
		</item>
		<item>
			<title>LostLess on "Varying output voltage for SPI pins?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10186#post-22340</link>
			<pubDate>Mon, 11 Feb 2013 14:46:45 +0000</pubDate>
			<dc:creator>LostLess</dc:creator>
			<guid isPermaLink="false">22340@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;LostLess - could you just use the 3.3V output by the Maple Mini instead of a battery?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Not long after posting my update, I realized that Vcc could work. Is that what you are referring to? I could use it, and I will try later today.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Can you use pastebin so we can look at your code? Are you using Adafruit's library?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Here's the pastebin to my code: &#60;a href=&#34;http://pastebin.com/4Xt5gL2W&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/4Xt5gL2W&#60;/a&#62;. I'm not using Adafruit's library because it looked like it needed translation (isn't the language used in the Maple IDE a subset of C/C++?); I may reconsider using it at a later date.&#60;/p&#62;
&#60;p&#62;As for the information about the Rx's, thanks crenn. However, yes, I don't think that this is an issue here as the communication is one way between the Maple Mini and the LPD8806.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
