Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD
by SirTonic
Today I want show to you how to make Two We need to measure two temperatures and see these
temperature sensors DS18B20 with Arduino Nano temperatures on display.
Clone and I2C LCD. As you can see, we have 16x2 I2C display, that
// Dnes bych vam chtel ukazat, jak zprovoznit dve means 1 row = 1 temperature.
teplotni cidla DS18B20 s Arduino Nano klonem a I2C
displejem. // Potrebujeme merit dve teploty a tyto teploty zobrazit
na displeji.
I use Arduino IDE 1.8.8 // Pouzivam Arduino ve verzi // Jak jste si vsimli, mame 16x2 displej v nasem
1.8.8 (toho casu aktualni verze) pripade to znamena 1 radek = 1 teplota.
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 1
Step 1: Prepare // Priprava
My recomended:
Arduino Nano terminal shield (with screws) // Doporucuji pro instalaci Arduino Nano terminal shield
For test assembly circuit we can use breadboard // pro otestovani pouzijeme nepajive pole
Info:
For Win10 64bit users, I had a big problem finding the right drivers. All recommended drivers did not work.
That's why I added the functional drivers to download. Also you can download actualy drivers here.
// Pro uzivatele Win10 64bit, mel jsem velike problemy najit funcni ovladace. Vsechny doporucovane ovladace
// (vcetne ovladacu na strankach obchodu) nefungovaly. Proto jsem pridal v mem pripade funkcni ovladace ke
// stazeni. Aktualni verzi ovladacu, muzete stahnout zde.
Properly installed drivers you can check in the Windows Device Manager
Now we can run Arduino IDE // Nyni muzeme spustit Arduino IDE
We must choose correct options in the Arduino IDE in our case it is: // V Arduino IDE musite vybrat spravne
nastaveni
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 2
1
1. 16x2 I2C
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 3
Step 2: Circuit Assembly // Zapojeni Obovdu
Temperature sensors allows parasitic wiring. This will not be described here.
For more information about parasitic wiring use google.com
// parazitni zapojeni teplotnich senzoru zde nebudu popisovat. Pokud chcete vice informaci o parazitickem
zapojeni cidel pouzijte google.com
Info:
PIN A4 - SDA
PIN A5 - SCL
Warning:
Solder and tin can be HOT! ;-) // Neopalit se, je zaklad ;-)
1. Resistor 4,7k
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 4
Step 3: Arduino IDE Search the Address
This step have three sub steps: // Tento krok ma tri dilci kroky
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 5
Step 4: Arduino IDE Own Code and Features // Vlastni Kod Teplomeru a Funkce
Specification resolution: // Specifikace rozliseni // Pokud chcete vytvorit jakykoli vlastni znak, muzete
teplotnich senzoru pouzit tento generator
Thermometer char
If for some reason you only need one decimal place
byte teplomer[8] = // coding thermometer char
(vytvoreni znak teplomeru) // Pokud z nějakého důvodu potřebujete pouze jedno
{ desetinné místo
B00100,
B01010, lcd.print(read_temperature(),1); // 1 (the number 1
B01010, specifies the number of decimal places)
B01110,
B01110, // Cislo 1 udava pocet desetinnych mist
B11111,
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 6
Step 5: Finish - Gallery // Konec - Galerie
Many features can be more and better, but in my case it's all I need.
//
Doufam, ze jsem nam pomohl. Mnoho funkci muze byt pridano a mohou byt lepsi, ale v mem pripade to bylo vse
co potrebuji.
To je vse, pratele!!
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 7
Arduino Nano and Two DS18B20 Temperature Sensors With I2C LCD: Page 8