
How to Connect Multiple Arduino Microcontrollers with I2C Ako sa pripojiť viac Arduino Microcontrollers s I2C

Use I2c to connect several Arduinos together to combine their power. I2C stands for the Inter Integrated Circuits and is one of the best Použite i2c pripojiť niekoľko Arduinos spolu spojiť svoje power. I2C stojí za Inter integrované obvody anda je jedným z najlepších Multi Master Serial Computer Bus Multi Master Serial Bus Computer technologies used in different systems to connect the peripherals of low speed data transmission. technológiami používanými v rôznych systémoch pre pripojenie periférnych zariadení s nízkou rýchlosťou prenosu dát. The technology was invented by Philips for TVs but is used in all sorts of applications including our Táto technológia bola vynájdená pre televízory Philips, ale je používaný v celej rade aplikácií, vrátane nášho Wiimote and Arduino tutorial Wiimote a Arduino tutorial . .

The I2C circuits follow a standard operational procedure where only two bi-directional lines, a serial clock, and a serial data systems are used.  There are recently improved versions of I2Cs available on the market which can hold a higher number of nodes and can perform faster than the rest. I2C obvody nasledovať štandardný operačný postup, keď len dva bi-directional linky, sériovej hodiny a sériové dátové systémy used. Existujú nedávno vylepšenej verzie I2Cs dostupné na trhu, ktorá môže pojať väčší počet uzlov a možno vykonať rýchlejšie ako ostatné.
- Don't miss: Nenechajte si ujsť: Top 40 Arduino Projects of the Web Top 40 Arduino projekty na webe
![]()
You can use I2C then you will be able to connect more than one Môžete použiť I2C potom budete môcť pripojiť viac ako jeden Arduino Arduino to a robot or other application and you can easily establish a network of sensors. s robotom alebo iné aplikácie a môžete ľahko vytvoriť sieť senzorov. By using these circuits you will have more controller pins at your disposal which will allow you to add more devices. You do have other options such as an expander or Používaním týchto obvodov, budete mať viac radič piny k dispozícii, ktorá vám umožní pridať ďalšie devices. Máš iné možnosti, ako expander alebo Arduino Mega Arduino Mega , but I2C because is significantly cheaper. , Ale I2C, pretože je výrazne lacnejšie.
How To Set Up Your I2C Ako nastaviť I2C
Here are the basic requirements for setting the Tu sú základné požiadavky na stanovenie I2C protocol with the Arduino I2C protokol s Arduino : :
- More than two Arduinos Viac ako dve Arduinos
- The latest version of the Arduino IDE Najnovšie verzie Arduino IDE
- Few pieces of hook up wire Pár kúskov přivěsit drôtu
- 1.5 to 2K Pull-up resistors 1,5 až 2K Pull-up rezistory
- You need to install the Arduino wire library (new versions have it built in) Musíte nainštalovať drôtu Arduino knižnice (nové verzie, ktoré je postavený v roku)
If you are working with two Arduinos, then one must be the master and the other must act as the slave. To ensure a successful project, you need to make sure that you are using a minimum 1K pull-up resistor on every single line which will pull it to 5 Volts. Ak pracujete s dvoma Arduinos, potom jeden musí byť kapitán a ostatní sa musia konať ako slave. Na zabezpečenie úspešného projektu, musíte sa uistiť, že používate minimálne 1K pull-up odpor na každý riadok ktorý bude ťahať na 5 voltov.
If you are interested in learning more about the I2C and the Arduino, here are a few great resources: Ak máte záujem dozvedieť sa viac o I2C a Arduino, tu je pár veľkých zdrojov:












































August 13th, 2009 13.srpna 2009
Hello! Ahoj!
I've done some time in practice with the Arduino I2Cbus based on the Philips device PCF8574P, the truth is that I had no idea how complicated that would be, in principle I am trying to make a 4×3 numeric keypad, as is the example shown in this link: Urobil som nejaký čas v praxi Arduino I2Cbus na prístroji Philips PCF8574P, pravda je, že som nemal potuchy, ako zložité, že by sa v podstate sa snažím robiť 4 × 3 numerická klávesnica, ako je príklade na tento odkaz:
http://www.arduino.cc/playground/Main/I2CPortExpanderAndKeypads http://www.arduino.cc/playground/Main/I2CPortExpanderAndKeypads
I can not get back the number of the button pressed. Nemôžem sa dostať späť počtu stlačení.
I can help, what should I do to show me the number for the button pressed. Dokážem pomôcť, čo mám robiť, aby mi ukázal číslo stlačení.
Thanks for your reply. Vďaka za Vašu odpoveď.