Back to Arduino Step By Step Course

Lesson 103: Using HT1621 6 Digits Seven Segment LCD Display

If you don't like to see ads while video is being played you can purchase this course for $200 from Udemy or purchase YouTube premium Here

Please download required files for this code

Part 5: Displays

In this lesson we learn how to use HT1621 six digits seven segment display with 5 wires. We learn how to display integer like 2345 or float value liek 234.987 or temperature. Wiring diagram and how to wire it to Arduino is shown and library for Arduino and Code is explained.

Purchase from Affiliated stores


 /*
/*
 * Lesson 103: Using HT1621 4 digits LCD Display with Arduino
 * 
 * Full video details: https://youtu.be/Q5enXzaNXZk
 
 * Arduino Library is located :https://github.com/valerionew/ht1621-7-seg
 * Written by Ahmad Shamshiri for Arduino Step by Step Course by Robojax
 * www.Robojax.com
 * on Mar 29, 2022 

 * 
 * This code is part of Arduino Step by Step Course which starts here:  https://youtu.be/-6qSrDUA5a8
 * 
 * for library of this code visit http://robojax.com/
 * 
If you found this tutorial helpful, please support me so I can continue creating 
content like this. Make a donation using PayPal by credit card https://bit.ly/donate-robojax 

 * This code is "AS IS" without warranty or liability. Free to be used as long as you keep this note intact.* 
 * This code has been download from Robojax.com
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

 #include <HT1621.h>
#define LCD_CS_PIN 6
#define LCD_WR_PIN 7
#define LCD_DATA_PIN 8
#define DELAY_SINK 1000

HT1621 lcd;
void setup() {
  lcd.begin(LCD_CS_PIN, LCD_WR_PIN, LCD_DATA_PIN);
  lcd.backlight();
  lcd.clear();
  lcd.setBatteryLevel(3);
}

void loop(){
  lcd.clear();
  lcd.print("AaBbCc");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("DdEeFf");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("GgHhIi");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("JjKkLl");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("MmNnOo");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("PpQqRr");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("SsTtUu");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("VvWwXx"); 
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("YyZz  ");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("123456");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("7890", true); // left padded
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("  _-|*"); // Spaces
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("HELLO");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("HT1621");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("bye");
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print("123*", true); // Degrees
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print((long)123456);
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print(1234.10, 2);
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print(999.123234);
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print(1250.0, 3); 
  delay(DELAY_SINK);
  lcd.clear();
  lcd.print(111.1111, 3);
  delay(DELAY_SINK);
}



   

The least I expect from you is to thumb up the video and subscribe to my channel. I appriciate that. .I have spent months making these lectures and writing code. You don't lose anything by subscribging to my channel. Your subscription is stamp of approval to my videos and more people can find them and in it turn it helps me. Thank you

If you found this tutorial helpful, please support me so I can continue creating content like this. support me via PayPal