How to Connect Multiple Arduino Microcontrollers with I2C Hoe te Connect Meerdere Arduino Microcontrollers met I2C

354278597_3c989ca432

Use I2c to connect several Arduinos together to combine their power.  I2C stands for the Inter Integrated Circuits and  is one of the best Gebruik I2c te verbinden verschillende Arduinos samen te combineren hun power. I2C staat voor de Inter Integrated Circuits anda is een van de beste Multi Master Serial Computer Bus Multi Master Computer Serial Bus technologies used in different systems to connect the peripherals of low speed data transmission. gebruikte technologieën in de verschillende systemen voor het aansluiten van randapparatuur van lage snelheid gegevensoverdracht. The technology was invented by Philips for TVs but is used in all sorts of applications including our De technologie werd uitgevonden door Philips voor tv's, maar wordt gebruikt in allerlei toepassingen, met inbegrip van onze Wiimote and Arduino tutorial Wiimote en Arduino tutorial . .

0108bcfig11

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. De I2C-circuits volgen een standaard operationele procedure waarbij slechts twee bi-directional lijnen, een seriële klok en een seriële gegevens worden used. Er zijn onlangs verbeterde versies van I2Cs op de markt beschikbaar die houder zijn van een groter aantal knooppunten en sneller kunnen uitvoeren dan de rest.

You can use I2C then you will be able to connect more than one U kunt gebruik maken van I2C dan kan u meer dan een Arduino Arduino to a robot or other application and you can easily establish a network of sensors. aan een robot of een andere toepassing en kunt u gemakkelijk een netwerk van sensoren. 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 Door het gebruik van deze schakelingen u meer controller pinnen tot uw beschikking waarmee u meer devices. U hebt nog andere opties zoals een expander of Arduino Mega Arduino Mega , but I2C because is significantly cheaper. , Maar omdat I2C is aanzienlijk goedkoper.

How To Set Up Your I2C Hoe u uw I2C

Here are the basic requirements for setting the Hier zijn de basisvoorwaarden voor de vaststelling van de I2C protocol with the Arduino I2C protocol met de Arduino : :

  • More than two Arduinos Meer dan twee Arduinos
  • The latest version of the Arduino IDE De nieuwste versie van de Arduino IDE
  • Few pieces of hook up wire Enkele stukjes hook up draad
  • 1.5 to 2K Pull-up resistors 1,5 tot 2K Pull-up weerstanden
  • You need to install the Arduino wire library (new versions have it built in) Je moet de Arduino draad bibliotheek (nieuwe versies hebben gebouwd)

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. Als u werkt met twee Arduinos, dan moet men de kapitein en de andere moeten handelen als de slave. Om te zorgen voor een succesvol project, moet u ervoor zorgen dat u een minimale 1K pull-up weerstand op elke lijn die zullen trekken tot 5 Volt.

If you are interested in learning more about the I2C and the Arduino, here are a few great resources: Als u geïnteresseerd bent om meer te leren over de I2C en de Arduino, hier zijn een paar grote middelen:

Comment: Commentaar: