Bangladesh National University Result

Custom Search

Thursday, March 22, 2012

Four Voltmeter In Single Hardware with PIC16F72 Microcontroller and 16*2 LCD

// Volt meter Test



// 10/03/2012 Friday


// Satya Ranjan Sarkar


// -----------------------------------------------------------------------------


//Display volt variable -------------------------------------------------------


unsigned int adc_volts1;


unsigned int volts1;


unsigned int adc_volts2;


unsigned int volts2;


unsigned int adc_volts3;


unsigned int volts3;


unsigned int adc_volts4;


unsigned int volts4;






char txt[8]; // used to display number string


//Display Name text variable ---------------------------------------------------


// wrap delay as a function call to save code size -----------------------------


void delay_500ms(void)


{


Delay_mS(500); // this value gives about 500ms per "pulse"


}


void main ()


{


TRISA = 0xFF; // All Input


TRISB = 0b00000000; // input & output


TRISC = 0b00000000; // All output






PORTB = 0x00; // PortB Clear


PORTC = 0x00; // PortC Clear






ADCON1=0X80; // all input are analog






delay_500ms(); // small delay for PSU to stabilise










Lcd_Init(&PORTB); // Initialize LCD connected to PORTB


Lcd_Cmd(Lcd_CLEAR); // Clear display


Lcd_Cmd(Lcd_CURSOR_OFF); // Turn cursor off


delay_500ms();


//Start loop here---------------------------------------------------------------


while(1)


{


adc_volts1 = ADC_Read(1); // read Batt Volt AD


delay_500ms();


volts1 = (adc_volts1 * 12); // 10 to 25 volts 12 to 30 volts 15 to 38 volts


wordtostr(volts1,txt); // format voltage int to text


txt[5] = txt[4]; // move 2 decimal places


txt[4] = txt[3];


txt[3] = '.'; // add dec point


txt[6] = 'V'; // add volts


txt[7] = 0; // and add NULL


Lcd_Out(1,1,txt); // display battery volt


delay_500ms();


adc_volts = ADC_Read(2); // read Batt Volt AD






delay_500ms();


volts2 = (adc_volts2 * 12); // 10 to 25 volts 12 to 30 volts 15 to 38 volts


wordtostr(volts2,txt); // format voltage int to text


txt[5] = txt[4]; // move 2 decimal places


txt[4] = txt[3];


txt[3] = '.'; // add dec point


txt[6] = 'V'; // add volts


txt[7] = 0; // and add NULL


Lcd_Out(1,8,txt); // display battery volt






delay_500ms();


adc_volts3 = ADC_Read(3); // read Batt Volt AD


delay_500ms();


volts3 = (adc_volts3 * 12); // 10 to 25 volts 12 to 30 volts 15 to 38 volts


wordtostr(volts3,txt); // format voltage int to text


txt[5] = txt[4]; // move 2 decimal places


txt[4] = txt[3];


txt[3] = '.'; // add dec point


txt[6] = 'V'; // add volts


txt[7] = 0; // and add NULL


Lcd_Out(2,1,txt); // display battery volt






delay_500ms();


adc_volts4 = ADC_Read(2); // read Batt Volt AD


delay_500ms();


volts4 = (adc_volts4 * 12); // 10 to 25 volts 12 to 30 volts 15 to 38 volts


wordtostr(volts4,txt); // format voltage int to text


txt[5] = txt[4]; // move 2 decimal places


txt[4] = txt[3];


txt[3] = '.'; // add dec point


txt[6] = 'V'; // add volts


txt[7] = 0; // and add NULL


Lcd_Out(2,8,txt); // display battery volt


}


}






Tuesday, September 20, 2011

নিচে লিংকটি C Programming এর উপর একটি বাংলা বই । বই টি শাহরিয়ার সুবিন এর লিখা।
www.cpbook.subeen.com

আশা করি সবার বিশেষ করে নবিন  Programmer দের উপকারে আসবে

Wednesday, August 3, 2011

A Awsm Book of Digital Electronics.

A Awsm Book of Digital Electronics.

Send Free Sms World Wide Even In Bangladesh

 Send  Free Sms World Wide Even In Bangladesh
www.freesmscraze.com   click the link and Send Free Sms any Operator In Bangladesh...and all the world...

Sunday, October 17, 2010

Visual Electronics Calculator

Electronics এর উপর এটি একটি মজার Calculator. Visual Calculator টি আশা করি সবার ভাল লাগবে।


এ সংক্রান্ত প্রয়োজনে ফোন করুন +৮৮০১৯১৫৫৪৮৮০১ অখবা +৮৮০১৭১৭৯৭৩১৪০

Elements of Nuclear Physics by Mayerhof

 Elements of Nuclear Physics - Walter E. Meyerhof
Thanks for Visiting 
www.nabilphysics.blogspot.com

Saturday, October 9, 2010

Electronics for 2-2 and 3-2 SUST

A Massive Website For Electronics For Specially Network Theorem and Practical....Its really a wonderful Site
Please Do Visit For Better Knowledge...


Saturday, September 25, 2010

Youtube Video Downloader

Youtube Video Downloader
any related problem call 08801915548801 or 08801717973140

Solid State Physics 1st Term Test

Solid State Physics 1st Term Test
  if u face any problem call 08801915548801 or 08801717973140
Thanks for visiting my site

Sunday, September 19, 2010

Firefox Speed up

Speed Up Firefox
Yes, firefox is already pretty damn fast but did you know that you can tweak it and improve the speed even more?

That's the beauty of this program being open source.
Here's what you do:
In the URL bar, type “about:config” and press enter. This will bring up the configuration “menu” where you can change the parameters of Firefox.

Note that these are what I’ve found to REALLY speed up my Firefox significantly - and these settings seem to be common among everybody else as well. But these settings are optimized for broadband connections - I mean with as much concurrent requests we’re going to open up with pipelining… lol… you’d better have a big connection.

Double Click on the following settins and put in the numbers below - for the true / false booleans - they’ll change when you double click.

Code:
browser.tabs.showSingleWindowModePrefs – true
network.http.max-connections – 48
network.http.max-connections-per-server – 16
network.http.max-persistent-connections-per-proxy – 8
network.http.max-persistent-connections-per-server – 4
network.http.pipelining – true
network.http.pipelining.maxrequests – 100
network.http.proxy.pipelining – true
network.http.request.timeout – 300


One more thing… Right-click somewhere on that screen and add a NEW -> Integer. Name it “nglayout.initialpaint.delay” and set its value to “0”. This value is the amount of time the browser waits before it acts on information it receives. Since you’re broadband - it shouldn’t have to wait.

Now you should notice you’re loading pages MUCH faster now!
Search Anything you want.just write and click search and see the magic