Replies: 9 comments
-
Good morning MD5567,
1+2+8+32+64=107 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply, banana71. I used a multimeter to check the wiring. I moved VCC from pin 2 to pin 1 (which is 3v), to see if that made any difference. It just made the screen a little dimmer. BTW: It does receive midi and output sound (a brassy sound, with just a square ADSR envelope). Is it possible that the problem is that I am using a Raspberry PI 4B? Would an earlier model be better? |
Beta Was this translation helpful? Give feedback.
-
Open a python interpreter and write I see an address in the documentation of your display.
The default performance listens on every MIDI channels. The audio output of the PI 4B is very noisy. A DAC is recommended. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks so much for going to all that trouble to help me. At this point, I'm just going to order a different screen -- one that explicitly states "The address can be set from 0x20-0x27" and also has a contrast adjustment pot. |
Beta Was this translation helpful? Give feedback.
-
You hear the default performance. The MIDI channels are set to Omni. Without experience with the menu, it is difficult to change a performance blind.
The RPi 4B is a very good choice.
It will always sound the same from the RPi Zero 2 to the RPi 4. With the RPi 4 you have more options in terms of polyphony or number of TGs. |
Beta Was this translation helpful? Give feedback.
-
Seeing as we seem a lot more amenable to building in support for bespoke hardware these days (Arturia) then I might revisit the use of PCF devices as IO expanders and also see if there is a configurable/generic way to support displays with IO driven back-lighting. There are a few out there and it has come up before... some of them would be pretty neat "all in one" solderless solutions for MiniDexed - I'm thinking of some of the other DFRobot and Adafruit ones. I'll have a think. But yes, simplest for now is a I2C "backpack" style LCD with a pot for contrast :) Kevin |
Beta Was this translation helpful? Give feedback.
-
To address the OP's point: How about we programmatically scan the i2c bus for addresses and just use the first one we find (if any)? I have implemented this approach here, and it seems to work well for me there: |
Beta Was this translation helpful? Give feedback.
-
I'd be hesitant to assume that the I2C pins are always used for I2C with a display and not used for general purpose IO or something else (I still think there is great value in support I2C IO expanders for example, like I mentioned above and here: #509). Then there is slight uncertainty about if it is a PCF-based 1602 expander display or a ssd1306 or something else... But I guess we could consider a "wildcard" address that means "I'm using an I2C display of this type - just find it please" However, in my view, with an embedded system, it is much better for the user to specify what they have connected than attempt to assume or scan as one would with a general purpose OS/system... in a general purpose OS you're much less likely to drive an IO pin the wrong way or write a dodgy value to a hardware register and so on, and break something... Kevin |
Beta Was this translation helpful? Give feedback.
-
Hi All
I am having trouble getting the display to work. At the moment it displays all black on the top line. I think that the problem lies with finding the correct address LCDI2CAddress=
I am using a raspberry PI 4B.
I am using a DF Robot LCD1602 Module v1.1.
Here is the data sheet: https://dfimg.dfrobot.com/nobody/wiki/ee1c5bd150fc6b78f8cb8e8306898ab9.pdf
And here is the code I have in the minidexed.ini file:
My code is:
HD44780 LCD
LCDEnabled=1
LCDPinEnable=17
LCDPinRegisterSelect=4
LCDPinReadWrite=0
LCDPinData4=22
LCDPinData5=23
LCDPinData6=24
LCDPinData7=25
LCDI2CAddress=0x6B
I initially tried the suggested LCDI2CAddress=0x27. That didn't work.
I then found information about the DF Robot LCD1602 Module v1.1 and found a number of different suggestions for the address and tried them all: including -- 0x60, 0x6B, 0x3E, 0x07. None of these worked.
I also found this information: "I2C address is 1 1 0 1 0 1 1 (R/W)"
But I do not know what that means or how to represent it in the format of 0x...
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions