<?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>justDIY Project Log &#187; Control</title>
	<atom:link href="http://projects.dimension-x.net/archives/category/project/control/feed" rel="self" type="application/rss+xml" />
	<link>http://projects.dimension-x.net</link>
	<description>Thoughts, ideas, projects, pictures.</description>
	<lastBuildDate>Sat, 22 Oct 2011 02:41:43 +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>Pentax IR Interval Timer</title>
		<link>http://projects.dimension-x.net/archives/252</link>
		<comments>http://projects.dimension-x.net/archives/252#comments</comments>
		<pubDate>Tue, 31 May 2011 02:35:42 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/?p=252</guid>
		<description><![CDATA[Hey, look at that, my blog website is still alive and working. Last post was Sep 2010, a long time ago. I&#8217;m planning a trip to the desert, and one of the things I wanted to make for myself were time lapse movies of sunrise or sunset, and the night sky. My DSLR does not [...]]]></description>
			<content:encoded><![CDATA[<p>Hey, look at that, my blog website is still alive and working.  Last post was Sep 2010, a long time ago.</p>
<p>I&#8217;m planning a trip to the desert, and one of the things I wanted to make for myself were time lapse movies of sunrise or sunset, and the night sky.  My DSLR does not have a wired remote capability and Hoya has decided not to include an interval timer on their low end DSLR</p>
<p>I could have purchased a timer off ebay, that claims to be compatible with every DSLR ever made but those claims make me skeptical.  I also did not care for their user interface.  So, many months ago, I tore apart one of the Pentax IR remotes, to see what makes it tick.  It was a simple design on the inside, a rather large micro-controller with external clock, a transistor, a capacitor, a few resistors and an LED.  The trigger button was one of those resistive pad-switch types.  Originally I thought I could just trigger the remote by pulling one side or the other end of the button high or low.  This did not work, and when I scoped it, I discovered a handshake was employed between the two terminals of the switch, both leading to micro-controller pins.  So it looks like Hoya didn&#8217;t want people hacking the remote directly.  </p>
<p>Switching to plan B, I tore apart an old pioneer cd changer and harvested its IR decoder chip.  Following some arduino code from Lady Ada, I tried to capture the timings of the IR signal using a PIC.  This worked to a degree, and probably warrants further study down the road, but I couldn&#8217;t get the pulse train quite right and so the camera would not respond.  </p>
<p>Abandoning the learning-remote line of thought, I connected the IR decoder to my o-scope and manually measured the pulse train.  It was only 26 msec, and consisted of 15 transitions.  13 msec on, 2.8 msec off, and then 1 msec on/off repeated eight more times.  Using the 12F683 chip (one of my favorites), I had access to an 8MHZ internal clock and a hardware PWM module.  Microchip claims the hardware pwm maxes out at 20khz, but I had no trouble getting a stable 37khz carrier out of it.  Then I whipped up a little subroutine in proton basic which toggled the carrier on and off with the appropriate timings.  I had setup the pic&#8217;s pwm output on channel 1 of the scope, and output of the ir decoder on channel 2.  I could fire the pentax remote at the decoder and compare it to my pulse train from the pic.  When they were an exact match, I got the camera and presto, it started snapping pictures.</p>
<p><a href="https://picasaweb.google.com/lh/photo/pZbCvE853fQqfhmmnZnLiincuLO2yQXyYw8gSciWkXw?feat=directlink"><img src="https://lh6.googleusercontent.com/-0eDOzhl45dI/TeRP6ml3ExI/AAAAAAAAQsY/f4nXYCHFa8o/s800/sch1_sml.png" alt="Cam Remote Schematic" /></a></p>
<p>That schematic is what I&#8217;ve worked out for a bare-bones version of the remote.  A single button is used to program the interval, there&#8217;s a status led and room for two IR emitters.  My current prototype is only using one emitter, because that is all I have right now.  I&#8217;m also using a 2N3904 which isn&#8217;t ideal, but it was working on the breadboard and now it&#8217;s soldered in place.  I just now looked up the specs, and the poor thing is only rated at 200ma collector current &#8211; that could explain the lack of output power I&#8217;m seeing on the emitter.</p>
<p><img src="https://lh3.googleusercontent.com/-Rgfa7Jw8DGQ/TeQT-fidC1I/AAAAAAAAQsk/B3Q80f1ofvs/s4600/IMAG0572.jpg" alt="" /></p>
<p>In interest of saving time, I didn&#8217;t make a PCB for this revision, but I&#8217;ll probably do that for the next prototype.  All point to point wiring, I tried to be neat.  I used a tiny SMT resistor to drive the transistor, it worked out real handy.</p>
<p><img src="https://lh4.googleusercontent.com/-asncOcUBsMY/TeQT5saBdJI/AAAAAAAAQsk/mxerDP2RqPo/s600/IMAG0573.jpg" alt="" /></p>
<p>The timer and two AA batteries fit in this mint tin I&#8217;ve been saving for years.  I don&#8217;t know if they are still in production; I would like to get a few more.</p>
<p><img src="https://lh4.googleusercontent.com/-djJmqoAIWNQ/TeQUCb5mxBI/AAAAAAAAQsk/uwWPlyK0Q2I/s600/IMAG0567.jpg" alt="" /></p>
<p>I field tested the timer at tonight&#8217;s sunset &#8211; I&#8217;m trying to figure out how to convert a bunch of jpeg&#8217;s into an avi now &#8211; stay tuned!</p>
<p>Update: <a href="http://www.youtube.com/watch?v=mt0pTMDCKvI">Here&#8217;s the video</a>, turns out Picasa can generate a timelapse &#8230; only 8 seconds, need more frames!</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/252/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Capacitive Sensing Continued</title>
		<link>http://projects.dimension-x.net/archives/112</link>
		<comments>http://projects.dimension-x.net/archives/112#comments</comments>
		<pubDate>Mon, 30 Jul 2007 04:53:35 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Prototyping]]></category>
		<category><![CDATA[Sensor]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/112</guid>
		<description><![CDATA[Hello readers from MAKE: as well as all other readers :) My prototype touch sensor worked so well, that it hasn&#8217;t needed much changing. I sent the design off to Custom PCB, and less than a week later, I had a pile of circuit boards waiting for me. I changed the layout around a little, [...]]]></description>
			<content:encoded><![CDATA[<p>Hello readers from MAKE: as well as all other readers :)</p>
<p>My prototype touch sensor worked so well, that it hasn&#8217;t needed much changing.  I sent the design off to Custom PCB, and less than a week later, I had a pile of circuit boards waiting for me.</p>
<p><img src="/pictures/touch/pcb3_cmp_sm.jpg" alt="" /></p>
<p>I changed the layout around a little, mostly adding a 2&#215;8 header for accepting a ribbon cable style connection.  The header combines power, ground and outputs into a single connection, making it easier to connect to the main board of my larger project (sprinkler controller).  Each touch output is paired with a ground wire, which I suppose makes it more resistant to interference.   The caps I used this time are polyester film 220 nF, doubling the amount of capacitance compared to what was used on the prototype.</p>
<p>Yes, the ugly piece of plexi is still ugly.  Don&#8217;t worry, it will be hidden from view.  In the final configuration, this board and its plexiglas spacer will be inside a plastic project box.  I&#8217;ll have a laminated &#8220;keypad&#8221; overlay affixed to the outside of the box so I can see where the buttons are.  The spacer will be flipped around, going on the solder side, giving me enough clearance to flush-mount the sensor with the wall of the box.  Flush mount is very important, as even the slightest air-gap will ruin the proximity sensing effect.  </p>
<p><img src="/pictures/touch/pcb3_sod_lg.jpg" alt="" / width="480"></p>
<p>Nothing much to see solder side&#8230; a few smt passives set options on the chip, as well as decouple and filter the incoming power.  The big resistor limits current for the meager power led which no one will ever see once the board is in use.</p>
<p>I&#8217;m very close to finishing the larger irrigation control project, hopefully sometime this week!  Thanks for reading!</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/112/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Audio Matrix Switch</title>
		<link>http://projects.dimension-x.net/archives/75</link>
		<comments>http://projects.dimension-x.net/archives/75#comments</comments>
		<pubDate>Sun, 09 Apr 2006 18:23:36 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[CAD]]></category>
		<category><![CDATA[Control]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/75</guid>
		<description><![CDATA[Digitally Sontrolled Stereo 4 Input 4 Output Audio Matrix Switch]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had some down time project wise lately, most of my SMPS research is on hold, since I need to order even more parts (namely diodes and switches)&#8230; so, I&#8217;ve taken the time to draw.</p>
<p>One of my &#8216;back burner&#8217; projects is a whole-house audio distribution system.  So, this past week or so, I set out to design the heart of the system, a matrix switch.   Originally I had tried to go &#8220;too big&#8221;, designing a system with four inputs and eight outputs.  However, routing the signal lines and control lines was too much of a challenge, even using a two layer board.   So, scaling things back, I wound up with a 4&#215;4 matrix that was barely manageable.</p>
<p><a href="http://projects.dimension-x.net/pictures/audio/rev3-2_smt_sch.gif"><img src="/pictures/audio/rev3-2_smt_sch_sm.gif" alt="audio matrix switch 4x4 74hc4052 74hc595 schematic" /></a></p>
<p>There is the schematic for the latest &#8216;stable&#8217; version.   I call it a stable version, because it passes all of the DRC tests and all the nets are routed.  I have another version in design, which adds ESD protection to the external audio connections in the form of high speed schottky diodes which will clip any voltage coming in that rises above or falls below Vcc and Vee.</p>
<p>Control will be provided by either a serial / parallel connection to the audio server PC, or from a &#8220;controller board&#8221; powered by a microcontroller.   I haven&#8217;t really figured out how complex I want to make the interface yet.   Control of the switch itself is fairly straight forward.   Two 74HC595 latching registers are daisy chained together, forming a sixteen bit register.   This register is used to provide the eight bits which tell the multiplexers which connections to make.  Each multiplexer has a two bit interface, A and B, which selects one of the four IO channels to be connected to the COM channel.   I selected the 4052 multiplexer which is internally divided into two sets of four channels each, ideal for stereo I thought.   So the first eight bits of my 595 register are connected to the eight control lines on the 4052&#8242;s.  Second, to provide a &#8220;hardware mute&#8221; or &#8220;output enable&#8221; feature, another four bits of my 595 register are connected to the /Inhibit (enable) control lines on the 4052&#8242;s.   This allows the output of each 4052 to be electrically disconnected from all the sources.  The final four bits of the register are used to power four &#8220;general purpose outputs&#8221;, perhaps to control relays, external indicators, whatever.  The control lines connecting to the GPO header have inline resistors, to limit current draw to a safe level, so not to damage the 595 in the event of a short or connection to an unsuitable load.  The four bits connected to the inhibit lines are also connected to four LEDs, so I can see which zones are active.</p>
<p>The 74HC4052 is an &#8220;analog&#8221; multiplexer, in that it allows voltages other than digital 1&#8242;s and 0&#8242;s to pass through.  It is also a bidirectional multiplexer, allowing current to flow in either direction.  This allows the multiplexer to handle the &#8220;AC&#8221; nature of an audio signal.  In order to allow a true bipolar sine wave to pass, the 4052 requires a dual rail voltage supply.   For simplicity, I will be using a five volt supply with positive and negative outputs.</p>
<p><a href="http://projects.dimension-x.net/pictures/audio/rev3-2_smt_bare.gif"><img src="/pictures/audio/rev3-2_smt_bare_sm.gif" alt="two layer pcb layout audio matrix switch" /></a></p>
<p>Here is the &#8216;bare&#8217; pcb layout, without the top and bottom pours rendered.   This is a composite, showing both the   top layer and bottom layer at the same time.  It&#8217;s easier to follow the traces this way I think.</p>
<p><a href="http://projects.dimension-x.net/pictures/audio/rev3-2_smt_filled.gif"><img src="/pictures/audio/rev3-2_smt_filled_sm.gif" alt="two layer pcb layout audio matrix switch" /></a></p>
<p>Adding in the ground planes or copper pours, it makes the board look mostly purple.   I tried to maximize the size of the pours, to help minimize any interference or crosstalk.  Although, at such low frequencies, I don&#8217;t really expect much trouble.</p>
<p><a href="http://projects.dimension-x.net/pictures/audio/rev3-2_smt_parts.gif"><img src="/pictures/audio/rev3-2_smt_parts_sm.gif" alt="pcb parts layout silkscreen audio matrix switch" /></a></p>
<p>Finally, the board with just the silkscreen or layout layer selected.   This again, is a composite, showing parts on both the top and bottom of the board, which makes it look like some of the parts are overlapped.</p>
<p>There is a lot more to come on this subject, but it will be a while.   Overall, this was just a fun project to draw, and hopefully one day it will actually get fabricated.   I need to figure out how complex I want the interface to be, and what options I have for interfacing with the audio server.</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/75/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Touch Sensing Building Blocks I</title>
		<link>http://projects.dimension-x.net/archives/73</link>
		<comments>http://projects.dimension-x.net/archives/73#comments</comments>
		<pubDate>Tue, 14 Mar 2006 03:11:37 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[Interface]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Sensor]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/73</guid>
		<description><![CDATA[Software development is nearing 'beta' status.]]></description>
			<content:encoded><![CDATA[<p>The &#8220;core&#8221; building-block I mentioned in my last post is nearing completion, at least, the software.</p>
<p>I have my microcontroller handling &#8220;switch emulation&#8221; tasks.   It can emulate either group of momentary switches or a group of toggle switches.   Response time is real good in a dimly lit room, and it works decently well even with the overhead fluorescents turned on.</p>
<p>Right now I&#8217;m working on a basic keypad PCB I can throw together, for a &#8216;proof of concept&#8217; prototype.   The first keypads will likely only support 6 keys, and I&#8217;ll build from there.  Six keys requires twelve LEDs, six of them need direct and discrete anode and cathode connection to the microcontroller.  The other six LEDs are providing bias light for the sensors to &#8220;see&#8221;.</p>
<p>I should have a video up tomorrow of the breadboard in action, and hopefully some pcb&#8217;s by next weekend.</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/73/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Water Filter Controller</title>
		<link>http://projects.dimension-x.net/archives/70</link>
		<comments>http://projects.dimension-x.net/archives/70#comments</comments>
		<pubDate>Mon, 06 Mar 2006 17:05:18 +0000</pubDate>
		<dc:creator>justDIY</dc:creator>
				<category><![CDATA[Control]]></category>
		<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Sensor]]></category>

		<guid isPermaLink="false">http://projects.dimension-x.net/archives/70</guid>
		<description><![CDATA[Oops!]]></description>
			<content:encoded><![CDATA[<p>The old adage &#8220;measure twice, cut once&#8221; has a realitve in the field of electronics engineering; &#8220;measure twice, design once&#8221; &#8230; ok, well maybe that&#8217;s a bit corny but anyway.</p>
<p>Turns out the controller I designed for my water filter is pretty much useles.  My filter&#8217;s pump is not the 12vdc that I imagined it to be, instead, it is 24vac.   So the two smt mosfets which I soldered to my pcb with generous amounts of solder, are not capable of switching AC.    Worse, I had planned to power the controller itself off the psu for the pump, so the 7805 vreg I&#8217;m using will not appericate AC on its input terminals either.</p>
<p>I plan to salvage this situation however&#8230; using relays, either mechanical or electronic, as well as a separate power supply.  So, I will use a ~12 volt unregulated supply to power a pair of mechanical relays, one for the pump, one for the valve, which in turn will be switched by the mosfets.   Or, I can desolder / destroy / jumper over the mosfets, and run a +5v control signal to my outputs, for control of a solid state relay.</p>
<p>I need to price out the cost of mechanical vs solid state &#8230;. probably solid state will win, I think I can build a triac based ssr for under $2.</p>
]]></content:encoded>
			<wfw:commentRss>http://projects.dimension-x.net/archives/70/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

