ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Flamingo Eda Serial Lcd
    카테고리 없음 2020. 2. 22. 03:57
    1. Flamingo Eda Serial Lcd Manual

    Flamingo EDA ethernet and IDC shield I’m working on a sketch that includes my Flamingo EDA ethernet module. The module I have is not a shield that you can plug on an Arduino but a separate board with the Wiznet W5100 chip on. I bought it together with the IDC shield, you can plug this shield on an Arduino Duemilanove/Uno and then connect both of the SPI connectors.

    SerialFlamingo Eda Serial Lcd

    I got it working on my Uno but this time I want to connect it to the Arduino Mega 2560. The IDC shield does not work on the Mega, because the Mega 2560 has a different location of the SPI pins. So I needed to find out which pin of the ethernet board is which pin of the SPI bus.

    The Flamingo EDA ethernet shield has 3 connectors, they are labelled INT, SPI and RESET. You only need to connect the SPI connector. I don’t know what the other 2 connectors are good for, maybe to update the firmware? I couldn’t find the pin layout online so I did some testing with my multimeter and found out how to connect it to my Mega.

    You can find the location of the SPI pins of the Arduino Mega 2560 on the official.

    However, to control such a common module is not so easy. First of all, we must occupy the corresponding pin according to its 4 lines work mode or 8 lines work mode, but this actually occupied more digital I/O pin, especially 8 lines connection mode. Second,although there are corresponding libraries to support,but you should pass the debug,and run on successfully, at the same time it can meet a lot of problems.

    Finally, the code to control LCD need take up corresponding memory space, which is difficult for 16K memory space of. In order to solve these problems, we have designed this type of serial LCD module based on 1602 characters.To compared with the method before,the advantage is obvious: 1、Adopt serial port to control,to cut down the number of cables linking to the hardware; 2、Do not occupy the memory space of Arduino; 3、To minimize the debugging time through successfully verifying the code.

    You can see that all serial port order to control LCD begin with ”$”and end by ”r n” when compared with this code,Both of them is corresponding order and parameters,different commands with different parameters. 'r' means (the current cursor movement to first line, do not move to the next line) 'n' means (the current cursor movement to the next line, do not move to the first line) Command Definition: 1、'GO' is cursor movement. 2、'PRINT' is to display the serial characters on the cursor position. 3、'CLEAR' is to clear screen. 4、'HOME' is to move the cursor to the initial position of the top left corner of the screen.

    Flamingo Eda Serial Lcd Manual

    5、'CURSOR' is to set the effect of cursor, the first parameter is whether display cursor (1 and 0), the second parameter is whether blink cursor (1 and 0). Command List: Example: When detect that the button was pushed down, it will send the corresponding commanding order of connectting to the serial LCD and the effect is shown as below.

Designed by Tistory.