Forum Replies Created

Viewing 15 posts - 181 through 195 (of 228 total)
  • Author
    Posts
  • in reply to: LCD displays garbage when turning on relay #9811
    Ligo George
    Keymaster

    Hello it may be caused due to EMI (Electromagnetic Interference) problems.
    If you are using same power supply for relay and LCD, make sure that you are using proper filtering capacitors.
    Add proper power supply decoupling capacitors near to the VDD and VSS of PIC, LCD etc. Try with parallel combination of 10uF and 0.1uF. If it doesn’t works use 1nF, 100nF and 4.7uF in parallel.
    If you are using long wires to LCD, reduce its length.
    Make sure that there is sufficient delay after each LCD write.
    Also check whether the clock frequency in the project settings and hardware / simulator is same.

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

    Your code seems to be correct. It might be the problem of simulator. Try in real hardware.

    in reply to: 16×2 LCD with PIC18F4550 #9808
    Ligo George
    Keymaster

    Please post your code here…

    in reply to: object counter #9807
    Ligo George
    Keymaster

    Hello,
    Sorry for the delay in reply.
    You may also sense the LED status by using Photo diode. It is the best method.
    Or
    You can take the voltage across LED. Use a Transistor as a Switch to boost the voltage to 5v.

    in reply to: PI controller using PIC16F876A #9654
    Ligo George
    Keymaster

    Note that required bits are SET using OR Operator, so we should clear previously set bit if any using AND Operator.

    in reply to: Question about the Voltmeter and Ammeter #9419
    Ligo George
    Keymaster

    Hello, I used 8MHz crystal in that project.. You may use 4MHz or 20MHz. Just need to edit it in MikroC project settings.
    Use 1/4 watt resistors… .. and select 0.47 ohm fusible resistor as per your current requirements.

    in reply to: Interfacing usb modems with pic and send sms #9380
    Ligo George
    Keymaster

    Interfacing USB modem is a very difficult task..
    Try interfacing UART modem.. it is easy..

    in reply to: watchdog timer in pic18f #9378
    Ligo George
    Keymaster

    PIC may reset due to different problems..
    Unexpected reset might not be due to Watchdog timer..
    Use a good power supply..

    in reply to: PIC kit2 programmer error #9373
    Ligo George
    Keymaster

    As shown in the error message, please check your target. It might be the problem of your pic microcontroller. Try replacing it with a new one. Check whether the ICSP circuit is correct or not.

    in reply to: PIC kit2 PWM #9371
    Ligo George
    Keymaster

    Yes, you can use that code for PIC 16F876A.

    in reply to: port extender #9369
    Ligo George
    Keymaster

    No, it will not work.. you need to develop codes for IC 23017.

    in reply to: timer in pic18f #9359
    Ligo George
    Keymaster

    You may solve it by incrementing a variable as above…. but the best solution is to use PIC’s internal timer module..
    eg :

    //Start Timer
    for(a=read_timer;a< a_value;)
    {
        //Do Something
    }
    //Stop Timer
    

    You can use Timer0 module… Read the Timer0 section in the datasheet.

    in reply to: increasing number of I/O pins of a PIC16 MCU #9355
    Ligo George
    Keymaster

    You may use Microchip’s IO port expanding IC’s MCP23017 or MCP23S17.
    Following link may help you :
    Increasing IO Ports PIC Microcontroller
    You can expand output pins by using D-Latches or Shift Registers
    Expanding Output Pins PIC Microcontroller

    in reply to: Arduino and LCD #9352
    Ligo George
    Keymaster

    It is very easy to interface an LCD with Arduino Board using LiquidCrystal library.
    Code Example :

    // initialize the library with the numbers of the interface pins
    LiquidCrystal lcd(9, 8, 7, 6, 5, 4);
    void setup() {                 // set up the LCD’s number of columns and rows: let it be 16×2 LCD display.
      lcd.begin(16, 2);            // Print a given text on the LCD screen.
      lcd.print(“hello, world!”);
    }
    
    void loop() {                  // set the cursor point to 0th column, 1st line
       lcd.setCursor(0, 1);        // print the number of seconds since last reset:
      lcd.print(millis()/1000);
    }
    

    Refer following links :
    http://arduino.cc/en/Tutorial/LiquidCrystal
    https://electrosome.com/lcd-interfacing-with-arduino-board/

    in reply to: PIC resetting problem #9344
    Ligo George
    Keymaster

    You should not provide a voltage more than 5V to PIC IO pins..

Viewing 15 posts - 181 through 195 (of 228 total)
>