LCD mini click (PID: MIKROE-2453)
Posted: 01 Feb 2018 21:35
My review of the LCD mini click (PID: MIKROE-2453):
As part of an ongoing project, I required a small, minimalist LCD display and the MIKROE-2518 fit the requirements quite well (it is not included in the click, as expected, even though it is shown). Unfortunately, getting any form of documentation for the display itself was close to impossible. The ME support team gave me the 'we don't have the technical docs' reply, which is strange and somewhat disturbing. Nevertheless, I purchased two... for anyone else that may be interested to know, DigiKey carries these too (so shipping is less time & $$s) as well as others that are likely made by the same OEM and have datasheets available for them.
Anyway, this is about the Click board...
The ME site does not provide a lot of information other than to list the two components that are used on the board (MCP4161 and MCP23S17) but it is possible to find the schematic. Unfortunately, it is wrong. After working through setup, configuration and a number of other items, I concluded that the one item I was relying on to make the display turn on and show some text (by following the libstock example), was not working as intended. To be fair, anyone using this with a development system may not be experiencing these issues, but when the datasheet says that the unit has an "Input Voltage : 3.3V or 5V", I expect the unit to work either with 3.3V or 5V. The reality is that the interface works either with 3.3 or 5V signals, but the board needs 5V. If you look at the datasheet, the 3.3V OR 5V is supported by the fact that all voltage levels (Vcc) are tied to either 3.3 or 5. But what should be stated is that the LCD display requires 5V and is tolerant to a wide range of signal voltages. If you don't have 5V, it will not turn on.
Once I figured that out (three days into what was meant to be a simple add-on), I could not for the life of me figure out the data stream. The library setup is simple enough: enable the SPI-LCD library and use the example. The only problem is that the information generated by the library is not what the HD44780 on the display is expecting. There is a good chance that I did something wrong, but the setup is so simple that I have not figured out what it could be.
The solution to this issue came by replacing the Click with a direct connection from the processor and then simply using the LCD library. And now the display worked like a charm (I had to use a potentiometer for contrast adjustment, but that is secondary).
Lastly, the information about this board states that the interface uses two CS lines, an RST,SCK MISO, MOSI, 3.3V, 5V, Gnd, PWM and INT lines. The MISO and INT lines don't do anything so you can leave them out. If you compare that to the 4bit mode used for the LCD, you will see that, except for the contrast adjustment, you can achieve the same using 6 digital lines + PWM so only one extra pin if you don't count the MISO/INT issue. Considering that you can pick any GPIO pins with the LCD library and you must use a hardware SPI port for the click board, I just don't see the point.
But the bottom line is: if you don't have a development board or 5V available and can't get this to work right out of the box, you are probably best off using something else. I would give this a 1 out of 5. I am very disappointed and question whether this board was ever tested before being sold (I bought two, so this is not a Mfg defect).
For anyone interested in looking closer into this, I have attached logic probe data of the LCD library output and SPI-LCD output as received by the HD44780 controller on the LCD. The output to the display should have been the same ("TEST") but clearly something is different... I would be interested in hearing from anyone that has actually used this board successfully.
As part of an ongoing project, I required a small, minimalist LCD display and the MIKROE-2518 fit the requirements quite well (it is not included in the click, as expected, even though it is shown). Unfortunately, getting any form of documentation for the display itself was close to impossible. The ME support team gave me the 'we don't have the technical docs' reply, which is strange and somewhat disturbing. Nevertheless, I purchased two... for anyone else that may be interested to know, DigiKey carries these too (so shipping is less time & $$s) as well as others that are likely made by the same OEM and have datasheets available for them.
Anyway, this is about the Click board...
The ME site does not provide a lot of information other than to list the two components that are used on the board (MCP4161 and MCP23S17) but it is possible to find the schematic. Unfortunately, it is wrong. After working through setup, configuration and a number of other items, I concluded that the one item I was relying on to make the display turn on and show some text (by following the libstock example), was not working as intended. To be fair, anyone using this with a development system may not be experiencing these issues, but when the datasheet says that the unit has an "Input Voltage : 3.3V or 5V", I expect the unit to work either with 3.3V or 5V. The reality is that the interface works either with 3.3 or 5V signals, but the board needs 5V. If you look at the datasheet, the 3.3V OR 5V is supported by the fact that all voltage levels (Vcc) are tied to either 3.3 or 5. But what should be stated is that the LCD display requires 5V and is tolerant to a wide range of signal voltages. If you don't have 5V, it will not turn on.
Once I figured that out (three days into what was meant to be a simple add-on), I could not for the life of me figure out the data stream. The library setup is simple enough: enable the SPI-LCD library and use the example. The only problem is that the information generated by the library is not what the HD44780 on the display is expecting. There is a good chance that I did something wrong, but the setup is so simple that I have not figured out what it could be.
The solution to this issue came by replacing the Click with a direct connection from the processor and then simply using the LCD library. And now the display worked like a charm (I had to use a potentiometer for contrast adjustment, but that is secondary).
Lastly, the information about this board states that the interface uses two CS lines, an RST,SCK MISO, MOSI, 3.3V, 5V, Gnd, PWM and INT lines. The MISO and INT lines don't do anything so you can leave them out. If you compare that to the 4bit mode used for the LCD, you will see that, except for the contrast adjustment, you can achieve the same using 6 digital lines + PWM so only one extra pin if you don't count the MISO/INT issue. Considering that you can pick any GPIO pins with the LCD library and you must use a hardware SPI port for the click board, I just don't see the point.
But the bottom line is: if you don't have a development board or 5V available and can't get this to work right out of the box, you are probably best off using something else. I would give this a 1 out of 5. I am very disappointed and question whether this board was ever tested before being sold (I bought two, so this is not a Mfg defect).
For anyone interested in looking closer into this, I have attached logic probe data of the LCD library output and SPI-LCD output as received by the HD44780 controller on the LCD. The output to the display should have been the same ("TEST") but clearly something is different... I would be interested in hearing from anyone that has actually used this board successfully.