树莓派2 ubuntu_树莓派i2c和ubuntu服务器入门

本文介绍了如何在树莓派2上安装Ubuntu服务器,并引导读者开始使用I2C通信协议进行设备交互。通过翻译自Medium的文章,提供了一条清晰的学习路径。
摘要由CSDN通过智能技术生成

树莓派2 ubuntu

A Rasberry Pi (RPi) is a low cost mini computer and has the size of a credit card. It is a great solution for hobby and home projects (and some commercial, too) because it has various input/output pins, video, camera, sound interfaces and many good OSes to install.

Rasberry Pi(RPi)是一种低成本的微型计算机,具有信用卡大小。 对于业余和家庭项目(以及一些商业项目),它是一个很好的解决方案,因为它具有各种输入/输出引脚,视频,摄像头,声音接口以及许多不错的OS。

介绍 (Introduction)

Inter-Integrated Circuit (I2C) is a protocol to allow communication between multiple chips. It only uses two lines to communicate:

集成电路间(I2C)是一种允许多个芯片之间进行通信的协议。 它仅使用两行进行通信:

  • SDA: Serial Data

    SDA:串行数据
  • SCL: Serial Clock

    SCL:串行时钟
Image for post
I2C protocol bus.
I2C协议总线。

It combines some characteristics of two other communications (UART and SPI):

它结合了其他两种通信( UARTSPI )的一些特征:

  • Like SPI, it is only intended for short distance communication;

    与SPI一样,它仅适用于短距离通信。
  • Like UART, it only requires two wires to exchange information.

    与UART一样,它仅需要两根导线即可交换信息。

And solve some of their problems:

并解决他们的一些问题:

  • Unlike SPI, it allows more than one master on the line and has only two lines, which can save a lot of connections and space;

    与SPI不同,它允许一条线上有多个主机,而只有两条线路,这样可以节省大量的连接和空间。

  • Unlike UART, the SCL line is used to synchronize data and can support more than two devices.

    与UART不同,SCL线用于同步数据,可以支持两个以上的设备。

An I2C bus protocol

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值