|
ARDUINO_NANOnull
|
x 1 | |
|
HPDL1414 , 14 segment Led Display |
x 2 | |
|
DS3231SN#Analog Devices Inc./Maxim Integrated
|
x 1 |
![]() |
Soldering Iron Wire Welding Lead Roll |
|
![]() |
Soldering iron |
HPDL1414 Arduino Micro Clock
The HPDL-1414 is a 16-segment LED display with four printable fields that is over twenty years old. It has a red GaAsP screen to which we can add the epithet "smart", because it is capable of printing alphanumeric characters on its fields. The screen is controlled by a CMOS integrated circuit embedded in a plastic housing.This circuit contains RAM, ASCI II decoder, multiplexer and LED drivers. Thanks to these features, no additional components are needed to connect this display to the microcontroller.
More displays can be connected in series, where for each subsequent one it is necessary to assign another GPIO to the WR pin, similar to the SPI interface.
This time I will show you how to make an interesting mini Retro-look Clock with such a displays, as well as the way in which static and moving text can be written on it. For this purpose I wrote a super simple code, and a Schematic diagram.
The device is very simple to make and consists of several components:
- Arduino nano microcontroller
- 2 pcs. HPDL-1414 Led displays
- and DS3231 Realtime clock module
- These three buttons are not connected to the circuit at the moment, and in some of the following versions of the code, they are intended to be used for setting the time and possibly the alarm.
If you want to make your own PCB for this project, or for any other electronic project, PCBway is a great choice for you. PCBway is one of the most experienced PCB manufacturing company in China in field of PCB prototype and fabrication. They have a large online community where you can find a Open Source projects, and you can also share your project there. From my personal experience I can tell you that on this community you can find many useful projects with alredy designed PCBs, from where you can place an order directly.
As I mentioned earlier, the link below provides separate codes for static text or moving text at the beginning before the correct time appears. When switching on, the moving text appears first, and then the correct time, in the form of hours, minutes and seconds. In front of the displays I put a darkened film for better visibility of the digits.
With the code itself we can set the exact time of the clock, which we need to enter in the lines:
rtc.adjust(DateTime(F(__DATE__),F(__TIME__)));
rtc.adjust(DateTime(2022, 8, 26, 23, 07, 0)); //Exact time on the moment of uploading
Then we need to upload the code once again with the same lines commented out
Finally, the device is mounted in a suitable box made of PVC plastic with thicknesses of 3mm and 5mm, and covered with self-adhesive colored wallpaper.
#include <HPDL1414.h>
#include <RTClib.h>
#include <Wire.h>
const byte dataPins [ 7 ] = { 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; // Segment data pins: D0 - D6
const byte addrPins [ 2 ] = { A1 , A2 } ; // Segment address pins: A0, A1
const byte wrenPins [ ] = { A0 , A3 }; // Write Enable pins (left to right)
RTC_DS3231 rtc;
char msg[] = " *** MICRO CLOCK - MIRCEMK *** ";
char t[32];
HPDL1414 hpdl ( dataPins , addrPins , wrenPins , sizeof ( wrenPins ) ) ;
void setup ( ) {
Serial.begin(9600);
Wire.begin();
hpdl.begin ( ) ;
hpdl.clear ( ) ;
for (byte i = 0; i < (sizeof(msg) / sizeof(char)); i++) {
for (byte j = 0; j < 16; j++) {
hpdl.setCursor(j);
if (i + j < (sizeof(msg) / sizeof(char))) {
hpdl.print(msg[i + j]);
} else {
hpdl.print(" ");
}
}
delay(200);
}
rtc.begin();
//rtc.adjust(DateTime(F(__DATE__),F(__TIME__)));
//rtc.adjust(DateTime(2022, 8, 26, 23, 07, 0));
}
void loop ( ) {
DateTime now = rtc.now();
sprintf(t, "%02d-%02d-%02d", now.hour(), now.minute(), now.second());
hpdl.clear();
hpdl.print(t);
}
#include <HPDL1414.h>
#include <RTClib.h>
#include <Wire.h>
const byte dataPins [ 7 ] = { 2 , 3 , 4 , 5 , 6 , 7 , 8 } ; // Segment data pins: D0 - D6
const byte addrPins [ 2 ] = { A1 , A2 } ; // Segment address pins: A0, A1
const byte wrenPins [ ] = { A0 , A3 }; // Write Enable pins (left to right)
RTC_DS3231 rtc;
char t[32];
HPDL1414 hpdl ( dataPins , addrPins , wrenPins , sizeof ( wrenPins ) ) ;
void setup ( ) {
Serial.begin(9600);
Wire.begin();
hpdl.begin ( ) ;
hpdl.printOverflow(true);
hpdl.clear ( ) ;
hpdl.print("*-TIME-*");
delay(3000);
hpdl.clear();
rtc.begin();
rtc.adjust(DateTime(F(__DATE__),F(__TIME__)));
//rtc.adjust(DateTime(2022, 8, 226, 20, 19, 0));
}
void loop ( ) {
DateTime now = rtc.now();
sprintf(t, "%02d-%02d-%02d", now.hour(), now.minute(), now.second());
hpdl.clear();
hpdl.print(t);
}

HPDL1414 Arduino Micro Clock
- Comments(0)
- Likes(1)
-
Igor Orlianskyi Apr 01,2024
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Arduino two weel self Balancing Robot Self Balancing Robot is device that can balance itself from falling to the ground. Its function is ...
-
ELECROW CrowPanel ESP32 4.2” E-paper Wi-Fi Info-Dispaly Project An e-paper display (also known as an electronic paper display or E Ink display) is a type of screen...
-
ESP32 Fluid simulation on 16x16 Led Matrix Fluid simulation is a way of replicating the movement and behavior of liquids and gases in differen...
-
Simple GU50 VTTC Tesla Coil with MOT (25+cm Spark) Vacuum Tube Tesla Coils are a common choice for homebuilders for several practical reasons. At Soli...
-
Hourglass ESP8266 Code A hourglass, also known as an sand clock, is a device used to measure the passage of time. It consi...
-
Tug of War Arduino Game on WS2812 Led strip A Tug of War is a classic team-based game where two opposing teams compete to pull a rope in opposi...
-
DIY ESP32 Bioresonance Rife Machine with ZAPPER function Rife machine therapy is an alternative treatment developed by Dr. Royal Raymond Rife in the 1930s. H...
-
Arduino VFO Project with a Large LCD Display A Variable Frequency Oscillator (VFO) is an electronic oscillator whose output frequency can be adj...
-
Exploring the Tesla Coil Driver Board, Full Review & Test Results Some time ago I presented you a video in which I analyzed a super cheap Tesla Coil driver that cost...
-
Arduino Eatrthquake alarm and protection system with D7S seismic Sensor Earthquakes are extremely common events around the world. On average, there are fifty earthquakes a...
-
Review and Comparison of Three Inexpensive Metal Detector Kits A metal detector is a device used to detect the presence of metal objects in the ground or other ma...
-
How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
-
DIY Simple Antistress and Relaxation PEMF Device based on Schumannn resonance frequency 7.83 Hz Schumann resonances are global electromagnetic resonances, generated by lightning discharges in the...
-
DIY Si4825 A10 multiband Radio (MW,SW,FM) Thanks to the production of specialized radio chips, nowadays it is possible to make a quality mult...
-
DIY simple HUNTER Led Game with Arduino Some time ago I presented you a simple to make, but interesting game, a 1D version simulation of "P...
-
XHDATA D-109WB Radio Short Review with complete disassembly Recently I received a shipment of a radio from the brand XHDATA model: D-109WB, so I immediately de...
-
Arduino Rotary encoder combination lock (Arduino door lock system with Rotary Encoder) Rotary dial safes typically use a mechanical combination lock. They are valued for their simplicity...
-
Modifying a Hotplate to a Reflow Solder Station
7 0 0 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
53 0 1 -
-
Nintendo 64DD Replacement Shell
146 0 1 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
267 4 1 -
How to measure weight with Load Cell and HX711
376 0 3 -
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
508 0 0