I2c Adress List on Redpitaya Board

Placement, modules, components and accessories; the ones that exist and the the nice-to-be's
Post Reply
Gor
Posts: 2
Joined: Mon Jun 08, 2015 3:30 pm

I2c Adress List on Redpitaya Board

Post by Gor » Thu Jun 11, 2015 4:39 pm

Hi

I am going to work with the I2C bus and at this point it works very well.
I run the example (http://redpitaya.com/make-your-app/i2c/) and have nice signals on the oscilloscope.
But I found no information about which addresses the Redpitaya board use internal and which I can use on my extension board.
Are there any other chips on the I2C beside the EEPROM?

I hope for some useful informations.

noah
Posts: 33
Joined: Fri Jan 23, 2015 9:53 am
Location: Zurich

Re: I2c Adress List on Redpitaya Board

Post by noah » Fri Jun 12, 2015 4:33 pm

Unfortunately there is still no release of the schematics :x
But you could write a simple shell script that runs through all the 127 addresses and tests the ack response in order to detect if there is a device connected. If you got that, would you mind share?

noah
Posts: 33
Joined: Fri Jan 23, 2015 9:53 am
Location: Zurich

Re: I2c Adress List on Redpitaya Board

Post by noah » Mon Jun 15, 2015 1:59 pm

I just had fun writing a little tool to scan for devices, you can find the source and binary on my github repo. There is indeed only the EEPROM on the local i2c bus 0:

Code: Select all

Test done. Found devices with adr: 0x50
Cheers, Noah

Gor
Posts: 2
Joined: Mon Jun 08, 2015 3:30 pm

Re: I2c Adress List on Redpitaya Board

Post by Gor » Wed Jun 17, 2015 12:02 pm

Thanks for this interesting information

xyefa
Posts: 54
Joined: Tue Feb 02, 2016 8:42 pm

Re: I2c Adress List on Redpitaya Board

Post by xyefa » Wed Nov 02, 2016 11:24 pm

Another way is to ls /proc/device-tree and grep for your device:

user@testdevice:/proc/device-tree$ ls -R | grep i2c
i2c@e0004000
i2c@e0005000
./amba/i2c@e0004000:
./amba/i2c@e0004000/eep@50:
./amba/i2c@e0005000:

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 18 guests