佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 852|回复: 3

[解答] Arduino Uno + LCD Keypad Shield 的问题

[复制链接]
发表于 4-2-2017 08:53 AM | 显示全部楼层 |阅读模式
本帖最后由 impotence200x 于 13-2-2017 07:42 PM 编辑

各位大大,
最近我自己在学如何使用 arduino Uno,一开始试玩了一下手痒就买了个 LCD keypad Sheild (DFRobot) 来试

教学里面的都好像plug and play那样, 只是pin换掉就可以用

就这样我load了很简单的sketch 来跑lcd screen 可惜它只是有背光, 没有显示 "Hello world"


1. 我把sketch upload了再把keypad shield 配起来
2. 跟着配起来的时候,arduino Uno 反应正常 "L" 灯也着

sketch 如下:
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // 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);
}

请问我哪里有出现问题呢 ?

最好不是板的问题
IMG_9826.JPG

没显示,只有背光

没显示,只有背光
回复

使用道具 举报


ADVERTISEMENT

发表于 8-2-2017 11:28 PM | 显示全部楼层
没用过arduino,
但是arduino fan base 很多,source code 应该不会有问题。

你试看adjust trimmer 看看。

通常是contrast set 不对。
回复

使用道具 举报

 楼主| 发表于 9-2-2017 06:02 PM | 显示全部楼层
三国小兵 发表于 8-2-2017 11:28 PM
没用过arduino,
但是arduino fan base 很多,source code 应该不会有问题。

你试看adjust trimmer 看看。

通常是contrast set 不对。

对, 我看大家都是用同样的source code, 而且好像只是plug and play 就可以了


但是 很多问题在 contrast 的至少还有display, 然后 一格格的黑色格子

我的什么格都没有

但是让我再调调看再告诉你, 谢谢你!
回复

使用道具 举报

 楼主| 发表于 13-2-2017 07:51 PM | 显示全部楼层
三国小兵 发表于 8-2-2017 11:28 PM
没用过arduino,
但是arduino fan base 很多,source code 应该不会有问题。

你试看adjust trimmer 看看。

通常是contrast set 不对。

问题解决了!!

果然不是电板问题。。

因为这lcd keypad shield 新的一来就没调整好来, 研究了几天终于找到了问题

1) 这板上的 3296 potentialmeter 一来就没调好,大概转了10-15 圈左右到荧幕出现字 比如 "Hello World"
2) 如果这时候只是出现黑色格子,那么确保全部pin都connect 到arduino Uno, 可以把pin插深一点。



pot.PNG
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 29-3-2024 11:35 PM , Processed in 0.076698 second(s), 31 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表