<?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>&#62;dade &#187; Electronics</title>
	<atom:link href="http://www.creamdesign.it/blog/archives/category/electronics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.creamdesign.it/blog</link>
	<description>plans that either come to naught, or half a page of scribbled lines</description>
	<lastBuildDate>Sat, 30 Oct 2010 14:27:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>20W led from Hong Kong vs conventional lights</title>
		<link>http://www.creamdesign.it/blog/archives/307</link>
		<comments>http://www.creamdesign.it/blog/archives/307#comments</comments>
		<pubDate>Fri, 29 Oct 2010 17:48:46 +0000</pubDate>
		<dc:creator>dade</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://www.creamdesign.it/blog/?p=307</guid>
		<description><![CDATA[Pictures of a 20W led i found from an HK seller on eBay: impressive results! This led product could replace conventional lighting. At last led tech is mature enough to enter mass market.]]></description>
			<content:encoded><![CDATA[<p>Today I tried a power led I found on ebay, coming from an average wholesale Hong Kong seller. It&#8217;s a <strong>20 watt</strong> model, theoretically capable of putting out 1100 lumens&#8230; Unbelievable! One single 10$ led can replace conventional room lighting. See the pics.</p>
<p><span id="more-307"></span>Watching closely, it is not a single LED, but twenty single 1-W dies tied in series and parallel in a single package. The seller offers also a 50W model arranged in the same fashion</p>
<div id="attachment_304" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0018.jpg"><img class="size-medium wp-image-304" title="test rig" src="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0018-225x300.jpg" alt="20W led test rig" width="225" height="300" /></a><p class="wp-caption-text">The setup i rigged up for a quick and dirty test of the 20W led</p></div>
<p>These are the parameters of the led from the vendor; there is no official datasheet, even if the page of the seller cites the luxeon brand. The following information however is all I needed to make a quick try:</p>
<p>Lens Color: Water Clear<br />
Emitted Color : Warm White<br />
DC Forward Voltage <strong>(VF): 13.5 ~ 15.0 VDC </strong><br />
Forward Current <strong>(IF): 1400mA ~ 1800mA</strong><br />
Viewing Angle: 140 Degrees<br />
Color Temperature: 5500K<br />
Intensity Luminous (Iv): 1000LM</p>
<p>After some rough calculations I found that a 18V power supply and a couple of 1 ohm resistors (what I had lying around) was just about right to turn the led on and keeping inside spec. The heatsink (coming from an AMD processor box) keeps the led cool, and prevents it from frying up in a few seconds: this little beast puts out a lot of heat.</p>
<p>See for yourself the comparison pictures between a conventional light and the led ligt from the test setup:</p>
<div id="attachment_305" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0015.jpg"><img class="size-medium wp-image-305" title="conventional lighting" src="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0015-300x226.jpg" alt="My room lighted by my every day lighting (six fluorescent light bulbs)" width="300" height="226" /></a><p class="wp-caption-text">My room lit by my every day lighting (six fluorescent light bulbs)</p></div>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0017.jpg"><img class="size-medium wp-image-306" title="my room lit by the 20W led" src="http://www.creamdesign.it/blog/wp-content/uploads/2010/10/wpid-IMAG0017-300x226.jpg" alt="my room lit by the 20W led" width="300" height="226" /></a><p class="wp-caption-text">my room lit by the 20W led</p></div>
<p>As you can see a single led can replace a whole chandelier of six light bulbs, giving comparable results and a clearer light. This is definitely going to be the lighting system of the future, because duration and consumption are far more efficient than conventional systems. I wonder what the 50W model could do.</p>
<p>A final word of recommendation: if you decide to try one of these leds, make sure you don&#8217;t watch it directly&#8230; it is like when you watch the sun with your bare eyes. Always wear sunglasses when you&#8217;re tinkering with these things.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.creamdesign.it/blog/archives/307/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stepperino alpha version</title>
		<link>http://www.creamdesign.it/blog/archives/261</link>
		<comments>http://www.creamdesign.it/blog/archives/261#comments</comments>
		<pubDate>Fri, 20 Aug 2010 08:44:46 +0000</pubDate>
		<dc:creator>dade</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[stepperino]]></category>

		<guid isPermaLink="false">http://www.creamdesign.it/blog/?p=261</guid>
		<description><![CDATA[Stepperino is a stepper motor controller based on arduino and cheap, commonly available components. This early version is capable of controlling an unipolar stepper motor (5, 6 or 8 wires) in full step mode and is the first step towards more sophisticated control to be achieved in firmware. ]]></description>
			<content:encoded><![CDATA[<p>Stepperino is a stepper motor controller based on arduino and cheap, commonly available components. This early version is capable of controlling an unipolar stepper motor (5, 6 or 8 wires) in half step mode and is the first step towards more sophisticated control to be achieved in firmware.</p>
<p>Here is the schematic [click to enlarge]:</p>
<p style="text-align: center;"><a href="http://www.creamdesign.it/blog/wp-content/uploads/2010/08/stepperino-schem.png"><img class="size-medium wp-image-262 aligncenter" title="schematic-stepperino" src="http://www.creamdesign.it/blog/wp-content/uploads/2010/08/stepperino-schem-300x180.png" alt="schematic-stepperino" width="300" height="180" /></a></p>
<p>The top left connector is for input from a microcontroller, which determines which coils are turned on. The rest is divided in four identical sections, each having a BC337 NPN transistor driving a TIP122 power darlington pair, which in turn is attached to the motor coil through the bottom right connector. Collectors of the power transistors are connected to a sense power resistor which allows fixed current to flow in the motor, independently of the voltage.<br />
As for now the motor I am using is underpowered: its spec says 24v but I am giving this circuit a 18v supply, so speed and torque may be affected. For now I can reach a speed of about 10 revolutions per second of the stepper.</p>
<p>Here is how it came out on a breadboard, attached to an arduino and to a stepper motor [click to enlarge]:</p>
<p><a href="http://www.creamdesign.it/blog/wp-content/uploads/2010/08/stepperino-bread.jpg"><img class="aligncenter size-medium wp-image-264" title="Stepperino on breadboard" src="http://www.creamdesign.it/blog/wp-content/uploads/2010/08/stepperino-bread-300x199.jpg" alt="circuit mounted on breadboard" width="300" height="199" /></a></p>
<p>The little trimmer in the picture has been added for controlling a delay in the firmware, so to test different speeds of the motor. In fact the speed can be raised until the motor reaches resonance, and just a tad before that point the motor is going at full speed. This is the code:</p>
<pre name="code" class="cpp">void setup()   {
 DDRB = DDRB | B11111111;
}

int sensorPin = 0;
int sensorValue = 10;

void loop()
{
  sensorValue = analogRead(sensorPin);

  PORTB = B00000001;
  delayMicroseconds(sensorValue*10);
  PORTB = B00000011;
  delayMicroseconds(sensorValue*10);
  PORTB = B00000010;
  delayMicroseconds(sensorValue*10);
  PORTB = B00000110;
  delayMicroseconds(sensorValue*10);
  PORTB = B00000100;
  delayMicroseconds(sensorValue*10);
  PORTB = B00001100;
  delayMicroseconds(sensorValue*10);
  PORTB = B00001000;
  delayMicroseconds(sensorValue*10);
  PORTB = B00001001;
  delayMicroseconds(sensorValue*10);
}</pre>
<p>As you can see the code is very simple: it just does a full step sequence delayed by the value read from the trimmer. It is good for testing different speeds and step sequences, to see which one is best for achieving maximum speed.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="560" height="340" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/4mYAfglFJN4?fs=1&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="560" height="340" src="http://www.youtube.com/v/4mYAfglFJN4?fs=1&amp;hl=en_US&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The next steps for beta version will be:</p>
<ul>
<li>add PWM to software</li>
<li>port software to avr-gcc and optimize timings</li>
<li>determine if BC337 are really necessary or not</li>
<li>add filtering caps for PWM</li>
<li>add diodes for coil protection</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.creamdesign.it/blog/archives/261/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Night dive led flasher</title>
		<link>http://www.creamdesign.it/blog/archives/10</link>
		<comments>http://www.creamdesign.it/blog/archives/10#comments</comments>
		<pubDate>Sat, 12 Jul 2008 22:22:25 +0000</pubDate>
		<dc:creator>dade</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Scuba]]></category>

		<guid isPermaLink="false">http://www.creamdesign.it/blog/?p=10</guid>
		<description><![CDATA[The light beacons for nocturnal scuba diving can get quite expensive if bought at the store. Here's a much cheaper alternative using easy to find / junk parts.]]></description>
			<content:encoded><![CDATA[<p>The light beacons for nocturnal scuba diving can get quite expensive if bought at the store. Here&#8217;s a much cheaper alternative using easy to find / junk parts.</p>
<p style="text-align: center;"><a href="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/dsc_0165.jpg"><img class="size-medium wp-image-11  aligncenter" title="Flasher On!" src="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/dsc_0165-300x178.jpg" alt="the light flasher in action" width="300" height="178" /></a></p>
<p><span id="more-10"></span></p>
<p>It is necessary during a night dive to have an always on flasher tied to the tank to be always visible by dive buddies. This circuit does just that: flash two high-brightness blue LEDs whenever it comes into contact with water.</p>
<p>The circuit is very simple: a first section detects water contact and gives current to the second section, a basic ne555 astable oscillator. No more than that, but it works great. The water detection part is accomplished by just a single transistor and two contacts. The circuit itself is throw-away, since when the battery will be dead, the water tight enclosure will not allow its replacement. However the cost of the circuit is in the 5$ range, and it will last several dives! Here&#8217;s the schematic. The battery used is a small 6V battery for cameras. It should last long! The resistors and the capacitor set the 555 to a 20% duty cycle, in favor of battery life.</p>
<p><a href="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/schem.png"><img class="size-medium wp-image-13" style="vertical-align: middle;" title="Flasher schematic" src="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/schem-300x192.png" alt="Water LED flasher schematic" width="300" height="192" /></a></p>
<p>I did everything on a piece of perfboard. Here&#8217;s another picture.</p>
<p><a href="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/dsc_0160.jpg"><img class="aligncenter size-medium wp-image-12" title="Side view" src="http://www.creamdesign.it/blog/wp-content/uploads/2008/07/dsc_0160-300x190.jpg" alt="Battery and poor soldering on the back" width="300" height="190" /></a></p>
<p>Ok, I think this is all for now. Go ahead and build yourself this flasher, next I will detail the enclosure and the results from the dive :)</p>
<p>Remember to dive safely and responsively. And have Fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.creamdesign.it/blog/archives/10/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

