But now I'm using the sainsmart LCD keypad shield 1602 and can't get a read from the DHT11.
As I understand it the shield just pulls the pins up from the Uno.
I hope you are not using the LCD4Bit library recommended by Sainsmart. If you are then try switching to the LiquidCrystal library supplied with the IDE. You will need to invoke it with://LiquidCrystal lcd(RS, E, D4, D5, D6, D7);LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // use these values with the Sainsmart Keypad Shield
Correct. But you can't use any of the pins that are used by the devices on the shield. These are called out under 'Pin Allocation' in the readme.txt file and include pin 10 and Analog pin 0 in addition to the six pins mentioned above. Don
Why don't you give us some more information. You haven't mentioned a pull-up resistor for your sensor and you haven't told us what sketch you are using.
How did you read the temperature and the humidity before you tried using the LCD?
What does display on the LCD?(a) Blank(b) A row of boxes(c) Incorrect data(d) HieroglyphicsDon
I'm just using the sketch that came with the DHT11.
Just a row of boxes show on the LCD.
But I'm not trying to write the data to the LCD yet.
I am trying to figure out why I'm not getting data pulled up to the shield. Just as a test I did an lcd.print() of my variable and the LCD is displaying the same result as when I used Serial.println(). The sensor is just returning the value 0.00.
I just read the spec sheet. BTW, you should post this link, not one of us:http://www.thesunrain.com/Amazon/LCDKeypad%20Shield/LCD1602.rarThe LCD is using 8,9,4,5,6,7. It is not using pin 2, which is what you use. You need to post some pictures. So the LCD is working, right?
The contents of that sketch seem to have slipped my mind, could you perhaps let us know more about it?
That's all I'm using.
QuoteThat's all I'm using.No it's not - there's data on the LCD screen.For each thing you try we need to see the entire sketch and a photograph of the resulting display.Don
I haven't seen any documentation that shows which pin is which on the Sainsmart shield. What makes you think that you have your yellow wire in the correct place. If I were designing the shield I would have the pins on the shield directly above the corresponding pins on the underlying Arduino.Don
I asked if someone could help me to identify the correct pin ...
I figured pin 5 (on J5) on the shield was the correct pin.
There is a difference between identifying the correct pin on a diagram and then finding it on the corresponding PC board. I have a feeling that you have not found it and this sad excuse for a schematic/wiring diagram is no help.