++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adaptation avec une carte Arduino ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. include:: volabid.rst :Création: 01/2025 :Maj: 08/03/2025 ==================================================================================================== Présentation ==================================================================================================== .. image:: images/ensemble.jpg :width: 200 px .. image:: images/arduino+shield.jpg :width: 200 px .. image:: images/pcb-carte-adaptation-3D.jpg :width: 200 px ==================================================================================================== Développement du shield pour une carte Arduino ==================================================================================================== 1) Prototype du shield d'adaptation ==================================================================================================== **11) Materiel** - 1 Carte Arduino Mega - 1 Proto Shield Arduino Mega 2560 - 1 Régulateur7805 - 1 Diode 1N4004 - 1 Bornier d'alimentation - 2 Condensateurs chimiques 10 micros Farad - Barrette sécable au pas de 2.54 - Fil de câblage - Fil de Raccordement Femelle-Femelle Dupont de 30cm - Dupont Connecteur 2.54mm **12) Schéma structurel du shield d'Adaptation** (Réalisé avec Kicad) .. image:: images/shield-schema.jpg :align: center **13) Nappe de connection Arduino Maquette** - Brochage du connecteur de Nappe (maquette) .. image:: images/brochage-connecteur.jpg :width: 300 px :align: center - Tableau d’affectation des broches nappe/carte Arduino .. image:: images/affectation-broches-nappe-arduino.jpg :width: 400 px :align: center **14) Prototype** .. image:: images/arduino+shield.jpg :width: 200 px :align: center 2) Shield d'adaptation (Finalisation) ==================================================================================================== Le dossier "carte-adaptation" est placé dans le dépôt `feux-carrefour-sources`_ .. _`feux-carrefour-sources` : https://bitbucket.org/feuxcarrefour/feux-carrefour-sources/src/master/ La carte est développée avec Kicad .. image:: images/pcb-carte-adaptation.jpg :width: 200 px .. image:: images/pcb-carte-adaptation-3D.jpg :width: 200 px .. image:: images/shield1.jpg :width: 200 px .. image:: images/shield2.jpg :width: 200 px .. image:: images/shield3.jpg :width: 200 px 2) Câblage avec la maquette et premiers essais ==================================================================================================== .. image:: images/maquette+shield.jpg :width: 400 px Programme utilisé : feu-carrefour-2voies-simple.ino placé dans le dépôt `feux-carrefour-codes`_ .. _`feux-carrefour-codes` : https://bitbucket.org/feuxcarrefour/feux-carrefour-codes/src/master/ 3) Programmation ==================================================================================================== - feu-carrefour-test.ino placé dans le dépôt `feux-carrefour-codes`_ - feu-carrefour-2voies-simple.ino placé dans le dépôt `feux-carrefour-codes`_ ==================================================================================================== Weblinks ==================================================================================================== .. target-notes::