I2C lcd ( arduino ) with PICBASIC, help


Closed Thread
Results 1 to 40 of 93

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: I2C lcd ( arduino ) with PICBASIC, help

    Dear Steve:

    Your suggested test gave me the response on the lack of operation. ( see the attached).
    The pcf has P0, P5 and P6 not working. This is the reason of the trouble.
    I will no longer buy components on Ebay expecially if chinese. That is very bad.
    I have no words to express my state. I want to apologize .
    Thanks for the help given to me since the beginning.
    Will try to buy another expander board: do you know some reliable seller in Europe ?
    Regards,
    Ambrogio
    Attached Images Attached Images  

  2. #2
    Join Date
    Jun 2009
    Location
    Sc*nthorpe, UK
    Posts
    333


    Did you find this post helpful? Yes | No

    Default Re: I2C lcd ( arduino ) with PICBASIC, help

    Quote Originally Posted by iw2fvo View Post
    Dear Steve:

    Your suggested test gave me the response on the lack of operation. ( see the attached).
    The pcf has P0, P5 and P6 not working. This is the reason of the trouble.
    I will no longer buy components on Ebay expecially if chinese. That is very bad.
    I have no words to express my state. I want to apologize .
    Thanks for the help given to me since the beginning.
    Will try to buy another expander board: do you know some reliable seller in Europe ?
    Regards,
    Ambrogio
    No problem and no need to apologise. Could you do some more testing on this board?
    Check the voltages on the P0 to P7 pins when this program is running.

    Code:
    DEFINE OSC 40 ' 10 MHz XTAL AND X 4 INTERNAL PLL 
    DEFINE I2C_SLOW 1
    C VAR portd.3 ' S_CLOCK 
    D VAR portd.2 ' S_DATA
    ADDR VAR BYTE 
    ADDR = %01001110 ' dec 78 , hex 4E
    CMD VAR BYTE
    LCD_CMD VAR BYTE 
    E VAR LCD_CMD.BIT2 
    RS VAR LCD_CMD.BIT0
    E=0:RS=0
    LCD_CMD = 0
    PAUSE 1000 
    
    MAIN:
    
    I2CWRITE D, C, ADDR, [%00000000] ' port off
    PAUSE 200
    I2CWRITE D, C, ADDR, [%11111111] ' port on
    PAUSE 200
    
    GOTO MAIN
    If all pins change then the PCF8574 chip is good indicating that the fault is either bad soldering or bad PCB track. It is possible to solder jumper wire direct to pins for a temporary repair.

Similar Threads

  1. Interfacing with Arduino I2C LCD
    By norohs in forum Documentation
    Replies: 47
    Last Post: - 30th May 2017, 18:53
  2. I2c ext eeprom picbasic
    By iw2fvo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th July 2011, 22:00
  3. How do I operate an Arduino I2C LCD
    By menta in forum General
    Replies: 8
    Last Post: - 13th July 2011, 02:28
  4. Still new to PicBasic - i2c questions
    By cometboy in forum mel PIC BASIC
    Replies: 4
    Last Post: - 13th November 2006, 18:27
  5. A little help with I2C and PICBASIC Pro
    By Qacer in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 24th January 2006, 16:13

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts