en:i2c
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:i2c [2014/12/20 13:48] – created fluktuacia | en:i2c [2014/12/20 17:54] – further translation fluktuacia | ||
---|---|---|---|
Line 6: | Line 6: | ||
Thanks to an advancement in computer technologies [[cs: | Thanks to an advancement in computer technologies [[cs: | ||
- | |||
Line 17: | Line 16: | ||
Over more extensive distances the bus is linked through shielded signal cables ending in female connectors and connected to [[cs: | Over more extensive distances the bus is linked through shielded signal cables ending in female connectors and connected to [[cs: | ||
+ | |||
+ | In the case of extensive networks I²C is replaced by other physical layer (CAN, Ethernet) that interconnects individual I²C network segments. | ||
+ | |||
+ | |||
+ | |||
+ | ==== 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 using simple python commands. | ||
+ | |||
+ | The installation of the [[cs: | ||
+ | |||
+ | sudo pip install pymlab | ||
+ | |||
+ | In case of having some older version of pymlab already installed, it is enough to run: | ||
+ | |||
+ | 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 to connect I²C to PC ===== | ||
+ | |||
+ | 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 of [[http:// | ||
+ | |||
+ | ==== USB interface ==== | ||
+ | |||
+ | Proprietary designs: | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | These share a common problem with a quality of drivers. Furthermore, | ||
+ | |||
+ | ==== USB HID ==== | ||
+ | |||
+ | To connect without having to use drivers designed for specific hardware [[http:// | ||
en/i2c.txt · Last modified: 2014/12/21 10:42 (external edit)