قسم الميكروكنترولر والروبوت ودوائر الاتصال بالحاسب الالي قسم المتحكمات الـ microcontroller و المعالجات microprocessor و التحكم الرقمي بالكمبيوتر CNC والانظمة الآلية والروبوت Robots

أدوات الموضوع

TEMI
:: مهندس ::
تاريخ التسجيل: Sep 2013
المشاركات: 1
نشاط [ TEMI ]
قوة السمعة:0
قديم 04-04-2014, 02:03 PM المشاركة 1   
ha كيف يمكن استبدال lm35 ب lm335 ???? Twitter FaceBook Google+



باسم الله الرحمن الرحيم
هل هناك طريقة لاستخدام الكاشف الحراري lm335 في حالة تعدر ايجاد lm35
ان كان الجواب نعم فماذا يجب استبداله في الدارة والكود .

متالاا في المشروع اسفله un thermométre par afficheur LCD


الدارة ب lm35

http://im59.gulfup.com/2069e7.png

+

http://www.mobdi3ine.net/up/img1396620775981.bmp


والكود سورس


// modules LCD connections
sbit LCD_RS at RB2_bit;
sbit LCD_EN at RB3_bit;
sbit LCD_D4 at RB4_bit;
sbit LCD_D5 at RB5_bit;
sbit LCD_D6 at RB6_bit;
sbit LCD_D7 at RB7_bit;

sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
// Fin modules LCD connections

int t;
char a;
char lcd[] = "000 Degree";

void main()
{
ADCON1 = 0x04;
Lcd_Init();
Lcd_Cmd(_LCD_CURSOR_OFF);

do
{
Lcd_Cmd(_LCD_CLEAR);
Lcd_out(1,1, "Temperature:");
t = ADC_Read(0);

t = t * 0.4887; // 4.887 est la resolution du convertisseur ADC
a = t%10;
lcd[2] = a + '0';

t = t/10;
a = t%10;
lcd[1] = a + '0';

t = t/10;
a = t%10;
lcd[0] = a + '0';

Lcd_out(2,1,lcd);
Delay_ms(100);
}while(1);
}


التعديل الأخير تم بواسطة : TEMI بتاريخ 04-04-2014 الساعة 02:13 PM
اعلانات

حمودي الحلو
:: مهندس متواجد ::
تاريخ التسجيل: Sep 2006
الدولة: العراق
المشاركات: 105
نشاط [ حمودي الحلو ]
قوة السمعة:0
قديم 04-04-2014, 05:08 PM المشاركة 2   
win


السلام عليكم
هذا نص بحث
مهندس هندي


Temperature sensor by LM335, LCD, PIC16F877A
The LM335 temperature sensor is an easy to use, cost-effective sensor with decent accuracy (around +/- 3 degrees C calibrated). The sensor is essentially a zener diode whose reverse breakdown voltage is proportional to absolute temperature. Software used:
Than the micro controller read this voltage of LM35 and after calculations display on the LCD
a. MickroC PRO
b. Proteous 7.7


BEST OF LUCK.

Engr Rana Muhammad Shakeel
Engnr.shakeel*gmail.com
+92-333-4962507
https://www.facebook.com/EngnrShakeel
plz like my page:
https://www.facebook.com/Electrical4Electronics












Circuit Diagram








Code:

كود:

								// Program to make a Liquid level                    /*Header******************************************************/

// LCD module connections
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;
sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;
// End LCD module connections


  int temp;
char txt[8];
unsigned char ch;                    //
unsigned int adc_rd;                 // Declare variables
char *text;                          //
long tlong;                          //
 void introduction (void)
 {
 

Lcd_Cmd(_LCD_CLEAR);             // LCD command (clear LCD)
  text = " Tempeature  ";       // Define the first message
  Lcd_Out(1,1,text);               // Write the first message in the first line
  text = "by PIC16F877A";            // Define the second message
  Lcd_Out(2,1,text);               // Define the first message
   Delay_ms(1000);
    Lcd_Cmd(_LCD_CLEAR);
  text = "Engnr Rana M";       // Define the first message
  Lcd_Out(1,1,text);               // Write the first message in the first line
   Delay_ms(1000);
  text = "   Shakeel   ";            // Define the second message
  Lcd_Out(2,1,text);               // Define the first message
   Delay_ms(2000);
   Lcd_Cmd(_LCD_CLEAR);             // LCD command (clear LCD)
   text = " Temperature ";       // Define the first message
 Lcd_Out(1,1,text);

 }
void main() 
{
    TRISA = 0xFF;

      trisB=0x00;
      portb=1;
      adcon1=0x00;
    Lcd_Init();                      // LCD display initialization
    Lcd_Cmd(_LCD_CURSOR_OFF);        // LCD command (cursor off)
    Lcd_Cmd(_LCD_CLEAR);             // LCD command (clear LCD)
    ADCON1 = 0x82;                   // A/D voltage reference is VCC
    TRISA = 0xFF;                    // All port A pins are configured as inputs
    Delay_ms(1000);
      introduction (void);
    text = "Temp: ";               // Define the third message
     Delay_ms(1000);
    while (1) {
       adc_rd = ADC_Read(0);        // A/D conversion. Pin RA2 is an input.
        Lcd_Out(2,1,text);           // Write result in the second line
        temp=(adc_rd - 559.567) / 2 ;
        inttostr(temp,txt);            // convert integer into string
             Lcd_Out(2,5,txt);
              Lcd_Chr_CP('C');           // display  character
           Delay_ms(1);
     
    }
}

الشكر مخصوص للمهندس اعلاه طبعا


التعديل الأخير تم بواسطة : حمودي الحلو بتاريخ 04-04-2014 الساعة 05:24 PM
اعلانات اضافية ( قم بتسجيل الدخول لاخفائها )
  
إضافة رد

العلامات المرجعية

«     الموضوع السابق       الموضوع التالي    »
أدوات الموضوع

الانتقال السريع إلى


الساعة معتمدة بتوقيت جرينتش +3 الساعة الآن: 06:50 PM
موقع القرية الالكترونية غير مسؤول عن أي اتفاق تجاري أو تعاوني بين الأعضاء
فعلى كل شخص تحمل مسئولية نفسه إتجاه مايقوم به من بيع وشراء وإتفاق وأعطاء معلومات موقعه
التعليقات المنشورة لا تعبر عن رأي موقع القرية الالكترونية ولايتحمل الموقع أي مسؤولية قانونية حيال ذلك (ويتحمل كاتبها مسؤولية النشر)

Powered by vBulletin® Version 3.8.6, Copyright ©2000 - 2025