La conduite de plusieurs Sparkfun à 7 segments affiche avec un Arduino

I’m currently helping a couple of engineering students finish a senior project that didn’t get finished last year. Long story… Anyway, it’s a bicycle brake tester being built for Paul Components. The mechanical design is great, but they had trouble with the electronics.

Driving multiple Sparkfun 7-segment displays with an Arduino

Part of those electronics involved writing numbers to a pair of Sparkfun 7-segment displays. There’s a lot of discussion on the Sparkfun board about these: apparently they’re difficult. I had some issues making them work —baud rate, for example, which should be set to 9600 in setup() not 2400 as stated in some references— but it’s relatively straightforward once those issues are straightened out. Here’s my code, in hopes that it’ll be helpful to anyone else trying to write to several 7-segment displays simultaneously.

The serial TX line (second pin given in the SoftwareSerial declaration) should be connected to the RX pin on the corresponding Sparkfun breakout board; the RX line in the SoftwareSerial declaration should be left unconnected.

 

For more detail: La conduite de plusieurs Sparkfun à 7 segments affiche avec un Arduino


A Propos De L'Auteur

Ibrar Ayyub

Je suis expérimenté, rédacteur technique, titulaire d'une Maîtrise en informatique de BZU Multan, Pakistan à l'Université. Avec un arrière-plan couvrant diverses industries, notamment en matière de domotique et de l'ingénierie, j'ai perfectionné mes compétences dans la rédaction claire et concise du contenu. Compétent en tirant parti de l'infographie et des diagrammes, je m'efforce de simplifier des concepts complexes pour les lecteurs. Ma force réside dans une recherche approfondie et de présenter l'information de façon structurée et logique format.

Suivez-Nous:
LinkedinTwitter

Laisser un Commentaire

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

fr_FRFrench
Faire défiler vers le Haut