legobot
Enabling i2c for sensors 본문
I decided to use three ToF sensors. Those sensors will be connected through i2c, so we need to enable i2c port.
As always, please follow steps below.
You need to execute raspi-config as below
Go to #9
Go to A6
Choose YES
Choose OK
You're ready to use i2c devices.
It would be better you need to install i2c-tools which can search i2c devices by the command "sudo i2cdetect -y 1" for the PI zero
If any i2c devices are connected to the PI zero, you can use the command "sudo i2cdetect -y 1" for the PI zero.
Actually, if you have a device which address is 0x30, then you will get the result as shown below.
Now, you are ready to control i2c devices.
'raspberry pi' 카테고리의 다른 글
Sharing files between MacOS and raspberry pi (0) | 2016.07.21 |
---|---|
Setting up Raspberry Pi Zero : Install node.js (1) | 2016.07.17 |
Setting up Raspberry Pi Zero : Setting wireless lan (1) | 2016.07.15 |
Setting up Raspberry Pi Zero : booting and enable OTG for remote access (0) | 2016.07.14 |