Shop OBEX P1 Docs P2 Docs Learn Events
Propeller 1 and I2C LCD: Please Help - Page 3 — Parallax Forums

Propeller 1 and I2C LCD: Please Help

13»

Comments

  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-06 21:29
    Well, my LCD is back -- seems to be very twitchy about changing the address jumpers. Have to do with with all connections removed.

    So long as you have the LCDs at different addresses you should be able to talk to them on the same buss. Again, I've done lots of I2C work and used many of the same devices on the same buss -- works.
  • TheKaduuTheKaduu Posts: 41
    edited 2013-04-06 22:12
    I had these two LCDs working with Arduino before. i guess each LCD having their own pull ups is not the problem... They both have different addresses (0x20 and 0x27) and i don't understand why it is not working... Is there anything else I should try? For example, adding my own pull ups?
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-06 22:14
    I'm wondering if wiring is part of the problem using the Propeller in open-drain mode. Perhaps inserting a PCA9515 between the Propeller and the LCDs would help buffer the signal.
  • TheKaduuTheKaduu Posts: 41
    edited 2013-04-06 22:35
    I was looking at the following:

    http://www.mouser.com/ds/2/405/scps150b-115406.pdf

    I can order it and see. What would the Vcc be on this? Would i use another pin for En?

    Worst case, i can use two more pins for another I2C bus and connect the second LCD to that which i already confirmed working... However this would defeat the purpose of having a bus (or buss as you would call :))
  • jtilghmanjtilghman Posts: 67
    edited 2013-04-07 06:59
    JonnyMac wrote: »
    Well, great -- my display stopped talking again. I will NOT be recommending this product in my column....

    I am really sorry that your having this kind of trouble.

    I have had my LCD for quite sometime now and it has never had these problems.

    Maybe you just got a lemon, will jameco replace it for you ?
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-07 08:43
    The problem seems to occur when I change the jumpers while the board is still connected to the [powered-down] BoE. After disconnecting and letting it sit for a while, it comes back to life. Odd considering the simplicity of the circuit. I'm not going to bother Jameco -- would cost them and me more in time than the display is worth. I'm going to leave the jumpers as they are.

    On an only-slightly related note... I picked up an OSEPP Arduino clone to try with the LCD as it has the same connector -- but the pin-out is different. Luckily, those connectors are easy to re-pin. I connected the LCD to the OSEPP Arduino and got it working -- so now I have it working for both processors.
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-07 09:19
    TheKaduu wrote: »
    I was looking at the following:

    http://www.mouser.com/ds/2/405/scps150b-115406.pdf

    I can order it and see. What would the Vcc be on this? Would i use another pin for En?


    Figure 2 shows how to connect that device as a 3.3v to 5v translator. The EN pin is active-high so you can control it from the Propeller or just tie it to 3.3v.
  • jtilghmanjtilghman Posts: 67
    edited 2013-04-07 09:39
    JonnyMac wrote: »
    Well, great -- my display stopped talking again. I will NOT be recommending this product in my column....

    You write a column ?

    Where can it be found ?
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-07 09:59
    I write the "The Spin Zone" for Nuts & Volts magazine -- appears in odd numbered months.

    Some past columns are available online here:
    -- http://www.parallax.com/Resources/NutsVoltsColumns/TheSpinZone/tabid/781/Default.aspx

    To save you some confusion, I prefer to use my stage name: Jon McPhalen. In fact, N&V now runs my column with that byline.
  • TheKaduuTheKaduu Posts: 41
    edited 2013-04-07 10:13
    JonnyMac: I will order this part today sice i have other things to order. However, since I can afford to use two extra pins in the remote controller for the boat, I will use the PCA9515 in the next revision of the circuit. I know it's going to sound stupid in this day and age but I am just not ready for SMD stuff yet. I use Fritzing to desing my circuits due to its simplicity; parts already exist for Adafruit, Sparkfun... etc. I use toner transfer method and THT parts (as much as possible). While Fritzing is capable of doing double side PCB, I have never done it before. It's next thing to do in my plans but i have to finish the boat project first... Again, thank you so much for your help. It would take much longer for me to figure this out. Sorry for your LCD troubles too :/

    ltilghman: You are good with your LCD now, right? I am with mine...
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-04-07 10:39
    In my May column I discuss my own move from through-hole to surface mount with a project I did for the QuickStart. Turned out my own worries were unfounded. I use DipTrace which has recently been updated to make ordering boards very easy (like ExpressPCB). And when you're happy, you have the ability to output Gerbers that you can send anywhere to be built. For example, I got 25 boards (from Gold Phoenix PCB) for my QuickStart project that were blue and done with a 3-day turnaround for $180 (that's cheap for the number of boards). I used 8 of those in this project:

    1856_10151350780043525_17794709_n.jpg


    As long as you have code space there's no reason you can't run two copies of the driver. Just define two objects and run the methods for each accordingly.
    obj
    
      lcd0 : "jm_twi_lcd"
      lcd1 : "jm_twi_lcd"
    
  • TheKaduuTheKaduu Posts: 41
    edited 2013-04-07 12:37
    Cool! Thanks for the info.
  • TheKaduuTheKaduu Posts: 41
    edited 2013-04-17 12:10
    JonnyMac: Here is the final output. Than you for your help!
    1024 x 765 - 76K
    3.jpg 76.1K
  • jtilghmanjtilghman Posts: 67
    edited 2013-04-17 16:16
    TheKaduu wrote: »
    JonnyMac: I will order this part today sice i have other things to order. However, since I can afford to use two extra pins in the remote controller for the boat, I will use the PCA9515 in the next revision of the circuit. I know it's going to sound stupid in this day and age but I am just not ready for SMD stuff yet. I use Fritzing to desing my circuits due to its simplicity; parts already exist for Adafruit, Sparkfun... etc. I use toner transfer method and THT parts (as much as possible). While Fritzing is capable of doing double side PCB, I have never done it before. It's next thing to do in my plans but i have to finish the boat project first... Again, thank you so much for your help. It would take much longer for me to figure this out. Sorry for your LCD troubles too :/

    ltilghman: You are good with your LCD now, right? I am with mine...

    Seems so, yes.. Thanks for all the help.
Sign In or Register to comment.