Introduction: Seven Segment Display and IR Remote With Arduino Uno
This project involves using an infrared remote (IR Remote) to control a 7-segment display with an Arduino Uno. The objective is simple: each time a numeric button on the remote is pressed, the corresponding digit is displayed on the 7-segment display.
Specifically:
- When the 0 button is pressed, the digit 0 appears on the display.
- When the 1 button is pressed, the digit 1 appears.
- And so on, up to the digit 9.
-------------------------------------------------------------------------------------------
Ce projet consiste à utiliser une télécommande infrarouge (IR Remote) pour contrôler un afficheur 7 segments à l’aide d’un Arduino Uno. L’objectif est simple : chaque fois qu’on appuie sur un bouton numérique de la télécommande, le chiffre correspondant s’affiche sur l’afficheur 7 segments.
Plus précisément :
- Lorsque l’on appuie sur le bouton 0, le chiffre 0 apparaît sur l’afficheur.
- Lorsque l’on appuie sur le bouton 1, le chiffre 1 apparaît.
- Et ainsi de suite jusqu’au chiffre 9.
Supplies
-----------------------------------------------------------------------
- Arduino UNO development board
- USB 2.0 cable type A/B
- IR Remote and Receiver (Kit HX1838)
- Câbles
- Breadboard
- 5161BS Common Anode 7-Segment Display
- Seven 220 Ohm resistors
-----------------------------------------------------------------------
- Carte de développement Arduino UNO
- Câble USB 2.0 type A/B
- Télécommande et Récepteur Infrarouge (Kit HX1838)
- Câbles
- Platine d'essai
- Afficheur 7-segments à anode commune 5161BS
- Sept résistances de 220 Ohm
----------------------------------------------------------------------
Step 1: Common Anode 7-Segment Display / L’afficheur 7 Segments À Anode Commune
A common-anode 7-segment display is an electronic component made of seven LEDs (segments a, b, c, d, e, f, g) arranged in the shape of the digit “8”.
In a common-anode model, all LED anodes are connected together to the +5 V supply.
To turn on a segment, a LOW voltage level (0 V) must be applied to its cathode. This allows current to flow from +5 V through the LED, lighting it up.
In the wiring used here, each segment is represented by an individual LED.
The seven segments a to g are connected to the Arduino pins as follows:
- a → pin 6
- b → pin 7
- c → pin 9
- d → pin 3
- e → pin 4
- f → pin 5
- g → pin 8
------------------------------------------------------------------------------------------
Un afficheur 7 segments à anode commune est un composant électronique composé de sept LED (segments a, b, c, d, e, f, g) disposées de manière à afficher les chiffres de 0 à 9.
Dans un modèle à anode commune, toutes les anodes des segments sont reliées ensemble au +5 V.
Pour allumer un segment, il faut appliquer un niveau bas (0 V) sur sa cathode : le courant circule du +5 V vers la broche du segment, ce qui éclaire la LED.
Dans le câblage utilisé ici, chaque segment est remplacé par une LED individuelle.
Les segments a à g sont connectés aux broches de l’Arduino selon les correspondances suivantes :
- a → pin 6
- b → pin 7
- c → pin 9
- d → pin 3
- e → pin 4
- f → pin 5
- g → pin 8
Step 2: Circuit Diagram / Schéma
The circuit diagram is made using : thttps://www.wokwi.com/
------------------------------------------------------------------------------------------
Le schéma est réalisé via : thttps://www.wokwi.com/
Step 3: Libraries / Bibliothèques
1- Open Arduino IDE, then go to Library Manager , search for "IRremote" and install the "IRremote" package by Shirriff, z3t0, ArminJo.
2- Once the installation is complete, add and select the Arduino Uno board you are using from the Tools > Boards menu.
3- Go to Tools > Port, and select the port corresponding to your board.
-------------------------------------------------------------------------------------------
1- Ouvrez l’Arduino IDE, puis allez dans Library Manager . Recherchez "IRremote" et installez le paquet "IRremote" de Shirriff, z3t0, ArminJo.
2- Une fois l’installation terminée, ajoutez et sélectionnez la carte Arduino Uno que vous utilisez dans le menu Tools > Boards.
3- Allez dans Tools > Port, puis choisissez le port correspondant à ta carte.
Step 4: Source Code / Code Source
You can find the full source code below, and you also have the option to simulate your program directly here. This allows you to test and understand how it works before running it on your actual Arduino Uno.
https://wokwi.com/projects/449145374050235393
-------------------------------------------------------------------------------------------
Vous trouverez le code source complet ci-dessous, et vous avez également la possibilité de simuler votre programme directement ici. Cela vous permet de tester et de comprendre son fonctionnement avant de l’exécuter sur votre Arduino Uno réel.
Step 5: IR Codes: Wokwi Vs Real Remote / Codes IR : Wokwi Vs Télécommande Réelle
It is important to note that the IR codes used on Wokwi do not always match those of a real remote.
The remote used in the simulation is not the same as the one you use in real life, which leads to differences in the received codes.
Therefore, you need to adjust the codes according to your own remote.
-------------------------------------------------------------------------------------------
Il est important de préciser que les codes IR utilisés sur Wokwi ne correspondent pas toujours à ceux d’une télécommande réelle.
En effet, la télécommande simulée et celle que vous utilisez physiquement ne sont pas identiques, ce qui entraîne des différences dans les codes reçus.
Il est donc nécessaire d’adapter les codes en fonction de votre propre télécommande.





