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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-03-04T22:03:36+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=47&amp;t=14727&amp;mode</id>
<entry>
<author><name><![CDATA[botwymiatacz]]></name></author>
<updated>2016-03-04T22:03:36+01:00</updated>
<published>2016-03-04T22:03:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155440#p155440</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155440#p155440"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155440#p155440"><![CDATA[
udało mi się po kilkunastu godzinach walki rozwiązać problem 4 mierniki temp działają lecz zegar nic :/ przerywacz nie tchnięty :/ pomóżcie <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=13215">botwymiatacz</a> — 4 mar 2016, o 22:03</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jaglarz]]></name></author>
<updated>2016-03-04T17:25:41+01:00</updated>
<published>2016-03-04T17:25:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155433#p155433</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155433#p155433"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155433#p155433"><![CDATA[
<!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic7402.html" >topic7402.html</a><!-- l --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=471">Jaglarz</a> — 4 mar 2016, o 17:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[botwymiatacz]]></name></author>
<updated>2016-03-04T17:50:44+01:00</updated>
<published>2016-03-04T17:16:19+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155432#p155432</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155432#p155432"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155432#p155432"><![CDATA[
więc tak kombinowałem jak tylko mogłem udało mi się stwaorzyć tylko termometr 1 kanałowy nie wiem nawet jak podpiąć drugi i trzeci i czwarty kanał  oto kod &quot; [syntax=cpp]&#93;#include &lt;OneWire.h&gt;<br />    #include &lt;LiquidCrystal.h&gt;<br /><br />    // Connections:<br />    // rs (LCD pin 4) to Arduino pin 12<br />    // rw (LCD pin 5) to Arduino pin 11<br />    // enable (LCD pin 6) to Arduino pin 10<br />    // LCD pin 15 to Arduino pin 13<br />    // LCD pins d4, d5, d6, d7 to Arduino pins 5, 4, 3, 2<br />    LiquidCrystal lcd(12, 11, 5, 4, 3, 1);<br />    OneWire  ds(2);        // ds18b20 pin #2 (middle pin) to Arduino pin 8   <br />    void setup(void) {<br />    lcd.begin(16, 2);<br />}<br />  byte i;<br />  byte present = 0;<br />  byte type_s;<br />  byte data&#91;12&#93;;<br />  byte addr&#91;8&#93;;<br />  float celsius, fahrenheit;<br />     <br />    int HighByte, LowByte, SignBit, Whole, Fract, TReading, Tc_100, FWhole;<br /><br />///////<br /><br />void loop(void) {<br />  <br />  <br />  if ( !ds.search(addr)) {<br />    ds.reset_search();<br />    delay(250);<br />    return;<br />  }<br />  <br />  if (OneWire::crc8(addr, 7) != addr&#91;7&#93;) {<br /><br />      return;<br />  }<br /><br /> <br />  // the first ROM byte indicates which chip<br />  switch (addr&#91;0&#93;) {<br />    case 0x10:<br /><br />      type_s = 1;<br />      break;<br />    case 0x28:<br /><br />      type_s = 0;<br />      break;<br />    case 0x22:<br /><br />      type_s = 0;<br />      break;<br />    default:<br /><br />      return;<br />  } <br /><br />  ds.reset();<br />  ds.select(addr);<br />  ds.write(0x44, 1);        // start conversion, with parasite power on at the end<br />  <br />  delay(1000);     // maybe 750ms is enough, maybe not<br />  // we might do a ds.depower() here, but the reset will take care of it.<br />  <br />  present = ds.reset();<br />  ds.select(addr);    <br />  ds.write(0xBE);         // Read Scratchpad<br /><br /><br />  for ( i = 0; i &lt; 9; i++) {           // we need 9 bytes<br />    data&#91;i&#93; = ds.read();<br /><br />  }<br /><br /><br />  // Convert the data to actual temperature<br />  // because the result is a 16 bit signed integer, it should<br />  // be stored to an &quot;int16_t&quot; type, which is always 16 bits<br />  // even when compiled on a 32 bit processor.<br />  int16_t raw = (data&#91;1&#93; &lt;&lt; 8) | data&#91;0&#93;;<br />  if (type_s) {<br />    raw = raw &lt;&lt; 3; // 9 bit resolution default<br />    if (data&#91;7&#93; == 0x10) {<br />      // &quot;count remain&quot; gives full 12 bit resolution<br />      raw = (raw &amp; 0xFFF0) + 12 - data&#91;6&#93;;<br />    }<br />  } else {<br />    byte cfg = (data&#91;4&#93; &amp; 0x60);<br />    // at lower res, the low bits are undefined, so let's zero them<br />    if (cfg == 0x00) raw = raw &amp; ~7;  // 9 bit resolution, 93.75 ms<br />    else if (cfg == 0x20) raw = raw &amp; ~3; // 10 bit res, 187.5 ms<br />    else if (cfg == 0x40) raw = raw &amp; ~1; // 11 bit res, 375 ms<br />    //// default is 12 bit resolution, 750 ms conversion time<br />  }<br />  celsius = (float)raw / 16.0;<br />  fahrenheit = celsius * 1.8 + 32.0;<br />      lcd.clear();<br />      lcd.setCursor(0,0);<br />      lcd.print(&quot;T1 &quot;);<br />      lcd.setCursor(2,1); <br />     <br />      if (SignBit) { <br />         lcd.print(&quot;-&quot;);<br />      }<br />      lcd.print(celsius);<br />      lcd.print(&quot; C &quot;);<br />      delay(500);&quot;<br />;[/syntax]<br /><br /><br /> nie wiem jak zrobić zegar mam moduł zegara wraz z baterią i po kodzie &quot;<br />[syntax=cpp]#include &lt;Time.h&gt;  <br />#include &lt;Wire.h&gt;  <br />#include &lt;DS1307RTC.h&gt;  // a basic DS1307 library that returns time as a time_t<br /><br /><br />void setup()  {<br />  Serial.begin(9600);<br />  while (!Serial) ; // Needed for Leonardo only<br />  setSyncProvider(RTC.get);   // the function to get the time from the RTC<br />  if (timeStatus() != timeSet) <br />     Serial.println(&quot;Unable to sync with the RTC&quot;);<br />  else<br />     Serial.println(&quot;RTC has set the system time&quot;);      <br />}<br /><br />void loop()<br />{<br />  if (Serial.available()) {<br />    time_t t = processSyncMessage();<br />    if (t != 0) {<br />      RTC.set(t);   // set the RTC and the system time to the received value<br />      setTime(t);          <br />    }<br />  }<br />  digitalClockDisplay();  <br />  delay(1000);<br />}<br /><br />void digitalClockDisplay(){<br />  // digital clock display of the time<br />  Serial.print(hour());<br />  printDigits(minute());<br />  printDigits(second());<br />  Serial.print(&quot; &quot;);<br />  Serial.print(day());<br />  Serial.print(&quot; &quot;);<br />  Serial.print(month());<br />  Serial.print(&quot; &quot;);<br />  Serial.print(year()); <br />  Serial.println(); <br />}<br /><br />void printDigits(int digits){<br />  // utility function for digital clock display: prints preceding colon and leading 0<br />  Serial.print(&quot;:&quot;);<br />  if(digits &lt; 10)<br />    Serial.print('0');<br />  Serial.print(digits);<br />}<br /><br />/*  code to process time sync messages from the serial port   */<br />#define TIME_HEADER  &quot;T&quot;   // Header tag for serial time sync message<br /><br />unsigned long processSyncMessage() {<br />  unsigned long pctime = 0L;<br />  const unsigned long DEFAULT_TIME = 1357041600; // Jan 1 2013 <br /><br />  if(Serial.find(TIME_HEADER)) {<br />     pctime = Serial.parseInt();<br />     return pctime;<br />     if( pctime &lt; DEFAULT_TIME) { // check the value is a valid time (greater than Jan 1 2013)<br />       pctime = 0L; // return 0 to indicate that the time is not valid<br />     }<br />  }<br />  return pctime;<br />}<br />;[/syntax]<br />wyswietla mi w porcie szeregowym tylko i wyłącznie błedy bibliotek a wgrałem je a nie mając zegarka nawet na wyświetlaczy to lipanie bd mógł spróbować jak zrobić opcje włącz i wyłącz o określonej godzinie ktoś pomoże jak połączyć 4 kanały na wyświetlacz i dodać zegar i nastawy czytam i nic :/<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13215">botwymiatacz</a> — 4 mar 2016, o 17:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[icer_cmg]]></name></author>
<updated>2016-03-03T23:15:16+01:00</updated>
<published>2016-03-03T23:15:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155396#p155396</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155396#p155396"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155396#p155396"><![CDATA[
<div class="quotetitle">botwymiatacz napisał(a):</div><div class="quotecontent"><br />mógłby by mi ktoś podesłać gotowy kod<br /></div> Złóż zamówienie, zapłać to i dostaniesz gotowca.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1636">icer_cmg</a> — 3 mar 2016, o 23:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-03-03T22:39:15+01:00</updated>
<published>2016-03-03T22:39:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155392#p155392</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155392#p155392"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155392#p155392"><![CDATA[
<div class="quotetitle">botwymiatacz napisał(a):</div><div class="quotecontent"><br />mam problem z programowaniem a nie mam czasu na oglądanie kolejnych godzin na yt bo nie mam na to czasu<br /></div> <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 3 mar 2016, o 22:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[icer_cmg]]></name></author>
<updated>2016-03-03T22:02:11+01:00</updated>
<published>2016-03-03T22:02:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155386#p155386</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155386#p155386"/>
<title type="html"><![CDATA[Re: pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155386#p155386"><![CDATA[
Poszukaj elektro maras na YT, przejrzyj gotowce arduino, skleć coś a napewno pomożemy.<br /><br /><!-- m --><a class="postlink" href="https://www.youtube.com/user/elektromaras" >https://www.youtube.com/user/elektromaras</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1636">icer_cmg</a> — 3 mar 2016, o 22:02</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[botwymiatacz]]></name></author>
<updated>2016-03-03T21:29:21+01:00</updated>
<published>2016-03-03T21:29:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155382#p155382</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155382#p155382"/>
<title type="html"><![CDATA[pomocy arduino uno :/]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=14727&amp;p=155382#p155382"><![CDATA[
Koledzy i koleżanki mam problem z programowaniem a nie mam czasu na oglądanie kolejnych godzin na yt bo nie mam na to czasu mianowicie mógłby by mi ktoś podesłać gotowy kod gdzie potrzeba mi  zaprojektować termometr 4 kanałowy na DS18B20. Wyświetlać temperaturę na LCD 1602 2x16. Dodatkowo chciałbym żeby ten sam układ sterował przekaźnikiem 5 razy w ciągu dnia. Do sterowania czasem mam &quot; RTC I2C 24C32 DS1307 Real Time Clock ARDUINO AVR&quot; i zwykły moduł przekaźnika adruino (z allegro za 6 zł). ktoś coś pomoże ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13215">botwymiatacz</a> — 3 mar 2016, o 21:29</p><hr />
]]></content>
</entry>
</feed>