It works, but not long. The second display shows after some times wrong characters and some times later there are no more characters.
Swap the two displays (by physically changing the jumpers or switches that set the addresses) and then see if the problem stays with the display or the address, or if something else happens.
bperrybap:
What value terminator resistors are you using?
If you use each one separately do they each work ok?
--- bill
I use two resistors each has 10 K. I tried 4,7 K but without success. I2C scanner did not find any addresses. 32,4 K works but, there are only errors on the displays.
-Micky:
After changing the numbers in the sketch I have the same as before but now on the other display.
So that suggests it is you code that is wrong, you need to post it all using the correct code tags. If you don't know how to do this the the how to use this forum sticky post.
-Micky:
After changing the numbers in the sketch I have the same as before but now on the other display.
So that suggests it is you code that is wrong, you need to post it all using the correct code tags. If you don't know how to do this the the how to use this forum sticky post.
Ok, I think the code must be ok, because with a single Lcd it runs.
We don't know for sure which specific display you are using since you haven't provided that information so a lot of what we are providing is speculation.
It is time for you to start over again with a simple circuit and sketch that just uses one LCD. If that works OK with each LCD then change the sketch to use both LCDs
simultaneously.
I would add the other I2C device(s) on next and then the 1-wire device(s). When things stop working you should have a pretty good idea of what caused the problem.
floresta:
We don't know for sure which specific display you are using since you haven't provided that information so a lot of what we are providing is speculation.
It is time for you to start over again with a simple circuit and sketch that just uses one LCD. If that works OK with each LCD then change the sketch to use both LCDs
simultaneously.
I would add the other I2C device(s) on next and then the 1-wire device(s). When things stop working you should have a pretty good idea of what caused the problem.
Don
I use 16x2 LCD Displays of different brands. One is called: TC1602A. The other1602 QAPASS. And serial I2C IIC adapter called LCM1602 IIC.
I think the reason is the I2C interface. It seems that only one address is possible. 0x20. I will make some changes to the interface and see what happens.
I think the reason is the I2C interface. It seems that only one address is possible. 0x20. I will make some changes to the interface and see what happens.
What about your response in reply #2 "Yes, they have different addresses. I test this with a I2C scanner." ?
Have you dealt with any of the jumpers (solder blobs) on either of your Serial interface boards?
Have you considered the recommendations in reply #11?
I think the reason is the I2C interface. It seems that only one address is possible. 0x20. I will make some changes to the interface and see what happens.
What about your response in reply #2 "Yes, they have different addresses. I test this with a I2C scanner." ?
Have you dealt with any of the jumpers (solder blobs) on either of your Serial interface boards?
Have you considered the recommendations in reply #11?
Don
Solder blobs all closes is 0x20. Open, one, two or three is 0x21. Which blob is open doesn't matter. BUT: This happend only when I use both I2C interfaces.
If I use only one interface then all blobs gives 0x20. Setting or not setting the blobs does not matter too.
I think I try some modification with the interfaces because it has no stable address.
Solder blobs all closes is 0x20. Open, one, two or three is 0x21. Which blob is open doesn't matter. BUT: This happend only when I use both I2C interfaces.
If I use only one interface then all blobs gives 0x20. Setting or not setting the blobs does not matter too.
I think I try some modification with the interfaces because it has no stable address.
It appears that you are not getting all of the solder removed so you are not effectively changing the address.
You really should go back to reply #11 and make sure that you can get each device functioning alone but with a different address for each. Until you get that working you are probably wasting everyone's time.
Ok, now I can use addresses from 0x20 to 0x27. I made some modifications on the pcb. First pic shows the original I2C interface and the second one my modifications. Without my modification there is only one address possible: 0x20.