Blog Arduino

Contatore

Contatore a 4 cifre con font da 16 pixel
Integrazione di un Arduino Nano nel nuovo Flashmat realizzato da C&D Elettronica
 
 

Il progetto che realizzeremo quest'oggi consiste nel realizzare un contatore a 4 cifre, utilizzando i nostri nuovi display Flashmat.

Materiale utilizzato:
 
- 4 Unità FlashMat
- Arduino Nano
- 2 pulsanti a click
- 2 TLP627 optoisolatore
- 2 resistenze da 2,2KOhms
- 4 resistenze da 4,7KOhms
- 2 condensatori ceramici da 100nF
 

Schema circuitale:
 
 
Circuito realizzato su breadbord:
 
Funzionamento:
 
Questo progetto utilizza Arduino Nano e 4 moduli FlashMat per realizzare un contatore; tramite l’ausilio di due pulsanti potrà essere incrementato o resettato. 
L'Arduino Nano può riconoscere e gestire uno, due o quattro moduli FlashMat; in base a quanti moduli sono collegati cambierà il numero massimo visualizzabile dal contatore e la dimensione del font di testo utilizzato.
Uno o due moduli sulla stessa riga: Font da 8 pixel e il numero massimo visualizzabile sarà rispettivamente da 4 o da 8 cifre.
Quattoro moduli disposti sue due righe e due colonne: Font da 16 pixel e il numero massimo visualizzabile sarà da quattro cifre.
Connettendo Arduino al pc tramite cavo USB è possibile inviare dei comandi tramite Monitor Seriale, i comandi disponibili permettono alcune semplici interazioni;
ad esempio è possibile ricevere il numero mostrato sul display, aggiornare il numero mostrato dalla FlashMat oppure resettare il contatore.
In base all’installazione del contatore è possibile scegliere se collegarsi con o senza interfaccia di comando optoisolata; nel nostro caso abbiamo progettato un interfaccia optoisolata.
 
English Version:

Today I'm gonna show you a really useful project.
 
Electronical Components:
- Arduino Nano
- 4 FlashMat units
- 2 click- buttons
- 2 TPL627 optocoupler
- 2 2,2kOhms resistor- 4 4,7kOhms resistor
-  2 100nF ceramic capacitor
 
Overview:
 
This project uses Arduino Nano and 4 FlashMat units to make a counter; by means of two buttons the counter can be incremented or reset. 
The Arduino Nano can recognize and manage one, two or four FlashMat modules;  depending on the number of linked modules, it will change the maximum number displayed by the counter and the size of the text used.
One or two units connected to the same row: 8-pixel font and the maximum number that can be viewed is 4 or 8 digits respectively
Four modules placed on two rows: 16-pixel fonts and the maximum number that can be viewed will have four digits.
By connecting Arduino to the PC via USB cable it is possible to send commands via the Serial Monitor, the available commands allow some simple interactions;
for example, you can receive the number shown on the display, update the number displayed by the FlashMat, or reset the counter.
Depending on the counter installation, it is possible to choose whether to connect with or without optocoupled command interface; we have used an opto-isolated interface.