Raspberry Pi 3B I2C 问题

摘要:
然而,i2c可以在更新后使用,但3.5英寸的白色屏幕现在可用。用于最终问题解决的网页:https://www.raspberrypi.org/forums/viewtopic.php?t=157458&p=1025165Runsudorpi-更新以设置4.4.17网络并更换丢失的模块。您需要安装屏幕驱动程序。http://www.kedei.net/raspberry/raspberry.html--------一些更好的网站:http://www.cnblogs.com/hangxin1940/archive/2013/04/03/2997094.html树莓派构建pythoni2c开发环境http://www.landzo.cn/thread-12826-1-1.htmlhttp://www.cnblogs.com/hangxin1940/archive/2013/04/02/2997077.html复盆子派启用i2c设备http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/http://blog.csdn.net/xukai871105/article/details/18234075http://blog.csdn.net/ki1381/article/details/52425565http://blog.csdn.net/xdw1985829/article/details/39580401树莓派GPIO控制--------互联网上的一些说法:1.首先,树莓配置。2.在/boot/config.txt文件中启用dtparam=i2c _ arm=on3./etc/modprobe.d/raspi blacklist.conf配置文件被注释掉:bladklisti2c-bcm27084./etc/modules load。d/modules Comf将:i2c-dev添加到此配置文件中,以便在内核启动时加载驱动程序模块:5.或者临时添加:sudododprobei2c-dev一些相关网页:https://www.zhihu.com/question/29328394http://blog.csdn.net/xukai871105/article/details/15029843http://blog.csdn.net/fly_qj/article/details/44204661Hellotoall ,我不知道在什么地方,也不知道每个应用程序的RPI。大多数传感器都连接到I2C端口。现在,我使用LCD显示器时遇到了一个问题。我不知道需要什么驱动程序。供应商提供了一个非常适合CD显示的图像。但是…我无法使用I2C端口。如果Irunraspi配置了以下消息:出现错误运行选项A6I2和模块探测:致命:未找到模块。我想我需要将模块添加到图像中。我有2个问题:需要什么模块?

刚刚接触树莓派,的确很适合用来学习,资料多而且很规范,开发者多,平台统一,很多问题别人都已经解决。

Raspberry Pi 3B I2C 问题第1张买的是带3.5电阻屏的版本, 使用i2c接传感器,但是总是报错:

1. 执行 sudo raspi-config 开启i2c的时候:

There was an erro running option A6 I2C

2.终端中:

FATAL: Module i2c-dev not found.

3.lsmod命令显示:

只有i2c_bcm2708

没有i2c-dev

----

最终的问题是这块带3.5屏的内核中没有将相关i2c模块加进去,通过跟新内核,就可以解决问题,跟新了1个小时。没有尝试直接将相关模块添加进去行不行。不过更新过之后确实i2c可以使用,但3.5寸白屏了。

最终解决问题用到的网页:https://www.raspberrypi.org/forums/viewtopic.php?t=157458&p=1025165

Run sudo rpi-update to get the 4.4.17 kernel and replace your missing modules.

You'll need to reinstall your screen drivers.

http://www.kedei.net/raspberry/raspberry.html

--------

一些比较好的网站:

http://www.cnblogs.com/hangxin1940/archive/2013/04/03/2997094.html  树莓派搭建python i2c开发环境

http://www.landzo.cn/thread-12826-1-1.html

http://www.cnblogs.com/hangxin1940/archive/2013/04/02/2997077.html 树莓派启用i2c设备

http://www.raspberrypi-spy.co.uk/2014/11/enabling-the-i2c-interface-on-the-raspberry-pi/

http://blog.csdn.net/xukai871105/article/details/18234075

http://blog.csdn.net/ki1381/article/details/52425565

http://blog.csdn.net/xdw1985829/article/details/39580401  树莓派GPIO控制

---------

网上的一些说法:

1.首先是raspi-config配置

2./boot/config.txt 文件中开启

dtparam=i2c_arm=on

(enable the hardware interface)

3. /etc/modprobe.d/raspi-blacklist.conf配置文件里注释掉:

bladklist i2c-bcm2708

4./etc/modules-load.d/modules.comf

在此配置文件中添加:

i2c-dev

这样在开机的时候,内核引导启动的时候就会加载这个驱动模块:( kernel modules to load at boot time)

5.或者临时添加:

sudo modprobe i2c-dev

一些相关的网页:

https://www.zhihu.com/question/29328394

http://blog.csdn.net/xukai871105/article/details/15029843

http://blog.csdn.net/fly_qj/article/details/44204661

Hello to all,
I'm new here and I use a RPI for several applications.
Most of them are sensors which are connected to the i2c-port.
Now I have one problem using a LCD-display.
I do not know what drivers I need for this.
The supplier provides a image (=Linux rpizero 4.4.11 #2 Tue May 24 22:50:33 CST 2016 armv6l GNU/Linux) which works very good for the LCD display :) . But...
I can not use the i2c port. 
If I run 
raspi-config 
I get the following message: 
There was an error running option A6 I2
and 
modprobe: FATAL: Module i2c-dev not found.
I think I need to add the i2c modules to the image. 
I have 2 questions:

      what i2c module do I need?
      where can i get this?
      how to add this modules ti the image?


You see I'm not an expert in making kernel.
Please can anybody give me a hint how to solve this problem?
Thanks a lot in advance!
Kurt

免责声明:文章转载自《Raspberry Pi 3B I2C 问题》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇【Ray Tracing The Next Week 超详解】 光线追踪2-8 VolumeController和@RestController的区别?下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

树莓派系统烧录和备份,访问与摄像头接入

每个人各自写出 对树莓派的认识 树莓派其实之前只是听过 但确实不没有见过甚至操作过,只是觉得很高大尚 树莓派的用途 树莓派又称卡片式电脑,外形只有信用卡大小,却具有电脑的所有基本功能,这就是Raspberry Pi电脑板。以SD/MicroSD卡为内存硬盘,卡片主板周围有1/2/4个USB接口和一个10/100 以太网接口(A型没有网口),可连接键盘、鼠标...

RPi 树莓派 DSI 接口研究 MIPI raspberry pi

之前一直在玩树莓派,发现有个DSI显示接口一直没有被用上,经过一番研究发现有点意思,记录一下相关资料以后再说。 (update1: 目前全网已经有非常多的方案研究hdmi和mipi的互转方案: a. ) mipi屏幕+hdmi接口:研究最多因为mipi屏幕很多且参数美好。详情google,感谢包括稚晖在内的各路大神的研发,例如pocketLCD方案。 其中...

Raspberry Pi开发之旅-同步时间

使用htpdate同步时间由于树莓派板子上没有 RTC 硬件和电池,因此树莓派上的系统时间重启是保存不了的。网上已经有人想到应对 NTP 被防火墙封掉类似的需求了,开源的 htpdate 命令直接使用 HTTP 协议来进行系统时间同步,项目主页在这里: https://github.com/iridium77/htpdate htpdate 的原理也非常简...

Raspberry PI 树莓派 远程登录 和 远程桌面

1. 设置 ① 用网线使树莓派与电脑连接; ② 给树莓派配置一个鼠标、键盘、显示器; ③ 将树莓派的SD卡写入操作系统; ④ 开机启动树莓派,在显示器上会显示树莓派的开机启动界面; ⑤ 在terminal终端中输入sudo nano /etc/dhcpcd.conf,出现编辑文件窗口,其中输入如下配置信息: 键盘敲入Ctrl+O,Enter保存,Ctrl...