user32169: I am trying to set up an LCD screen without using a resistor or a potentiometer for an Arduino project. This is the LCD I am using: Basic 20x4 Character LCD.
But when I connect to +5V on the Arduino board, my Arduino board turns off. This is how I have the LCD connected to the Arduino on a breadboard. 

Connections:
LCD RS pin to digital pin 12
LCD Enable pin to digital pin 11
Data:
• LCD D4 pin to digital pin 5
• LCD D5 pin to digital pin 4
• LCD D6 pin to digital pin 3
• LCD D7 pin to digital pin 2
LCD R/W pin to ground
LCD VSS pin to ground
LCD Cathode pin to ground
LCD Anode pin to digital pin 9
LCD VCC pin to 5V
Code:
// include the library code:
include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  analogWrite(6,20);
  // set up the LCD's number of columns and rows:
  lcd.begin(20, 4);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}


user29796: Try out this connection. It will helpful.


32169: <p>I am trying to set up an LCD screen without using a resistor or a potentiometer for an Arduino project. This is the LCD I am using: <a href="https://www.sparkfun.com/products/256" rel="nofollow noreferrer">Basic 20x4 Character LCD</a>.</p>

<p>But when I connect to +5V on the Arduino board, my Arduino board turns off. This is how I have the LCD connected to the Arduino on a breadboard. </p>

<p><a href="https://i.stack.imgur.com/vtHxq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vtHxq.jpg" alt="enter image description here"></a></p>

<p>Connections:</p>

<p>LCD RS pin to digital pin 12</p>

<p>LCD Enable pin to digital pin 11</p>

<p>Data:</p>

<p>• LCD D4 pin to digital pin 5</p>

<p>• LCD D5 pin to digital pin 4</p>

<p>• LCD D6 pin to digital pin 3</p>

<p>• LCD D7 pin to digital pin 2</p>

<p>LCD R/W pin to ground</p>

<p>LCD VSS pin to ground</p>

<p>LCD Cathode pin to ground</p>

<p>LCD Anode pin to digital pin 9</p>

<p>LCD VCC pin to 5V</p>

<p>Code:</p>

<pre><code>// include the library code:
include &lt;LiquidCrystal.h&gt;
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  analogWrite(6,20);
  // set up the LCD's number of columns and rows:
  lcd.begin(20, 4);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis() / 1000);
}
</code></pre>
 29796: <p>Try out this connection. It will helpful.</p>

<p><a href="https://i.stack.imgur.com/H6MNR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H6MNR.jpg" alt="LCD Connection"></a></p>
