
How to Connect Multiple Arduino Microcontrollers with I2C كيفية توصيل متعددة اردوينو ميكروكنترولر مع 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 ماجستير في الحاسب الآلي متعددة ناقل التسلسلي 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 التكنولوجيا اخترعها فيليبس لأجهزة التلفاز ولكن يتم استخدامه في جميع أنواع التطبيقات بما في ذلك لدينا Wiimote and Arduino tutorial Wiimote واردوينو تعليمي . .

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 أعلى 40 اردوينو مشاريع للويب
![]()
You can use I2C then you will be able to connect more than one يمكنك استخدام I2C فإنك سوف تكون قادرة على ربط أكثر من واحد 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 اردوينو ميجا , 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 بروتوكول مع اردوينو : :
- More than two Arduinos أكثر من عقدين من Arduinos
- The latest version of the 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) كنت بحاجة لتثبيت الأسلاك اردوينو مكتبة (إصدارات جديدة لانها بنيت في)
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 واردوينو ، وهنا بعض الموارد العظيمة :












































August 13th, 2009 August 13th ، 2009
Hello! مرحبا!
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: لقد فعلت بعض الوقت في الممارسة العملية مع I2Cbus اردوينو استنادا إلى جهاز فيليبس PCF8574P ، والحقيقة هي أنه لم يكن لدي أي فكرة عن كيفية المعقدة التي من شأنها أن تكون ، من حيث المبدأ ، واني اسعى الى جعل لوحة مفاتيح رقمية 4 × 3 ، كما هو المثال هو مبين في هذا الرابط :
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. لا أستطيع الحصول على دعم عدد من الضغط على زر.
I can help, what should I do to show me the number for the button pressed. أنا يمكن أن تساعد ، ماذا علي أن أفعل لتدليني على عدد لضغط الزر.
Thanks for your reply. شكرا لردكم.