crossbreak:
hi I'm the one who gave smithy the blue i2c adapter... Got 4, gave one to smithy. I tested another blue module with the guesser tool (thx for that!))
my blue adapter works with setting 0x20, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE
Yep. That's what I said.
bperrybap:
Paul,
Does the top/front of your PCB look like smithy's with no way to set the i2c address and all the Address pins hard coded to ground?
Yep. In every detail including the fact that some moron ground off the surface of the chip. And I can visually confirm that pins 1, 2 and 3 are connected to ground. I am suffering at the moment from a rain of Chinese envelopes cascading from the stack on my work-table - I really must address that problem but having no intention of de-soldering the backpack from my example board, I realised that I had soldered it in the first place and that I had more than one of the backpacks, so went and found another. There's at least a third here somewhere too.
bperrybap:
So the proper constructor will use the same LCD bits as the constructor that Paul provided
which is also what I use on the mjkdz board that I have as well.
(Although my mjkdz board is a very different design than smithy's)
I can't really imagine that - or why - the same original designer would produce alternate configurations.
bperrybap:
From the more recent photos, you can make out the transistor. It is a 2TY (same as what is on mjkdz board) and that is PNP transistor. Given how it is wired, the backlight polarity will be NEGATIVE.
It is. 2TY Inverting drive to the high side.
bperrybap:
For a final constructor of:
// addr, EN,RW,RS,D4,D5,D6,D7,BL, POLARITY
LiquidCrystal_I2C lcd(i2cAddr, 4, 5, 6, 0, 1, 2, 3, 7, NEGATIVE);
This constructor is in the guess list of the guesser sketch so it should have been found.
And it is for me - though I have serious problems with the "guesser" script, which I was about to mention earlier, but not relevant to this present matter.
bperrybap:
One thing that does concern me is the overall design, in that there appears to be no way to set the address for the chip. From looking at the photo, it appears that all 3 address pins are connected together and then connected to ground.
Clearly not useful for multiple displays then.
bperrybap:
There are also no bypass/decoupling caps on the board along with no i2c pullups which could also cause issues particularly if there are no i2c pullups on the i2c bus somewhere else.
Hasn't troubled me at all so far. I'm betting that pull-ups will be a dead end but absolutely no harm in fitting a bypass cap across the supply lines. According to the posts here, it has fixed some people's problems before. I do believe there are a cap or caps on the LCD itself which should be close enough when the backpack is soldered (or pinned) on directly, and unless you use long wires, the internal pull-ups work just fine.
Clearly, there is some serious hardware problem with smithy's setup. I would like to see his actual output from the "guesser" and I hope he is using the correct I2C interface pins just to see that there is not some strange "phantom" response happening.
Am looking at chasing some "pogo pins" to use as a test adapter for this backpack, though it may be more appropriate to fit socket headers to all LCD displays.
Now ...
On Linux (Fedora 13), if I reset the Pro Micro via the CP2102 adapter while the Serial Monitor is open, it re-allocates the CP2102 to a different USB port until I un-plug it and plug it in again. This prevents me from using the serial monitor and I had to remove the "wait for CR" in order to run the guesser.
I also automatically added the missing
LiquidCrystal_I2C lcd(lcdAddr, 6, 5, 4, 0, 1, 2, 3, 7, POSITIVE);
permutation - not that it got me anywhere. Or that I needed to use the guesser in the first place, but I was just curious.
This is not construed as a complaint, but a curiosity of running with (this version of) Linux which will no doubt impact on all programs using the Serial Monitor which I have not attempted before. When I sort out the rubble here, I am swapping to an upgraded machine with Mint.