<?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=10363&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-01-24T10:52:28+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=47&amp;t=10363&amp;mode</id>
<entry>
<author><name><![CDATA[kepes12]]></name></author>
<updated>2015-01-24T10:52:28+01:00</updated>
<published>2015-01-24T10:52:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115604#p115604</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115604#p115604"/>
<title type="html"><![CDATA[Re: RF 433mhz PILNA POMOC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115604#p115604"><![CDATA[
Nadajnik:<br />[syntax=c]#include &lt;idDHT11.h&gt;<br />#include &lt;Wire.h&gt;<br />#include &lt;VirtualWire.h&gt;<br />#include &lt;BMP180.h&gt;<br /> <br />int idDHT11pin = 3;<br />int idDHT11intNumber = 1;<br /> <br />void dht11_wrapper(); // must be declared before the lib initialization<br /> <br />idDHT11 DHT11(idDHT11pin,idDHT11intNumber,dht11_wrapper);<br /> <br />BMP180 barometer;<br />// float seaLevelPressure = 101000;<br /> <br />String calosc, wilg, cisn, temp, wilg1, cisn1, temp1;<br />char Msg&#91;27&#93;;<br /> <br /> <br />void setup()<br />{<br />  vw_setup(2000);<br /> <br />  wilg = String(&quot;W: &quot;);<br />  cisn = String (&quot;C: &quot;);<br />  temp = String (&quot;T: &quot; );<br />  Serial.begin(9600);<br />  delay(5000);<br />  Serial.println(&quot;Test stacji pogody&quot;);<br /> <br />  Wire.begin();<br />  barometer = BMP180();<br />  if(barometer.EnsureConnected())<br />  {<br />    Serial.println(&quot;Connected to BMP180.&quot;); // Output we are connected to the computer.<br />    barometer.SoftReset();<br />    barometer.Initialize();<br />  }<br />  else<br />  {<br />    Serial.println(&quot;Could not connect to BMP180.&quot;);<br /> <br />  }<br />  Serial.print(&quot;DHT 11 LIB version: &quot;);<br />  Serial.println(IDDHT11LIB_VERSION);<br />  Serial.println(&quot;---------------&quot;);<br />  }<br /> <br />// This wrapper is in charge of calling<br />// mus be defined like this for the lib work<br />void dht11_wrapper()<br />{  DHT11.isrCallback();  }<br /> <br />void loop()<br />{<br />  Serial.print(&quot;\nRetrieving information from sensor: &quot;);<br />    //delay(100);<br />  DHT11.acquire();<br />  while (DHT11.acquiring())<br />    ;<br />  int result = DHT11.getStatus();<br />  switch (result)<br />  {<br />  case IDDHTLIB_OK:<br />    Serial.println(&quot;OK&quot;);<br />    break; }<br /> <br /> <br />int a = (DHT11.getHumidity());<br />String wilg1 = wilg + a + &quot;%&quot;;<br />Serial.println (wilg1);<br /> <br />if(barometer.IsConnected)<br />  {<br />    // Retrive the current pressure in Pascals.<br />    long currentPressure = barometer.GetPressure();<br />   <br />    int b = (currentPressure/100);<br />    String cisn1 = cisn + b + &quot; hPa&quot;  ;<br />    Serial.println (cisn1);<br /> <br />    // Retrive the current temperature in degrees celcius.<br />    float currentTemperature = barometer.GetTemperature();<br /> <br />    int c = (currentTemperature);<br />    String temp1 = temp + c + &quot; stC&quot;;<br />    Serial.println (temp1);<br /> <br />   String calosc = wilg1 + temp1 + cisn1 ;<br />   Serial.println(calosc);  <br />   <br />    calosc.toCharArray(Msg,(calosc.length()+1));<br />    for (int i = 0; i &lt;= calosc.length(); i++) {<br />    Serial.print(Msg&#91;i&#93;);<br />   }<br />   <br />    vw_send((uint8_t *)Msg, strlen(Msg));<br />    vw_wait_tx();<br />   <br />    Serial.println(&quot;Wysłano&quot;);         }<br />    Serial.println(); // Start a new line.<br />    delay(10000);<br />}[/syntax]<br /><br />Odbiornik:<br />[syntax=c]#include &lt;VirtualWire.h&gt;<br />#include &lt;Wire.h&gt;<br />#include &lt;LCD.h&gt;<br />#include &lt;LiquidCrystal_I2C.h&gt;<br />#define BACKLIGHT_PIN 3<br /> <br />LiquidCrystal_I2C       lcd(0x27,2,1,0,4,5,6,7);<br /> <br />void setup()<br />{<br />Serial.begin(9600);<br />delay(4000);<br />lcd.begin (20,4);<br />lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);<br />lcd.setBacklight(HIGH);<br />lcd.home ();<br /> <br />Serial.println(&quot;Test odbiornika&quot;);<br />    vw_setup(2000);<br />    vw_set_rx_pin(4);    <br />    vw_rx_start();      <br />}<br /> <br />void loop()<br />{<br />    uint8_t buf&#91;VW_MAX_MESSAGE_LEN&#93;;<br />    uint8_t buflen = VW_MAX_MESSAGE_LEN;<br /> <br />    if (vw_get_message(buf, &amp;buflen))<br />       {<br />        int i;<br />       String wil, tem, cis;<br />        for (i = 0; i &lt; 6; i++)<br />  {   wil +=char(buf&#91;i&#93;);  }<br />  for (i &gt; 6; i &lt; 14; i++)<br />  {   tem +=char(buf&#91;i&#93;);  }<br />for (i = 15; i &lt; buflen; i++)<br />  {   cis +=char(buf&#91;i&#93;);  }  <br /> <br /> Serial.println (wil);<br /> Serial.println (tem);<br /> Serial.println (cis);<br /> lcd.clear ();<br /> lcd.setCursor(0, 0);<br /> lcd.print (tem);<br /> lcd.setCursor(10, 0);<br /> lcd.print (wil);<br /> lcd.setCursor(0, 1);<br /> lcd.print (cis);<br />   }<br />    }[/syntax]<br /><br />jak w złym dziale napisałem to proszę o skierowanie tam gdzie trzeba<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7347">kepes12</a> — 24 sty 2015, o 10:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Nefarious19]]></name></author>
<updated>2015-01-24T10:43:58+01:00</updated>
<published>2015-01-24T10:43:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115600#p115600</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115600#p115600"/>
<title type="html"><![CDATA[Re: RF 433mhz PILNA POMOC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115600#p115600"><![CDATA[
Po pierwsze nie ten dział a po drugie co to za nabijanie postów? Nie mogłeś podbić swojego starego posta? Jak ktoś będzie miał ochotę to Ci pomoże, pamiętaj że to forum głównie o języku C i ludzi zajmujących się Arduino jest tutaj mniej. W dodatku pytanie zadałeś tak że chyba tylko wróżka na nie odpowie. Nie ma schematu, kodu, zdjęcia jak podłączyłeś,  nic po prostu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2500">Nefarious19</a> — 24 sty 2015, o 10:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kepes12]]></name></author>
<updated>2015-01-24T10:14:20+01:00</updated>
<published>2015-01-24T10:14:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115597#p115597</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115597#p115597"/>
<title type="html"><![CDATA[RF 433mhz PILNA POMOC]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10363&amp;p=115597#p115597"><![CDATA[
Witam zakładam ten temat po raz 2 ponieważ nie uzyskałem odpowiedzi na niego a chce jak najszybciej to zrobić. Mam zamiar zrobić stację pogody na arduino Leonardo i Arduino Pro Mini oraz czujnik dht11 i wyświetlacz 4x20 z konwerterem I2C. Gdy wgrałem program na pro mini (nadajnik) i włączyłem serial monitor to wysyła mi tylko wilgotność a na Arduino Leonardo serial monitor nic nie pokazuje i nie wyświetla na wyświetlaczu danych. <br /><br />Robione zgodnie z tym filmikiem:<br /><div style="width: 583px; height: 471px; margin: 0 auto; padding-left: 26px; padding-top: 48px; background: url('https://www.atnel.pl/download/atnel_tv.png') no-repeat;"> <strong>iframe</strong> </div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7347">kepes12</a> — 24 sty 2015, o 10:14</p><hr />
]]></content>
</entry>
</feed>