LCD
screen is a character 1602 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 16 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 16K memory space of Arduino.
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. 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 button module on sensor extended shield
, when push the button, Arduino will send corresponding controlling
order through serial LCD. When this module is powered ,the effect shown
as below:
int switchPin = 7; // set the digital interface 7 as the interface of big button interface int value = 0;
void setup() { Serial.begin(9600); // set the baud rate as 9600 pinMode(switchPin, INPUT); // set the digital interface 7 as input mode }
void loop() { if (HIGH == digitalRead(switchPin)) // if the switchPin is high , then go on following command { Serial.print("$CLEAR\r\n"); //clear screen Serial.print("$GO 1 1\r\n"); // display address is : the line 1,the row 1 Serial.print("$PRINT Emartee COM\r\n"); // display the character "Emartee COM" Serial.print("$GO 2 4\r\n"); // display address is : the line 2,the row 4 Serial.print("$PRINT Hello World!\r\n"); // display the character "Hello World!" Serial.print("$CURSOR 1 1\r\n"); // CURSOR move to line 1 , row 1 } }
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.
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("$CLEAR\r\n") means "clear screen"
2) Serial.print("$GO Line(1 or 2) Row(1 to 16)\r\n")
3) Serial.print("$PRINT Display the characters \r\n")
4) Serial.print("$GO Line(1 or 2) Row(1 to 16)\r\n")
5) Serial.print("$PRINT Display the characters\r\n")
6) Serial.print("$CURSOR 1 1\r\n")
Example :
Serial.print("$CLEAR\r\n")
Serial.print("$GO 1 1\r\n")
Serial.print("$PRINT Emartee\r\n")
Serial.print("$GO 2 4\r\n")
Serial.print("$PRINT Hello World!\r\n")
Serial.print("$CURSOR 1 1\r\n")
When Arduino
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:
· Generally, It always take 7-14 business days to ship to USA, United Kingdom, Australia ,Canada , France and 7-25 business days to most other countries.
· And we always will ship our customers' parcel in two business days
(because our shipping agent have weekend from Saturday to Sunday ) after
we receive payment.
International Buyers Note :
· Import duties, taxes and charges are not included in the item price or
shipping charges. These charges are the buyer's responsibility.
·
We always mark our customers' parcels as a gift, so our customer always
don't need to pay the tax, but if your country have very strick policy
on tax and meanwhile you don't want to pay the tax, please tell us
what's the value should we indicate on the parcel and we will mark the
value as you required.
· We ship to worldwide, so if your country or place is very far away,
please allow your parcel more time to arrive and we supply three kinds
of shipping way : 1、Standard Int'l Flat Rate Shipping (this way is default shipping way for free shipping mode):this
standard post has the tracking number, but you can only track the
shipping more information of the goods on our ebay official shipping
agent tracking website : espeedpost ,
but anyhow it is a reliable shipping way because it use the same
shipping carrier as Expedited Int'l Flat Rate Shipping. All of the free
shipping products use this shipping way. 2、Expedited Int'l Flat Rate Shipping Way:this
shipping way has the tracking number and the tracking number help you
to hold all of the status of your parcel situation, which means you will
know the exact status of your parcel anytime and anywhere. So if you
want to track your parcel parcel anytime and anywhere, please choose
this shipping way. You can track your parcel on three tracking website with the tracking number we update on ebay: 1、 Espeedpost ; 2、Hongkong Post ; 3、Your Country Post Website.
3、Express Delivery Shipping Way:This
shipping way contain DHL、UPS、Fedex , if you need our products urgently ,
please use this shipping way and you can contact us and ask us the to
fix the shipping price and then we will use express delivery way for you
specially as soon as possible.
· We will make shipment within 48 hours once the payment is clear
(Saturday and Sunday are not included) All items will be dispatched from
our depot and shipped by HongKong Post Air-mail.
· We will make shipment according to the address you put on eBay, if you
want us to ship items to a different address from your ebay please tell
us before or after you pay.
· We supply combined shipping and you will get more discount on shipping
cost if you use the combined shipping when you buy kinds of items.
Payment Policy
· We can only accept Paypal by now and thanks for your understanding. Returns and Refund Policy
· We always take customer service seriously and want you to be 100%
happy with your shopping experience here. If you have any queries or
question please contact our team by email first before leaving any
negative feedbacks we will email back to you within 48 hours and we
promise here that we will give all of our customers best products、best
service and best solution of problems !
· If you are unsatisfied with our item or service, then please follow
the good eBay practice to contact us before leaving any feedback and
return it within 7 days for a replacement or money back.
· Please contact us before you return it.
· We are committed to resolve all issues in a friendly and satisfactory
manner and give all of our customers best products、best service and best
solution of problems and want you to be 100% happy with your shopping
experience here.