<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=47&amp;t=19594&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-11-12T22:00:14+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=47&amp;t=19594&amp;mode</id>
<entry>
<author><name><![CDATA[Zimny_5]]></name></author>
<updated>2017-11-12T22:00:14+01:00</updated>
<published>2017-11-12T22:00:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198817#p198817</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198817#p198817"/>
<title type="html"><![CDATA[Re: Komunikacja 2 arduino po Uart]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198817#p198817"><![CDATA[
Działa po 4 godzinach boju <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /> ale jaka radość z tej nauki a wieć tak co zmieniłem : <br />Nadaje poprzez <br />Serial3.write(potValueMapped); <br />natomiast odbieram dane i zapisuje do zmiennej byte rx_byte = 0;<br />[syntax=cpp]if (HC05.available()) {<br />   // get a byte from serial port 3<br />    rx_byte = HC05.read();<br />   // send the byte to the USB serial port<br />    Serial.println(rx_byte);<br />    <br /> }[/syntax] <br /><br />Niby proste ale rozwiązanie działające trudno znaleźć <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4249">Zimny_5</a> — 12 lis 2017, o 22:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Zimny_5]]></name></author>
<updated>2017-11-12T19:53:20+01:00</updated>
<published>2017-11-12T19:53:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198810#p198810</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198810#p198810"/>
<title type="html"><![CDATA[Re: Komunikacja 2 arduino po Uart]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198810#p198810"><![CDATA[
Zmieniłem i nie działa jedno arduino wysyła liczby od 0 do 255  (podgląd na serial monitorze)a drugie arduino odbiera cały czas 0 też podgląd na serial monitorze.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4249">Zimny_5</a> — 12 lis 2017, o 19:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[anshar]]></name></author>
<updated>2017-11-12T19:12:13+01:00</updated>
<published>2017-11-12T19:12:13+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198808#p198808</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198808#p198808"/>
<title type="html"><![CDATA[Re: Komunikacja 2 arduino po Uart]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198808#p198808"><![CDATA[
Spróbuj:<br />[syntax=c]state = Serial.parseInt();[/syntax]<br />zamiast:<br />[syntax=c]state = Serial.read();[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7157">anshar</a> — 12 lis 2017, o 19:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Zimny_5]]></name></author>
<updated>2017-11-12T17:57:01+01:00</updated>
<published>2017-11-12T17:57:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198795#p198795</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198795#p198795"/>
<title type="html"><![CDATA[Re: Komunikacja 2 arduino po Uart]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198795#p198795"><![CDATA[
Przepraszam już więcej się to nie powtórzy.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4249">Zimny_5</a> — 12 lis 2017, o 17:57</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Zimny_5]]></name></author>
<updated>2017-11-12T16:59:35+01:00</updated>
<published>2017-11-12T16:34:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198790#p198790</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198790#p198790"/>
<title type="html"><![CDATA[Komunikacja 2 arduino po Uart]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19594&amp;p=198790#p198790"><![CDATA[
Mam problem z przesyłaniem informacji po Uart. Jedno Arduino Uno ma zrobić pomiar napięcia a drugie arduino podstawić to do PWM na diode. Problem w tym że arduino które odbiera pomairy nie czyta nic masy są razem połączone a RX TX na krzyż podaje program poniżej<br />[syntax=cpp]#include &lt;SoftwareSerial.h&gt;<br />SoftwareSerial mySerial(12, 11); // RX, TX<br /><br />int v=0;<br /><br />void setup() {<br />  Serial.begin(9600);<br />  pinMode(8,OUTPUT);<br />  mySerial.begin(9600);<br />}<br />void loop()<br />{<br /><br />v=analogRead(0);<br /> int potValueMapped = map(v, 0, 1023, 0, 255);<br /> Serial.println(potValueMapped); // wyślij do arduino 2<br /> <br />mySerial.println(potValueMapped);<br /> analogWrite(8,potValueMapped);<br />}[/syntax]<br />I drugie arduino <br /><br />[syntax=cpp]include &lt;SoftwareSerial.h&gt;<br />SoftwareSerial HC05(12, 11); // RX | TX<br /><br /><br />int state = 0;<br /><br />void setup() {<br />  <br />pinMode(8,OUTPUT);<br />   Serial.begin(9600);<br />   HC05.begin(9600); //domyślna prędkośc modułu<br />} <br />  <br />void loop() {<br /><br /> if(HC05.available() &gt; 0){ <br />    state = Serial.read(); }<br /><br />    analogWrite(8,state);<br /><br />    Serial.println(state);<br />  }[/syntax]<br /><br />Przecież jest to prosta komunikacja jak z komp[uterem powinno działać a tu nic <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4249">Zimny_5</a> — 12 lis 2017, o 16:34</p><hr />
]]></content>
</entry>
</feed>