Precio FOB
Obtener el precio más reciente|
- Minimum Order
País:
China
N º de Modelo:
-
Precio FOB:
Lugar de origen:
-
Precio de pedido mínimo:
-
Cantidad de pedido mínimo:
-
Detalle de embalaje:
-
El tiempo de entrega:
-
Capacidad de suministro:
-
Tipo de pago:
-
Grupo de productos :
China
Persona de contacto Mr. Wilson
6-703, FUYUAN COMMUNITY, YUFU ROAD, LONGGANG DISTRICT, SHENZHEN, CHINA, Muping, Sichuan
Serial LCD****2 Shield V2.0+ -Arduino Compatible
Serial LCD****2 Shield V2.0+ is the updated version of Serial
LCD****2 Shield.
LCD screen is a character ***2 which is often used in the
production of electronics and of course it's a simulation.
It can be used to display two rows of characters, and each
row is *6 characters:
However, to control such a common module is not so easy.
First of all, we must occupy the corresponding Arduino 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 Arduino 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 *6K memory space of Arduino.
In order to solve these problems, we have designed this type
of serial LCD module based on ***2 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.
It can be easily connected with Arduino through sensor
extended shield and special sensor cable.
In order to demonstrate its function, you can connected a
module on sensor extended shield, when push the
, Arduino will send corresponding controlling order
through serial LCD. When this module is powered, the effect
shown as below:
The Arduino Test Code is:
Int switchPin = 7; // set the digital interface 7 as the
interface of big interface
Int value = 0;
Void setup()
{
Serial. Begin(***0); // set the baud rate as ***0
PinMode(switchPin, INPUT); // set the digital interface 7 as
mode
}
Void loop() {
If (HIGH == digitalRead(switchPin)) // if the switchPin is
high, then go on following command
{
Serial. Print("$CLEARrn"); //clear screen
Serial. Print("$GO 1 1rn"); // display address is: The line
1, the row 1
Serial. Print("$PRINT Emartee COMrn"); // display the
character "Emartee COM"
Serial. Print("$GO 2 4rn"); // display address is: The line
2, the row 4
Serial. Print("$PRINT Hello World! rn"); // display the
character "Hello World! "
Serial. Print("$CURSOR 1 1rn"); // CURSOR move to line 1, row
1
}
}
You can see that all serial port order to control LCD begin
with "$"and end by "rn" 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.
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:
1) Serial. Print("$CLEARrn") means "clear screen"
2) Serial. Print("$GO Line(1 or 2) Row(1 to *6)rn")
3) Serial. Print("$PRINT Display the characters rn")
4) Serial. Print("$GO Line(1 or 2) Row(1 to *6)rn")
5) Serial. Print("$PRINT Display the charactersrn")
6) Serial. Print("$CURSOR 1 1rn")
País: | China |
N º de Modelo: | - |
Precio FOB: | Obtener el precio más reciente |
Lugar de origen: | - |
Precio de pedido mínimo: | - |
Cantidad de pedido mínimo: | - |
Detalle de embalaje: | - |
El tiempo de entrega: | - |
Capacidad de suministro: | - |
Tipo de pago: | - |
Grupo de productos : | arduino board and accessories |