<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7225486652600082147</id><updated>2024-08-28T14:27:41.164-07:00</updated><title type='text'>Bedugul Online</title><subtitle type='html'>The Best Site For Learning Electronic</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-3883648044213749656</id><published>2010-08-17T20:16:00.001-07:00</published><updated>2010-08-17T20:16:46.461-07:00</updated><title type='text'>Creating Minimum System Atmega8535</title><content type='html'>&amp;nbsp;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;What is  the minimum system?&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;The minimum system is a series of at least where the  microcontroller chip can work.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;  Atmega8535 microcontroller has  dilengapi with internal oscillator, so  no crystal or resonator is  required external to the CPU clock source.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt; However, this oscillator maximum 8Mhz so I  suggest to keep using an external crystal.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;Internal  oscillator by the  manufacturer gives a chance 1 MHz, and to change it  we need to change  the settings of Fuse bits, for setting fuse bits need  to be careful,  because this setting is so vulnerable because if the  wrong setting microcontroller can cause damage, I had corrupted a   microcontroller.&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;Minimum System  AVR is very simple where  only connect AVCC to VCC and +5 V and GND and  AGND to the ground and  reset pin is not connected to anything &lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;.&lt;/span&gt; Chip will  be reset if the voltage is zero or RST pins are forced to zero&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;.&lt;/span&gt; This is the  minimum system without using a crystal.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt; For those who wear the above plus a series of  crystal-crystal on pins XTAL1 and XTAL2.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot; style=&quot;background-color: #f3f3f3;&quot;&gt;&lt;span id=&quot;goog_2142847564&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;The following minimum  system which uses a crystal (I recommend making the use of crystals)&lt;/span&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://draft.blogger.com/&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqvbEP9tmINiYoC3_L_TjuwqInDWpv0J2tn_6bUVcSM3DgFkG5xpDGHvP8r4u5kxfUpvXgFblJSrm5l7Hd_KyJDtidBo7nKUO5ryAl2pRbuaF1pIwzZla-GOjmKawIyBfRvUIv819Lo5s/s320/etekno+mikrokontroler+atmega8535.JPG&quot; width=&quot;320&quot; /&gt;&lt;span id=&quot;goog_2142847565&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;Combination the above  are the minimum system used to control the LEDs.&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;The above circuit can use  the live trace deeptrace, eagle, proteus, or other programs that you  mastered.&lt;/span&gt; &lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;For those who are lazy to download the trace made by  me, which I pake softrware deeptrace 2009, please &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?hl=en&amp;amp;langpair=id%7Cen&amp;amp;u=http://www.ziddu.com/download/10423837/sisminatmega8535.rar.html&amp;amp;prev=/translate_s%3Fhl%3Den%26q%3Dhttp://etekno.blogspot.com%26sl%3Den%26tl%3Did&amp;amp;rurl=translate.google.com&amp;amp;twu=1&amp;amp;usg=ALkJrhg3vOQNUEtnBd_lsv2W59WyARqBAg&quot;&gt;download  here&lt;/a&gt;&lt;/span&gt; &lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;downloadernya can use a downloader that my &lt;a href=&quot;http://translate.googleusercontent.com/translate_c?hl=en&amp;amp;langpair=id%7Cen&amp;amp;u=http://etekno.blogspot.com/2010/01/buat-sendiri-downloader-avr-atmega8535_28.html&amp;amp;prev=/translate_s%3Fhl%3Den%26q%3Dhttp://etekno.blogspot.com%26sl%3Den%26tl%3Did&amp;amp;rurl=translate.google.com&amp;amp;twu=1&amp;amp;usg=ALkJrhiauYzirYnN10x8Ja_ZrjrMTj-epw&quot;&gt;previous  post&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&amp;nbsp;&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&amp;nbsp;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&lt;span class=&quot;google-src-text&quot; style=&quot;direction: ltr; text-align: left;&quot;&gt;&lt;/span&gt;display the following  minimum system in deeptrace&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYUVqzR32pDS1XZKkbaihi6qzmOt-j1isel4pqCrhCyutJJ4ZMpiytuylze7X67WiHIO5zqzoGAwmOVGMGQcLb1BPao4rCoW9BJ4CjEPZQ66LV3PCseObHLj-BoF4Vr7vDRuHEpkbrL8w/s1600/etekno-sismin+8535.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;311&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYUVqzR32pDS1XZKkbaihi6qzmOt-j1isel4pqCrhCyutJJ4ZMpiytuylze7X67WiHIO5zqzoGAwmOVGMGQcLb1BPao4rCoW9BJ4CjEPZQ66LV3PCseObHLj-BoF4Vr7vDRuHEpkbrL8w/s320/etekno-sismin+8535.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;For the  prgram and the way I described in my program filling the next posting.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span onmouseout=&quot;_tipoff()&quot; onmouseover=&quot;_tipon(this)&quot;&gt;from&amp;nbsp; &lt;a href=&quot;http://etekno.blogspot.com/2010/06/proyek-1-membuat-sistem-minimum.html&quot;&gt;http://etekno.blogspot.com/2010/06/proyek-1-membuat-sistem-minimum.html&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/3883648044213749656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/creating-minimum-system-atmega8535.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/3883648044213749656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/3883648044213749656'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/creating-minimum-system-atmega8535.html' title='Creating Minimum System Atmega8535'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqvbEP9tmINiYoC3_L_TjuwqInDWpv0J2tn_6bUVcSM3DgFkG5xpDGHvP8r4u5kxfUpvXgFblJSrm5l7Hd_KyJDtidBo7nKUO5ryAl2pRbuaF1pIwzZla-GOjmKawIyBfRvUIv819Lo5s/s72-c/etekno+mikrokontroler+atmega8535.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-4871185251549627681</id><published>2010-08-17T20:08:00.001-07:00</published><updated>2010-08-17T20:08:43.716-07:00</updated><title type='text'>PWM Configuration for PIC16F877 microntroller</title><content type='html'>PWM can be used to control a motor driver or generate  sound samples.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.futurlec.com/Pictures/PIC16F877_Controller_350.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;http://www.futurlec.com/Pictures/PIC16F877_Controller_350.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;The  register specifically used to configure PWM are the  TRISC, PR2,  CCP1CON, CCP2CON,  CCPR1L, CCPR2L and T2CON registers. There are two PWM  channels on the  PIC16F877. These  modules are coined CCP1 et CCP2.  These modules are implemented on pins  16 and 17 of  the PIC16F877.  There are two ways to connect these pins to a L293D  H-Bridge. I  recommend to connect these to the L293D Chip Enable pins. PWM then   controls the  percentage of time the chip is enabled.&lt;br /&gt;
&lt;br /&gt;
There are two parameters that affect the behavior of the  PWM. The first  one is the  frequency of the pulses, the second is the length of these  pulses. The  length of the  pulse is also called the duty cycle, e.g.  the percentage of time the  motor is  enabled. In an ideal environment,  if a motor normally exhibit 100 RPM,  then it should  do 25 RPM with a  25% duty cycle&lt;br /&gt;
&lt;br /&gt;
It is important to experiment with these parameters to  find the  configuration that  is right for your application because no two motors  are the same. Some  motors are  better when the frequency is low  (between 2 000-5 000 Hz). Other motors  are best when  the frequency is  high, say between 15 000 and 20 000 Hz. Note that a low  frequency  (between 1 000 and 8 000 Hz) will produce an audible sound  that can be  very annoying. I have tested three robots with varying weight (500 g to  15 kg) and with  different  motors and have found that a frequency of 15  000 to 20 000 Hz gives good  results.  I have never seen any robot move  with a duty cycle of less than 50%. If  you want to do  this, you have  to find ways to control PWM in software, i.e. for a duty  cycle of 25%,   use a 50% duty cycle and turn PWM 50% of the time. Ideally, you will   find motors that  are not too fast at 50% and fast enough at 100%.&lt;br /&gt;
&lt;br /&gt;
The TRISC register must be initialized so that RC1 et RC2  are  identified as output  ports (bits 1 and 2 of TRISC must be set to 0).    CCP1CON and CCP2CON are used to configure CCP1 and CCP2  modules mode. A  value of 12 configures these modules for PWM mode.&lt;br /&gt;
&lt;br /&gt;
Timer2 is used by CCP1 and CCP2 modules for PWM  purposes. Timer2  prescaler  is configured using bits TCKPS0 et TCKPS1 of T2CON register  (bits 0 and  1). A value of 0  for these two bits configures a prescaler  of 1. Bit TMR2ON (bit 2) must  be initialized to 1 to start Timer2.PR2  register controls the pulse frequency. The  formula used to calculate  the pulse   period is:(PR2 + 1) * 4 * TOSC * (Timer2 prescaler   value).Pulse frequency is 1 / period. If PR2 is equal  to 255 and the  PIC runs at 20 MHz,  pulse frequency is 19.53 kHz with a Timer2  prescaler of 1, i.e.  1 / ((255 + 1) * 4 * 1 / 20 000 000 * 1).&lt;br /&gt;
&lt;br /&gt;
The CCPR1L et CCPR2L registers configure the &quot;duty  cycle&quot;. The &quot;duty  cycle&quot; is  relative to PR2. If PR2 is 100 and CCPR1 is 50, then the  &quot;duty cycle&quot; is  effectively 50%  (half of PR2).   &lt;br /&gt;
CCS provides macros to configure these  registers appropriately. Here is   an example program that shows how to configure PWM with CCS:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://mdubuc.freeshell.org/Common/demopwm.c&quot;&gt;demopwm.c&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/4871185251549627681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/pwm-configuration-for-pic16f877.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/4871185251549627681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/4871185251549627681'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/pwm-configuration-for-pic16f877.html' title='PWM Configuration for PIC16F877 microntroller'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-333122092731041672</id><published>2010-08-17T20:07:00.000-07:00</published><updated>2010-08-17T20:07:33.513-07:00</updated><title type='text'>Graphic LCD</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;border: medium none; clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border: medium none; clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border: medium none; clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border: medium none; clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBtig3CpEEFeVAnHuajJPM1uq__J_P-Rx93avfOmqYZpjhjR-qdie5fG8ZYpZBUt6wIUt3zlqFNSnVbwUbG_WOP00yjxb8WDm_vj8ksOmKOEW7gkxCBe3GSINmUnU5fmX6ypFvoYvn5ddF/s1600/Graphic_LCD_Display.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; ru=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBtig3CpEEFeVAnHuajJPM1uq__J_P-Rx93avfOmqYZpjhjR-qdie5fG8ZYpZBUt6wIUt3zlqFNSnVbwUbG_WOP00yjxb8WDm_vj8ksOmKOEW7gkxCBe3GSINmUnU5fmX6ypFvoYvn5ddF/s320/Graphic_LCD_Display.jpg&quot; /&gt;&lt;/a&gt;&lt;div style=&quot;border: medium none;&quot;&gt;&lt;div style=&quot;border: medium none; text-align: left;&quot;&gt;Done working on  Graphic LCD (GLCD) interfacing with 89c51. Here is exapmle&amp;nbsp; &lt;a href=&quot;http://www.4shared.com/file/QXxRwUZG/glcd_test2.html&quot;&gt;asm&lt;/a&gt; file  and &lt;a href=&quot;http://www.4shared.com/file/g9UymaF-/glcd_test2.html&quot;&gt;hex&lt;/a&gt;  code file.&lt;/div&gt;&lt;div style=&quot;border: medium none; text-align: left;&quot;&gt;And following are the  connection pattern for GLCD and 89c51.&lt;/div&gt;&lt;div style=&quot;border: medium none; text-align: left;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; ru=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIfEA8pFAEbVM6yu7SawBZZ4e3aecgMTnlG7TJZsLjRg6jgprpHTX7-sMTaRMX60T1HjC-7CMO7GqDPNO_JCDrql1cUewQyiqEfW3rx4DAhbUDTs5ybTq6QduPQowIhz_8_cKZvb5p0LYE/s320/8051-interface-with-GLCD1.jpg&quot; width=&quot;320&quot; /&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://microcontroller4all.blogspot.com/&quot;&gt;source&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/333122092731041672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/graphic-lcd.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/333122092731041672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/333122092731041672'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/graphic-lcd.html' title='Graphic LCD'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBtig3CpEEFeVAnHuajJPM1uq__J_P-Rx93avfOmqYZpjhjR-qdie5fG8ZYpZBUt6wIUt3zlqFNSnVbwUbG_WOP00yjxb8WDm_vj8ksOmKOEW7gkxCBe3GSINmUnU5fmX6ypFvoYvn5ddF/s72-c/Graphic_LCD_Display.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-7129461665370841151</id><published>2010-08-17T20:01:00.000-07:00</published><updated>2010-08-17T20:04:34.386-07:00</updated><title type='text'>DC Motor Control with Microcontroller ATmega8535</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;At mega 8535 microcontroller can use   control dc motor that is on pin d where there have PWM control. DC motor   can rotate because of the induction when the motor is connected to the   DC voltage source. DC motor control with microcontroller if it is done   more easily than without the microcontroller. We can change the   direction of rotation of DC motor directly by changing the polarity of   the voltage source. To change the speed of DC motors can be done by   changing the size of a fox-voltage source. Control with a   microcontroller as well as principled, but with an automated system. We   do not have to change the cable from the motor to the battery if you   want to change the direction of rotation, we just provide the logic 0 or   1 to the microcontroller is performed on the program in the   microcontroller. To change the velocity is also easier because we simply   use the existing PWM feature on the microcontroller. Maybe there are   still many who do not know what PWM&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;PWM (Pulse Width Modulation) is a  technique to get the effect of  the analog signal from a digital signal  to falter. PWM can be generated  using only digital i / o which  functioned as an output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1zNc85fCMUK-lqmjA_lm7qbRNiyzoD03kc9aaUp6ERyir0YL52_ltR_Sike11e70fyPPj2Y6cA4y8iQJ9ioogZtSfXQhEQ7LhOTwKlL2Nwp26jQMuGCg_7v9pUVvgn76ByCJx8PBdSyg/s1600/pwm.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;62&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1zNc85fCMUK-lqmjA_lm7qbRNiyzoD03kc9aaUp6ERyir0YL52_ltR_Sike11e70fyPPj2Y6cA4y8iQJ9ioogZtSfXQhEQ7LhOTwKlL2Nwp26jQMuGCg_7v9pUVvgn76ByCJx8PBdSyg/s200/pwm.JPG&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp; In the example above the waves, the comparison between high signal (1)   and low signal (0th) is the same. Above the wave is said to have 50%   duty cycle. Duty cycle is the ratio between the width of high signal (1)   the overall width of the cycle (cycle). If the PWM wave amplitude is 5   volts, then the average stress (as if to analog) that we get is 2.5   volts. Here&#39;s an example of wave PWM with duty cycle 10%, if the   amplitude of wave 5 volts then we will get the average analog voltage   0.5 volts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBeNP3a7WRPYPhEWM09EwRpPEKTY-RpmXrNw42RPp_576PoywQlctND6hKe3nkEZoNXIqUL4fq7xykBfYKVpubO0ABPci6YTWRxlw7GP9bRAw1lX5Y_xCI1gUjV_Cnwpsx0J3gW-ZO5Ds/s1600/pwm2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBeNP3a7WRPYPhEWM09EwRpPEKTY-RpmXrNw42RPp_576PoywQlctND6hKe3nkEZoNXIqUL4fq7xykBfYKVpubO0ABPci6YTWRxlw7GP9bRAw1lX5Y_xCI1gUjV_Cnwpsx0J3gW-ZO5Ds/s320/pwm2.JPG&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;In&amp;nbsp;  ATMEGA8535 have two way control  PWM, the PWM can be generated from the  first port input / output is  enabled as output. The second is to  utilize the facilities of the  function of the PWM timer / counter which  has been provided. With this  facility, the timing of the process of  high / low digital signal will  not disrupt the sequence of other  programs being executed by the  processor. In addition, by using this  facility to enter how many  servings we lived on and off time period on a  wave PWM registers. OCR1A,  OCR1B and OCR2 is register a place set PWM  duty cycle.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span class=&quot;long_text&quot; id=&quot;result_box&quot;&gt;&lt;span title=&quot;&quot;&gt;The   following schematic DC Motor Control with Microcontroller ATmega8535  of  my own, please trace itself, or if you want to please make my  request in  the comments section below ini. Click image to enlarge&lt;/span&gt;......&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61Zsvr_0q0Q1ePFevETzU8jt3yheO0cf1UIMlWBYJoiOjXODvU6Zb0MIuaAtrhX_ecq0cf0dQgvFDrtABvykGK2Q_MlxBLZoWL4nI8FmEIcOdfydZwwIBdPGSIyAPvH-Dmqaxw6OccHI/s1600/Motor+DC+dengan+Ic+drive+L298.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi61Zsvr_0q0Q1ePFevETzU8jt3yheO0cf1UIMlWBYJoiOjXODvU6Zb0MIuaAtrhX_ecq0cf0dQgvFDrtABvykGK2Q_MlxBLZoWL4nI8FmEIcOdfydZwwIBdPGSIyAPvH-Dmqaxw6OccHI/s320/Motor+DC+dengan+Ic+drive+L298.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
I separate the circuit into three main sections so that it is easy to understand and analyze our series, namely the minimum system, motor drivers, and motors (as a major expense). The minimum system the same as in my previous posting, the next part of the driver. in fact we can directly connect the microcontroller to the motor without a driver, this can be done if the motor that we use a small motor. we need a big motor for the drivers, these drivers can be made also with the MOSFET (often called the H-Bridge), we can use a more practical ie L298 driver ic, ni ijenis drivers able to control two motorcycles and also features the legs to control the PWM .&lt;br /&gt;
For our experiment we only use a single dc motor alone, here are photos from the series that I created.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh073Pc5-PFr5Opz_FbA8-YkNEGF9FDXZOpddR-oHjfHf2rY7ufhHtQVM8y6XkfokmLKlxs_ZFehyhjRQpxdQ8ZjKg5jZTK7QnyIVf83IaIfviK1B6Hy1TxqQNuQec-fNAhVD0Ti7i-6EY/s1600/kendali+motor+dc+dengan+L298+copy.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh073Pc5-PFr5Opz_FbA8-YkNEGF9FDXZOpddR-oHjfHf2rY7ufhHtQVM8y6XkfokmLKlxs_ZFehyhjRQpxdQ8ZjKg5jZTK7QnyIVf83IaIfviK1B6Hy1TxqQNuQec-fNAhVD0Ti7i-6EY/s320/kendali+motor+dc+dengan+L298+copy.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
For the program you can see below. Use the AVR Studio software (after AVR studio also install WinAVR is installed so that it AVRstudio supports the C language, because the standard AVRstudio using assembly language). To download your program can use the USB downloader downloader atapun series which has also been my post. The following program &lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;avr/io.h&amp;gt;&lt;br /&gt;
#include &amp;lt;util/delay.h&amp;gt;&lt;br /&gt;
#include &amp;lt;avr/interrupt.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define&amp;nbsp;&amp;nbsp;&amp;nbsp; DDR_motor&amp;nbsp;&amp;nbsp;&amp;nbsp; DDRD&amp;nbsp;&amp;nbsp;&amp;nbsp; //DDR untuk Motor&lt;br /&gt;
#define&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_motor&amp;nbsp;&amp;nbsp;&amp;nbsp; PORTD&amp;nbsp;&amp;nbsp;&amp;nbsp; //PORT untuk Motor&lt;br /&gt;
&lt;br /&gt;
#define en_ka &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable L298 untuk motor kanan&lt;br /&gt;
#define dirA_ka &amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction A untuk motor kanan&lt;br /&gt;
#define dirB_ka &amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Direction B untuk motor kanan&lt;br /&gt;
#define pwm_kanan&amp;nbsp;&amp;nbsp;&amp;nbsp; OCR1A&lt;br /&gt;
&lt;br /&gt;
void delay_ms(int ms)&lt;br /&gt;
{for (int i=0;i&amp;lt;ms;i++){_delay_ms(1);}}&lt;br /&gt;
&lt;br /&gt;
void maju(unsigned int pwm)&lt;br /&gt;
{&lt;br /&gt;
PORT_motor |=(1&amp;lt;&amp;lt;dirA_ka);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //motor maju&lt;br /&gt;
PORT_motor &amp;amp;=~(1&amp;lt;&amp;lt;dirB_ka);&lt;br /&gt;
pwm_kanan=pwm;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //pwm motor kanan&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void mundur(unsigned int pwm)&lt;br /&gt;
{&lt;br /&gt;
PORT_motor |=(1&amp;lt;&amp;lt;dirB_ka);&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //motor maju&lt;br /&gt;
PORT_motor &amp;amp;=~(1&amp;lt;&amp;lt;dirA_ka);&lt;br /&gt;
pwm_kanan=pwm;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //pwm motor kanan&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
int main (void)&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
DDR_motor=0xFF;&lt;br /&gt;
PORT_motor=0x00;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TCCR1A= (1&amp;lt;&amp;lt;WGM11)|(1&amp;lt;&amp;lt;WGM10)|&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (1&amp;lt;&amp;lt;COM1A1)|(0&amp;lt;&amp;lt;COM1A0)|&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (1&amp;lt;&amp;lt;COM1B1)|(0&amp;lt;&amp;lt;COM1B0);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TCCR1B= (0&amp;lt;&amp;lt;WGM13)|(1&amp;lt;&amp;lt;WGM12)|&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; (0&amp;lt;&amp;lt;CS12)|(0&amp;lt;&amp;lt;CS11)|(1&amp;lt;&amp;lt;CS10);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; TCNT1=0x0000;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; OCR1A=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; OCR1B=0;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; sei( );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
while(1)&lt;br /&gt;
{&lt;br /&gt;
mundur(1000);&lt;br /&gt;
delay_ms(5000);&lt;br /&gt;
maju(700);&lt;br /&gt;
delay_ms(3000);&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
see the main program, with a PWM motor will resign in 1000 over 5000ms (5 seconds) and then will forward denan PWM motor 700 for 3000ms (3 seconds). and the program will be repeated a maximum of motor-ulang.Kecepatan happen if we gave in 1000 and the minimum PWM value (motor stopped) if the PWM value of 0, see the main program, which is backward (1000) that mean the motor will spin backwards at top speed because the PWM is 1000</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/7129461665370841151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/dc-motor-control-with-microcontroller.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/7129461665370841151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/7129461665370841151'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/dc-motor-control-with-microcontroller.html' title='DC Motor Control with Microcontroller ATmega8535'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1zNc85fCMUK-lqmjA_lm7qbRNiyzoD03kc9aaUp6ERyir0YL52_ltR_Sike11e70fyPPj2Y6cA4y8iQJ9ioogZtSfXQhEQ7LhOTwKlL2Nwp26jQMuGCg_7v9pUVvgn76ByCJx8PBdSyg/s72-c/pwm.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-4388922625077697674</id><published>2010-08-17T19:58:00.000-07:00</published><updated>2010-08-17T19:58:59.548-07:00</updated><title type='text'>ISP Flash Microcontroller Programmer</title><content type='html'>&lt;b&gt;Introduction&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;This ISP Programmer can be used either for in-system programming or as a   stand-alone spi programmer for Atmel ISP programmable devices. The   programming interface is compatible to STK200 ISP programmer hardware so   the users of STK200 can also use the software which can program both   the 8051 and AVR series devices.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Hardware&lt;/b&gt;&lt;br /&gt;
Figure 1 shows the circuit diagram of the in-system programmer   interface, the power to the interface is provided by the target system.   The 74HCT541 ic isolate and buffer the parallel port signals. It is   necessary to use the HCT type ic in order to make sure the programmer   should also work with 3V type parallel port.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHd-bzPhEGVfvD_I7ye-uVf7VcwHWH59crENSGT-kVF-eaabY6n0Gu_2k-WVvPBy-9js6f7KsS4Sbt-clxGy0wsXPAGv66QUQxO3M-tnZCOKzPW6YruqvBARVqxQKLWe9IuX3GHLaLeqB/s1600/isp1_sch.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; ru=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHd-bzPhEGVfvD_I7ye-uVf7VcwHWH59crENSGT-kVF-eaabY6n0Gu_2k-WVvPBy-9js6f7KsS4Sbt-clxGy0wsXPAGv66QUQxO3M-tnZCOKzPW6YruqvBARVqxQKLWe9IuX3GHLaLeqB/s320/isp1_sch.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Figure 1: Circuit Diagram of the  ISP Programmer Interface&lt;br /&gt;
Figure 2 shows the circuit diagram of the stand-alone spi programmer,   the power to the interface is provided by the PC USB port which can   supply a max of 100mA current. Get a cheap USB cable, cut the cable   other end connector and attach a crimp shell connector to this end, red   wire is 5V and black is 0V.&lt;br /&gt;
&lt;br /&gt;
The printer port buffer interface is same as shown in figure 1. For the  u-controller a 40 pin ZIF socket can be used.&lt;br /&gt;
&lt;br /&gt;
This programmer circuit can be use to program the 89S series devices and   the AVR series devices which are pin compatible to 8051, like 90S8515.   For other AVR series devices the user can make an adapter board for  20,  28 and 40 pin devices. The pin numbers shown in brackets correspond  to  PC parallel port connector.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFa43mX1oiTXvybuMAJ8bLwJrpKF9P_AevzOomPPNRGmvMH1PiG5o0jVvF3OAPBijwFrhr5AfiQcXdOiGUyPX63jLARZuPC2efXCbwJnT2sRSO8_TzqepIwNCBUCG5_FMi7bxmAFKOmVqU/s1600/isp2_sch.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; ru=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFa43mX1oiTXvybuMAJ8bLwJrpKF9P_AevzOomPPNRGmvMH1PiG5o0jVvF3OAPBijwFrhr5AfiQcXdOiGUyPX63jLARZuPC2efXCbwJnT2sRSO8_TzqepIwNCBUCG5_FMi7bxmAFKOmVqU/s320/isp2_sch.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Figure 2: Circuit Diagram of  the SPI Programmer&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Software&lt;/b&gt;&lt;br /&gt;
The ISP-30a.zip file contains the main program and the i/o port driver.  Place all files in the same folder.&lt;br /&gt;
The main screen view of the program is shown in figure 3.&lt;br /&gt;
&lt;br /&gt;
Also make sure do not program the RSTDISBL fuse in ATmega8, ATtiny26 and   ATtiny2313 otherwise further spi programming is disable and you will   need a parallel programmer to enable the spi programming. For the fuses   setting consult the datasheet of the respective device.&lt;br /&gt;
&lt;br /&gt;
For the auto hardware detection it is necessary to short pin 2 and 12 of   DB25 connector, otherwise the software uses the default parallel port   i.e. LPT1.&lt;br /&gt;
&lt;br /&gt;
Following are the main features of this software,&lt;br /&gt;
&lt;br /&gt;
Read and write the Intel Hex file&lt;br /&gt;
Read signature, lock and fuse bits&lt;br /&gt;
Clear and Fill memory buffer&lt;br /&gt;
Verify with memory buffer&lt;br /&gt;
Reload current Hex file&lt;br /&gt;
Display buffer checksum&lt;br /&gt;
Program selected lock bits &amp;amp; fuses&lt;br /&gt;
Auto detection of hardware&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt;&lt;br /&gt;
The memory buffer contains both the code data and the eeprom data for   the devices which have eeprom memory. The eeprom memory address in   buffer is started after the code memory, so it is necessary the hex file   should contains the eeprom start address after the end of code memory   last address i.e. for 90S2313 the start address for eeprom memory is   0x800.&lt;br /&gt;
&lt;br /&gt;
The software does not provide the erase command because this function is   performed automatically during device programming. If you are required   to erase the controller, first use the clear buffer command then  program  the controller, this will erase the controller and also set the  AVR  device fuses to default setting.&lt;br /&gt;
&lt;b&gt;Download&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.4shared.com/file/P15DZebi/ISP-30a.html&quot;&gt;ISP-Flash  Programmer Software ISP-30a.zip&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhePK5s9zIR51HVerhkeo1UqZGE1sa-zOhK_zxL534ILqarlcf216cxW9G-WqN1-7KXaK_D6gYvRwshfls6pmPIdlC8GJqpv_BKEJKFZPXjUyHCfULmtnr0lWwzGtEGkJvJDYKYCLrd0_vL/s1600/ISP-Pgm.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; ru=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhePK5s9zIR51HVerhkeo1UqZGE1sa-zOhK_zxL534ILqarlcf216cxW9G-WqN1-7KXaK_D6gYvRwshfls6pmPIdlC8GJqpv_BKEJKFZPXjUyHCfULmtnr0lWwzGtEGkJvJDYKYCLrd0_vL/s320/ISP-Pgm.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Figure 3: Main screen of the  program ISP-Pgm Ver 3.0a</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/4388922625077697674/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/isp-flash-microcontroller-programmer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/4388922625077697674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/4388922625077697674'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/isp-flash-microcontroller-programmer.html' title='ISP Flash Microcontroller Programmer'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisHd-bzPhEGVfvD_I7ye-uVf7VcwHWH59crENSGT-kVF-eaabY6n0Gu_2k-WVvPBy-9js6f7KsS4Sbt-clxGy0wsXPAGv66QUQxO3M-tnZCOKzPW6YruqvBARVqxQKLWe9IuX3GHLaLeqB/s72-c/isp1_sch.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-1463218623792504910</id><published>2010-08-17T19:54:00.000-07:00</published><updated>2010-08-17T19:54:07.674-07:00</updated><title type='text'>LT1300 Solar Powered Power Supply</title><content type='html'>This  architecture was generated as allotment of a alien acclimate base  project. One of the requirements of the architecture is that it accept a  solar-powered accumulation with rechargeable batteries. This  architecture is based on a photovoltaic arrangement accessible from  Radio Shack alleged a BatterySAVER (part cardinal 980-1045). It was  advised to allegation your car array during the day. They allegedly  aren&#39;t actual accepted because you can aces them up for $15. The  affidavit claims an achievement of 1 watt but I begin that at apex in  Atlanta, the ability was a little les than bisected a watt. Maybe at the  equator during the autumnal equinox...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkX2BhqaJckiiuI07o_F2j4GVyq8KGnr9yR7aAZE7o5jvmSFrQ9nueHkFGgsgKyil88zIIDhPCc6tchbFqzkOo7WYCz4VcK40bQwsZr70fGWzSIFmDJFUEHID0uiw0TjyFJ14p7uhQq6k/s1600/solar+powered+power+supply.gif&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;LT1300 Solar Powered Power Supply &quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5406606815492675986&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkX2BhqaJckiiuI07o_F2j4GVyq8KGnr9yR7aAZE7o5jvmSFrQ9nueHkFGgsgKyil88zIIDhPCc6tchbFqzkOo7WYCz4VcK40bQwsZr70fGWzSIFmDJFUEHID0uiw0TjyFJ14p7uhQq6k/s400/solar+powered+power+supply.gif&quot; style=&quot;cursor: pointer; display: block; height: 302px; margin: 0px auto 10px; text-align: center; width: 400px;&quot; title=&quot;LT1300 Solar Powered Power Supply &quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&amp;nbsp;LT1300 Solar Powered Power Supply&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&amp;nbsp; &lt;br /&gt;
For my application, the  boilerplate cesspool off the batteries would is abundant abate than the  charging accepted (50mA). If your appliance has college boilerplate  accepted requirements, again R1 will charge to be adapted accordingly:&lt;br /&gt;
&lt;br /&gt;
R1=64mV/(50mA+Average Amount Current)&lt;br /&gt;
&lt;br /&gt;
Don&#39;t  try to cull too abundant accepted admitting because the solar console  can alone accommodate 500mW and the batteries charge 40% of that. That  leaves 300mW for your load.&lt;br /&gt;
&lt;br /&gt;
The architecture is based on four  anatomic blocks: 1) a 50mA accepted antecedent apprenticed by the solar  cells, 2) three AAA NiCAD batteries with a 500mAHr capacity, 3) a 5V,  400mA switch mode regulator, and 4) a low dropout 3.3V 150mA beeline  regulator. If you accept no charge for 3.3V again U3 and C4 can be  eliminated. If you alone charge 3.3V again U3 and C4 can be alone and  pin 2 of U2 can be affiliated to arena - this will catechumen U2 to a  3.3V switch mode regulator.&lt;br /&gt;
&lt;br /&gt;
All the capacitors on the switch mode  ability accumulation should be tantalum with C2 actuality affiliated  anon to pins 6 and 8 if possible.</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/1463218623792504910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/lt1300-solar-powered-power-supply.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/1463218623792504910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/1463218623792504910'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/lt1300-solar-powered-power-supply.html' title='LT1300 Solar Powered Power Supply'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkX2BhqaJckiiuI07o_F2j4GVyq8KGnr9yR7aAZE7o5jvmSFrQ9nueHkFGgsgKyil88zIIDhPCc6tchbFqzkOo7WYCz4VcK40bQwsZr70fGWzSIFmDJFUEHID0uiw0TjyFJ14p7uhQq6k/s72-c/solar+powered+power+supply.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7225486652600082147.post-2732505010788342115</id><published>2010-08-17T19:40:00.001-07:00</published><updated>2010-08-17T19:40:34.123-07:00</updated><title type='text'>Servo Light Dimmer</title><content type='html'>What, the of a dimmer,you may ask ?Well, then a concise answer would be that it:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Reduces power consumption(and bills)&lt;/li&gt;
&lt;li&gt;Increases life of lamps by switching them&lt;/li&gt;
&lt;li&gt;Allows the same lamp to serve as a ten-watt night lamp or a two hundred watt control illumination lamp.&lt;/li&gt;
&lt;/ul&gt;And this is exactly what this dimmer does.One plus point is that it  has a power handling capacity exceeding 1600 watts, far exceeding the  ordinary 300 watt types.&lt;br /&gt;
Any type of 400 PIV, 8 ampere triac may be used in the circuit VR1  provides illumination control.R2,R3 and C1 set the minimum brightness  level which can however be altered.&lt;br /&gt;
&lt;br /&gt;
The LED and R1 are optional,They serve the purpose of pilot  monitoring.The triac must be heavily heatsinked to prevent any damage.&lt;br /&gt;
A suitable front panel etch-on is shown in figure.The same can either be photocopied or xeroxed on self adhesive panel plates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4VAxyYPtui6d1XLJxAiMTqhwj4mVdPCuV85RQNn2i8W1bQyhjf7SZRDNEYkUPqTw0K5EzGGAnDX-d-fLaeOeFTkT7iNIUpsRweHNmt1Us_VTT1fjFnkiN-DNcZN3F_R3CADty9JL67A4/s1600/tt.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4VAxyYPtui6d1XLJxAiMTqhwj4mVdPCuV85RQNn2i8W1bQyhjf7SZRDNEYkUPqTw0K5EzGGAnDX-d-fLaeOeFTkT7iNIUpsRweHNmt1Us_VTT1fjFnkiN-DNcZN3F_R3CADty9JL67A4/s320/tt.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;The dimmer -an excellent power saver(and bill reducer)&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR8ZBjuQBpRG95foR8-9llEr1NT-oOD0XNiDIyM_YmmEWvCx23Ni_S51A9ubsZncx1b8j8eQLzsQEzvEDs6dmlqKeRe-rsu54z_vs5ATNKqKNiFGOi-4n8axWs-rPzd8hI3q5kjhr7ZXI/s1600/DSC01952.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR8ZBjuQBpRG95foR8-9llEr1NT-oOD0XNiDIyM_YmmEWvCx23Ni_S51A9ubsZncx1b8j8eQLzsQEzvEDs6dmlqKeRe-rsu54z_vs5ATNKqKNiFGOi-4n8axWs-rPzd8hI3q5kjhr7ZXI/s320/DSC01952.JPG&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;Figure : Front panel etch-on for the dimmer &lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://bedugulonline.blogspot.com/feeds/2732505010788342115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/servo-light-dimmer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/2732505010788342115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7225486652600082147/posts/default/2732505010788342115'/><link rel='alternate' type='text/html' href='http://bedugulonline.blogspot.com/2010/08/servo-light-dimmer.html' title='Servo Light Dimmer'/><author><name>Trader Lampung</name><uri>http://www.blogger.com/profile/06534637976691251842</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiISZ9Y_f_hX-bMckrVEiTlxCScOd1TupIXj80VjUvdo1ipOXbkc0cqqEDl1NNQfE_JVu6qTHChMaB9fvJzarvuVY80UfVRrAfJr-BIBAd-mzRmvuDSjWnxU4_a7dn89w/s220/bayu+sasongko+copy+copy+2.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4VAxyYPtui6d1XLJxAiMTqhwj4mVdPCuV85RQNn2i8W1bQyhjf7SZRDNEYkUPqTw0K5EzGGAnDX-d-fLaeOeFTkT7iNIUpsRweHNmt1Us_VTT1fjFnkiN-DNcZN3F_R3CADty9JL67A4/s72-c/tt.JPG" height="72" width="72"/><thr:total>0</thr:total></entry></feed>