Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

legobot

Enabling i2c for sensors 본문

raspberry pi

Enabling i2c for sensors

Sangkyu 2016. 7. 22. 00:13

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.