Skip to main content

Featured Post

Variables in C Language.

Variables in C Language. **Introduction** Variables are the fundamental building blocks of any programming language, including C. They serve as placeholders for storing data that a program manipulates, processes, and displays. Understanding how variables work in C is crucial for every programmer's journey. In this blog post, we'll take a comprehensive look at variables in C programming, covering their types, declaration, initialization, and scope. **Types of Variables in C** C supports several data types to cater to different kinds of data, such as integers, floating-point numbers, characters, and more. Here are some of the primary variable types in C: 1. int:  Used for storing integer values. 2. float:  Used for storing floating-point (decimal) values. 3. char : Used for storing single characters. 4. double : Used for storing double-precision floating-point values. 5. short  and long : Modifiers used with int to create different sizes of integers. 6. unsigned : Used with...

Arduino LCD Display Program for I2C Module.

 LCD display with I2C Module.

Today we are going to write code on LCD display with I2C module. First we need the following hardware parts for this program.

Arduino


Hardware:

  • Arduino Board.
  • Programming Cables.
  • Jumper wires.
  • LCD display (I2C module).
  • Programming device (laptop/computer/mobile).

Software:

  • Arduinodroid (Mobile).
  • Arduino Ide (computer/laptop).

Code:

//Let's Try Itt
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup()
{
  lcd.init();                      // initialize the lcd
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(3,0);
  lcd.print("Hello, world!");
  lcd.setCursor(2,1);
  lcd.print("Welcome To");
   lcd.setCursor(0,2);
  lcd.print("Let's Try Itt Web");
   lcd.setCursor(2,3);
  lcd.print("Power By Ec-yuan!");
}

void loop()
{
}

Connections:

  • VCC == 5V
  • GND == GND
  • SDA == A4
  • SCL == A5
When you complete all the following steps, then your project is ready .


Comments

Popular posts from this blog

All About Arduino Board. [QNA]

 Queries related to Arduino Board: In this post we will see the queries about Arduino board. After reading the complete post your all doubts are cleared. We can controll our Home Gadgets through Arduino ? Ans: Yes, You can controll your gadgets through Arduino using Relay Module. What is the input voltage of Arduino ? Ans: The input voltage of Arduino is around 5v-12v, But you can use under 9v for Safety purpose.. What is the output voltage of Arduino ? Ans: The maximum Output voltage of Arduino is 5v.  From which pin we can connect/read sensor value? Ans: Analog pin is Input pins on the Arduino board. We can connect Sensors in Analog pins. How many Analog pins in Arduino board ? Ans: There are 8 analog pins [A0 to A7] in Arduino Uno board.  In which pin of the Arduino board we can connect LED's ? Ans: In Digital pin of the Arduino we can connect LED's [output devices]. How many digital pins in the arduino board ? Ans: There are 12 digital pins (2-13) in the Arduino board...

About JEE Mains Exam [QNA]

 About JEE Mains [QNA] In this post we will clear all doubts about jee exam. This doubts are clear through QNA. 1] Can i get admission through JEE mains in Maharashtra colleges ? Ans: Yes. You Can any college in Maharashtra and other state colleges.  2] How many seats are reserved in privet Colleges ?  Ans: In Every 60 seats there are 9 seats aer reserved for JEE candidates. 3] What is JEE Mains cutoff for  OBC in JEE advanced exam in year 2022-2023 ? Ans: 66 Percentile. But next year there are chances to increase this cutoff. 4] How many time in a year can i attend the jee exam? Ans: In a year there are 2 chances t attend the exam. 5] How many candidates are attend the exam in one year ? Ans: Approximately 1200000 to 1300000 students attend th exam. 6] What is the timing for JEE mains exam ? Ans: Total timing = 180min and for Maths-60min, Chemistry-60min, Physics-60min. 7] How many questions in JEE mains exam ? Ans: In JEE Mains exam for maths-30 Questions, Physics-...

Variables in C Language.

Variables in C Language. **Introduction** Variables are the fundamental building blocks of any programming language, including C. They serve as placeholders for storing data that a program manipulates, processes, and displays. Understanding how variables work in C is crucial for every programmer's journey. In this blog post, we'll take a comprehensive look at variables in C programming, covering their types, declaration, initialization, and scope. **Types of Variables in C** C supports several data types to cater to different kinds of data, such as integers, floating-point numbers, characters, and more. Here are some of the primary variable types in C: 1. int:  Used for storing integer values. 2. float:  Used for storing floating-point (decimal) values. 3. char : Used for storing single characters. 4. double : Used for storing double-precision floating-point values. 5. short  and long : Modifiers used with int to create different sizes of integers. 6. unsigned : Used with...