
Cara Program untuk menampilkan Teks ke display LCD yang sudah menggunakan I2C dan Cara Scan I2C untuk mengetahui alamatnya, sangat mudah sekali. Silahkan ikuti panduan berikut ini:
Daftar Isi
Komponen
- Modul Trainer IOT
- Board NodeMCU ESP8266
- Display LCD 16×2
- Modul I2C
- Kabel Jumper (Male – Female, Female – Female)
- Kabel USB
- Arduino IDE
Diagram Wiring

Keterangan :
LCD 16×2 I2C | Modul Trainer | Node MCU |
GND | GND | |
VCC | VCC | |
SDA | SDA | D2 (GPIO4) |
SCL | SCL | D1 (GPIO5) |
Implementasi
- Install Board ESP8266
- Buka File > Preferences di Arduino IDE.
- Tambahkan URL: http://arduino.esp8266.com/stable/package_esp8266com_index.json di Additional Boards Manager URLs.
- Pilih Tools > Board > Board Manager.
- Masukkan “esp8266” pada kolom pencarian, akan muncul pilihan board esp8266 by ESP8266 Community, untuk versi Board pilih 2.5.2, kemudian klik Install.
- Jika Instalasi benar, akan muncul board Esp8266.
- Pada menu pemilihan board Pilih board NodeMCU 1.0 (ESP-12E Module).
- Install Library LiquidCrystal_I2C
- Silahkan download terlebih dahulu Library LCD I2C, melalui link berikut: https://github.com/johnrickman/LiquidCrystal_I2C/archive/refs/heads/master.zip.
- Setelah di download, file .zip library tidak perlu di ekstrak ya. Tinggal ikuti langkah berikut :
- Pada Arduino IDE, klik Menu Sketch -> Include Library -> Add .ZIP Library…
- Cari file Library yang sudah di Download sebelumnya, lalu pilih dan klik Open.
Kode Program
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello, Edutic!");
lcd.setCursor(0, 1);
lcd.print("Test I2C 16x2");
}
void loop() {}
Langkah-langkah di Arduino IDE
- Memverifikasi Kode
- Klik tombol Verify untuk memeriksa kesalahan pada kode.
- Upload Program
- Hubungkan ESP8266 ke komputer.
- Pilih board ESP8266, pastikan board yang dipilih NodeMCU 1.0 ESP-12E, uploud speed adalah 921600, dan Port telah sesuai.
- Klik tombol Upload untuk mengunggah program.
Hasil Akhir
Jika berhasil maka akan tampil seperti gambar dibawah ini:

Video Tutorial
FAQ
Apa itu I2C dan mengapa digunakan untuk LCD?
I2C (Inter-Integrated Circuit) adalah protokol komunikasi yang memungkinkan beberapa perangkat terhubung hanya dengan dua kabel: SDA (data) dan SCL (clock). Ini memudahkan koneksi LCD dengan hanya menggunakan sedikit pin pada NodeMCU, dibandingkan dengan metode paralel yang memerlukan lebih banyak pin.
Library apa yang harus diinstal di Arduino IDE untuk mengontrol LCD I2C?
Anda perlu menginstal pustaka LiquidCrystal_I2C. Library ini memungkinkan NodeMCU berkomunikasi dengan modul LCD I2C. Anda bisa menemukannya melalui Library Manager di Arduino IDE.
Bagaimana cara menemukan alamat I2C LCD saya?
Anda dapat menggunakan program sederhana untuk mendeteksi alamat I2C. Program ini dapat dijalankan di Arduino IDE menggunakan kode I2C Scanner
. Biasanya, alamat yang sering muncul adalah 0x27 atau 0x3F.
Mengapa Teks tidak kunjung muncul di layar LCD?
- Coba ambil obeng kecil kemudian dibelakang LCD ada Trimpot warna biru, silakan di putar-putar saja.
- Pastikan kalian sudah scan I2C dan Alamat I2C Sesuai.
- Pastikan wiring sudah benar.
- Periksa komponen apabila ada cacat.
Apakah proyek ini cocok untuk pemula?
Ya, menggunakan DHT11 dengan ESP8266 adalah proyek yang cocok untuk pemula yang ingin mempelajari dasar-dasar mikrokontroler, sensor, dan integrasi jaringan IoT.
Kesimpulan
Setelah mengikuti tutorial ini, kamu berhasil menampilkan teks ke LCD 16×2 I2C dan ESP8266! Seru, kan? Project ini nggak cuma mengajarkan hal baru, tapi juga membuka banyak peluang untuk bereksperimen lebih lanjut di dunia mikrokontroler. Siapa tahu, project kecil ini bisa jadi awal dari ide-ide kreatif kamu lainnya!
Sweet blog! I found it while searching on Yahoo News.
Do you have any suggestions on how to get listed in Yahoo News?
I’ve been trying for a while but I never seem to get there!
Cheers
Wow, wonderful blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your web site is great, let alone the content!
Pretty! This has been a really wonderful post. Many thanks
for supplying this info.
My brother recommended I may like this blog.
He was once totally right. This post actually made
my day. You cann’t believe just how a lot time I had spent for this information! Thanks!
Your way of describing everything in this paragraph is actually fastidious, every one can easily be aware of it, Thanks
a lot.
This is my first time pay a quick visit at here and i am really happy to read all at alone place.
Hola! I’ve been reading your web site for a while now and finally got
the bravery to go ahead and give you a shout out from Humble Tx!
Just wanted to say keep up the great work!
Thank you, I’ve recently been searching for info approximately
this topic for a long time and yours is the greatest I have discovered till now.
However, what concerning the conclusion? Are you certain about
the supply?
Usually I don’t read article on blogs, however I wish to say that
this write-up very forced me to try and do
so! Your writing taste has been amazed me. Thank you, very great article.
Hi there it’s me, I am also visiting this website on a regular basis, this website is actually pleasant and the viewers are genuinely sharing pleasant thoughts.
Asking questions are genuinely good thing if you are not understanding anything totally, except this
paragraph offers pleasant understanding yet.
When I originally commented I clicked the “Notify me when new comments are added”
checkbox and now each time a comment is added I get several e-mails with the same comment.
Is there any way you can remove people from that service?
Thanks!
Hola! I’ve been following your blog for some time now and
finally got the courage to go ahead and give you a shout out
from Porter Tx! Just wanted to tell you
keep up the excellent job!
Строительство загородных домов под ключ – это процесс создания дома с
нуля, включая все этапы от проектирования до
сдачи готового объекта заказчику.
услуги каменщика
It’s not my first time to visit this web site, i am visiting this site dailly and obtain nice facts from here all the time.
A motivating discussion is definitely worth comment. I think that you should publish more on this subject
matter, it may not be a taboo matter but generally
people do not discuss such issues. To the next! Best wishes!!
Very great post. I just stumbled upon your blog and wanted to mention that I’ve really loved surfing around your weblog
posts. In any case I will be subscribing on your rss feed and I am hoping you write once more very soon!
I always emailed this webpage post page to all my friends, because if
like to read it afterward my links will too.
What’s up it’s me, I am also visiting this site on a regular basis,
this site is in fact nice and the users are genuinely sharing fastidious thoughts.
Thanks for the marvelous posting! I seriously enjoyed reading it, you can be a great author.I will be sure
to bookmark your blog and will eventually come back sometime soon. I want to encourage yourself
to continue your great job, have a nice evening!
Fastidious answers in return of this query with solid arguments and describing the whole thing concerning that.
взломанные игры на андроид — это удивительная возможность получить новые возможности.
Особенно если вы играете на Android, модификации открывают
перед вами широкие горизонты.
Я часто использую игры с обходом системы защиты,
чтобы развиваться быстрее.
Модификации игр дают невероятную свободу
в игре, что делает процесс гораздо
захватывающее. Играя с твиками, я могу персонализировать свой опыт, что
добавляет виртуальные путешествия и делает игру более непредсказуемой.
Это действительно удивительно, как такие модификации могут улучшить взаимодействие с игрой, а
при этом с максимальной безопасностью использовать такие взломанные
версии можно без особых проблем,
если быть внимательным и следить за обновлениями.
Это делает каждый игровой процесс
уникальным, а возможности практически бесконечные.
Рекомендую попробовать такие игры с
модами для Android — это может открыть новые горизонты
What’s up it’s me, I am also visiting this site daily, this web site is genuinely good and the
people are actually sharing good thoughts.
These are truly wonderful ideas in about blogging.
You have touched some pleasant factors here.
Any way keep up wrinting.
Thank you for the good writeup. It in fact was a amusement account it.
Look advanced to more added agreeable from you! However,
how can we communicate?
For newest news you have to pay a visit the web and on internet I
found this web page as a most excellent web site for hottest
updates.
Appreciate this post. Will try it out.
Hello There. I discovered your weblog the use of msn. That is an extremely well written article.
I will make sure to bookmark it and return to read moree of yoyr useful info.
Thank you for the post. I’ll certainly comeback.
Excellent beat ! I would like to apprentice while you amend your website,
how could i subscribe for a blog site? The account helped me a acceptable deal.
I had been tiny bit acquainted of this your broadcast provided bright clear idea
wonderful issues altogether, you just received a emblem new reader.
What may you suggest about your post that you just made a few days ago?
Any positive?
What i do not understood is in reality how you’re no longer really much more well-preferred than you may be right now.
You are very intelligent. You already know thus considerably with regards to this
topic, produced me for my part believe it from
numerous varied angles. Its like men and women are not involved until it’s one thing to do with Lady
gaga! Your individual stuffs great. Always care for it up!
Hello friends, pleasant piece of writing and fastidious arguments commented here, I am
genuinely enjoying by these.
It’s going to be finish of mine day, except before
end I am reading this wonderful article
to increase my know-how.
There’s certainly a great deal to learn about this topic.
I like all the points you made.
An intriguing discussion is worth comment. I think that you ought to write more on this topic, it might not be a taboo matter but
typically people do not talk about these topics.
To the next! Best wishes!!
First of all I would like to say wonderful blog! I had a quick question that I’d like to ask if
you don’t mind. I was curious to find out how you center yourself and clear
your head before writing. I have had a difficult
time clearing my thoughts in getting my ideas out there.
I truly do enjoy writing however it just seems like the first
10 to 15 minutes are generally wasted simply just
trying to figure out how to begin. Any recommendations or tips?
Thanks!
You really make it seem so easy with your presentation but I find
this matter to be really something that I think I
would never understand. It seems too complicated and extremely broad for me.
I’m looking forward for your next post, I’ll try to get the hang of it!
When someone writes an article he/she keeps the
thought of a user in his/her brain that how a user can know it.
So that’s why this paragraph is great. Thanks!
Today, I went to the beach front with my children. I found a sea shell and gave it to my 4
year old daughter and said “You can hear the ocean if you put this to your ear.” She put the
shell to her ear and screamed. There was a hermit crab inside and it pinched her ear.
She never wants to go back! LoL I know this is completely
off topic but I had to tell someone!
You are so cool! I don’t suppose I’ve truly read something like this before.
So wonderful to find another person with a few original thoughts on this topic.
Really.. thanks for starting this up. This website is one thing that is required
on the internet, someone with a little originality!