1

i have a problem with bit banging on raspberry pi 2 i have done all of these step :

*sudo nano /etc/modprobe.d/raspi-blacklist.conf  //#blacklist i2c-bcm2708

*sudo nano /etc/modules //Add the Line i2c-dev at the end of the file. *Edit the /boot/cmdline.txt file: sudo nano /boot/cmdline.txt //At the end of the line add bcm2708.vc_i2c_override=1 and when i run ls /dev/i2c* i get only /dev/i2c-1. any ideas? im using Raspberry pi 2.thanks

I'm expecting to see /dev/i2c-1 and /dev/i2c-0 instead of only /dev/i2c-1.

1

1 Answer 1

5

You have to add

dtparam=i2c_vc=on

to

/boot/config.txt

by nano for example

sudo nano /boot/config.txt

Then I can see both i2c interfaces on my Raspberry Pi 2 running Debian Wheezy version.

Later on you can have a problem with detecting i2c devices on the bus. Please take a look to this thread on Raspberry Pi official forum with next steps. i2c-0 on Raspberry Pi 2 Model B

Those gpios don't have external pull ups to 3V3. They will default to the internal 50k pull-ups to 3V3 but they not be sufficient to drive the bus. I'd try adding a 2k pull up to 3V3 on each pin (i2c-1 has external 1k8 pull-ups to 3V3).

Sign up to request clarification or add additional context in comments.

8 Comments

thank you very much but the i2cdetect -y 0 doesn't show any thnig
the I2C0 pins are 27 and 28 should i make pull up resitors?
Yes it looks so. Please take a look to this thread raspberrypi.org/forums/…
the pins are 27 and 28 or 28 and 29 ?
According to the link I gave you in the previous comment SDA=27 and SCL=28.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.