<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>SulhanSetiawan.com</title> <atom:link href="http://www.sulhansetiawan.com/feed" rel="self" type="application/rss+xml" /><link>http://www.sulhansetiawan.com</link> <description></description> <lastBuildDate>Sun, 05 Feb 2012 17:08:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>MXLED &#8211; LED Matrix Simulator</title><link>http://www.sulhansetiawan.com/mxled</link> <comments>http://www.sulhansetiawan.com/mxled#comments</comments> <pubDate>Sat, 04 Feb 2012 14:16:04 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Microcontroller]]></category> <category><![CDATA[All]]></category> <category><![CDATA[Simulator]]></category> <category><![CDATA[LED matrix]]></category> <category><![CDATA[Moving Sign]]></category> <category><![CDATA[Simulation]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1127</guid> <description><![CDATA[MXLED version 1.6 MXLED is a simulation of the LED matrix that can be used with a microcontroller simulator on Micro .exe. With MXLED, the system design of LED matrix, commonly referred to as Running Text, or many also call it Moving Sign, be more easily implemented. MXLED on this version provides the size up [...]]]></description> <content:encoded><![CDATA[<h3>MXLED version 1.6</h3><div id="window" class="wp-caption aligncenter" style="width: 508px"><a href="http://resource.sulhansetiawan.com/img/MXLED.1.6.jpg"><img class=" " title="MXLED.exe" src="http://resource.sulhansetiawan.com/img/MXLED.1.6.jpg" alt="MXLED.exe" width="498" height="158" /></a><p class="wp-caption-text">MXLED.exe</p></div><p>MXLED is a simulation of the LED matrix that can be used with a microcontroller simulator on <a href="http://www.sulhansetiawan.com/en/microcontroller-project">Micro .exe</a>. With MXLED, the system design of LED matrix, commonly referred to as Running Text, or many also call it Moving Sign, be more easily implemented.</p><p>MXLED on this version provides the size up to 200 columns x 80 lines. With this size, we can perform simulations for the LED matrix which suffice to needs that more real.</p><p>Enlarge the size of the matrix on this version is done by reducing the size of the LED to be only of 10 x 10 pixels. However, if we use monitors with size 1360 x 768, then size that can be displayed only about 135 columns x 64 lines.</p><div id="download" class="wp-caption aligncenter" style="width: 97px"><a href="http://resource.sulhansetiawan.com/mikrokontroler/MXLED.7z"><img class="  " title="MXLED" src="http://resource.sulhansetiawan.com/img/download.gif" alt="MXLED" width="87" height="30" /></a><p class="wp-caption-text">MXLED</p></div> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/mxled/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Facebook Like And Comment</title><link>http://www.sulhansetiawan.com/fblike-comment</link> <comments>http://www.sulhansetiawan.com/fblike-comment#comments</comments> <pubDate>Tue, 15 Nov 2011 10:49:05 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[All]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Facebook]]></category> <category><![CDATA[Social Plugins]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1220</guid> <description><![CDATA[Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.]]></description> <content:encoded><![CDATA[<p><span style='display:none'>How to add the Facebook Like button on Website. </span>Facebook Like And Comment add like/recommend button, also send button, and optionally use facebook comment instead of wordpress comment for your wordpress site.</p><p><span style='display:none'>The Facebook Like button plugin on WordPress. </span>Each post or page will has Like/Recommend  button bellow post content. When visitor click on this button, the specified image will be shown on visitor&#8217;s facebook wall, the title of the post and its excerpt.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-like.jpg"><img title="Facebook Like" src="http://resource.sulhansetiawan.com/img/facebook-like.jpg" alt="Facebook Like" width="400" height="220" /></a><p class="wp-caption-text">Facebook Like</p></div><p><span style='display:none'>How to add Facebook Comments on Website. </span>If you want, you may use facebook comment instead of standard wordpress comment.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg"><img title="Original WordPress Comment" src="http://resource.sulhansetiawan.com/img/wordpress-comment.jpg" alt="Original WordPress Comment" width="400" height="439" /></a><p class="wp-caption-text">Original WordPress Comment</p></div><p><span style='display:none'>Plugin to add Facebook Comments on WordPress. </span>Original WordPress comments will be replaced by Facebook comments.</p><div class="wp-caption aligncenter" style="width: 410px"><a href="http://resource.sulhansetiawan.com/img/facebook-comment.jpg"><img title="Facebook Comment" src="http://resource.sulhansetiawan.com/img/facebook-comment.jpg" alt="Facebook Comment" width="400" height="382" /></a><p class="wp-caption-text">Facebook Comment</p></div><p>Every time a new facebook comment added, you will be notified through admin email. So you can soon approve or ban the comment.</p><p><span style='display:none'>SEO Boost with Facebook Comments on your Website. </span>The facebook comment is actually an iframe. So, search engine will not crawl the comment inside it. To evercome this, the plugin will read it and cache it, then include it inside each post behind the facebook comment, so search engine will crawl it but will not affect the appearance. This is for the SEO sake.</p><div id="download" class="wp-caption aligncenter" style="width: 135px"><a href="http://wordpress.org/extend/plugins/facebook-like-and-comment/"><img title="Facebook Like And Comment" src="http://resource.sulhansetiawan.com/img/download.gif" alt="Facebook Like And Comment" width="87" height="30" /></a><p class="wp-caption-text">Facebook Like And Comment</p></div> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/fblike-comment/feed</wfw:commentRss> <slash:comments>22</slash:comments> </item> <item><title>Simple Serial Downloader for AT89S51/AT89S52</title><link>http://www.sulhansetiawan.com/sdownldr</link> <comments>http://www.sulhansetiawan.com/sdownldr#comments</comments> <pubDate>Sat, 12 Nov 2011 09:51:14 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Development Tools]]></category> <category><![CDATA[IDE (Integrated Development Environment)]]></category> <category><![CDATA[Microcontroller]]></category> <category><![CDATA[All]]></category> <category><![CDATA[Microcontroller IDE]]></category> <category><![CDATA[Serial Downloader]]></category> <category><![CDATA[FREE! Software]]></category><guid isPermaLink="false">http://www.sulhansetiawan.com/?p=1217</guid> <description><![CDATA[The simplest serial downloader. SDownldr.exe is a software to program a AT89S51/AT89S52 serially through the parallel port. This Software is included in the Microcontroller Project Circuit diagram for this ISP downloader is as follow: The Serial Downloader circuit above using the power supply from the parallel port. However, not all parallel port capable of providing [...]]]></description> <content:encoded><![CDATA[<p><span style="display:none">The simplest serial downloader. </span>SDownldr.exe is a software to program a AT89S51/AT89S52 serially through the parallel port. This Software is included in the <a href="http://www.sulhansetiawan.com/microcontroller-project">Microcontroller Project</a></p><div id="window" class="wp-caption aligncenter" style="width: 438px"><a href="http://resource.sulhansetiawan.com/img/SerialDownloader.PNG"><img class=" " title="SDownldr.exe" src="http://resource.sulhansetiawan.com/img/SerialDownloader.PNG" alt="SDownldr.exe" width="428" height="275" /></a><p class="wp-caption-text">SDownldr.exe</p></div><p>Circuit diagram for this ISP downloader is as follow:</p><div id="diagram" class="wp-caption aligncenter" style="width: 391px"><a href="http://resource.sulhansetiawan.com/img/SerialDownloaderCircuit.PNG"><img class=" " title="ISP downloader circuit diagram" src="http://resource.sulhansetiawan.com/img/SerialDownloaderCircuit.PNG" alt="ISP downloader circuit diagram" width="381" height="407" /></a><p class="wp-caption-text">ISP downloader circuit diagram</p></div><p>The Serial Downloader circuit above using the power supply from the parallel port. However, not all parallel port capable of providing enough current for this purpose. If Your parallel port is not strong enough for this purpose, then you must provide a + 5V power supply for this circuit.</p><p>If the program is run from the IDE, then all the settings will be performed by the IDE. Whereas if it is executed as a standalone program, then the settings are as follows:</p><ul><li style="text-align: justify;"><strong>Default Hex File</strong><br /> If you are using the <a href="http://www.sulhansetiawan.com/microcontroller-project">&#8220;Microcontroller Poject&#8221;</a> IDE, so whenever performed a successful compilation, a hex file is created in the temp directory, i.e. TMPFILE.HEX. If the &#8220;Default Hex File&#8221; is checked, then the file will be sent if the Send button is clicked is the hex file of successful compilation result. Keep in mind that the hex file will exist only if the IDE is still running.<br /> If &#8220;Default Hex Files&#8221; is not checked, then you can determine which files will be sent by clicking on the Browse button.</li><li style="text-align: justify;"><strong>Send</strong><br /> Use this button to start sending the specified hex file.</li><li style="text-align: justify;"><strong>Read</strong><br /> Use this button to read the code on the chip. The reading will only succeed if the chip has not been locked.</li><li style="text-align: justify;"><strong>Lock</strong><br /> Use this button to lock the chip so that the code on the chip cannot be read again.</li><li style="text-align: justify;"><strong>Port</strong><br /> Select the appropriate port address for the port being used. Parallel port usually placed on the address 378H.</li><li style="text-align: justify;"><strong>Auto Lock</strong><br /> If checked, then after sending the data is complete and after verification, the chip will be locked automatically.</li><li style="text-align: justify;"><strong>Browse</strong><br /> Use this button to choose a hex file will be sent. This button will only be active if the &#8220;Default Hex Files&#8221; is not a check.</li><li style="text-align: justify;"><strong>Read data count</strong><br /> Used to determine the amount of data to be read if the Read button is clicked. It could use a decimal number or hexadesimal, i.e. if the &#8220;Hex&#8221; is checked.</li></ul> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/sdownldr/feed</wfw:commentRss> <slash:comments>13</slash:comments> </item> <item><title>How to Get The Book by Sulhan Setiawan</title><link>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan</link> <comments>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan#comments</comments> <pubDate>Sun, 21 Aug 2011 01:21:19 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Sulhan Setiawan's Books]]></category> <category><![CDATA[All]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1179</guid> <description><![CDATA[Want to get a book by Sulhan Setiawan, but can not find it in bookstores? Try to get it through online bookstores. Or you can also directly order from website&#8217;s publisher by register first, then do a search for books by name authors, namely Sulhan Setiawan.]]></description> <content:encoded><![CDATA[<p>Want to get a book by Sulhan Setiawan, but can not find it in bookstores?</p><p>Try to get it through online bookstores. Or you can also directly order from <a title="Andi Publisher Jogjakarta" href="http://www.andipublisher.com/" target="_blank">website&#8217;s publisher</a> by register first, then do a search for books by name authors, namely Sulhan Setiawan.</p><hr /> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/cara-mendapatkan-buku-karya-sulhan-setiawan/feed</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Convert Any File Into JGP Format</title><link>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg</link> <comments>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg#comments</comments> <pubDate>Sat, 06 Aug 2011 14:21:29 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[File Management]]></category> <category><![CDATA[Imaging]]></category> <category><![CDATA[All]]></category> <category><![CDATA[Image]]></category> <category><![CDATA[FREE! Software]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1140</guid> <description><![CDATA[Now a lot of places that we can use to leave the file on the internet. From the complicated to the simple rules. Unfortunately, with the easy rules, only allow us to leave the file in a specific format, for example, doc, xls, pdf, jpg, png, and so on. And usually will prohibit us to [...]]]></description> <content:encoded><![CDATA[<p>Now a lot of places that we can use to leave the file on the internet. From the complicated to the simple rules. Unfortunately, with the easy rules, only allow us to leave the file in a specific format, for example, doc, xls, pdf, jpg, png, and so on. And usually will prohibit us to leave the zip file exe file especially. While the file hosting that allows us to host any file, is usually has very complicated rules. Of which must wait until bored, before you can download, to which must be successfully taken away the download process at a time. Can not be paused and resumed .</p><p>Well, to overcome this problem, we can create a camouflage for the files that we want to host to a jpg format. Thus, hosting file will assume the file that we upload as a jpg file</p><p>Actually, to make the camouflage is very easy. All We need to do is add a jpg file with a small size on the front of the file that we want to change. Then, to get back the original file, we simply discard the jpg part on the font of the file.</p><p>To add a jpg file to the front of a file, we can do it with the copy command from the Command Prompt. However, to remove the jpg is more difficult. First we must remember well the size of jpg files that have been added. Then open the jpg file imitation using notepad + +. Blocks the early part of the file size of jpg files that have been added. After that, delete the part that is blocked. Finally, save the file with its original file extension.</p><p>Well, if we want a more simple, try to download a tool that I created to facilitate these processes. I named this tool <a href="http://sulhansetiawan.com/software/JpgMaker.exe"><b><blink>JpgMaker</blink></b></a>. With this tool, you simply right-click on the file which we will turn into a jpg, then from the popup menu that appears, select <b>Make JPG image</b> . Meanwhile, to return to its original form, we simply right click on the jpg file imitation, then select <b>Extract fom jpg</b>. It is easy <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /></p><p>Enjoy how to host files with ease</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/mengubah-file-menjadi-bentuk-jpg/feed</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Redirect without changing the address in the address bar</title><link>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar</link> <comments>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar#comments</comments> <pubDate>Thu, 07 Jul 2011 15:41:52 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[All]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[Web Programming]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1126</guid> <description><![CDATA[Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com. The transfer of the above can be done in various ways, eg by javascript: &#60;script type="text/javascript"&#62; location.replace("http://www.example2.com"); &#60;/script&#62; If the script above is [...]]]></description> <content:encoded><![CDATA[<div class="wp-caption aligncenter" style="width: 468px"><a href="https://masterkey.masterweb.net/aff.php?aff=7206"><img src="http://id.masterweb.net/images/banner/468X60/banner_468X60_abu_start5000.gif" title="Web Hosting murah. Mulai dari Rp.950,-/bulan dengan trafic unlimited"/></a></div></p><p>Redirect is the process of transferring the url address to another address. For example, you can type http://www.example1.com but when you hit enter, the page that appears is a page on http://www.example2.com.</p><p>The transfer of the above can be done in various ways, eg by javascript:</p><pre>&lt;script type="text/javascript"&gt;
location.replace("http://www.example2.com");
&lt;/script&gt;
</pre><p>If the script above is placed on index.html in http://www.example1.com, then the page displayed in the browser will be replaced with the contents of http://www.example2.com.</p><p>Biside the replacement of the display in the browser, the address displayed in the address bar will also be replaced with a new address. There are times when things like this are desirable. But in other cases, we may not want visitors to our website know that the page displayed is not derived from the address he was typing in the address bar.</p><p>Examples which may make sense to do is as follows. That we have multiple domains, say 3 domain. Everything is set up using WordPress CMS. Size of wordpress is approximately 10MB . Thus, you should hire a hosting that size should be larger than 10MB. So at least you should use a hosting with a capacity of 50M for example. Capacity is usually defined in certain sizes. So even if coupled with the size of the database to its contents need only 15MB, but this size may be not available.</p><p>Without the redirection, you have to hire 3 x hosting 50MB even though you only need 3 x 15MB. But with the redirection, you just need to hire a hosting with a capacity of 50MB, while the other two simply by the size of not more than 10KB. There are some providers that provide the very small capacity with a very low cost, so that we can think of for free. This service is usually given to people who already have a domain, but have not had time to build it. So he only need to show such as &#8220;Under construction&#8221;, which of course is very small in size.</p><p>With the redirect technique, we can use this facility to our other two domains.</p><p>So how to set it?</p><p>First, on the hosting with 50MB capacity, we make a subdomain. For example a domain name for hosting it is <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , then we can create two subdomains like aa.sulhansetiawan.com and bb.sulhansetiawan.com. Subdomains is just a subdomain alias for <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> . Most hosting providers provide this facility. So <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> can be achieved by aa.sulhansetiawan.com and bb.sulhansetiawan.com too.</p><p>For what we are creating a subdomain, but pointed to himself?</p><p>As already mentioned above, the CMS we use is WordPress. Therefore, edit the file <b>wp-config.php</b> in the assigment of <span class="notranslate">$table_prefix</span>. Normally this variable is filled with <span class="notranslate">$table_prefix=&#8217;wp_&#8217;;</span></p><p>Make changes so that it becomes:</p><p><span class="notranslate"><pre>if("aa.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='aa_';
elseif("bb.sulhansetiawan.com"==$_SERVER['HTTP_HOST'])$table_prefix='bb_';
else $table_prefix='ss_';
</pre><p></span></p><p>Thus, although <a href="http://sulhansetiawan.com">sulhansetiawan.com</a>, aa.sulhansetiawan.com, also bb.sulhansetiawan.com, pointing to the same place, but the page displayed will be different because it uses a different table.</p><p>After setting the wp-config.php, the next step is to login to wp-admin of the three domains are, come as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , as aa.sulhansetiawn.com, and as bb.sulhansetiawan.com</p><p>To login as <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> , of course, do the settings for the domain <a href="http://sulhansetiawan.com">sulhansetiawan.com</a> itself. As for the aa.sulhansetiawan.com and bb.sulhansetiawan.com, of course, made ​​arrangements for the two other domains. For example, if aa.sulhansetiawan.com will be used for the domain http://master-micro.com, the settings for aa.sulhansetiawan.com also be made ​​in such a way as if we are setting http://master-micro.com. And the most important for this problem is the <b>option-general</b> .</p><p>Go to the option-general. In the WordPress address (URL) typically are filled in correctly, however, because we will use this wordpress to http://master-micro.com, then on the Blog address (URL) we fill it with &#8220;http://master -micro.com &#8220;. In this way, any links that are created by Wordpres will use the address http://master-micro.com.</p><p>Do it the same way for bb.sulhansetiawan.com.</p><p>The next step is to fill the hosting for the two other domains that leads each to aa.sulhansetiawan.com and bb.sulhansetiawan.com. We only need three settings.</p><p>First, we set the <b>php.ini</b> to allow the reading of another url by adding the line</p><pre>allow_url_fopen = On</pre><p>Second, we make the file <b class='notranslate'>.htaccess</b> that looks like this:</p><p><span class="notranslate"><pre>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
</pre><p></span></p><p>Third, we make the file <b>index.php</b> which is like:</p><p><span class="notranslate"><pre>&lt;?php
$redirx="http://aa.sulhansetiawan.com".$_SERVER['REQUEST_URI'] ;
echo file_get_contents($redirx);
?&gt;
</pre><p></span></p><p>For other domains, just simply replace the http://aa.sulhansetiawan.com become http://bb.sulhansetiawan.com.</p><p>Well, with this index.php file in the DocumentRoot in the master-micro.com, then when there are people accessing the master-micro.com, the contents are shown taken from aa.sulhansetiawan.com. And visitors will not realize at all that they see the actual taken from somewhere else.</p><p>Good luck.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/redireksi-tanpa-mengubah-alamat-pada-address-bar/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Adding an Alarm for Motorcycle Safeguard with Touch Censor</title><link>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm</link> <comments>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm#comments</comments> <pubDate>Sat, 05 Feb 2011 09:24:04 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Electronics]]></category> <category><![CDATA[All]]></category> <category><![CDATA[Motorcycle]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1076</guid> <description><![CDATA[Adding an Alarm Touch sensor as a motorcycle security is already quite sacure. However, adding an alarm is a plus for securing your motorcycle. If the motorcycle&#8217;s lock is rotated to the ON position, then if in about 6 seconds, the touch sensor is not touched yet, the alarm will be activated. For those of [...]]]></description> <content:encoded><![CDATA[<h3>Adding an Alarm</h3><p>Touch sensor as a motorcycle security is already quite sacure. However, adding an alarm is a plus for securing your motorcycle.</p><p>If the motorcycle&#8217;s lock is rotated to the ON position, then if in about 6 seconds, the touch sensor is not touched yet, the alarm will be activated. For those of you who know the exact position of the sensor, a period of 6 seconds is more than enough to touch the sensor. But for a thief who certainly do not know the position of the sensor, then 6 seconds later he would be shocked because the motorcycle he just stolen suddenly honk by itself.</p><div class="wp-caption aligncenter" style="width: 479px"><a href="http://resource.sulhansetiawan.com/img/SensorAlarm.jpg"><img class=" " title="Touch sensor with alarm" src="http://resource.sulhansetiawan.com/img/SensorAlarm.jpg" alt="Touch sensor with alarm" width="469" height="626" /></a><p class="wp-caption-text">Touch sensor with alarm</p></div><p>The above circuit is divided into three parts</p><ol><li><p>Touch Sensor</p><p>This circuit is the same circuit with the circuit in <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh">Motorcycle Safeguard with Touch Censor</a></p></li><li><p>Alarm</p><p>This circuit is astable flip-flop circuit which is used to activate the relay. This RLY2 relay that will be used to honk the horn. To stop the flip-flop, we simply pull the voltage at the anode of D4 to the ground. Therefore, we connect this point to the collector of Q1 through diode D5. Thus, if the sensor has been touched, the alarm automatically also will stop working.</p></li><li><p>Alarm Delay</p><p>This section serves to delay the alarm work. The first time the circuit got the power supply, the charge on the C5 is still empty, so the transistor Q6 is OFF. Since Q6 is OFF, then ON and Q5 it will attract D4 anode toward the ground. Thus the flip-flop will not work. Slowly C5 will be filled electrical charge through R10 until the end Q6 ON. At ON Q6, Q5 will be OFF and the flip-flop can work.</p><p>C5 value determines the delay time. The larger the value, the longer the delay time.</p></li></ol><h3>Alarm Installation</h3><p>There are two types of mounting the horn button. At Honda, the horn button is used to connect the positive part of the horn, while the negative is always connected to the chassis. While on a Yamaha, horn button is used to connect the negative, while the positive part is always connected to the positive of motorcycle electricity.</p><p>For Honda&#8217;s horn type, the installation is by connecting the positive part of the horn, the part that is connected to the button, to NO from RLY2, then connect the CM from RLY2 to positive electricity after the key (point B on the <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh#pasang-ac">installation of CDI AC</a> or <a href="http://www.sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh#pasang-dc">CDI DC</a>).</p><p>For the type of Yamaha horn, the installation is by connecting the negative part of the horn, the part that is connected to the button, to NO from RLY2, then connect the CM from RLY2 to the chassis. However, if the motorcycle is using CDI DC, then we must move the positive cable to keep connected to point B. Remember that the installation of CDI DC, we break point B then connect it in series with the relay of touch sensors. Thus, when the sensor has not been touched, the horn will not sound. Therefore, we must move the cable plus the horn section in order to remain connected to point B.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/pengaman-motor-dg-alarm/feed</wfw:commentRss> <slash:comments>81</slash:comments> </item> <item><title>Secret Button using AND Gate</title><link>http://www.sulhansetiawan.com/tombol-rahasia-dengan-gerbang-and</link> <comments>http://www.sulhansetiawan.com/tombol-rahasia-dengan-gerbang-and#comments</comments> <pubDate>Thu, 02 Sep 2010 00:09:40 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Electronics]]></category> <category><![CDATA[Logic]]></category> <category><![CDATA[All]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1073</guid> <description><![CDATA[The secret key is a way to get a piece of equipment can only be activated if the provided buttons are pressed in the proper order. We will use the AND gate to make the equipment work like this. And the gates are electronic circuits that have a minimum of 2 pieces of inputs and [...]]]></description> <content:encoded><![CDATA[<p>The secret key is a way to get a piece of equipment can only be activated if the provided buttons are pressed in the proper order. We will use the AND gate to make the equipment work like this.</p><div class="wp-caption aligncenter" style="width: 121px"><img title="Symbol and truth tabel of AND Gate" src="http://resource.sulhansetiawan.com/img/AndGate.jpg" alt="Symbol and truth tabel of AND Gate" width="111" height="134" /><p class="wp-caption-text">Symbol and truth tabel of AND Gate</p></div><p>And the gates are electronic circuits that have a minimum of 2 pieces of inputs and one output. The output of this gate will only become 1 if all inputs are 1. If either of the input value is 0, then the output would be 0 even though all other inputs are 1.</p><p>&#8220;0&#8243; and &#8220;1&#8243; in the logic circuit is translated as follows. &#8220;0&#8243; is the voltage closer to 0V (no need to be 0V). While the &#8220;1&#8243; is the voltage that is closer to the voltage supply (not necessarily equal to the voltage supply). There are limits how high the voltage will be 0 and how low the voltage will be considered as 1. In addition, the supply voltage which may be used also have limitations. For TTL families, we only may use 5V voltage. While for CMOS, the voltage that can be used have a wide range.</p><p>And with the nature of the AND gate where the output will become 1 only if all of input value are 1, we can arrange a chain of AND gates to form the secret keys as follows:</p><div class="wp-caption aligncenter" style="width: 447px"><a href="http://resource.sulhansetiawan.com/img/TombolRahasia.jpg"><img class="  " title="Secret Key using AND Gate" src="http://resource.sulhansetiawan.com/img/TombolRahasia.jpg" alt="Secret Key using AND Gate" width="437" height="218" /></a><p class="wp-caption-text">Secret Key using AND Gate</p></div><p>C1 will ensure that when the circuit first turned on, an input of U1A is 0 because they are attracted to the ground. Thus, the output of U1A is also definitely 0. With the feedback using R2 10K, then the other input of U1A also will be 0. Thus, although after a few moments then C1 will contain a charge that causes the input that connects to C1 U1A become 1, because the other input is still valued 0, then the output of U1A will also remain 0.</p><p>The output of U1A is connected as input of U1B. If the output of U1A is still 0, then the output of U1B will be maintained to remain 0. So it is with U1C and U1D.</p><p>If we press the S2 button, then all the input U1A become 1. And from the feedback R2, then this state will be retained even though the S2 has been released again.</p><p>U1B output remains 0. But if we press the S3, so this time U1B has allowed for the output to become 1. Events like this also applies to U1C and U1D. Thus, in order U1D output can be 1, then we have to press buttons in sequence from S2, S3, S4, and S5.</p><p>The output of U1D used to activate the relay uses an NPN transistor. If the output of U1D is low (0), then the transistor will be OFF and the relay will be inactive. If U1D high (1), then the transistor will be ON and the relay will be active.</p><p>To reset the state to the initial state, press the S1 button. If the button S1 is pressed, then one input of U1A will has the value of 0. Thus the output will be 0. This situation will be locked with the R2 feedback. The return of output of U1A to 0 causes the output of U1B also 0. And so on until the output U1D.</p><p>Examples of the above circuit is not a good design of the secret keys circuit. Actually we do not have to press buttons in sequence from S2 to S4. We simply press the four buttons simultaneously or alternately by pressing it repeatedly while avoid pressing the S1 button. The good news is that we can put those buttons at random and no one knows which button is the button S1 besides us.</p><p>Although the design of the secret key is not a good design, but this design will be able to give a good overview to understand how we take advantage of AND gate.</p><p>And that it must be remembered, the AND gates used must be a CMOS <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /> One example is 4081.</p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/tombol-rahasia-dengan-gerbang-and/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Designing LED Matrix Circuit</title><link>http://www.sulhansetiawan.com/merancang-rangkaian-matriks-led</link> <comments>http://www.sulhansetiawan.com/merancang-rangkaian-matriks-led#comments</comments> <pubDate>Mon, 09 Aug 2010 15:21:16 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Experiments]]></category> <category><![CDATA[Electronics]]></category> <category><![CDATA[All]]></category> <category><![CDATA[LED matrix]]></category> <category><![CDATA[Microcontroller]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1069</guid> <description><![CDATA[LED matrix is the number of LEDs arranged in columns and rows. Those LEDs are then used to display images or text that usually displayed with certain animation effects. Therefore, the LED matrix is often referred to as the Running Text or Moving Sign. Arrange LEDs as matrix MXLED is a simulator of the circuit [...]]]></description> <content:encoded><![CDATA[<p>LED matrix is the number of LEDs arranged in columns and rows. Those LEDs are then used to display images or text that usually displayed with certain animation effects. Therefore, the LED matrix is often referred to as the Running Text or Moving Sign.</p><h3>Arrange LEDs as matrix</h3><p><a href="http://sulhansetiawan.com/menggunakan-mxledexe-untuk-simulasi-matriks-led">MXLED</a> is a simulator of the circuit matrix of LEDs. With this simulator, we can try to program the LED matrix controllers even without the hardware. MXLED made LED matrix by arranging the LEDs on the vertical lines and horizontal lines. We must provide the number of rows of horizontal lines (we make eight lines). Then, we also make as many vertical lines of columns. Arrangement of vertical lines and horizontal images are as follows:</p><div id="vertikal-horisontal" class="wp-caption aligncenter" style="width: 405px"><a href="http://resource.sulhansetiawan.com/img/kabelmatriks.jpg"><img title="Vertical and Horizontal Line" src="http://resource.sulhansetiawan.com/img/kabelmatriks.jpg" alt="Vertical and Horizontal Line" width="395" height="276" /></a><p class="wp-caption-text">Vertical and Horizontal Line</p></div><p>Lines of vertical and horizontal are not connected. Then, at each meeting point between the vertical and horizontal lines, attach a LED by connecting its anode to the horizontal lines and its cathode to the vertical lines. Installation of these LEDs are as shown below:</p><div id="pemasangan-led" class="wp-caption aligncenter" style="width: 405px"><a href="http://resource.sulhansetiawan.com/img/LEDmatriks.jpg"><img title="Installation of LEDs" src="http://resource.sulhansetiawan.com/img/LEDmatriks.jpg" alt="Installation of LEDs" width="395" height="276" /></a><p class="wp-caption-text">Installation of LEDs</p></div><p>By installing LEDs as above, the light up LED is the LED where the anode is connected to the horizontal lines which is high (1) and the cathode is connected to the vertical lines which is low (0). There is only one low vertical line at a time, while other line must be kept high. This low vertical line we refer to as the active column. Unlike the vertical lines, horizontal lines consisting of eight lines may has high or low value without having to pay attention to the other horizontal lines.</p><h3>Horizontal Control</h3><p>To give the voltage on this horizontal line, we can not directly connect it to port. This is caused by the need for large electrical currents. Therefore, horizontal lines are the powered using a PNP transistor as shown below:</p><div id="catu-horisontal" class="wp-caption aligncenter" style="width: 398px"><a href="http://resource.sulhansetiawan.com/img/catuhoris.jpg"><img title="The power supply for the horizontal lines" src="http://resource.sulhansetiawan.com/img/catuhoris.jpg" alt="The power supply for the horizontal lines" width="388" height="130" /></a><p class="wp-caption-text">The power supply for the horizontal lines</p></div><p>Each horizontal line given a transistor like the picture above. In this way, to make the horizontal lines can give the current to the LED, then the base must be low state (0). Meanwhile, if the base was given a high state, then the line could not provide current to the LED.</p><h3>Vertikal Control</h3><p>As horisontol lines, vertical lines can not be controlled directly using the port. This is caused by the large amount of current that must be sunk into the ground. Therefore, we can use the NPN transistor to sink current from these vertical lines. Way of installation is as shown below:</p><div id="sink-vertikal" class="wp-caption aligncenter" style="width: 267px"><a href="http://resource.sulhansetiawan.com/img/sinkvertical.jpg"><img title="Vertical line current sink" src="http://resource.sulhansetiawan.com/img/sinkvertical.jpg" alt="Vertical line current sink" width="257" height="179" /></a><p class="wp-caption-text">Vertical line current sink</p></div><p>Each vertical line is controlled using a transistor as shown above. If the base was given a high condition (1), then the line (column) will be an active line. Conversely, if the base were given the condition of low (0), then the line becomes inactive column.</p><p>As already mentioned above, there is only one column that should be active, while the other columns must be inactive. There are many ICs that output works like that. One of the cheapest is the 4017.</p><div id="pengendalian-kolom" class="wp-caption aligncenter" style="width: 349px"><a href="http://resource.sulhansetiawan.com/img/kendali4017.jpg"><img title="Columns control using IC 4017" src="http://resource.sulhansetiawan.com/img/kendali4017.jpg" alt="Columns control using IC 4017" width="339" height="284" /></a><p class="wp-caption-text">Columns control using IC 4017</p></div><p>Too bad that this IC only has 10 outputs. Thus, we can only make the controls to 10 columns <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /></p><p>Relax, we can use other tricks to extend the control capabilities of this 4017. The trick is to make the block columns. The columns are grouped into block of columns. Each block columns consists of 10 columns. The columns in each block columns are numbered from 0 to 9. So, column 0 is the column 0 of block 0, column 10 is the column 0 of block 1, column 21 is column 1 of block 2, and so on.</p><p>Each base of the column with the same number are combined into one and is controlled by an output of 4017. For example, the base of the column 0 is connected to the base of the column 10, column 20, column 30, and so on. Then the bases which have become one, controlled by the Q0 of 4017.</p><div id="pengendalian-blok" class="wp-caption aligncenter" style="width: 443px"><a href="http://resource.sulhansetiawan.com/img/cascade4017.jpg"><img title="Block Columns" src="http://resource.sulhansetiawan.com/img/cascade4017.jpg" alt="Block Columns" width="433" height="282" /></a><p class="wp-caption-text">Block Columns</p></div><p>From the picture above, we can see that although the base of column 0 and column 10 are controlled concurrently, but the column that can sink current is only the column with the active block. Seen that way of controlling the &#8220;column&#8221; or &#8220;block columns&#8221; is the same. If the number of block columns is only a few, then the controlling block of columns can be done directly using the port of the microcontroller. However, if the number of block columns is quite a lot, then the block columns can also be controlled using the other 4017. So, we develop a multilevel 4017, ie 4017 units (control column) and 4017 tens (the controlling block of columns). And if the number of block columns more than 10, then we can make the next level, ie 4017 level in the hundreds.</p><p>To cascade 4017 as above, is by connecting the carry output of 4017 units level as the input clock for the 4017 of tens level. And if there is 4017 of hundreds level, then the carry output of 4017 of tens level is used as the input clock for the 4017 of hundreds level. And so on. While the reset input of all of 4017 are combined into one. Thus, the overall control system only requires two lines for columns control, ie the input clock (clock input for 4017 of unit level) and the reset input (composite of all reset of 4017). Thus, the preparation of the LED matrix is exactly the same as the <a href="http://sulhansetiawan.com/menggunakan-mxledexe-untuk-simulasi-matriks-led">MXLED</a> simulation.</p><h3>Power Current Calculation</h3><p>From the explanations above, we can see that there are three kinds of transistors viewed from the position. First is the row controller transistor, second is the column (unit) controller transistor, third is the column block (tens) controller transistor. Of course this calculation assuming that the number of columns are not more than 100 columns.</p><h4>Calculation of the row controller transistor current</h4><p>If each LED using a current of I, then the total maximum amount of current through the line control transistor is I x number of columns. For example, if each of our LEDs designed to use 5mA current and the number of columns are 30 columns, then the row controller transistor should be able to drain 5 x 30 = 150mA current.</p><p>The next question is, what is the value of collector resistor of the transistor?</p><p>To answer these questions, we should see the path of current from the power supply to get to the ground. First, the power supply current enter the PNP transistor through the emitter to the collector. Then passes through the collector resistor, then continues to enter into LED, enter into the collector of column controller, then enter the collector of the block columns controller.</p><p>If the power supply used is 5V, how much is the clamp voltage across the resistor? The voltage across the resistor is 5V &#8211; V on LED &#8211; VCE line controller tansistor &#8211; VCE of column controller transistor &#8211; VCE of column block controllers transistor. LED clamp voltage is typically about 1.7 V, but there are some types of LEDs which have a clamp voltage of up to 3V. While VCE transistors in saturation state is typically around 0.3 V. We assume that we use a regular LED with a clamp voltage of 1.7 V. Thus, the voltage across the resistor pin is 5 &#8211; 1.7 &#8211; (3 x 0.3) = 2.4 V.</p><p>Once we know the clamp voltage at the collector resistor of the line controller transistor, to calculate the magnitude of the resistor is R = V / I = 2.4 V / 150mA = 16 ohms. Too bad that we might be difficult to obtain this value of 16 ohms. So we can use a slightly lower value, eg 15 ohms, so that the LED current will be slightly higher, or use a little higher, for example 18 ohms, so that the LED current will be slightly lower.</p><p>Things should be kept on the LED matrix design like this is, that these calculations is the calculation of the current if the scanning is running. If scanning is not running, then a current of 150mA will be entered on one LED alone <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /> And currents of this magnitude would likely destroy the LED. So, we must take precautions so that the current should only flow if scanning process has been running. A little good news is, if we use the MCS-51 as a controller, so when the reset (the scanning process is not running) port is always in a state of high. So, if the base of line controller transistor is connected to the MCS-51 port, so it can be sure that the current will not flow to the LEDs on the reset state. However, you must ensure that the program will not hang. Because if the program hangs and stops the scanning process, then it means disaster for your LED matrix. And if you are not sure that your program can run smoothly, then you can reduce the LED current so that even if the scanning process is not running, current flows are still small enough to be able to be borne by one LED.</p><p>To calculate the base resistor value of the line controller transistor, we only consider the transistor to work as a transistor switch, which is so current that flows is the saturation current. With the calculation of the collector current of 150mA, then we can use the C9012 transistor that has a current gain of about 150. We can take a value of 100 to make it more secure. With the gain of 100 and the collector current of 150mA, then the base current should be about 1.5 mA. Clamp voltage at the base resistor is approximately 5V &#8211; VBE, where VBE is about 0.7 V. Thus, the clamp voltage at the base resistor is about 4.3 V. Thus, the base resistor value is 4.3 V / 1.5 mA = 2K8. And again that this value is not available values. So we could slightly reduce the value to the nearest number of available, namely 2k7.</p><h4>Calculation of the column controller transistor current</h4><p>Column controller will sink as much current number of rows in that column. And we have determined that the number is eight lines. If we have determined that the LED current is 5mA, then the maximum current to be sunk by the column controller transistor is 8 x 5mA, which is 40mA. With the value of this, we simply use the C9013 transistor to control the column. The Gain of C9013 transistor is also about 150. And as before, we take saver value to 100 only. With the gain of 100 and the collector current of 40mA, then the base current in the column controller transistor is 0.4 mA.</p><p>Clamp voltage at the base resistor of the column controller transistor is the output voltage of 4017 minus 2x the VBE voltage. If we use a 5V power supply, then the output voltage of 4017 is approximately 4.8 V. Thus, the clamp voltage at the base resitor is about 4.8 &#8211; 2 x 0.7 = 3.4 V. Thus, the base resistor value of the column controller transistor is 3.4 V / 0.4 mA = 8K5. And again, this value is not available values. So, just use the 8K2.</p><h4>Calculation of the block columns controller transistor current</h4><p>The block columns controller transistor will sink as much current in the column controller transistor x 10, which is 10 x 40mA = 400mA. From the datasheet, C9013 has a maximum collector current of 500mA. So, we can still use the C9013 to controll block columns.</p><p>Clamp voltage at the base resistor of the block columns controller transistor is the voltage used to control this transistor reduced by 1x VBE. If we also use 4017 to control the block column, then the clamp voltage across the base resistor of the block columns controller transistor is approximately 4.8 &#8211; 0.7 = 4.1 V. Thus, the value of the base resistor of the block columns controller transistor is 4.1 V / 4mA = 1K.</p><p>That&#8217;s it. Happy trying <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/merancang-rangkaian-matriks-led/feed</wfw:commentRss> <slash:comments>174</slash:comments> </item> <item><title>Motorcycle Safeguard with Double Touch Censor</title><link>http://www.sulhansetiawan.com/pengaman-motor-multi-sensor</link> <comments>http://www.sulhansetiawan.com/pengaman-motor-multi-sensor#comments</comments> <pubDate>Thu, 15 Jul 2010 15:28:19 +0000</pubDate> <dc:creator>Sulhan</dc:creator> <category><![CDATA[Electronics]]></category> <category><![CDATA[All]]></category> <category><![CDATA[Motorcycle]]></category><guid isPermaLink="false">http://sulhansetiawan.com/?p=1060</guid> <description><![CDATA[At the Motorcycle Safeguard with Touch Censor, we&#8217;ve created a mechanism to make relay on if the sensor is touched and remained active even though the hand had been released from the sensor. With only one sensor the security of motorcycle is pretty good. However, sometimes people like to overdo in acting. Therefore, some people [...]]]></description> <content:encoded><![CDATA[<p style="text-align: justify;">At the <a title="Motorcycle Safeguard with Touch Censor" href="http://sulhansetiawan.com/pengaman-sepeda-motor-dg-sensor-sentuh">Motorcycle Safeguard with Touch Censor</a>, we&#8217;ve created a mechanism to make relay on if the sensor is touched and remained active even though the hand had been released from the sensor. With only one sensor the security of motorcycle is pretty good. However, sometimes people like to overdo in acting. Therefore, some people think that security would be more powerful if there are two sensor, and both sensors must be touched concurrently so that the relay can be active.</p><p style="text-align: justify;">To increase the number of sensors is actually not a difficult thing. You simply add the PNP transistor to serialized with Q2 in providing base current for Q1.</p><p style="text-align: center;"><div class="wp-caption aligncenter" style="width: 486px"><a href="http://resource.sulhansetiawan.com/img/SensorGanda.jpg"><img class=" " title="Double touch sensors" src="http://resource.sulhansetiawan.com/img/SensorGanda.jpg" alt="Double touch sensors" width="476" height="447" /></a><p class="wp-caption-text">Double touch sensors. Click to enlarge.</p></div><p style="text-align: justify;">Note that we only make the circuit of Q2 becomes twice with exactly the same form, then arranged in series.</p><p style="text-align: justify;">In the same way, you can also increase the number of sensors into three, or even four. Please try to <img src='http://www.sulhansetiawan.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://www.sulhansetiawan.com/pengaman-motor-multi-sensor/feed</wfw:commentRss> <slash:comments>42</slash:comments> </item> </channel> </rss>
