Making a chronometer with Arduino and TM1637 display

Arduino UNO 08-12-23
1035 0

Tutorial plan

Introduction

1- Operation of the chronometer controlled by the Arduino UNO

2- The components needed to build a chronometer controlled by the Arduino UNO board

3- Mounting the Arduino UNO board with the TM1637 display and push buttons

4- Programming the Arduino UNO to display the chronometer on TM1637 display

 

 

Introduction

A chronometer is a timekeeping device used to measure the amount of time elapsed between its activation and deactivation. It typically consists of a digital or analog display and buttons to start, stop, and reset the timer. chronometer functions are commonly used in sports, fitness activities, scientific experiments, and various timed events where precise timing is essential.

Using a chronometer with an Arduino Uno is a fun and educational project. You can create a simple chronometer using the Arduino Uno board and some additional components like buttons and the TM1637 display.

Operation of the chronometer controlled by the Arduino UNO

The operation of the chronometer controlled by the Arduino UNO with the TM1637 display and push buttons can be described as follows:

Initial Startup: When you power the Arduino UNO, the timer begins to display 0 on the TM1637 display.

Start Button: By pressing the Start button, the chronometer starts measuring the time from 00:00 until you press the Stop button.

When the chronometer is running, the TM1637 display shows the elapsed time in minutes and seconds, for example, 00:15 (15 seconds elapsed), 01:30 (1 minute and 30 seconds), etc.

Pressing the stop button again causes the chronometer to freeze, recording the time elapsed up to that point, without setting it to zero.

Reset Button: By pressing the reset button, the timer returns to 00:00, thereby resetting the elapsed time to zero, regardless of its previous state (running or stopped).

This operation allows you to control the chronometer using the push buttons: start to start measuring time, stop to freeze the current time and reset to reset the chronometer to zero. The TM1637 display shows real-time elapsed time in minutes:seconds format while the chronometer is running.

The components needed to build a chronometer controlled by the Arduino UNO board

To build a chronometer controlled by an Arduino Uno board, you'll need several components to create the necessary functionalities. Here's a list of components required:

Arduino Uno Board:

Arduino Uno

The Arduino Uno board is a microcontroller board based on the ATmega328P microcontroller. It's one of the most popular and widely used boards in the Arduino family due to its simplicity and versatility.

It is the central control unit for your project.

TM1637 display

The TM1637 is a popular four-digit seven-segment LED display driver. It's commonly used with Arduino and other microcontrollers to interface with 7-segment displays and show numerical information.

Pushbuttons:

push button

These will serve as controls for starting, stopping, and resetting the chronometer.

Resistors:

deux résistances

You might need resistors (usually around 10k ohms) for pull-up or pull-down purposes when interfacing the pushbuttons to prevent floating values.

Breadboard:

Test plate

A breadboard is a useful tool for creating temporary electronic circuits. It allows you to connect components without soldering.

Jumper Wires:

Jumper wires

For making temporary connections and wiring between components.

These are the basic components required to build a chronometer using an Arduino Uno. The specific values and quantities might vary based on your design preferences and the exact functionality you wish to implement.

Mounting the Arduino UNO board with the TM1637 display and push buttons

Mounting the Arduino Uno board with the TM1637 display and push buttons involves physically setting up these components on a breadboard or a prototyping board and wiring them together. Here's a step-by-step guide to mounting these components:

Mount the TM1637 Display:

- Connect the GND pin of the TM1637 display to the GND pin of the Arduino UNO board

- Connect the VCC pin of the TM1637 display to the 5V pin  of the Arduino UNO board

- Connect the DIO pin of the TM1637 display to the pin 4 of the Arduino UNO board

- Connect the CLK pin of the TM1637 display to the pin 5 of the Arduino UNO board

Connect Start Push Button:

- Put a resistor (10 kohm) between one of the legs of the push button and the GND pin of the Arduino UNO

- Connect the same pin of the push button to pin 2 of the Arduino UNO board

- Connect another pin of the push button to the 5V pin of the Arduino UNO board

Connect Reset Push Button:

- Put a resistor (10 kohm) between one of the legs of the push button and the GND pin of the Arduino UNO

- Connect the same pin of the push button to pin 3 of the Arduino UNO board

- Connect another pin of the push button to the 5V pin of the Arduino UNO board

Mounting the Arduino UNO board with the TM1637 display and push buttonsMounting the Arduino UNO board with the TM1637 display and push buttons

Programming the Arduino UNO to display the chronometer on an TM1637 display

To create a chronometer display on TM1637 display with Arduino Uno, you'll need the necessary libraries installed in your Arduino IDE to control the TM1637 display. The most common library for this purpose is the "LiquidCrystal_I2C" library. Ensure you've installed it before proceeding.

Here's an example code that sets up a simple chronometer on an the TM1637 display with start, stop, and reset functionalities using push buttons:

Upload this code to your Arduino Uno and observe the TM1637 display to see the chronometer functionality when you press the buttons. Adjust the connections if needed and ensure you've set up the I2C address correctly for your display.

0 comment

Leave a comment

Veuillez noter s'il vous plaît*

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Purpose of this website

Educational robotics refers to the use of robots and robotics technology to promote learning in educational settings. It involves the integration of technology, engineering, and computer science into the classroom, allowing students to engage in hands-on, project-based learning experiences.
In this context, our website represents an excellent resource for parents, teachers and children who wish to discover robotics.

Contact details

Zaouiet Kontech-Jemmel-Monastir-Tunisia

+216 92 886 231

medaliprof@gmail.com

Pictures of the articles

Robotic site created by MedAli-Teacher info