<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rustic Engineering</title>
	<atom:link href="https://rusticengineering.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://rusticengineering.wordpress.com</link>
	<description>My Mind working on...</description>
	<lastBuildDate>Mon, 27 Jan 2025 00:16:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rusticengineering.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>Rustic Engineering</title>
		<link>https://rusticengineering.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://rusticengineering.wordpress.com/osd.xml" title="Rustic Engineering" />
	<atom:link rel='hub' href='https://rusticengineering.wordpress.com/?pushpress=hub'/>
	<item>
		<title>After a long time… return and news</title>
		<link>https://rusticengineering.wordpress.com/2025/01/26/after-a-long-time-return-and-news/</link>
					<comments>https://rusticengineering.wordpress.com/2025/01/26/after-a-long-time-return-and-news/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Mon, 27 Jan 2025 00:14:33 +0000</pubDate>
				<category><![CDATA[news]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[rf design]]></category>
		<category><![CDATA[Atmega328p]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[Eagle]]></category>
		<category><![CDATA[entrepreneurship]]></category>
		<category><![CDATA[LP5951]]></category>
		<category><![CDATA[MAX1555]]></category>
		<category><![CDATA[MMA8452Q]]></category>
		<category><![CDATA[technology]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=324</guid>

					<description><![CDATA[Well, more than a decade has gone by since my last post&#8230; for unnumbered reasons, post here become less and less possible, maybe because in the same time, there&#8217;s a explosions of news electronics blogs and the star of YouTube dedicated channels about the theme. But my passion about electronics continues to grow and stay [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Well, more than a decade has gone by since my last post&#8230; for unnumbered reasons, post here become less and less possible, maybe because in the same time, there&#8217;s a explosions of news electronics blogs and the star of YouTube dedicated channels about the theme.</p>



<p>But my passion about electronics continues to grow and stay active. Now I want to come back here and share some experiences, projects and ideas.</p>



<p>I&#8217;ll try to show some of my developments and projects, and one of the almost finished ca be seen bellow:</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474.jpeg"><img data-attachment-id="331" data-permalink="https://rusticengineering.wordpress.com/img_1474-2/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474-edited.jpeg" data-orig-size="3024,1701" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;1.8&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 7&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1601134798&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;3.99&quot;,&quot;iso&quot;:&quot;80&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;,&quot;latitude&quot;:&quot;-20.311494444444&quot;,&quot;longitude&quot;:&quot;-40.302697222222&quot;}" data-image-title="IMG_1474" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474-edited.jpeg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474-edited.jpeg?w=700" src="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474-edited.jpeg" alt="" class="wp-image-331" /></a></figure></div>


<p>It&#8217;s an automatic rear bike lights. The prototype above was design at 2020, using Eagle yet (I&#8217;ve migrated all my projects to KiCad now). Im using an NXP accelerometer (MMA8452Q) and a Atmel MCU (Atmega328p) in this prototype and the things goes really well. There&#8217;s a LiPo battery charger with Maxim (Now Analog Devices) MAX1555 and 3.3V LDO with Texas LP5951. </p>



<figure class="wp-block-image size-large"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png"><img width="1024" height="453" data-attachment-id="332" data-permalink="https://rusticengineering.wordpress.com/2025/01/26/after-a-long-time-return-and-news/fase2/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png" data-orig-size="1066,472" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="fase2" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=700" src="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=1024" alt="" class="wp-image-332" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=1024 1024w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=768 768w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png 1066w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>The next post will be more detailed about the prototype design and what I have to change after the initial tests. The prototype already change a lot after 2020, and most of this devices are &#8220;<em>Not recommended for new designs</em>&#8221; parts, so I made a new design that will be in test in some days. So, it&#8217;s all new to me too.  </p>



<p>Another area of my interest for development is RF Design. In the last years, more and more affordable tools come to market to help this. My main work its with RF devices in some way, but I really like the small signals and transmitters/receivers designs. Here it&#8217;s a LNA &#8211; Low Noise Amplifier &#8211; test board for a FM broadcast receiver that I&#8217;m using to learn a lot about RF Design:</p>



<figure class="wp-block-image size-large"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg"><img width="1024" height="765" data-attachment-id="333" data-permalink="https://rusticengineering.wordpress.com/2025/01/26/after-a-long-time-return-and-news/img_2713/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg" data-orig-size="5712,4272" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;1.6&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 15&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1726862172&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;5.96&quot;,&quot;iso&quot;:&quot;160&quot;,&quot;shutter_speed&quot;:&quot;0.016666666666667&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;,&quot;latitude&quot;:&quot;-20.314608333333&quot;,&quot;longitude&quot;:&quot;-40.307644444444&quot;}" data-image-title="IMG_2713" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=700" src="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=1024" alt="" class="wp-image-333" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=1024 1024w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=2048 2048w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=768 768w, https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=1440 1440w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Thanks for your time reading this and I see you later. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2025/01/26/after-a-long-time-return-and-news/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_1474-edited.jpeg" medium="image" />

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/fase2.png?w=1024" medium="image" />

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2025/01/img_2713.jpeg?w=1024" medium="image" />
	</item>
		<item>
		<title>DorkbotPDX PCB Service</title>
		<link>https://rusticengineering.wordpress.com/2012/04/08/dorkbotpdx-pcb-service/</link>
					<comments>https://rusticengineering.wordpress.com/2012/04/08/dorkbotpdx-pcb-service/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Sun, 08 Apr 2012 16:24:10 +0000</pubDate>
				<category><![CDATA[OLED]]></category>
		<category><![CDATA[pcb]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=309</guid>

					<description><![CDATA[I send some pcb&#8217;s to DorkbotPDX PCB service and they arrives las week. See the picture above, with side by side comparison to BatchPCB board. I really like colors and the gold finish. Se result was great!]]></description>
										<content:encoded><![CDATA[<p>I send some pcb&#8217;s to DorkbotPDX PCB service and they arrives las week. See the picture above, with side by side comparison to BatchPCB board. </p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132147.jpg"><img src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132147.jpg" alt="20120408-132147.jpg" class="alignnone size-full" /></a></p>
<p>I really like colors and the gold finish. Se result was great!</p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132314.jpg"><img src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132314.jpg" alt="20120408-132314.jpg" class="alignnone size-full" /></a></p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132333.jpg"><img src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132333.jpg" alt="20120408-132333.jpg" class="alignnone size-full" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2012/04/08/dorkbotpdx-pcb-service/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132147.jpg" medium="image">
			<media:title type="html">20120408-132147.jpg</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132314.jpg" medium="image">
			<media:title type="html">20120408-132314.jpg</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/04/20120408-132333.jpg" medium="image">
			<media:title type="html">20120408-132333.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>ARM Development on Mac (with CrossWorks and STM32L-DISCOVERY)</title>
		<link>https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/</link>
					<comments>https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Mon, 23 Jan 2012 12:25:25 +0000</pubDate>
				<category><![CDATA[CrossWorks]]></category>
		<category><![CDATA[STM32]]></category>
		<category><![CDATA[ARM]]></category>
		<category><![CDATA[Cortex-M3]]></category>
		<category><![CDATA[STM32L]]></category>
		<category><![CDATA[STM32L-DISCOVERY]]></category>
		<category><![CDATA[STM32L152RBT6]]></category>
		<guid isPermaLink="false">http://rusticengineering.com/?p=264</guid>

					<description><![CDATA[Move to 32 bits ARM core Recently I moved my projects to 32 bits ARM way. After some time thinking about various platforms, I&#8217;ve decide to abandon any Windows based tool, and trying to work only with Mac, without Parallels Desktop. For small 8 or 16 bits PIC projects, I still use MPLABX. For ARM [&#8230;]]]></description>
										<content:encoded><![CDATA[<h3><strong>Move to 32 bits ARM core</strong></h3>
<p>Recently I moved my projects to 32 bits ARM way. After some time thinking about various platforms, I&#8217;ve decide to abandon any Windows based tool, and trying to work only with Mac, without Parallels Desktop. For small 8 or 16 bits PIC projects, I still use MPLABX. For ARM core I&#8217;ve decide to use STM32 series.</p>
<p>As development tool I&#8217;ve chosen Rowley CrossWorks. They have a reasonably price for non-commercial use ($150) and the most important, a Mac Os Lion version. I&#8217;ve also bought some STM32 boards, and in that post I&#8217;ll show my steps with one of them: <a href="http://www.st.com/internet/evalboard/product/250990.jsp" target="_blank">STM32L-DISCOVERY</a>. The other boards I also have are <a href="http://www.st.com/internet/evalboard/product/252419.jsp" target="_blank">STM32F4-DISCOVERY</a> and WaveShare Port103R (great board! post more later).</p>
<h3></h3>
<h3><strong>STM32L-DISCOVERY Development Board</strong></h3>
<p>The <a href="http://www.st.com/internet/evalboard/product/250990.jsp" target="_blank">STM32L-DISCOVERY</a> helps you to discover the STM32L ultra low power features and to develop and share your applications.</p>
<p>It is based on an STM32L152RBT6 and includes an ST-Link/V2 embedded debugging tool interface, a LCD (24 segments, 4 commons), LEDs, push buttons, a linear touch sensor or touch keys.</p>
<p>Recent version of Rowley CrossWorks for ARM added support for ST-Link/V2 programmers, so you can connect STM32L-DISCOVERY board directly to your Mac and start ARM developing.</p>
<p style="text-align:center;"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg"><img loading="lazy" data-attachment-id="302" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/stm32l-discovery-pinnout_web/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg" data-orig-size="2480,3070" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="STM32L-DISCOVERY pinnout" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=242" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=700" class="aligncenter  wp-image-302" title="STM32L-DISCOVERY pinnout" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=827" width="496" height="614" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=827 827w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=496 496w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=992 992w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=121 121w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=242 242w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=768 768w" sizes="(max-width: 496px) 100vw, 496px" /></a></p>
<h3><strong>Environment preparation steps</strong></h3>
<p>To work with STM32L-DISCOVERY board in CrossWorks, we&#8217;ll need to do some preparations:</p>
<ol>
<li>Install CrossWorks &#8220;STMicroelectronics STM32 CPU Support Package&#8221;:
<ul>
<li>Choose &#8220;<em>Tools</em>&#8221; menu, then &#8220;<em>Package Manager&#8230;</em>&#8220;</li>
<li>In search box, write &#8220;STM32 CPU Support&#8221;</li>
<li>Double click to change action to &#8220;Install&#8221;</li>
<li>Next</li>
<li>Next</li>
<li>Finish</li>
</ul>
</li>
<li>Install the &#8220;STM32L-DISCOVERY firmware package&#8221; (version 1.0.2):
<ul>
<li>You&#8217;ll need to download it from the ST website;</li>
<li>Unfortunately, ST doesn&#8217;t have a Mac friendly package. You will see that it&#8217;s a Windows &#8220;.exe&#8221; that install it under Program Files/STMicroelectronics directory.</li>
<li>But you&#8217;re lucky. I&#8217;ve already unpack it and share over my dropbox account. Click <a href="http://dl.dropbox.com/u/3935083/Electronic/STM32L_Discovery_Firmware_Pack_V1.0.2.zip">here</a> and unpack it on your CrossWorks projects directory.</li>
</ul>
</li>
</ol>
<h3></h3>
<h3><strong>CrossWorks project creation steps</strong></h3>
<ol>
<li>Creating  a new STM32 project:
<ul>
<li>Select menu &#8220;<em>File</em>&#8220;, then &#8220;<em>New Project</em>&#8221; menu item.</li>
<li>Select the &#8220;STMicroelectronics&#8221; from the Categories list.</li>
<li>Select the executable for STMicroelectronics STM32 from the Templates list.</li>
<li>Enter the name of your project: <em>AN3413-Current_consumption_touch_sensing</em></li>
<li>Enter the location of your project. Create a new folder under &#8220;<span style="color:#008000;">STM32L_Discovery_Firmware_Pack_V1.0.2/Projects/AN3413-Current_consumption_touch_sensing/CrossWorks/</span>&#8220;</li>
<li>Next</li>
<li>Select the Target Processor as <strong>STM32L152RB</strong>. You can finish it from here.</li>
<li>Next. Uncheck &#8220;<span style="color:#008000;">main.c</span>&#8221; (you don&#8217;t need that auto-generated file)</li>
<li>Finish</li>
</ul>
</li>
<li>Include Preprocessor Definitions
<ul>
<li>Select menu &#8220;<em>Project</em>&#8220;, then &#8220;<em>Properties…</em>&#8221; menu item. The Project Manager window appears.</li>
<li>Select View: Properties, Properties: All, Grouping: Categorize, Configuration: Common</li>
<li>Navigating on &#8220;<em>Settings:</em>&#8221; and find &#8220;<em>Preprocessor Options</em>&#8220;</li>
<li>In &#8220;<em>Preprocessor Definitions</em>&#8220;, include the following:
<ul>
<li><span style="color:#008000;">USE_STDPERIPH_DRIVER</span></li>
<li><span style="color:#008000;">STARTUP_FROM_RESET</span></li>
<li><span style="color:#008000;">STM32L15XXB_128</span></li>
<li><span style="color:#008000;"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg"><img loading="lazy" data-attachment-id="274" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/preprocessor/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg" data-orig-size="450,445" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Preprocessor" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=450" class="size-thumbnail wp-image-274 alignnone" title="Preprocessor" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=150" width="150" height="148" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></span></li>
</ul>
</li>
<li>Don&#8217;t close Project Manager window, yet.</li>
</ul>
</li>
<li>The &#8220;User Include Directories&#8221; uses project directory in path reference. Now we are going to include the various library include paths (.h):
<ul>
<li>In &#8220;<em>User Include Directories&#8221;</em>, include the following:
<ul>
<li><span style="color:#008000;">../inc</span></li>
<li><span style="color:#008000;">$(TargetsDir)/STM32/include</span></li>
<li><span style="color:#339966;">$(TargetsDir)/CMSIS_3/CMSIS/Include <em><span style="color:#000000;">(necessary after after STM32 Support Package 2.14, see <a href="http://www.rowleydownload.co.uk/arm/packages/index.htm?http://www.rowleydownload.co.uk/arm/packages/STM32.htm" target="_blank">release notes</a>)</span></em></span></li>
<li><span style="color:#008000;">../../../Libraries/STM32L1xx_StdPeriph_Driver/inc</span></li>
<li><span style="color:#008000;">../../../Libraries/STM32_TouchSensing_Driver/inc</span></li>
<li><span style="color:#008000;">../../../Utilities/STM32L-DISCOVERY</span></li>
<li><span style="color:#008000;"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg"><img loading="lazy" data-attachment-id="276" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/user_include/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg" data-orig-size="450,445" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="User Include" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=450" class="alignnone size-thumbnail wp-image-276" title="User Include" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=150" width="150" height="148" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=300 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></span></li>
</ul>
</li>
</ul>
</li>
<li>Go to Project Explorer to add the project source files (.c):
<ul>
<li>Expand the Project</li>
<li>Tap with two fingers in &#8220;Source Files&#8221;, chose &#8220;Add Existing file…&#8221;</li>
<li>Add the files:
<ul>
<li><span style="color:#008000;">main.c</span></li>
<li><span style="color:#008000;">discover_functions.c</span></li>
<li><span style="color:#008000;">icc_measure_Ram.c</span></li>
<li><span style="color:#008000;">icc_measure.c</span></li>
<li><span style="color:#008000;">stm32l1xx_it.c</span></li>
<li><span style="color:#008000;">system_stm32l1xx.c</span></li>
</ul>
</li>
<li>Create a &#8220;Utilities&#8221; folder under Project &#8216;AN3413-Current_consumption_touch_sensing&#8217; (Tap with two fingers and &#8220;New folder&#8230;&#8221;)</li>
<li>Make it a Dynamic folder (Tap with two fingers on &#8220;Utilities&#8221; folder, then &#8220;Dynamic folder&#8230;&#8221;)</li>
<li>In Directory, use &#8220;<span style="color:#008000;">../../../Utilities/STM32L-DISCOVERY</span>&#8221; (or navigate and find it on you STM32L_Discovery_Firmware_Pack_V1.0.2 folder)</li>
<li>Ok</li>
<li>Create a &#8220;<span style="color:#008000;">STM32L1xx_StdPeriph_Driver</span>&#8221; folder, make it Dynamic, point it to &#8220;<span style="color:#008000;">../../../Libraries/STM32L1xx_StdPeriph_Driver/src/</span>&#8220;</li>
<li>Create a &#8220;<span style="color:#008000;">STM32_TouchSensing_Driver</span>&#8221; folder, make it Dynamic, point it to &#8220;<span style="color:#008000;">../../../Libraries/STM32_TouchSensing_Driver/src/</span>&#8220;</li>
<li>Your project Items need to look like this (&#8220;<span style="color:#008000;">System Files</span>&#8221; folder is automatically added):</li>
</ul>
</li>
</ol>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg"><img loading="lazy" data-attachment-id="269" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/project_items/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg" data-orig-size="562,258" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Project items" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg?w=562" class="aligncenter size-full wp-image-269" title="Project items" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg" width="490" height="224" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg?w=490&amp;h=225 490w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg?w=150&amp;h=69 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg?w=300&amp;h=138 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg 562w" sizes="(max-width: 490px) 100vw, 490px" /></a></p>
<h3></h3>
<h3><strong>Compiling steps</strong></h3>
<p>At this point we can build that solution. Click on &#8220;<em>Build</em>&#8221; menu, then &#8220;<em>Build AN3413-Current…</em>&#8221; . You&#8217;ll see a little devil error like that:</p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg"><img loading="lazy" data-attachment-id="270" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/failed_build_1/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg" data-orig-size="691,243" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Build errors" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg?w=691" class="aligncenter size-full wp-image-270" title="Build errors" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg" width="490" height="172" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg?w=490&amp;h=172 490w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg?w=150&amp;h=53 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg?w=300&amp;h=105 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg 691w" sizes="(max-width: 490px) 100vw, 490px" /></a></p>
<p>Well, one fix at time. Let&#8217;s start with the message:</p>
<p><strong></strong> <strong><span style="color:#ff0000;">&#8211; THUMB Debug/AN3413-Current_consumption_touch_sensing.elf section `.DataFlash&#8217; will not fit in region `UNPLACED_SECTIONS&#8217;</span></strong></p>
<p><strong><span style="color:#ff0000;">&#8212; region `UNPLACED_SECTIONS&#8217; overflowed by 2 bytes</span></strong></p>
<p>There&#8217;s nothing about &#8220;<span style="color:#ff0000;"><em>UNPLACED_SECTIONS</em></span>&#8221; under CrossWorks for ARM Reference manual, so I&#8217;ve been opened a trouble ticket for CrossWorks support team. They are very smart and always catch what you need (if you provide them all the details).</p>
<p>According to support, the variable is being placed in a &#8220;<em>.DataFlash</em>&#8221; section which needs to be allocated into the EEPROM segment. &#8220;<span style="color:#ff0000;"><em>UNPLACED_SECTIONS</em></span>&#8221; exists to catch errors when sections haven&#8217;t been placed. (Thank&#8217;s Michael Johnson from Rowley!).</p>
<p>And, if you look at Symbol Browser (&#8220;<em>Tools</em>&#8221; menu) you&#8217;ll find the &#8220;<em>.DataFlash</em>&#8221; 2 bytes section on the range:</p>
<pre><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg"><img loading="lazy" data-attachment-id="278" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/symbol_browser/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg" data-orig-size="558,176" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Symbol Browser" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg?w=558" class="aligncenter size-full wp-image-278" title="Symbol Browser" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg" width="490" height="154" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg?w=490&amp;h=155 490w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg?w=150&amp;h=47 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg?w=300&amp;h=95 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg 558w" sizes="(max-width: 490px) 100vw, 490px" /></a></pre>
<p>Reading STM32L152RB <a href="http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00277537.pdf" target="_blank">datasheet</a>, in the memory map section it confirms it&#8217;s the EEPROM region, so they are right. But that ugly name &#8220;<em>.DataFlash</em>&#8221; makes me believe that it&#8217;s Flash Memory related. Bad name, bad name…</p>
<p>They told me how to initialize it:</p>
<ul>
<li>Tap two fingers in Project &#8216;AN3413-Current_consumption_touch_sensing&#8217; and select &#8220;<em>Import Section Placement</em>&#8221; to get a project local copy of the section placement file &#8220;<span style="color:#008000;">flash_placement.xml</span>&#8220;.</li>
<li>Tap two fingers on file &#8220;<span style="color:#008000;">flash_placement.xml</span>&#8221; and select &#8220;<em>Open With</em>&#8221; then &#8220;<em>Code Editor</em>&#8220;.</li>
</ul>
<p>Add a new segment:</p>
<pre><span style="color:#0000ff;">&lt;MemorySegment name="EEPROM" &gt;</span>
<span style="color:#0000ff;"> &lt;ProgramSection alignment="4" load="No" name=".DataFlash" /&gt;</span>
<span style="color:#0000ff;">&lt;/MemorySegment&gt;</span></pre>
<p>After that, your file looks like that:</p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg"><img loading="lazy" data-attachment-id="291" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/flash_placement_xml/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg" data-orig-size="666,135" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="flash_placement_xml" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg?w=666" class="aligncenter size-full wp-image-291" title="flash_placement_xml" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg" width="666" height="135" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg 666w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg?w=150&amp;h=30 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg?w=300&amp;h=61 300w" sizes="(max-width: 666px) 100vw, 666px" /></a></p>
<p>Let&#8217;s work on the rest errors:</p>
<p><strong></strong> <strong><span style="color:#ff0000;">&#8211; THUMB Debug/stm32l15x_tsl_ct_acquisition.o: In function `TSL_IO_Acquisition_P1&#8242;:</span> </strong></p>
<p><strong></strong><strong><span style="color:#ff0000;">&#8212; undefined reference to `__TSL_wait_CLWHTA&#8217;</span> </strong></p>
<p><strong><span style="color:#ff0000;">&#8212; undefined reference to `__TSL_wait_CLWLTA&#8217;</span></strong></p>
<p>A double click in that lines let you go to &#8220;<span style="color:#008000;">stm32l15x_tsl_ct_acquisition.c</span>&#8221; source file, from STM32_TouchSensing_Driver. Let&#8217;s do a search on it, looking for &#8220;<span style="color:#008000;">__TSL_wait_CLWHTA</span>&#8220;, and you&#8217;ll find the follow piece of code:</p>
<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg"><img loading="lazy" data-attachment-id="289" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/tsl_function/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg" data-orig-size="474,128" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Search results" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg?w=474" class="aligncenter size-full wp-image-289" title="Search results" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg" width="474" height="128" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg 474w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg?w=150&amp;h=41 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg?w=300&amp;h=81 300w" sizes="(max-width: 474px) 100vw, 474px" /></a></p>
<p>So, your problem is here: &#8220;__INLINE&#8221; isn&#8217;t supported by CrossWorks. Remove only the &#8220;__INLINE&#8221; and repeat it for &#8220;<span style="color:#008000;">__TSL_wait_CLWLTA</span>&#8221; function. Now, Clean and Rebuild the entire solution. That&#8217;s it! Compile Ok!</p>
<h3></h3>
<h3><strong>Running it on board!</strong></h3>
<p>Connect the STM32L-DISCOVERY board to your Mac.</p>
<ul>
<li>Select &#8220;<em>Target</em>&#8220;, &#8220;<em>Connect…</em>&#8220;, then select ST/LINK-V2;</li>
<li>In Properties Window, select &#8220;<span style="color:#008000;"><em>Target Interface Type: </em></span><span style="color:#008000;"><em>SWD</em></span>&#8220;;</li>
<li>Target, Download it to board and see… it&#8217;s works!</li>
</ul>
<div>Here you see my results:</div>
<div></div>
<div>
<p><div data-shortcode="caption" id="attachment_292" style="width: 236px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif"><img aria-describedby="caption-attachment-292" loading="lazy" data-attachment-id="292" data-permalink="https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/gif_shop/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif" data-orig-size="226,300" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="STM32L GIF" data-image-description="" data-image-caption="&lt;p&gt;AN3413 Running!&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif?w=226" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif?w=226" class="size-full wp-image-292" title="STM32L GIF" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif" width="226" height="300" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif 226w, https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif?w=113&amp;h=150 113w" sizes="(max-width: 226px) 100vw, 226px" /></a><p id="caption-attachment-292" class="wp-caption-text">AN3413 Running!</p></div></p>
</div>
<h3><strong>Some comments </strong></h3>
<p>If you want my entire project files, you download it on my <a href="http://rusticengineering.com/downloads/" target="_blank">downloads</a> page. Unpack it under your CrossWorks project directory. These files contains all my entire folder.</p>
<p>Next post I&#8217;ll show how to compiling the other example, <a href="http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/DM00035957.pdf" target="_blank">AN3964-Temperature_sensor</a>.</p>
<p>Thanks!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2012/01/23/arm-development-on-mac-with-crossworks-and-stm32l-discovery/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/stm32l-discovery-pinnout_web.jpg?w=827" medium="image">
			<media:title type="html">STM32L-DISCOVERY pinnout</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/preprocessor.jpg?w=150" medium="image">
			<media:title type="html">Preprocessor</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/user_include.jpg?w=150" medium="image">
			<media:title type="html">User Include</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/project_items.jpg" medium="image">
			<media:title type="html">Project items</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/failed_build_1.jpg" medium="image">
			<media:title type="html">Build errors</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/symbol_browser.jpg" medium="image">
			<media:title type="html">Symbol Browser</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/flash_placement_xml.jpg" medium="image">
			<media:title type="html">flash_placement_xml</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/tsl_function.jpg" medium="image">
			<media:title type="html">Search results</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2012/01/gif_shop.gif" medium="image">
			<media:title type="html">STM32L GIF</media:title>
		</media:content>
	</item>
		<item>
		<title>Transformerless Power Supplies (design)</title>
		<link>https://rusticengineering.wordpress.com/2011/07/19/transformerless-power-supplies-design/</link>
					<comments>https://rusticengineering.wordpress.com/2011/07/19/transformerless-power-supplies-design/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Tue, 19 Jul 2011 18:45:05 +0000</pubDate>
				<category><![CDATA[engineering]]></category>
		<category><![CDATA[power]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[simulation]]></category>
		<category><![CDATA[SPICE]]></category>
		<category><![CDATA[transformerless]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=254</guid>

					<description><![CDATA[One thing that all us need know is that the project power requirements not only besides on efficiency and quality. Efficiency and quality are subjective terms and you (like me) break and open some market products, you&#8217;ll found some really dirty way to power up a electronic device. Well, with that in mind I&#8217;m working [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>One thing that all us need know is that the project power requirements not only besides on efficiency and quality. Efficiency and quality are subjective terms and you (like me) break and open some market products, you&#8217;ll found some really dirty way to power up a electronic device.</p>
<p>Well, with that in mind I&#8217;m working in power my Samsung Infrared Decoder with a transformerless power supply. Transformerless Power Supplies, instead of use regular transformer-rectifier circuit or switched power circuitry, use direct coupling of AC line to passive components, like resistors and capacitors, to obtain a desired voltage. Yes, it&#8217;s a very dangerous idea, but you can control it and minimize risks too.</p>
<p>Some projects are really cheaper, and don&#8217;t require much power. Think in a microcontroller circuit that do the following things:</p>
<ul>
<li>Wake-up from sleeping;</li>
<li>Reading temperature (ADC);</li>
<li>Transmit it (802.3.15.4);</li>
<li>Return to sleep;</li>
</ul>
<p>These steps doesn&#8217;t require more that 20mA (aprox), and most market components are cheaper. But if you want to really make this cheaper and smaller, a transformer/wall adapter supply it&#8217;s a big monster. The bad news is that transformerless power supplies, not only are dangerous but less current capable of other supplies. If you need more than a few mA, your circuit will be exposed to a great risk.</p>
<p>The two basic types of transformerless power supplies are resistive and capacitive. You can view nice example after Google it. My idea it&#8217;s use a capacitive version. My circuit simulation is based on bellow (ignore V2 for now, I&#8217;ll explain it later):</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/sets/72157627230985234/"><img title="Capacitive Transformerless Power Supply" src="https://i0.wp.com/farm7.static.flickr.com/6126/5954159622_f63b1107df.jpg" alt="" width="500" height="220" /></a><p class="wp-caption-text">Capacitive Transformerless Power Supply</p></div></p>
<p>The main rule to keep in mind is that &#8220;<strong>R1</strong>&#8221; and &#8220;<strong>XC1</strong>&#8221; (capacitive reactance) are the only input current limiters. So, more current, need other values. The other rule is to keep the supply working: keep output current requirements less than input current calculated. See:</p>
<p><img class="aligncenter" title="equation 1" src="http://latex.codecogs.com/gif.latex?I_{in}=\frac{V_{HalfWave_{RMS}}}{X_{C_{1}}&amp;plus;R_{1}}" alt="" width="151" height="42" /></p>
<p style="text-align:center;"><img class="aligncenter" title="equation 2" src="http://latex.codecogs.com/gif.latex?I_{in}\geq I_{out}" alt="" width="70" height="17" /></p>
<p style="text-align:left;">We need to resolve the input voltage in terms of RMS (Root Mean Square) value. The voltage is the RMS value of a half-wave, because D2 rectifies it. So:</p>
<p style="text-align:center;"><img class="aligncenter" title="equation 3" src="http://latex.codecogs.com/gif.latex?\bg_white&amp;space;V_{HalfWave_{RMS}}=\frac{V_{Peak}-V_{Z}}{2}=\frac{\sqrt{2}V_{RMS}-V_{Z}}{2}" alt="" width="352" height="41" /></p>
<p>Put all it together to resolve:</p>
<p><img class="aligncenter" title="final equation" src="http://latex.codecogs.com/gif.latex?\bg_white&amp;space;I_{in}=\frac{\sqrt{2}V_{RMS}-V_{Z}}{2\left&amp;space;(&amp;space;\frac{1}{2\pi&amp;space;fC_{1}}&amp;plus;R_{1}&amp;space;\right&amp;space;)}" alt="" width="165" height="59" /></p>
<p>I&#8217;ve chosen values to meet approximately 5V@20mA. The RMS voltage value in Brazil is 127V. The frequency is 60Hz. The zener used have 5.1V drop across.</p>
<p>For circuit simulation I&#8217;ve used <a href="http://www.macspice.com/" target="_blank">MacSpice</a>, a great Berkeley Spice 3f5 clone. In this circuit you view another voltage source (V2) with zero voltage output. That&#8217;s a way to measure output current on transient analysis on Spice. You can download my circuit file for run your own simulation <a href="http://dl.dropbox.com/u/3935083/Electronic/supply.cir" target="_blank">here</a>. The results are:</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/sets/72157627230985234/"><img title="SPICE tran analysis (Vout)" src="https://i0.wp.com/farm7.static.flickr.com/6139/5954159854_9efc901b06.jpg" alt="" width="500" height="329" /></a><p class="wp-caption-text">SPICE tran analysis (Vout)</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/sets/72157627230985234/"><img title="SPICE tran analysis (Iout)" src="https://i0.wp.com/farm7.static.flickr.com/6128/5953602113_a7d500e550.jpg" alt="" width="500" height="329" /></a><p class="wp-caption-text">SPICE tran analysis (Iout)</p></div></p>
<p>The voltage drop on zener diode and common diode D2 is determinant for output voltage. In really, I never reach desired 5V output because of voltage drop across D2. But it&#8217;s ok, most modern microcontrollers operate on a wide range of voltages. The output voltage is given by:</p>
<p><img class="aligncenter" title="output equation" src="http://latex.codecogs.com/gif.latex?\bg_white&amp;space;V_{out}=V_{Z}-V_{D_{2}}" alt="" width="123" height="18" /></p>
<p>The next step is test a real circuit with real load. So long I&#8217;ve news, I&#8217;ll post them here.</p>
<p>Remember again that transformerless power supplies are naturally unsafety. After decide make that circuit, and finish it, you have in your hands live AC voltage very close to low power electronics, with is a great danger. <strong>Stay as advised</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/07/19/transformerless-power-supplies-design/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6126/5954159622_f63b1107df.jpg" medium="image">
			<media:title type="html">Capacitive Transformerless Power Supply</media:title>
		</media:content>

		<media:content url="http://latex.codecogs.com/gif.latex?I_in=fracV_HalfWave_RMSX_C_1&#038;plus;R_1" medium="image">
			<media:title type="html">equation 1</media:title>
		</media:content>

		<media:content url="http://latex.codecogs.com/gif.latex?I_ingeq%20I_out" medium="image">
			<media:title type="html">equation 2</media:title>
		</media:content>

		<media:content url="http://latex.codecogs.com/gif.latex?bg_white&#038;space;V_HalfWave_RMS=fracV_Peak-V_Z2=fracsqrt2V_RMS-V_Z2" medium="image">
			<media:title type="html">equation 3</media:title>
		</media:content>

		<media:content url="http://latex.codecogs.com/gif.latex?bg_white&#038;space;I_in=fracsqrt2V_RMS-V_Z2left&#038;space;(&#038;space;frac12pi&#038;space;fC_1&#038;plus;R_1&#038;space;right&#038;space;)" medium="image">
			<media:title type="html">final equation</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6139/5954159854_9efc901b06.jpg" medium="image">
			<media:title type="html">SPICE tran analysis (Vout)</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6128/5953602113_a7d500e550.jpg" medium="image">
			<media:title type="html">SPICE tran analysis (Iout)</media:title>
		</media:content>

		<media:content url="http://latex.codecogs.com/gif.latex?bg_white&#038;space;V_out=V_Z-V_D_2" medium="image">
			<media:title type="html">output equation</media:title>
		</media:content>
	</item>
		<item>
		<title>Infrared Room Control (Samsung IR protocol) Code</title>
		<link>https://rusticengineering.wordpress.com/2011/06/23/infrared-room-control-samsung-ir-protocol-code/</link>
					<comments>https://rusticengineering.wordpress.com/2011/06/23/infrared-room-control-samsung-ir-protocol-code/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Thu, 23 Jun 2011 17:35:30 +0000</pubDate>
				<category><![CDATA[electronic]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[C18]]></category>
		<category><![CDATA[infrared]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[PIC18F2520]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[TSOP]]></category>
		<category><![CDATA[TSOP2236]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=246</guid>

					<description><![CDATA[Well, I can&#8217;t finish the PCB for this project yet (I&#8217;m planning make it with a Transformerless Power Supply), but I&#8217;m posting the Microchip C18 code for all that want work with this protocol. Please, visit my download page. Bye.]]></description>
										<content:encoded><![CDATA[<p>Well, I can&#8217;t finish the PCB for this project yet (I&#8217;m planning make it with a Transformerless Power Supply), but I&#8217;m posting the Microchip C18 code for all that want work with this protocol.</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/sets/72157625880713611/"><img title="Samsung Infrared Decoder" src="https://i0.wp.com/farm6.static.flickr.com/5253/5429202822_2152a12327.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">The on breadboard... yet</p></div></p>
<p>Please, visit my <a href="https://rusticengineering.wordpress.com/downloads/" target="_blank">download</a> page.</p>
<p>Bye.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/06/23/infrared-room-control-samsung-ir-protocol-code/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5253/5429202822_2152a12327.jpg" medium="image">
			<media:title type="html">Samsung Infrared Decoder</media:title>
		</media:content>
	</item>
		<item>
		<title>New Hakko tips</title>
		<link>https://rusticengineering.wordpress.com/2011/06/16/new-hakko-tips/</link>
					<comments>https://rusticengineering.wordpress.com/2011/06/16/new-hakko-tips/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Thu, 16 Jun 2011 21:08:51 +0000</pubDate>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Hakko]]></category>
		<category><![CDATA[solder]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/2011/06/16/new-hakko-tips/</guid>

					<description><![CDATA[I&#8217;m receive today my new set of Hakko tips. I bought them from eBay and are very handy. The set consists in: 3 x 900M-T-I 2 x 900M-2.4D 2 x 900M-3C 1 x 900M-3.2D]]></description>
										<content:encoded><![CDATA[<p><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/06/20110616-060530.jpg"><img src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/06/20110616-060530.jpg" alt="20110616-060530.jpg" class="alignnone size-full" /></a></p>
<p>I&#8217;m receive today my new set of Hakko tips. I bought them from eBay and are very handy. The set consists in:</p>
<p>3 x 900M-T-I<br />
2 x 900M-2.4D<br />
2 x 900M-3C<br />
1 x 900M-3.2D</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/06/16/new-hakko-tips/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/06/20110616-060530.jpg" medium="image">
			<media:title type="html">20110616-060530.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Infrared Room Control (with Samsung IR protocol)</title>
		<link>https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/</link>
					<comments>https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Wed, 09 Feb 2011 00:40:53 +0000</pubDate>
				<category><![CDATA[hack's]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[C18]]></category>
		<category><![CDATA[EEPROM]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[PIC18F2520]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[TSOP]]></category>
		<category><![CDATA[TSOP2236]]></category>
		<category><![CDATA[TV]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=210</guid>

					<description><![CDATA[I had ear some time ago that laziness sometimes is the best thing for inspiration. That week I discover that&#8217;s true.  Some nights,  I  lay on my bed to watch some thing on TV and doing some electronic research, before sleep. And, I don&#8217;t like to put off the lights (effficient ilumination is the best [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I had ear some time ago that laziness sometimes is the best thing for inspiration. That week I discover that&#8217;s true.  Some nights,  I  lay on my bed to watch some thing on TV and doing some electronic research, before sleep. And, I don&#8217;t like to put off the lights (effficient ilumination is the best friend for a good reading) . Then, obviously, before sleep, I need to stand up to turn lights off. At my side, on bed, always resides a great remote control TV, with a set of unused buttons, telling &#8220;<em>use us to turn the lights off</em>&#8220;.</p>
<p><div style="width: 410px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5429408998/in/photostream/" target="_blank"><img class=" " title="My remote" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5295/5429408998_f917875c4d.jpg" width="400" height="250" /></a><p class="wp-caption-text">My remote</p></div></p>
<p>That&#8217;s a project that I was retarding because other, but now I decide to initiate and finish it.</p>
<p><strong>The Basic Idea</strong></p>
<p>The first step is recognize what my remote control is send to TV. It&#8217;s a Samsung remote control, with TV, VCR, DVD and STB specific and shared functions. My basic idea is: use some of this unused buttons to turn the lighst ON and OFF. But, why not dimmer the lamp? Why not doing some other useful thing? (Yes, thats because some projects growing up&#8230;)</p>
<p>So, the basic idea now is:</p>
<ul>
<li>Make a device that recognize when a command is addressed to it self or not;</li>
<li>Recognize different commands;</li>
<li>Save usuful states (dimmer regulation);</li>
</ul>
<p><strong>Samsung Protocol</strong></p>
<p>The Internet has a lot of information about RC5, NEC and Sony IR protocols, but not the same for Samsung. After some search at Google, I found this <a href="http://www.techdesign.be/projects/011/011_waves.htm" target="_blank">usefull page </a>with some information about Samsung IR protocol. Resuming Samsung protocol:</p>
<ul>
<li>37.9KHz carrier wave (ON state is a burst of carrier with some duration, OFF is absense of it);</li>
<li>1 Start bit (4.5ms ON, and 4.5ms OFF);</li>
<li>32 data bits stream (data + address?);</li>
<li>bit &#8220;1&#8221; (590μs ON, 1690μs OFF) <em>(thanks to <strong>Islam qabel</strong>,  for the more precise bit duration)</em>;</li>
<li>bit &#8220;0&#8221; (590μs ON, 590μs OFF);</li>
<li>1 Stop bit (590μs ON, 590μs OFF);</li>
</ul>
<p>I think that more information only with a test.</p>
<p><strong>Test Circuit</strong></p>
<p>The test circuit is very simple, consisting on a IR receiver (with filter, carrier demodulation and output). My only device available at home is a TSOP2236. Well, let&#8217;s go see what hapens.</p>
<p>TSOP2236 is a dedicated IR receiver with PIN diode and preamplifier, assembled on lead frame. The epoxy<br />
package is designed as IR filter, to improve sensibility. The demodulated output signal can directly be<br />
decoded by a microprocessor, but it&#8217;s logical reversed:</p>
<ul>
<li>ON state (carrier presence): TSOP output LOW;</li>
<li>OFF state (carrier absence): TSOP output HIGH;</li>
</ul>
<p>To make measures and confirm my suspects, I had use my <a href="http://www.saleae.com/logic/" target="_blank">Logic Analyzer</a> from Saleae on the follow circuit:</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5429093774/"><img title="Simple Test Circuit" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5100/5429093774_975a904f24.jpg" width="500" height="324" /></a><p class="wp-caption-text">Test Circuit</p></div></p>
<p>That&#8217;s the results for press button &#8220;1&#8221;:</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5429065354/in/photostream/"><img title="Received data" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5180/5429065354_eabe96848a.jpg" width="500" height="45" /></a><p class="wp-caption-text">Received data after pressing &#8220;button 1&#8221; on remote</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5428463429/in/photostream/"><img title="Button 1 signal stream" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5052/5428463429_aa1102ab21.jpg" width="500" height="21" /></a><p class="wp-caption-text">Signal stream</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5429065698/in/photostream/"><img title="Start bit identification (9ms total)" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5093/5429065698_2d54295126.jpg" width="500" height="104" /></a><p class="wp-caption-text">Start bit identification (9ms total)</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5428463735/in/photostream/" target="_blank"><img class=" " title="Bit &quot;1&quot; representation " alt="" src="https://i0.wp.com/farm6.static.flickr.com/5216/5428463735_3f975579a6.jpg" width="500" height="102" /></a><p class="wp-caption-text">Bit &#8220;1&#8221; representation</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><img class=" " title="Bit &quot;0&quot; representation" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5140/5429066932_ee100b13df.jpg" width="500" height="103" /><p class="wp-caption-text">Bit &#8220;0&#8221; representation</p></div></p>
<p>The process to gathering all this information is very easy with Logic Analyzer. The measured times differs a little bit, but this isn&#8217;t a problem. I count the transitions after the START bit and there&#8217;s 32 bits in.</p>
<p>Look again at the sequence of high and down states. Remember that we have a reversed version of the original IR wave from remote, because TSOP OUT signal is inverted. But actually it&#8217;s really doesn&#8217;t matter. What I need is: pressing &#8220;1&#8221; differs from pressing &#8220;2&#8221; or other buttons on remote. I don&#8217;t wanna to create a compatible device.</p>
<p><strong>Decoding the data stream</strong></p>
<p>To decode the data stream I used a PIC18F2520 MCU. I already has working on 16bits and 32bits MCU, but this project is much simple to require a great MCU. My design goals are:</p>
<ul>
<li>Use internal clock (8Mhz, Instructiom Time TCy = 4/8MHz = 500ns);</li>
<li>Use Timer0 as counter with 1us increment (Timer0 prescaler to 1:2);</li>
<li>Use External Interrup 0 (INT0) to handle incoming IR waves and get the building IR code (final version);</li>
</ul>
<p>That&#8217;s the circuit:</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5429202822/" target="_blank"><img class=" " title="Decoding Test Circuit" alt="" src="https://i0.wp.com/farm6.static.flickr.com/5253/5429202822_2152a12327.jpg" width="500" height="375" /></a><p class="wp-caption-text">Decoding Test Circuit</p></div></p>
<p><strong>Coding</strong></p>
<p>The code (for Microchip C18 compiler) consist in a set of functions to detect when the signal change it&#8217;s state from DOWN to UP or UP to DOWN. See the sequence (basic):</p>
<p><div data-shortcode="caption" id="attachment_220" style="width: 638px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png" target="_blank"><img aria-describedby="caption-attachment-220" loading="lazy" data-attachment-id="220" data-permalink="https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/ir-logic/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png" data-orig-size="648,1056" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Basic Algorithm" data-image-description="" data-image-caption="&lt;p&gt;Basic Algorithm&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=184" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=628" class="size-large wp-image-220  " title="Basic Algorithm" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=628" width="502" height="819" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=502 502w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=92 92w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=184 184w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png 648w" sizes="(max-width: 502px) 100vw, 502px" /></a><p id="caption-attachment-220" class="wp-caption-text">Basic Algorithm</p></div></p>
<p>Note that for data bit identification, only HIGH time is important. It&#8217;s the difference between logic &#8220;1&#8221; and &#8220;0&#8221;, so you don&#8217;t need to be very precise in that differentiation. The red right program branch, needs to run 32 times, for all 32 bits.</p>
<p><strong>I get&#8230;</strong></p>
<p>The test was a success! After all, I have a 32bits unique data, that contains (probably) a Address Part and a Data Part. Again, I don&#8217;t worry about what is address or data. Only need unique 32 bits codes. If address part repeats (because you are send codes to one device), data should be unique. Ok to me.</p>
<p>The stream is read as it is delivered from TSOP to MCU, from left to right (START BIT to right). I&#8217;m considering from LSB to MSB, so when you see the analyzer stream signal, you are viewing the reversed version. See:</p>
<p><div data-shortcode="caption" id="attachment_223" style="width: 710px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png" target="_blank"><img aria-describedby="caption-attachment-223" loading="lazy" data-attachment-id="223" data-permalink="https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/ir-data-stream/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png" data-orig-size="1216,138" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="IR Data Stream Mapping" data-image-description="" data-image-caption="&lt;p&gt;IR Data Stream Mapping&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=700" class="size-large wp-image-223  " title="IR Data Stream Mapping" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=1024" width="922" height="104" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=1024 1024w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=922 922w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=768 768w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png 1216w" sizes="(max-width: 922px) 100vw, 922px" /></a><p id="caption-attachment-223" class="wp-caption-text">IR Data Stream Mapping</p></div></p>
<p>After some nights adjusting some things, the code works great!  I&#8217;ll publish it here in the next week.</p>
<p>As I think, some codes changes if you are using TV, DVD, VCR or STB buttons. See the codes for VCR function:</p>
<p><div data-shortcode="caption" id="attachment_227" style="width: 329px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png"><img aria-describedby="caption-attachment-227" loading="lazy" data-attachment-id="227" data-permalink="https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/sheet/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png" data-orig-size="319,214" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Some codes" data-image-description="" data-image-caption="&lt;p&gt;Some codes&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png?w=319" class="size-full wp-image-227" title="Some codes" alt="" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png" width="319" height="214" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png 319w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png?w=150&amp;h=101 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png?w=300&amp;h=201 300w" sizes="(max-width: 319px) 100vw, 319px" /></a><p id="caption-attachment-227" class="wp-caption-text">Some codes</p></div></p>
<p>If you observe the first pictures, about button &#8220;1&#8221; stream, you can see the sequence of 1110000 (reverse order, 0x07).</p>
<p><strong>Proof of concept</strong></p>
<p>To test my concept, I programing the device to waiting VCR signal functions (ended with &#8230;.0505) as you can see:</p>
<ul>
<li>Buttons 1,2 and 3 turn ON color RED, GREEN and BLUE;</li>
<li>Buttons 4,5 and 6 turn OFF color RED, GREEN and BLUE;</li>
<li>Button 9 turn ALL ON;</li>
<li>Button 0 turn ALL OFF;</li>
<li>VOLUME+ increase LED power (PWM duty cycle);</li>
<li>VOLUME- decrease LED power (PWM duty cycle);</li>
</ul>
<p>See my video:</p>
<p><iframe class="youtube-player" width="700" height="394" src="https://www.youtube.com/embed/HDvucBqReSA?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox"></iframe></p>
<p><strong>Next Step</strong></p>
<p>Now I need to design a transformerless power supply and the power control circuitry (TRIAC, etc) to control the real lights. Some nice ideas to next version:</p>
<ul>
<li>Store dimming states on internal PIC EEPROM, so you can save desired conditions every time;</li>
<li>TV Remote now can act in others projects too (robots, toys, other home automation, etc);</li>
<li>With a small LCD, create a small menu, some configuration options, to more advanced projects;</li>
</ul>
<p>I hope yours enjoy this project. From the first paper to here, I took one week to get it working properly. In a few weeks, I&#8217;ll share all the files here, in downloads page. Thank&#8217;s!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/02/09/infrared-room-control-with-samsung-ir-protocol/feed/</wfw:commentRss>
			<slash:comments>37</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5295/5429408998_f917875c4d.jpg" medium="image">
			<media:title type="html">My remote</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5100/5429093774_975a904f24.jpg" medium="image">
			<media:title type="html">Simple Test Circuit</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5180/5429065354_eabe96848a.jpg" medium="image">
			<media:title type="html">Received data</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5052/5428463429_aa1102ab21.jpg" medium="image">
			<media:title type="html">Button 1 signal stream</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5093/5429065698_2d54295126.jpg" medium="image">
			<media:title type="html">Start bit identification (9ms total)</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5216/5428463735_3f975579a6.jpg" medium="image">
			<media:title type="html">Bit &#034;1&#034; representation </media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5140/5429066932_ee100b13df.jpg" medium="image">
			<media:title type="html">Bit &#034;0&#034; representation</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5253/5429202822_2152a12327.jpg" medium="image">
			<media:title type="html">Decoding Test Circuit</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-logic.png?w=628" medium="image">
			<media:title type="html">Basic Algorithm</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/ir-data-stream.png?w=1024" medium="image">
			<media:title type="html">IR Data Stream Mapping</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/02/sheet.png" medium="image">
			<media:title type="html">Some codes</media:title>
		</media:content>
	</item>
		<item>
		<title>Microchip MicroStick review</title>
		<link>https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/</link>
					<comments>https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Mon, 31 Jan 2011 15:47:19 +0000</pubDate>
				<category><![CDATA[reviews]]></category>
		<category><![CDATA[dsPIC33FJ64MC802]]></category>
		<category><![CDATA[Microchip]]></category>
		<category><![CDATA[MicroStick]]></category>
		<category><![CDATA[PIC24HJ128GP502]]></category>
		<category><![CDATA[PIC24HJ64GP502]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=196</guid>

					<description><![CDATA[In 2010 year end, Microchip present to us the Microstick for dsPIC33F and PIC24H Development Board. The device is very portable, beauty, and Microchip list interesting features (from Microchip website): Low Cost – Priced at $24.99 at Microchip Direct Integrated USB programmer / debugger – No external debugger required USB Powered – Ease of use, No external power [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In 2010 year end, Microchip present to us the <a href="http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&amp;nodeId=1406&amp;dDocName=en548414" target="_blank">Microstick for dsPIC33F and PIC24H Development Board</a>. The device is very portable, beauty, and Microchip list interesting features (from Microchip website):</p>
<ul>
<li>Low Cost – Priced at $24.99 at Microchip Direct</li>
<li>Integrated USB programmer / debugger – No external debugger required</li>
<li>USB Powered – Ease of use, No external power required</li>
<li>Socketed dsPIC/PIC24 – Flexible, Easy device replacement</li>
<li>0.025” Pin headers – Enables plug-in to Breadboard with room for jumper wires</li>
<li>Easy access to all device signals for probing</li>
<li>Small size &#8211; Smaller than a stick of gum at 20 x76mm – Easily Portable</li>
<li>On board debug LED, Utility LED and Reset Switch</li>
<li>Free demo code</li>
</ul>
<p>I ordering one and I&#8217;m very confident because it&#8217;s the first way Microchip creates a breadboard friendly device (I really don&#8217;t like Explorer16 board&#8217;s kit and companion). I spec to use this device on rapid prototypes, tests, code optimizations, etc. Also other thing I want to do is know about dsPIC.</p>
<p>The package comes and here is the content:</p>
<p><div data-shortcode="caption" id="attachment_200" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/22569226@N00/5285452303"><img aria-describedby="caption-attachment-200" loading="lazy" data-attachment-id="200" data-permalink="https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/photo/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg" data-orig-size="500,375" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Microchip MicroStick Kit" data-image-description="" data-image-caption="" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=500" class="size-medium wp-image-200" title="Microchip MicroStick Kit" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=300" alt="" width="300" height="225" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg 500w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-200" class="wp-caption-text">MicroStick Kit</p></div></p>
<p><div data-shortcode="caption" id="attachment_201" style="width: 310px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/22569226@N00/5286048770"><img aria-describedby="caption-attachment-201" loading="lazy" data-attachment-id="201" data-permalink="https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/photo-2/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg" data-orig-size="500,375" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="MicroStick detail" data-image-description="" data-image-caption="&lt;p&gt;MicroStick detail&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=500" class="size-medium wp-image-201" title="MicroStick detail" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=300" alt="" width="300" height="225" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=150 150w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg 500w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-201" class="wp-caption-text">MicroStick detail (dsPIC on right side)</p></div></p>
<p style="text-align:center;">&nbsp;</p>
<p>Very well documented, comes with printed schematics (great Microchip!). And other chip! a dsPIC33FJ64MC802. Again, point to Microchip.</p>
<p>I plug the device on my notebook (a Macbook Pro running Parallels Desktop) and easily upload some example codes (free demo code). Led blinks as a signal that board it&#8217;s ok. The debugger has a PIC18F67J50 control and a small ICSP header to upgrades (I think).</p>
<p>When I&#8217;ll gonna replace the original PIC on device (PIC24HJ64GP502) to one mine more powerful (PIC24HJ128GP502) the MPLAB won&#8217;t recognize the board yet. After some tests and explorations, the explanation comes from the MicroStick box: <strong>designed to work only with the two devices inside the box (dsPIC33FJ64MC802 and PIC24HJ64GP502)</strong>. Wow&#8230; what? Why no use other devices? Why no support other PIC24H (or even PIC24F) and dsPIC on 28 DIP packages? All from the same Microchip?</p>
<p><div data-shortcode="caption" id="attachment_203" style="width: 246px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png"><img aria-describedby="caption-attachment-203" loading="lazy" data-attachment-id="203" data-permalink="https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/parts/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png" data-orig-size="236,169" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Supported Parts, ONLY" data-image-description="" data-image-caption="&lt;p&gt;Supported Parts, ONLY&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png?w=236" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png?w=236" class="size-full wp-image-203" title="Supported Parts, ONLY" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png" alt="" width="236" height="169" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png 236w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png?w=150&amp;h=107 150w" sizes="(max-width: 236px) 100vw, 236px" /></a><p id="caption-attachment-203" class="wp-caption-text">Supported Parts, ONLY (from Microchip website)</p></div></p>
<p>Ok. That&#8217;s a lost point. Now, I&#8217;ll put the MicroStick on breadboard and wire up it to some device, maybe a LCD, or a triple-axis accelerometer. PORTA RA0, PORTA RA1, GND and +3V3&#8230; Where? Where is the +3V3 pin on headers to power external circuitry? Look at schematics again, and, there&#8217;s no +3V3 pin on headers to power external circuitry. The 28 pin PIC (+3V3) isn&#8217;t connected to 28 socket pin on bottom side.</p>
<p><div data-shortcode="caption" id="attachment_202" style="width: 310px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png"><img aria-describedby="caption-attachment-202" loading="lazy" data-attachment-id="202" data-permalink="https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/power/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png" data-orig-size="644,447" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Absence of +3V3 pin header" data-image-description="" data-image-caption="&lt;p&gt;Absence of +3V3 pin header&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=300" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=644" class="size-medium wp-image-202" title="Absence of +3V3 pin header" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=300" alt="" width="300" height="208" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=300 300w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=600 600w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=150 150w" sizes="(max-width: 300px) 100vw, 300px" /></a><p id="caption-attachment-202" class="wp-caption-text">Absence of +3V3 pin header</p></div></p>
<p>Because of that (and other things), I&#8217;m change my opinion about MicroStick. The device still great, very straight use, ideal for a School Lab, but with limitations. Some of them you need to know (most easy to fix):</p>
<ul>
<li>Total absence of +3V3 pin on headers to power external circuitry on breadboard;</li>
<li>Don&#8217;t support other 28pin PIC24H and dsPIC devices;</li>
<li>Machine headers, DIP-28 socket 600MIL and breadboards don&#8217;t form a great team. They won&#8217;t attach firmly on breadboards. Maybe a two single-line header work&#8217;s well;</li>
<li>PGD(RB0) and PGC(RB1) program data lines don&#8217;t available on DIP-28 socket 600MIL;</li>
</ul>
<p>But, aside these things, there&#8217;s great goals too, not easy to understand on a first view:</p>
<ul>
<li>J3 header looks like a 6pin ICSP header, but actually not. It&#8217;s a 6pin header where only three pins it&#8217;s useful: <strong>USART RXD(4), TXD(5) and GND(1)</strong>. Other pins rest unconnected. It&#8217;s match exactly the same cross position (RXD-&gt;TX and TXD-&gt;RX) to use it with common USB/RS232 breakout boards, like <a href="http://www.sparkfun.com/products/9873" target="_blank">that</a>, and with <a href="http://www.sparkfun.com/products/9358" target="_blank">Bluetooth Mate Gold</a>, both from SparkFun</li>
</ul>
<p><div data-shortcode="caption" id="attachment_199" style="width: 297px" class="wp-caption aligncenter"><a href="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png"><img aria-describedby="caption-attachment-199" loading="lazy" data-attachment-id="199" data-permalink="https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/j3_header/" data-orig-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png" data-orig-size="287,259" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="J3 Header" data-image-description="" data-image-caption="&lt;p&gt;J3 Header from MicroStick documentation&lt;/p&gt;
" data-medium-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png?w=287" data-large-file="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png?w=287" class="size-full wp-image-199" title="J3 Header" src="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png" alt="" width="287" height="259" srcset="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png 287w, https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png?w=150&amp;h=135 150w" sizes="(max-width: 287px) 100vw, 287px" /></a><p id="caption-attachment-199" class="wp-caption-text">J3 header pins (from MicroStick documentation)</p></div></p>
<p><div style="width: 370px" class="wp-caption aligncenter"><a href="http://www.sparkfun.com/products/9358"><img title="Bluetooth/Serial module" src="https://i0.wp.com/static.sparkfun.com//images/products/09358-03.jpg" alt="" width="360" height="360" /></a><p class="wp-caption-text">J3 header compatibility with SparkFun Bluetooth/Serial module</p></div></p>
<p style="text-align:center;">&nbsp;</p>
<p><div style="width: 370px" class="wp-caption aligncenter"><a href="http://www.sparkfun.com/products/9873"><img title="USB/RS232 module" src="https://i0.wp.com/static.sparkfun.com//images/products/09873-02.jpg" alt="" width="360" height="360" /></a><p class="wp-caption-text">J3 compatibility with SparkFun USB/RS232 converter</p></div></p>
<p>Well, that&#8217;s it. My review to help other users that need know more about this little evil until spend $24,99. I like it, really. And yours will see some project with it here. Maybe some fix to the limitations listed above.</p>
<p><strong>Suggestion to Microchip:</strong> update the PIC18F67J50 firmware on MicroStick debugger (and MPLAB, off course) to support the others 28pin devices. Even PIC24F family. Please?</p>
<p>Good day.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/01/31/microchip-microstick-review/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo.jpg?w=300" medium="image">
			<media:title type="html">Microchip MicroStick Kit</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/photo1.jpg?w=300" medium="image">
			<media:title type="html">MicroStick detail</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/parts.png" medium="image">
			<media:title type="html">Supported Parts, ONLY</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/power.png?w=300" medium="image">
			<media:title type="html">Absence of +3V3 pin header</media:title>
		</media:content>

		<media:content url="https://rusticengineering.wordpress.com/wp-content/uploads/2011/01/j3_header.png" medium="image">
			<media:title type="html">J3 Header</media:title>
		</media:content>

		<media:content url="http://static.sparkfun.com//images/products/09358-03.jpg" medium="image">
			<media:title type="html">Bluetooth/Serial module</media:title>
		</media:content>

		<media:content url="http://static.sparkfun.com//images/products/09873-02.jpg" medium="image">
			<media:title type="html">USB/RS232 module</media:title>
		</media:content>
	</item>
		<item>
		<title>Someone find Sarah Connors&#8230;</title>
		<link>https://rusticengineering.wordpress.com/2011/01/28/someone-call-sarah-connors/</link>
					<comments>https://rusticengineering.wordpress.com/2011/01/28/someone-call-sarah-connors/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Fri, 28 Jan 2011 00:21:28 +0000</pubDate>
				<category><![CDATA[news]]></category>
		<category><![CDATA[hand]]></category>
		<category><![CDATA[robot]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=189</guid>

					<description><![CDATA[]]></description>
										<content:encoded><![CDATA[<p><iframe class="youtube-player" width="700" height="394" src="https://www.youtube.com/embed/YqmRKqFqiok?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en&#038;autohide=2&#038;wmode=transparent" allowfullscreen="true" style="border:0;" sandbox="allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox"></iframe></p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2011/01/28/someone-call-sarah-connors/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>
	</item>
		<item>
		<title>New year comming&#8230; New devices&#8230; New Projects</title>
		<link>https://rusticengineering.wordpress.com/2010/12/23/new-year-comming-new-devices-new-projects/</link>
					<comments>https://rusticengineering.wordpress.com/2010/12/23/new-year-comming-new-devices-new-projects/#comments</comments>
		
		<dc:creator><![CDATA[forrequi]]></dc:creator>
		<pubDate>Thu, 23 Dec 2010 19:50:47 +0000</pubDate>
				<category><![CDATA[electronic]]></category>
		<category><![CDATA[LCD]]></category>
		<category><![CDATA[OLED]]></category>
		<category><![CDATA[personal]]></category>
		<guid isPermaLink="false">http://rusticengineering.wordpress.com/?p=180</guid>

					<description><![CDATA[The of the year is coming, and a lot of ideas bring to my head. During this year I change my work line from Microchip PIC 18F Family MCUs (like PIC18LF2520, PIC18LF2620 and PIC18LF14K50) to PIC24F Family (PIC24FJ32GA002, PIC24FJ64GA002, PIC24FJ256GB106). It&#8217;s a lot easer work on 16bit cores. My list of benefits: More portable code; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The of the year is coming, and a lot of ideas bring to my head. During this year I change my work line from Microchip PIC 18F Family MCUs (like PIC18LF2520, PIC18LF2620 and PIC18LF14K50) to PIC24F Family (PIC24FJ32GA002, PIC24FJ64GA002, PIC24FJ256GB106). It&#8217;s a lot easer work on 16bit cores. My list of benefits:</p>
<ul>
<li>More portable code;</li>
<li>Better  code optimization;</li>
<li>Free compiler, without restrictions;</li>
<li>PIC24F Family is pin compatible with other family devices, so if you need more flash only you need is change the MCU;</li>
</ul>
<p>2010 was the year of Arduino for most hobbyists. I&#8217;ve to confess that I don&#8217;t like much Arduino, but I&#8217;ve some Arduino&#8217;s and some shields too. I don&#8217;t understand very well what happens, but I&#8217;m not very comfortably with libraries. I think that is because Arduino try to be &#8220;much&#8221; friendly to non-electronic people. That&#8217;s &#8220;friendly&#8221; you can see on libraries: SD card access, OLED access, RFID access, all stuf very very very easy and directly, but don&#8217;t made by you. I don&#8217;t like to &#8220;rediscover the wheel&#8221;, but I like some control about what happen.</p>
<p>But even with this opinion, I&#8217;ve a project with Arduino for next year.</p>
<p>In this week I receive a lot of new devices, like:</p>
<ul>
<li>new OLEDs (<strong>SSD1339</strong> controller, very smart, with graphic accelerated functions);</li>
<li>new TFT LCDs (<strong>SSD1289</strong> controller, not so smart);</li>
<li>new 16bits MCUs (<strong>PIC24HJ64GP502</strong>, <strong>PIC24HJ128GP502 </strong>and<strong> PIC24FJ64GA102</strong>);</li>
<li>new 32bits MCUS (<strong>ARM STM32</strong>);</li>
</ul>
<p>I&#8217;ve doing great goals in this projects, but all of them still very young yet. But see the photos above and conclude that they are very nice:</p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5285454681/"><img title="TFT LCD SSD1289 Controller" src="https://i0.wp.com/farm6.static.flickr.com/5287/5285454681_7e7e764866.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">TFT LCD SSD1289 Controller - some problems with pixel functions yet.</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5286050456/in/photostream/"><img title="128x128 OLED Board from SparkFun (with SSD1339 Controller)" src="https://i0.wp.com/farm6.static.flickr.com/5004/5286050456_2a128d0cc9.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">128x128 OLED Board from SparkFun (with SSD1339 Controller) - 65k colors ok, but 262k colors tsc tsc... little bit hard...</p></div></p>
<p><div style="width: 510px" class="wp-caption aligncenter"><a href="http://www.flickr.com/photos/forrequi/5285452303/in/photostream/"><img title="MicroStick from Microchip - Learning PIC24H MCUs next year" src="https://i0.wp.com/farm6.static.flickr.com/5048/5285452303_0e75ed45ae.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">MicroStick from Microchip - Learning PIC24H MCUs next year</p></div></p>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rusticengineering.wordpress.com/2010/12/23/new-year-comming-new-devices-new-projects/feed/</wfw:commentRss>
			<slash:comments>9</slash:comments>
		
		
		
		<media:content url="https://2.gravatar.com/avatar/b800052578e196fb17008a2c33126a424c3de715589bed4b049fdfaeb4a99b17?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">forrequi</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5287/5285454681_7e7e764866.jpg" medium="image">
			<media:title type="html">TFT LCD SSD1289 Controller</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5004/5286050456_2a128d0cc9.jpg" medium="image">
			<media:title type="html">128x128 OLED Board from SparkFun (with SSD1339 Controller)</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5048/5285452303_0e75ed45ae.jpg" medium="image">
			<media:title type="html">MicroStick from Microchip - Learning PIC24H MCUs next year</media:title>
		</media:content>
	</item>
	</channel>
</rss>
