<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Multiple Arduino boards?]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=17&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=17"/>
	<updated>2015-11-10T14:12:48Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=17</id>
	<entry>
		<title type="html"><![CDATA[Re: Multiple Arduino boards?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=54#p54"/>
		<content type="html"><![CDATA[<p>Yes it is but some extra care is necessary. If you just plug the 2 Arduinos in and reboot, you never know which one of them is /dev/ttyACM0 and which one is /dev/ttyACM1 (or /dev/ttyUSB*, see the other topic on <a href="http://www.rexygen.com/oldforum/viewtopic.php?id=4" rel="nofollow">identifying your Arduino</a>). </p><p>So let&#039;s get this sorted out. First plug in only one Arduino and type</p><div class="codebox"><pre><code>ls /dev/ttyACM*</code></pre></div><p>You should get <strong>/dev/ttyACM0</strong>. Use it in the following command.</p><p>Then run this command</p><div class="codebox"><pre><code>udevadm info -a -n /dev/ttyACM0 | less | grep KERNELS</code></pre></div><p>You will get something like:</p><div class="codebox"><pre><code>    KERNELS==&quot;1-1.2:1.0&quot;
    KERNELS==&quot;1-1.2&quot;
    KERNELS==&quot;1-1&quot;
    KERNELS==&quot;usb1&quot;
    KERNELS==&quot;20980000.usb&quot;
    KERNELS==&quot;soc&quot;
    KERNELS==&quot;platform&quot;</code></pre></div><p>Write down the identifier from the first line (&quot;1-1.2:1.0&quot;). This identifies the USB port in your system.</p><p>Repeat the above with the Arduino connected to another USB port(s) and find the USB port identifiers. I have &quot;1-1.2:1.0&quot; and &quot;1-1.3:1.0&quot;.</p><p>Now create a file named <strong>/etc/udev/rules.d/99-arduino.rules</strong>, e.g.</p><div class="codebox"><pre><code>sudo nano /etc/udev/rules.d/99-arduino.rules</code></pre></div><p>Put the following in:</p><div class="codebox"><pre><code>SUBSYSTEM==&quot;tty&quot;, KERNEL==&quot;ttyACM*&quot;, KERNELS==&quot;1-1.2:1.0&quot;, SYMLINK+=&quot;arduino_one&quot;
SUBSYSTEM==&quot;tty&quot;, KERNEL==&quot;ttyACM*&quot;, KERNELS==&quot;1-1.3:1.0&quot;, SYMLINK+=&quot;arduino_two&quot;</code></pre></div><p>Add more lines if you plan to use more than two Arduinos. Save and exit.</p><p>This means that whenever a ttyACM* device is plugged into the USB port &quot;1-1.2:1.0&quot;, a symbolic device /dev/arduino_one is created. And that whenever a ttyACM* device is plugged into the USB port &quot;1-1.3:1.0&quot;, a symbolic device /dev/arduino_two is created.</p><p>Now disconnect your Arduino and run </p><div class="codebox"><pre><code>sudo /etc/init.d/udev reload</code></pre></div><p>Afterwards connect your Arduinos to the appropriate USB ports and you should be able to use <strong>/dev/arduino_one</strong> and <strong>/dev/arduino_two</strong> in the REXduino function blocks. Unless you mismatch the USB ports, you&#039;ll always know which Arduino you are referring to.</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2015-11-10T14:12:48Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=54#p54</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Multiple Arduino boards?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=48#p48"/>
		<content type="html"><![CDATA[<p>Is it possible to connect more than 1 Arduino (trough USB) with de Rexcore/raspberry?</p>]]></content>
		<author>
			<name><![CDATA[contactform]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=11</uri>
		</author>
		<updated>2015-11-10T12:14:28Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=48#p48</id>
	</entry>
</feed>
