Go to advanced search

by Ragu3l
Sat Mar 02, 2013 12:05 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

RPi has pull ups for i2c1 on P1, but not on i2c0 if this is routed to P5. If i2c0 is routed as default to S5 the RPi has the pull ups. I had very bad results with i2c0 on P5 until I added pull ups It might depend on what you are connecting to? I've seen iCs with pull ups build in on dedicated i2c pi...
by Ragu3l
Fri Mar 01, 2013 3:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

Happy to hear it
by Ragu3l
Fri Mar 01, 2013 2:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

I've seen nothing like it.
Did you remember to add pull up resistors?

Raguel
by Ragu3l
Sun Feb 24, 2013 3:11 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change I2C speed
Replies: 20
Views: 63735

Re: Change I2C speed

Thx Mark

I'll give this a try when I get a chance.
I need to take some time and read up on linux

Raguel
by Ragu3l
Sat Feb 23, 2013 10:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change I2C speed
Replies: 20
Views: 63735

Re: Change I2C speed

No luck I get this: [email protected] ~ $ sudo modprobe - r i2c_bcm2708 FATAL: Module - not found. [email protected] ~ $ sudo cat /sys/module/i2c_bcm2708/parameters/baudrate 100000 and issuing sudo modprobe i2c_bcm2708 baudrate=32000 changes nothing As i said I'm a total noob with Linux, so this leaves me...
by Ragu3l
Sat Feb 23, 2013 7:57 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change I2C speed
Replies: 20
Views: 63735

Re: Change I2C speed

Thx for the pointer.

I'll try it out.
Will need to find a way of making it permanent

Raguel
by Ragu3l
Sat Feb 23, 2013 4:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

I believe the code needs to be run after a reboot to change the pin finctions. This of course means that it can be undone by a reboot. The code can be modified to include a function that'll revert the change back so camera can be used. At least I can't think of a reason why this should not work. But...
by Ragu3l
Sat Feb 23, 2013 4:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

The code changes the function of gpio pins. In this case reroutes i2c0 from pins connected to s5 to pins connected to p5. This only works for boards with p5, obviously. It also means that this prevents s5 from working as designed. If the devices you wish to connect have different addresses or if the...
by Ragu3l
Sat Feb 23, 2013 2:35 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

I've not tried the C code above so I have no personal experience with thst' but bgreat's python code above works. So if you're working with python it should be straight forward. If you're working with C then I suggest giving the C code a try. Remember to add your own pull up resistors to i2c0 on p5....
by Ragu3l
Sat Feb 23, 2013 9:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change I2C speed
Replies: 20
Views: 63735

Re: Change I2C speed

Hi Gert I'm sorry, I should have realized that code would be useful. While writing this reply and retesting to make sure I hadn't made some stupid blunder I realized that I previously only ran this as part of my overall i2c communication and thus hadn't separated these register writes from my use of...
by Ragu3l
Fri Feb 22, 2013 3:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Change I2C speed
Replies: 20
Views: 63735

Change I2C speed

Hi people I've found this forum extremely useful and helpful earlier, so I'm hoping someone can point in hte right direction again. I've gotten both i2c busses working (is trying to communicate with two devices with the same fixed address) and have it sort of working. But I think 100KHz is too fast....
by Ragu3l
Wed Feb 13, 2013 11:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

Hi Bill

Of course. You're right.

I was looking at the schematic and concluded that there was pull-ups, but that was on the way to S5, which I don't need now. Thank you

Will try again once I get some pull-ups added.

Tremendous help
by Ragu3l
Wed Feb 13, 2013 11:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

Hi Bill Thank you. I was slowly getting there but ran into some, I hope, unrelated problems with my wifi. Which meant finding a keyboard and monitor out from storage and getting everything set up again. I'm a linux noob so this took quite a while to get everything back in working order. I've tried o...
by Ragu3l
Wed Feb 13, 2013 5:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

Thanks Bill
I'll have a look and see what I can find out in your code.

If I accomplish anything I'll be posting it within the next 6 hours, if I can;t figure it out your assistance will be greatly appreciated

Ragu3l
by Ragu3l
Wed Feb 13, 2013 3:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

I arrived at the same point late last night. Probing S5 with a scope. I agree that it must be related to setting the alternate function for GPIO28 and 29 to get i2c on P5. It might be necessary to disable the alternate function for GPIO0 and 1, making it impossible to use whatever connects to S5, th...
by Ragu3l
Tue Feb 12, 2013 10:55 pm
Forum: C/C++
Topic: Setting alternate function for GPIO pins
Replies: 7
Views: 4260

Re: Setting alternate function for GPIO pins

Hi hendrixjl

Did you get this working?
I too am interesting in using i2c-0 and have not yet been able to get it working

Cheers
by Ragu3l
Tue Feb 12, 2013 10:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enable both I2C Busses
Replies: 58
Views: 30995

Re: Enable both I2C Busses

Hi I've just confirmed that I too need to access both i2c busses. I have sample code which will detect my device on i2c-1 on P1. I've tried attaching my device to i2c-0 on P5. I believe that the pins to use are GPIO28 (SDA) and GPIO29 (SCL). I've modified my sample code to use i2c-0 but it doen't wo...

Go to advanced search