en:i2c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:i2c [2014/12/20 13:48] – created fluktuacia | en:i2c [2014/12/21 00:39] – [Linking of I²C devices] kaklik | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== I²C bus as an MLAB's component ====== | ====== I²C bus as an MLAB's component ====== | ||
- | [[http:// | + | [[http:// |
- | Thanks to an advancement in computer technologies [[cs:arm|new possibilities]] arise allowing the use of the bus for direct communication between sensors and Linux systems. Furthermore, | + | Thanks to an advancement in computer technologies [[en:arm|new possibilities]] arise allowing the use of the bus for direct communication between sensors and Linux systems. Furthermore, |
+ | ===== Linking of I²C devices ===== | ||
+ | Although the I²C bus was originally designed to link devices on small scales (within the dimensions of PCB), using certain techniques it is possible to enlarge its range to tens of meters (( [[http:// | ||
+ | Linking of I²C devices within MLAB is implemented on several levels according to extent of a network. Locally (on scale of several meters), the modules are connected by MLAB cables and separated by [[en: | ||
- | ===== Linking | + | Over more extensive distances the bus is linked through shielded signal cables ending in female connectors and connected to [[en: |
- | Although | + | In the case of extensive networks |
+ | |||
+ | |||
+ | |||
+ | ==== Pymlab package ==== | ||
+ | |||
+ | Pymlab represents a software package that enables a creation of network made of I²C devices and modules, which serve as routing points. It defines the structure of a network and addresses of individual nodes in a source file of a control program. Individual points in the network can than be accessed | ||
+ | |||
+ | The installation of the [[en: | ||
+ | |||
+ | sudo pip install pymlab | ||
+ | |||
+ | In case of having some older version of pymlab already installed, | ||
+ | |||
+ | sudo pip install --upgrade pymlab | ||
+ | |||
+ | Both commands are equivalent and use the python package manager that contains [[https:// | ||
+ | This procedure should also download other packages used by pymlab such as cython-hidapi (reffered only as hid module in python). However it does not install alelibusb, which must still be done manually using: | ||
+ | |||
+ | sudo apt-get install libudev-dev libusb-1.0-0-dev libhidapi-dev python-setuptools python-smbus cython | ||
+ | |||
+ | |||
+ | ===== Convertors | ||
+ | |||
+ | Although I²C is quite popular bus suitable to connect different sensors over short distances, it is not usually found and readily available on regular computers with exception | ||
+ | |||
+ | ==== USB interface ==== | ||
+ | |||
+ | Proprietary designs: | ||
+ | |||
+ | * [[http://www.robot-electronics.co.uk/acatalog/ | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | These share a common problem with a quality of drivers. Furthermore, i2c-tiny-usb does not fully meet the I²C specification, | ||
- | Linking of I²C devices within MLAB is implemented on several levels according to extent of a network. Locally (on scale of several meters), the modules are connected by MLAB cables and separated by [[cs: | + | ==== USB HID ==== |
- | Over more extensive distances the bus is linked through shielded signal cables ending in female connectors and connected | + | To connect without having |
en/i2c.txt · Last modified: 2014/12/21 10:42 (external edit)