Forum Replies Created

Viewing 15 posts - 166 through 180 (of 228 total)
  • Author
    Posts
  • in reply to: Why Raspberry Pi uses SD Card instead of Hard Disk #10394
    Ligo George
    Keymaster

    I already posted the reason for choosing SD Card. Windows will not work with Raspberry Pi. Operating system is working on Hardware. So hardware must be compatible with Operating System. We can only use OS customized for Raspberry Pi

    in reply to: Why Raspberry Pi uses SD Card instead of Hard Disk #10391
    Ligo George
    Keymaster

    Not even in Raspberry Pi, nowadays Hard Disks are getting replaced with Solid State Drives in latest computers. It has the following advantages.

    • More Durable
    • Faster Performance
    • Less Power Consumption
    • Light Weight
    • Long Life
    • Cost Efficient for Long Run (energy savings, long life, performance)
    • Very Low Heat Dissipation
    • No noise is produced as there is no moving parts
    in reply to: Display Float on LCD – MPLAB XC8 #10289
    Ligo George
    Keymaster

    Use sprintf() to convert floating point number to string :

    ........
    #include<stdio.h> 
    ......
    ...
    ...
    void main()
    {
      char s[16];
      float f;
      ........
      ....
      while(1)
      {
        ....
        ...
        ...
        sprintf(s, "Float = %f", f);
        Lcd_Set_Cursor(1, 1);
        Lcd_Write_String(s);
        ...........
        .....
      }
    }
    
    in reply to: Display Float on LCD – MPLAB XC8 #10280
    Ligo George
    Keymaster

    You can display floating point values on LCD in following two methods.

    1. By converting floating point value to string and display that sting using Lcd_Write_String()
    2. By separating each digits and display that digit using Lcd_Write_Char() after converting it to character

    The second method is the best method but it will vary depending upon the length of values that to be displayed.

    in reply to: PID CONTROLLER #10257
    Ligo George
    Keymaster

    Sorry,
    Currently we don’t have any PID projects.

    in reply to: Displaying UART data on LCD – PIC 16F877A #10255
    Ligo George
    Keymaster

    Yes, it is in 24 hour format.

    in reply to: Displaying UART data on LCD – PIC 16F877A #10236
    Ligo George
    Keymaster

    It is not a good practice to use goto statements in your programs.

    Try like this to display UART data on LCD :

    void main() 
    { 
      Lcd_Init(); 
      Lcd_Cmd(_LCD_CLEAR); 
      Lcd_Cmd(_LCD_CURSOR_OFF); 
    
      UART1_Init(9600); 
    
      while(1)
      { 
        if(UART1_Data_Ready()) 
        { 
          gps = UART1_Read(); 
          Lcd_Chr_Cp(gps); 
       } 
     }

     

    in reply to: LCD and UART PIC Microcontroller #10220
    Ligo George
    Keymaster

    OK, fine.

    in reply to: LCD and UART PIC Microcontroller #10168
    Ligo George
    Keymaster

    Hello,
    Use this program :

    void main()
    {
      TRISB = 0b000000110;
      TRISA0 = 0;
    
      Lcd_Init();
      Lcd_Clear();
      Lcd_Set_Cursor(1,1);
      Lcd_Write_String("WAITING...");
    
      UART_Init(9600);
      UART_Write_Text("Terminal is running!");
    
      Lcd_Set_Cursor(2,1);
    
      while(1)
      {
        if(UART_Data_Ready())
        {
          RA0 = 1;
          Lcd_Write_Char(UART_Read());
          __delay_ms(300);
        }
      }
    }
    
    in reply to: PIC C Compiler and HC-SR04 Ultrasonic Sensor #10164
    Ligo George
    Keymaster

    Hello, It seems like you converted our program in the article Interfacing HC-SR04 with PIC Microcontroller to CCS C.

    In that tutorial I used prescaler : 2, so you should use :

    setup_timer_0(RTCC_INTERNAL|RTCC_DIV_2);

    and you should change a-4 to a in printf().

    Please check the above program after making these changes and let me know whether it works or not. If it works, I can include it too in that article such that it will help others too.

    in reply to: heat protection for LM7805 #10117
    Ligo George
    Keymaster

    You may use heat sink and / or cooling fan.. but the best solution is to reduce input voltage.

    If you can’t reduce the input voltage, you can use switched mode buck converters. Following link may help you.

    DC to DC Adjustable Buck Converter

    in reply to: Custom Character LCD 4 Bit #10086
    Ligo George
    Keymaster

    I tested the above code in PROTEUS, it seems to be working..

    in reply to: Custom Character LCD 4 Bit #10077
    Ligo George
    Keymaster

    Try the following code :

    const unsigned short MyChar5x8[] = {
            0x04, 0x0E, 0x1F, 0x0E, 0x04, 0x00, 0x00, 0x00,  // Code for char num #0
            0x1F, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x1F,  // Code for char num #1
            0x0E, 0x11, 0x1B, 0x11, 0x15, 0x11, 0x11, 0x0E,  // Code for char num #2
            0x00, 0x11, 0x1F, 0x11, 0x1B, 0x0E, 0x04, 0x00,  // Code for char num #3
            0x04, 0x0E, 0x1F, 0x0E, 0x04, 0x04, 0x04, 0x04,  // Code for char num #4
            0x04, 0x04, 0x04, 0x04, 0x04, 0x1F, 0x0E, 0x04,  // Code for char num #5
            0x1F, 0x00, 0x04, 0x04, 0x0E, 0x00, 0x00, 0x1F,  // Code for char num #6
            0x1F, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x1F   // Code for char num #7
            };
    void InitCustomChars()
    {
      char i;
      Lcd_Cmd(0x04);
      Lcd_Cmd(0x00);
      for (i = 0; i <= 63 ; i++)
        Lcd_Write_Char(MyChar5x8[i]);
      Lcd_Cmd(0);
      Lcd_Cmd(2);
    }
    
    void main()
    {
      ....
      ....
      Lcd_Init();
      ....
      ...
      InitCustomChars();
      ....
      ...
      do
      {
         ''''
         ....
         Lcd_Set_Cursor(1,1);
         Lcd_Write_Char(0); //Displays First Custom Character
         ...
      }
    }
    
    in reply to: Serial devices to ARM LPC 2148 #9976
    Ligo George
    Keymaster

    You may multiplex UART using ICs such as 74HC4052 or you can program GPIO pins as UART (Software UART).

    in reply to: How to interface more than one servo with PIC 16F887 #9817
    Ligo George
    Keymaster

    Can you explain the problem in detail ? What happens when you operate 2 servo motors simultaneously ?
    It might be the problem of your power supply. Make sure that your power supply can provide enough current to operate 2 servo motors simultaneously.
    It is better to use separate power supplies for PIC and Servo Motors OR you should use proper filtering capacitors, otherwise ripples produced by the servo motor will reset the PIC Microcontroller.

Viewing 15 posts - 166 through 180 (of 228 total)
>