
How to Connect Multiple Arduino Microcontrollers with I2C Как подключить Множественное Arduino микроконтроллеров с 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 Использование I2C для подключения нескольких Arduinos вместе, чтобы объединить их power. I2C выступает за Интер интегральных микросхем вы один из лучших Multi Master Serial Computer Bus Multi Master Серийные Компьютеры автобус technologies used in different systems to connect the peripherals of low speed data transmission. технологии, используемые в разных системах для подключения периферийных устройств с низкой скоростью передачи данных. The technology was invented by Philips for TVs but is used in all sorts of applications including our Эта технология была изобретена для телевизоров Philips, но используется в различных приложениях, включая нашу Wiimote and Arduino tutorial Wiimote и 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 микросхемы следуют стандартные оперативные процедуры, в которых только два би-directional линий, серийные часы, а также серийные данные системы used. Есть последнее время улучшилось версии I2Cs имеющихся на рынке, которые могут иметь большее число узлов и может выполнять быстрее, чем остальные.
- Don't miss: Не пропустите: Top 40 Arduino Projects of the Web Top 40 Arduino проекты в Интернете
![]()
You can use I2C then you will be able to connect more than one Вы можете использовать I2C вы сможете подключить более одного Arduino Arduino to a robot or other application and you can easily establish a network of sensors. в роботов или других приложений, и вы можете легко создать сеть датчиков. 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 С помощью этих схем вы будете иметь больше контроллера булавки в вашем распоряжении, которая позволит вам добавить больше devices. у вас есть другие варианты, такие, как экспандер или Arduino Mega Arduino Mega , but I2C because is significantly cheaper. , I2C, но, поскольку это значительно дешевле.
How To Set Up Your I2C Как настроить ваш I2C
Here are the basic requirements for setting the Вот основные требования для установки I2C protocol with the Arduino I2C протокол с Arduino : :
- More than two Arduinos Более двух Arduinos
- The latest version of the Arduino IDE В последнюю версию программы Arduino IDE
- Few pieces of hook up wire Несколько кусочков подключить провод
- 1.5 to 2K Pull-up resistors 1.5 2K Выдвиньте деятельности резисторы
- You need to install the Arduino wire library (new versions have it built in) Вам нужно установить Arduino проволоки библиотека (новые версии он построил в)
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. Если вы работаете с двумя Arduinos, то один должен быть хозяином, а другой должен действовать как slave. Для обеспечения успешной реализации проекта, необходимо убедиться, что вы используете минимум 1K тянуть деятельности резистор на каждую линию , которые будут тянуть его на 5 Вольт.
If you are interested in learning more about the I2C and the Arduino, here are a few great resources: Если вы заинтересованы в получении дополнительной информации о I2C и Arduino, здесь несколько большие ресурсы:










































