Reputation: 52
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
.
Upvotes: 1
Views: 5982
Reputation: 1653
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).
Upvotes: 5