loading

Requirements

1-Arduino UNO

2-LCD 2X16

3-VARIABLES RESISTANCE

4-Connection wires and breadboard

then upload the code

Step 1:

<p>Welcome to Instructable. Thanks for sharing.</p>
<p>Amazing web i am so happy to share my projects here </p>
<p>#include &lt;LiquidCrystal.h&gt;</p><p>// initialize the library with the numbers of the interface pins</p><p>LiquidCrystal lcd(12, 11, 5, 4, 3, 2);</p><p> byte l[]={</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111</p><p>};</p><p>byte l1[]={</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111,</p><p> B01111</p><p>};</p><p>byte l2[]={</p><p> B00111,</p><p> B00111,</p><p> B00111,</p><p> B00111,</p><p> B00111,</p><p> B11111,</p><p> B11111,</p><p> B11111</p><p>};</p><p>byte l3[]={</p><p> B00000,</p><p> B00000,</p><p> B00000,</p><p> B00000,</p><p> B00000,</p><p> B11111,</p><p> B11111,</p><p> B11111</p><p>};</p><p>byte l4[]={</p><p> B00011,</p><p> B00011,</p><p> B00011,</p><p> B01100,</p><p> B11000,</p><p> B11111,</p><p> B11111,</p><p> B11111</p><p>};</p><p>byte l5[]={</p><p> B11111,</p><p> B11111,</p><p> B11111,</p><p> B00111,</p><p> B00111,</p><p> B11111,</p><p> B11111,</p><p> B11111</p><p>};</p><p>void setup() {</p><p> lcd.createChar(0,l);</p><p> lcd.createChar(1,l1);</p><p> lcd.createChar(2,l2);</p><p> lcd.createChar(3,l3);</p><p> lcd.createChar(4,l4);</p><p> lcd.createChar(5,l5);</p><p> lcd.begin(16, 2);</p><p> lcd.clear();</p><p> lcd.setCursor(15,0);</p><p> lcd.write(byte(0));</p><p> lcd.setCursor(14,0);</p><p> lcd.write(byte(1));</p><p> lcd.setCursor(12,0);</p><p> lcd.write(byte(1));</p><p> lcd.setCursor(10,0);</p><p> lcd.write(byte(1));</p><p> lcd.setCursor(15,1);</p><p> lcd.write(byte(0));</p><p> lcd.setCursor(14,1);</p><p> lcd.write(byte(2));</p><p> lcd.setCursor(12,1);</p><p> lcd.write(byte(2));</p><p> lcd.setCursor(10,1);</p><p> lcd.write(byte(5));</p><p> lcd.setCursor(13,1);</p><p> lcd.write(byte(3));</p><p> lcd.setCursor(11,1);</p><p> lcd.write(byte(3));</p><p> lcd.setCursor(9,1);</p><p> lcd.write(byte(4));</p><p>}</p><p>void loop() {</p><p> // scroll 13 positions (string length) to the left</p><p> // to move it offscreen left:</p><p> for (int positionCounter = 0; positionCounter &lt; 13; positionCounter++) {</p><p> // scroll one position left:</p><p> lcd.scrollDisplayLeft();</p><p> // wait a bit:</p><p> delay(1000);</p><p> }</p><p> // scroll 29 positions (string length + display length) to the right</p><p> // to move it offscreen right:</p><p> for (int positionCounter = 0; positionCounter &lt; 29; positionCounter++) {</p><p> // scroll one position right:</p><p> lcd.scrollDisplayRight();</p><p> // wait a bit:</p><p> delay(1000);</p><p> }</p><p> // scroll 16 positions (display length + string length) to the left</p><p> // to move it back to center:</p><p> for (int positionCounter = 0; positionCounter &lt; 16; positionCounter++) {</p><p> // scroll one position left:</p><p> lcd.scrollDisplayLeft();</p><p> // wait a bit:</p><p> delay(1000);</p><p> }</p><p> // delay at the end of the full loop:</p><p> delay(1000);</p><p>}</p>

About This Instructable

442views

6favorites

Bio: Master degree in Electronic & Communication Engineering
More by omer.jamal1986:RFID Card and Relay  Count dawn using ardino and mobile application Arduino and Matlab +DHT11 
Add instructable to: