tag:blogger.com,1999:blog-59819640292398682842024-03-19T13:41:21.064+05:30ELECTRO-PASSIONNecessity is the Mother of invention.Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-5981964029239868284.post-37019194365769144382016-06-25T10:51:00.001+05:302018-10-26T10:23:42.530+05:30How to interface 16x2 LCD with Raspberry Pi using GPIO & Python<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="clear: both; text-align: left;">
Components Required:</h3>
<div>
<div>
Here you need following components to complete the task.</div>
<div>
<ul style="text-align: left;">
<li>Raspberry pi</li>
<li>power supply adapter for Raspberry pi</li>
<li>16x2 lcd display</li>
<li>potentiometer 10k</li>
<li>connecting wires</li>
<li>break board or any 16x2 display shield</li>
<li>Circuit connections</li>
</ul>
</div>
</div>
<div>
<div>
Connections are shown in this image. But its not mandatory to use this GPIO's. You can use any GPIO for connect the LCD. But you have to mention same GPIO's in Programming.</div>
<div>
<br /></div>
<div>
variable resistor is connected to adjust contrast of the display. Display is powered from Raspberry pi. R/W pin is connected to ground because i am not performing any read operation on display.</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8SA2Rg2CIv0hfVSFksZ9kI96Fu9anysLDhS84hg3DQLv22v6i0X1b91W2mDG_ui8ndpO_da9t-sKCBYikikw0-5FeGaLWInq9FVF129DENdCBhYBKgQfbMGjFMfIFD7-2okMxfHNqfiI/s1600/lcd+16x2+rpi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8SA2Rg2CIv0hfVSFksZ9kI96Fu9anysLDhS84hg3DQLv22v6i0X1b91W2mDG_ui8ndpO_da9t-sKCBYikikw0-5FeGaLWInq9FVF129DENdCBhYBKgQfbMGjFMfIFD7-2okMxfHNqfiI/s320/lcd+16x2+rpi.jpg" width="294" /></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5V3xTYnEQiIuafSZUAOrtFRcE77a4ywm5dpx64j-MnheV0qshBHT3Oo1dRRAYiZR-xr0zHQN5WBnrM2o48yaRgFg1uODdvCAmx80XJh-LO7DvcDdKjLzdsqCo6h7rKq2zTiiv9GiWQlU/s1600/IMG_20160620_105732.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5V3xTYnEQiIuafSZUAOrtFRcE77a4ywm5dpx64j-MnheV0qshBHT3Oo1dRRAYiZR-xr0zHQN5WBnrM2o48yaRgFg1uODdvCAmx80XJh-LO7DvcDdKjLzdsqCo6h7rKq2zTiiv9GiWQlU/s320/IMG_20160620_105732.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
Working video:</h3>
<div class="separator" style="clear: both; text-align: center;">
<span style="text-align: left;"> </span><iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/7v_L7gpMYH4/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/7v_L7gpMYH4?feature=player_embedded" width="320"></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="clear: both; text-align: left;">
Code:</h3>
<div>
<div>
I designed an display library namely lcd.py In this library i write some functions to which can be called by user. In order to drive lcd it is mandatory to include this library in your code. More details about library is available in library.</div>
<div>
First of all you have to execute begin() function and pass the pins which you are going to use for interface display.</div>
<div>
Here Print() function can print any value passed to this function.</div>
<div>
This display isinterfaced in 4 bit mode so only 4 pins D4-D7 and RW,EN pins are connected to raspberry pin.</div>
<div>
<br /></div>
<div>
Here code is available for this instructable.</div>
<div>
<a href="https://github.com/shubhamtivedi95/Rpi_lcd" target="_blank">code</a></div>
<div>
<br /></div>
<h3 style="text-align: left;">
Disadvantage:</h3>
<div>
<br /></div>
<div>
This won't be work properly if we put this script to run automatically at boot. This is because the Raspberry pi is not Real time controller. Need some more improvement in this code.</div>
<div>
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
</div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com0tag:blogger.com,1999:blog-5981964029239868284.post-59876593931260749472016-06-10T12:16:00.001+05:302018-10-26T10:56:55.701+05:30Real Time Clock(How to interface DS1307 RTC to AT89S52 microcontroller)<div dir="ltr" style="text-align: left;" trbidi="on">
Construction<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9sfaF37lib9pvpSULNQvwTK9ihpQwhIpfdX95cGnY2rwkHb3Qj4aIJXDrzP0OqLA2wAyOb6jZCRwkTBzMoxcfP4Tdo9VSoyCZgrnBEtAxs6uNArL1CUyM99kkIzulC3lG-mLLs8YpI8/s1600/ds1307+board.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib9sfaF37lib9pvpSULNQvwTK9ihpQwhIpfdX95cGnY2rwkHb3Qj4aIJXDrzP0OqLA2wAyOb6jZCRwkTBzMoxcfP4Tdo9VSoyCZgrnBEtAxs6uNArL1CUyM99kkIzulC3lG-mLLs8YpI8/s320/ds1307+board.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">fig.1</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD_HAUP-Dx34wk8hk1_c53p5YdtFG71IhVkaalo2JpWjVqpuzYlrPFmAYtdYvxFtGlak8-jJbz15S3XuT25DOym-ptGHRe1buNykDiITsETK1UdoBBRcSb1tPc660xgw68fbjmoJqRpmM/s1600/DS1307-real-time-clock-RTC-circuit.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="184" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD_HAUP-Dx34wk8hk1_c53p5YdtFG71IhVkaalo2JpWjVqpuzYlrPFmAYtdYvxFtGlak8-jJbz15S3XuT25DOym-ptGHRe1buNykDiITsETK1UdoBBRcSb1tPc660xgw68fbjmoJqRpmM/s320/DS1307-real-time-clock-RTC-circuit.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">fig.2</td></tr>
</tbody></table>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsEz-xqS7fUGePxrMLDmPgXwJKZHsPbQuNspPrcun-3E7gNh-UIgtI864JcszCYqxla03aSKBHECHRKVDgOh60pzECz6ALi6VTEDi0VSSwOUly7FOATiIRYF84yd4VDDC8lRnD88EXNT0/s1600/Untitled.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsEz-xqS7fUGePxrMLDmPgXwJKZHsPbQuNspPrcun-3E7gNh-UIgtI864JcszCYqxla03aSKBHECHRKVDgOh60pzECz6ALi6VTEDi0VSSwOUly7FOATiIRYF84yd4VDDC8lRnD88EXNT0/s320/Untitled.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">fig.3</td></tr>
</tbody></table>
<br />
The circuit is designed in two separate parts. Fig. 1 Shows the RTC DS 1307 IC connection. This connection is done by using zero PCB. The connection is the same as shown in Fig. 2.<br />
I used AT89s52 Development Board which I designed a few months ago using Screen print technique for PCB design. The SCL pin of RTC is connected to pin P1.1 and SDA pin is connected to pin P1.0 of 89s52 microcontroller. LCD 16x2 is interfaced in the following way.<br />
<br />
PIN OF LCD PIN OF AT89s52<br />
D7 - P3.7<br />
D6 - P3.6<br />
D5 - P3.5<br />
D4 - P3.4<br />
RS - P1. 6<br />
RW - P1. 5<br />
E - P1.4<br />
<div>
<br /></div>
<h3 style="text-align: left;">
Working Video</h3>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/mcoet_krY8c/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/mcoet_krY8c?feature=player_embedded" width="320"></iframe><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h3 style="text-align: left;">
Code</h3>
<div>
The program is designed in Keil uvision 5 software. Separate library files are used for each interface. please go through the readme file before proceeding further. The description of each function is also available in this attachment</div>
<div>
<a href="https://github.com/shubhamtivedi95/rtc_89s52" target="_blank">Click here to download the attachment</a></div>
<div>
<br /></div>
<div>
For any query please write at shubhamtrivedi95@gmail.com</div>
<div>
<br />
<br />
<a href="http://www.facebook.com/electropassion" target="_blank"><u>click here to like on facebook</u></a></div>
</div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com0tag:blogger.com,1999:blog-5981964029239868284.post-59159074131138654492016-06-08T14:01:00.002+05:302018-10-26T11:07:55.265+05:30 Real Time Clock(How to interface DS1307 RTC to pic18f452 microcontroller)<div dir="ltr" style="text-align: left;" trbidi="on">
Welcome to you,<br />
<br />
Here I am designed a Real Time Clock using a PIC18F452 microcontroller.<br />
I will explain how to design the Real Time Clock using PIC microcontroller.<br />
<h3>
RTC Using PIC18F452</h3>
<div>
PIC is advance microcontroller series. In PIC microcontroller I2C(Inter-Integrated Circuit) Bus is available on board. RTC used in this project is DS1307 which needed the I2C interface to read and write data from and to RTC. Because I2C bus is on board in PIC microcontroller Interfacing becomes easy.</div>
<div>
There will no need to write separate code for the I2C bus. </div>
<h4 style="text-align: left;">
<br />Construction</h4>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_MzIrFy3Vk_K5tytVKD0Fq9rGSi3QSfi6nRqBYFe1yAQD_CgmevlOI2PfeKtMGmcN44XwFahyphenhyphenBv5mChFcdbjn8MwNzREjD8WbURu-8jJYSfuVACjqdeTCTFeK-R6duxy9qrnMVdRyqE0/s1600/ds1307+board.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_MzIrFy3Vk_K5tytVKD0Fq9rGSi3QSfi6nRqBYFe1yAQD_CgmevlOI2PfeKtMGmcN44XwFahyphenhyphenBv5mChFcdbjn8MwNzREjD8WbURu-8jJYSfuVACjqdeTCTFeK-R6duxy9qrnMVdRyqE0/s320/ds1307+board.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Fig.1</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFhccehmQSzbbX2JHJTkBitqF507lMiK7bxb2GtvpcHJnKp7JihVE3bxA0hsIdLwuC9lHNd6wvZCXnNVbdOGAL1xDuBNcZCwQobr0YWq6nbPz7jDSgJcUt84B0hLsQsKlgv2qJ9WAPFAU/s1600/pic+board.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFhccehmQSzbbX2JHJTkBitqF507lMiK7bxb2GtvpcHJnKp7JihVE3bxA0hsIdLwuC9lHNd6wvZCXnNVbdOGAL1xDuBNcZCwQobr0YWq6nbPz7jDSgJcUt84B0hLsQsKlgv2qJ9WAPFAU/s320/pic+board.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Fig. 2</td></tr>
</tbody></table>
<div>
</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkYLD5DZqUJ9zoA18cRy8uRIYlhWHLI7I6ogPrwXxcf0wpHCFeV2F23VXanNeBjjJ9j0BDLj379ToDHT77czjwyyCjWEwhRJlmfs09wmDlQSI8SXIvoHywNfiLkI7Gh23TrvcbXvc9-hg/s1600/DS1307-real-time-clock-RTC-circuit.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="" border="0" height="184" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkYLD5DZqUJ9zoA18cRy8uRIYlhWHLI7I6ogPrwXxcf0wpHCFeV2F23VXanNeBjjJ9j0BDLj379ToDHT77czjwyyCjWEwhRJlmfs09wmDlQSI8SXIvoHywNfiLkI7Gh23TrvcbXvc9-hg/s320/DS1307-real-time-clock-RTC-circuit.png" title="fug" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Fig. 3</td></tr>
</tbody></table>
<div class="separator" style="clear: both; text-align: left;">
The circuit is designed in two separate parts. Fig. 1 Shows the RTC DS 1307 IC connection. This connection is done by using zero PCB. The connection is the same as shown in Fig. 3.</div>
<div class="separator" style="clear: both; text-align: left;">
I used the PIC18F452 Development Board which I designed a few months ago using Screen print technique for PCB design. The SCL pin of RTC is connected to pin 18 and SDA pin is connected to pin 23 of PIC microcontroller. LCD 16x2 is interfaced in the following way.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h4 style="clear: both; text-align: left;">
PIN OF LCD PIN OF PIC18F452</h4>
<div class="separator" style="clear: both; text-align: left;">
</div>
<ul style="text-align: left;">
<li>D7 - RD7</li>
<li>D6 - RD6</li>
<li>D5 - RD5</li>
<li>D4 - RD4</li>
<li>RS - RB5</li>
<li>RW - RB4</li>
<li>E - RB3</li>
</ul>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<h4 style="clear: both; text-align: left;">
Working Video</h4>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/ywLskF7Q5Z0/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/ywLskF7Q5Z0?feature=player_embedded" width="320"></iframe><br />
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<h4 style="text-align: left;">
Code</h4>
<div>
The code is written in MPLAB IDE and C18 compiler is used to to compiler the code. PICKIT 2 is used to burn the code on PIC18F452 IC.</div>
<div>
Please read the README file which available in the attachment before proceed.</div>
<div>
<a href="https://github.com/shubhamtivedi95/RTC_PIC18f452" target="_blank">Click here to download this code.</a><br />
<br />
For any query please write at shubhamtrivedi95@gmail.com<br />
<br />
<a href="https://www.facebook.com/electropassion/" style="font-family: arial, tahoma, helvetica, freesans, sans-serif; font-size: 14.85px;" target="_blank">click here to like us on facebook</a></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com0tag:blogger.com,1999:blog-5981964029239868284.post-69899608836102785492016-05-23T21:30:00.002+05:302018-10-26T11:48:04.618+05:30How to Build Electronics calculator using Arduino uno and TFT Display Shield<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<h2 style="text-align: justify;">
<b>Electronics calculator using Arduino UNO and TFT Display Shield</b></h2>
<div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
Hello friends,</div>
</div>
</div>
</div>
</div>
<div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<br /></div>
</div>
</div>
</div>
</div>
<div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
Today I have something new to show you. As earlier mention in the title, I designed an <b style="text-decoration: underline;">ELECTRONIC CALCULATOR </b>using Arduino UNO and 2.4" TFT Lcd Display Shield.</div>
</div>
</div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<br /></div>
</div>
</div>
</div>
<h3 style="text-align: justify;">
<i><b>Construction</b></i></h3>
<div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
The system is built around Arduino UNO r3 microcontroller and 2.4" TFT LCD shield. The shield is designed in such a way that no connection error will occur. Arduino UNO can be powered by 9v or 12v adapted or USB cable. on board 3.3v regulator is available on LCD shield. LCD shield gets 5v supply from arduino and convert it into 3.3v using regulator ic 1117-3.3. further, this supply is given to the LCD. LCD consist of 2.4" resistive touch pad which use as an input device for the system. The LCD is interfaced to arduino with 8 bit data bus and 5 bit control bus. this control bus is connect to 5 analg pins of arduino and data bus is connected to digital i/o pins. Touch pad is also interface with this bus . Alternatively, the touch pad and lcd is accessed through the microcontroller. Reset switch is available on tft lcd shield.</div>
</div>
</div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<br /></div>
</div>
</div>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrGiM1vPodu38aL30Y7kTGaLCJj5fPUKLXOkH7GCEyuWOjHE8_qimv4NONH-rHSMnsdEkXxPoYDfJc2gCGgj4-YLuEoRVzcE6dfV2DUbTPx78LkY62AReRcHJkxf3EGkiFA2y9X3Lv6Nw/s1600/IMG_20160523_203148.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrGiM1vPodu38aL30Y7kTGaLCJj5fPUKLXOkH7GCEyuWOjHE8_qimv4NONH-rHSMnsdEkXxPoYDfJc2gCGgj4-YLuEoRVzcE6dfV2DUbTPx78LkY62AReRcHJkxf3EGkiFA2y9X3Lv6Nw/s320/IMG_20160523_203148.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxXamTZ30FcEqCOwsBUy0Bh6Hy9spYqPKX9Wf6cfwTSIDJy2mpzulGfHnYw6G-3idM2g1cocSMY57lI8LzjXo_17yEFaPdzy3rH3SBDRE4F8DrFP3T5ZlJJL-8rJ5E6hAlal_f02_8D6I/s1600/IMG_20160523_191356.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxXamTZ30FcEqCOwsBUy0Bh6Hy9spYqPKX9Wf6cfwTSIDJy2mpzulGfHnYw6G-3idM2g1cocSMY57lI8LzjXo_17yEFaPdzy3rH3SBDRE4F8DrFP3T5ZlJJL-8rJ5E6hAlal_f02_8D6I/s320/IMG_20160523_191356.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxa-EopH7ebC-o6XWHYb-Hb5G5-cL1qObMfEOI6pP18do7hWgv0eo6xPYQFxlIymt8VGn-5aE-xWMkWJg5r0g5nrTQ_lq3ArB-SBMcW7ZEjMWJ8xaGf48R3rnWXLlbuS46McwKysXXzM/s1600/IMG_20160523_203038.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIxa-EopH7ebC-o6XWHYb-Hb5G5-cL1qObMfEOI6pP18do7hWgv0eo6xPYQFxlIymt8VGn-5aE-xWMkWJg5r0g5nrTQ_lq3ArB-SBMcW7ZEjMWJ8xaGf48R3rnWXLlbuS46McwKysXXzM/s320/IMG_20160523_203038.jpg" width="320" /></a> </div>
</div>
</div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<br /></div>
</div>
</div>
</div>
<h3 style="text-align: justify;">
<i>Working:</i></h3>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
The System wake up with a message. and wait for the user.</div>
</div>
</div>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnuy09DX-uom8zV3_I_vomS-YNTLjvcroKsqA8xwVYV5OAebc4-kZxsmc-VJhNVEf2nZfKXY-YZy9G4kTenka_xjki4RPzorODG23euSsy0rPDfC3Xk6nnVgJQYAS1GJ4qX5jSW_9E2KU/s1600/IMG_20160523_203841.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnuy09DX-uom8zV3_I_vomS-YNTLjvcroKsqA8xwVYV5OAebc4-kZxsmc-VJhNVEf2nZfKXY-YZy9G4kTenka_xjki4RPzorODG23euSsy0rPDfC3Xk6nnVgJQYAS1GJ4qX5jSW_9E2KU/s320/IMG_20160523_203841.jpg" width="180" /></a></div>
<div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
</div>
</div>
</div>
</div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
After that main calculator opens up as shown in the figure.</div>
</div>
</div>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZEff67Ynj9Yqr7pd3pATZJEmRx_2-zde76cBG43a2XFJZ_Pu1dcHUFk05SIAqV-ET0BkWryNd_meiBZgVZp2xmYAmocMBo7l_NXVwmi6VTJa73Ml-B0Ry4pldvm35GBSLRaBd2vVRqhw/s1600/IMG_20160523_204253.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZEff67Ynj9Yqr7pd3pATZJEmRx_2-zde76cBG43a2XFJZ_Pu1dcHUFk05SIAqV-ET0BkWryNd_meiBZgVZp2xmYAmocMBo7l_NXVwmi6VTJa73Ml-B0Ry4pldvm35GBSLRaBd2vVRqhw/s320/IMG_20160523_204253.jpg" width="180" /></a></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
The system support most of the mathematical operations and also it supports the logical operations also which further more helpful for the programmer. it supports ADDITION,MULTIPLICATION,SUBTRACTION, and DIVISION. However, it is possible to perform Logical OR and Logical AND operation. All operations are perform on decimal number and results are also printed in decimal number except that the OR , AND operation produce the result in Binary. Apart from this calculator can be used to obtain the percentage and power of a given number. It also calculate Modular of given number. Delete button is present there to delete the incorrect digit or sign pressed by the user. The best feature which attract me towards this calculator is that it can produce, BINARY, HEX, OCTAL representation of given decimal number. Special buttons are given to select the appropriate operator.</div>
<div class="separator" style="clear: both; text-align: justify;">
Some pictures of working module is shown below.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjpO9QxCOvx4ma0ykDwaVri13bTdIz9i6VdbkNAMH6m0dbLEDRFvSlghVkI_8Mlh-e-mCO1MwpQMAmupQRheNiam5rFa0oEuAlTC6RJM5YUs_nlwwcffHyGgxvx6gRCHcFBDDRwfDOyXQ/s1600/IMG_20160523_180011.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: justify;"> <img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjpO9QxCOvx4ma0ykDwaVri13bTdIz9i6VdbkNAMH6m0dbLEDRFvSlghVkI_8Mlh-e-mCO1MwpQMAmupQRheNiam5rFa0oEuAlTC6RJM5YUs_nlwwcffHyGgxvx6gRCHcFBDDRwfDOyXQ/s320/IMG_20160523_180011.jpg" width="180" /> </a></div>
<div style="margin-left: 1em; margin-right: 1em; text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0bhW1jbAIPzp0CiFJPL4bokZtELDgx-M4fMVmsKOAL4Sx_rYN28Bqv1VMGBGE9JyD3SK1J8USWboFy71dvzw4a2GLBVXkuaPW6nty4p54EZsvAzTX-3THI3bC-fn_ml1hgxGy6hBCHnU/s1600/IMG_20160523_180144.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0bhW1jbAIPzp0CiFJPL4bokZtELDgx-M4fMVmsKOAL4Sx_rYN28Bqv1VMGBGE9JyD3SK1J8USWboFy71dvzw4a2GLBVXkuaPW6nty4p54EZsvAzTX-3THI3bC-fn_ml1hgxGy6hBCHnU/s1600/IMG_20160523_180144.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0bhW1jbAIPzp0CiFJPL4bokZtELDgx-M4fMVmsKOAL4Sx_rYN28Bqv1VMGBGE9JyD3SK1J8USWboFy71dvzw4a2GLBVXkuaPW6nty4p54EZsvAzTX-3THI3bC-fn_ml1hgxGy6hBCHnU/s320/IMG_20160523_180144.jpg" width="180" /></a> <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAF1DIPdgvjIG2W1cbvYmwMZaXs5iVAhEq3Sfcb2AImQEaYMbl8ZXhX5q72OpFG66VWeexXNwrpV-7n5VtBby37v_3IMw_fxODSSCniy_uZCSDgkivPwwODjTOhQKCT1oCSedYQzFkpQQ/s1600/IMG_20160523_191349.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAF1DIPdgvjIG2W1cbvYmwMZaXs5iVAhEq3Sfcb2AImQEaYMbl8ZXhX5q72OpFG66VWeexXNwrpV-7n5VtBby37v_3IMw_fxODSSCniy_uZCSDgkivPwwODjTOhQKCT1oCSedYQzFkpQQ/s320/IMG_20160523_191349.jpg" width="180" /></a></div>
</div>
</div>
<div style="text-align: center;">
<div style="text-align: justify;">
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<h3 style="clear: both; text-align: justify;">
<b><i>Advantages:</i></b></h3>
<div>
<ol style="text-align: left;">
<li style="text-align: justify;">it consumes low power and less space.</li>
<li style="text-align: justify;">Its also gives a negative answer.</li>
<li style="text-align: justify;">percentages is shown accurately up-to two digit after decimal point.</li>
<li style="text-align: justify;">No use of analog keys, used for input purpose, which saves the hardware .</li>
<li style="text-align: justify;">Each and every button animates after pressing it.</li>
<li style="text-align: justify;">It capable to print data to any serial device easily.</li>
</ol>
</div>
<h3 style="clear: both; text-align: justify;">
<b><i><br /></i></b></h3>
<div>
<h3 style="clear: both; text-align: justify;">
<span style="font-size: 18.72px;"><b><i>Working Video:</i></b></span></h3>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/LiinlPY4Ahw/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/LiinlPY4Ahw?feature=player_embedded" width="320"></iframe></div>
<h3 style="clear: both; text-align: justify;">
<b><i>Limitations:</i></b></h3>
<ol style="text-align: left;">
<li style="text-align: justify;">It can perform an operation on a maximum of 6 digit numbers individually.</li>
<li style="text-align: justify;">32767 this is the last number which can be converted into its equivalent HEX, BINARY or OCTAL number.</li>
<li style="text-align: justify;">any answer which contents more than 10 digit will likely to be wrong.</li>
<li style="text-align: justify;">At a time only one operation can be perform.</li>
<li style="text-align: justify;">Its not possible to use brackets "()" in this calculator. </li>
</ol>
<h3 style="text-align: justify;">
<i>Code:</i></h3>
</div>
</div>
<div>
<ol style="text-align: left;">
<li style="text-align: justify;"><i><a href="https://github.com/prenticedavid/MCUFRIEND_kbv" target="_blank">library</a></i></li>
<li style="text-align: justify;"><a href="https://github.com/shubhamtivedi95/Calculator-using-arduino" target="_blank">code</a></li>
</ol>
<div>
<div style="text-align: justify;">
<div style="text-align: center;">
<div style="text-align: justify;">
(Note: The library is based on you lcd.I am not sure that the same library will work on your project.)</div>
</div>
</div>
</div>
</div>
</div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com8tag:blogger.com,1999:blog-5981964029239868284.post-55090540689384881072015-09-15T00:23:00.002+05:302017-08-27T15:50:46.963+05:30USB AVR & AT89Sxx ISP Programmer (usbasp) <div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><br /></span></div>
<br />
<div style="text-align: justify;">
<span style="font-family: "verdana" , sans-serif; font-size: medium;"><br /></span></div>
<span style="font-family: "times" , "times new roman" , serif; font-size: large;">
</span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_HzCoGOMzu_r9YUQaZUDwrTbQK5oB6MsdPhBXMD_CTXb5eK1rnkScBQLf52QWHHpT75kX3Gx1UIihuYtaXKaMKg2mvwXB4CSL0yDnibBolO34Ylyf6918dSvktRM1t3VydrDwunFg8c/s1600/usbasp+1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><span style="font-family: "times" , "times new roman" , serif; font-size: large;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjA_HzCoGOMzu_r9YUQaZUDwrTbQK5oB6MsdPhBXMD_CTXb5eK1rnkScBQLf52QWHHpT75kX3Gx1UIihuYtaXKaMKg2mvwXB4CSL0yDnibBolO34Ylyf6918dSvktRM1t3VydrDwunFg8c/s400/usbasp+1.png" width="400" /></span></a><br />
<br />
<div style="text-align: justify;">
<span style="font-family: "verdana" , sans-serif; font-size: medium;"><br /></span></div>
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"></span><br />
<div style="text-align: justify;">
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><span style="font-family: "verdana" , sans-serif; font-size: medium;"> Welcome to you, This is shubham and today ,I have something special for you. Yes as you can saw its a USBASP programmer a tool for all beginners of embedded system. This programmer is most commonly used to program micro-controller. This circuit is build around ATmega8a microcontroller. It can be use for both 89xxx series as well as AVR microcontrollers. A most important feature of this program is IN-SYSTEM PROGRAMMING(ISP). Yes as name implies it is used to program any controller on given system. There is no need to remove chip from system. FRC cable is used to connect target microcontroller to this programmer. For more detail about this programmer please download the following attachment.</span></span></div>
<span style="font-family: "times" , "times new roman" , serif; font-size: large;">
</span><br />
<div style="text-align: justify;">
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><a href="https://drive.google.com/open?id=0B-h9QrKNmKRQcFJZOTZZWmg5aVk" target="_blank">click here for drivers and details</a></span></div>
<br />
<div style="text-align: justify;">
<span style="font-family: "verdana" , sans-serif; font-size: medium;"><br /></span></div>
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"></span><br />
<div style="text-align: justify;">
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><span style="font-family: "verdana" , sans-serif; font-size: medium;">Thank you </span></span></div>
<span style="font-family: "times" , "times new roman" , serif; font-size: large;">
</span></div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com2tag:blogger.com,1999:blog-5981964029239868284.post-8787315039413695892014-07-20T11:35:00.000+05:302017-01-10T22:29:07.628+05:30samsung c3303 battery connector jumper solution<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "times" , "times new roman" , serif; font-size: large;"><span style="font-family: times, 'times new roman', serif; font-size: x-large;"> </span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibH28X1axYC9j7-6iDIB-1HdTpKEvuKJsc1LUc9HrjQPBKc_OqioRUVc3pr61JxbzRzLhfHw9X2XWuTUu_obRZ3iz8890Z8YFfB3k3erfnvCqc1ck44TBNI8Sq4yZpAQRcbTWuofB6IgM/s1600/031-test3-disas-board.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibH28X1axYC9j7-6iDIB-1HdTpKEvuKJsc1LUc9HrjQPBKc_OqioRUVc3pr61JxbzRzLhfHw9X2XWuTUu_obRZ3iz8890Z8YFfB3k3erfnvCqc1ck44TBNI8Sq4yZpAQRcbTWuofB6IgM/s1600/031-test3-disas-board.jpg" title="c3303 battery connector" width="240" /></a></span></div>
<div class="separator" style="clear: both; text-align: center;">
<span style="font-family: "times" , "times new roman" , serif; font-size: medium;"><span style="font-family: "times" , "times new roman" , serif; font-size: large;"><span style="font-family: Times, Times New Roman, serif;"><span style="font-family: "verdana" , sans-serif; font-size: xx-small;"><span style="font-size: large;">All the three terminals are connected to pcb. so make the jumper as shown in above diagram. </span></span><span style="font-family: "verdana" , sans-serif; font-size: large;">I am sure you will do this. Its very easy and this will also solve auto restart problem during start up.</span></span><span style="font-family: Times, Times New Roman, serif; font-size: large;"> </span></span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Shubham Trivedihttp://www.blogger.com/profile/15435793996800838649noreply@blogger.com0