En-tete ASCII arduino : Différence entre versions

De Les Fabriques du Ponant
Aller à : navigation, rechercher
(Page créée avec « Dans les programmes arduino il est parfois utile d'avoir le schéma de brochage Voici de quoi intégrer au code des schéma. <pre> ////////////////////////////////////... »)
(Aucune différence)

Version du 25 janvier 2023 à 15:13

Dans les programmes arduino il est parfois utile d'avoir le schéma de brochage

Voici de quoi intégrer au code des schéma.


////////////////////////////////////
//         En-tête Type           //
//       Code Arduino/Wemos       //
//     Les petits débrouillards   //
////////////////////////////////////
/*

                    _______________________
                   |()    ESP32-WROOM    ()|
                   |     WIFI-BLUETOOTH    |
                   |                       |
                   |[ ]EN         23-D23[ ]|
        input only-|[ ]VP-36      22-D22[ ]|-SCL
        input only-|[ ]VN-39       1-TXo[ ]|
        input only-|[ ]D34-34      3-RXo[ ]|
        input only-|[ ]D35-35     21-D21[ ]|-SDA
            Touch9-|[ ]D32-32     19-D19[ ]|
            Touch8-|[ ]D33-33     18-D18[ ]|
                   |[ ]D25-25       5-D5[ ]|
                   |[ ]D26-26     17-TX2[ ]|
            Touch7-|[ ]D27-27     16-RX2[ ]|
            Touch6-|[ ]D14-14       4-D4[ ]|-Touch0
            Touch5-|[ ]D12-12       2-D2[ ]|-Touch2-LED_BUILTIN
            Touch4-|[ ]D13-13     15-D15[ ]|-Touch3
                   |[ ]GND           GND[ ]|
                   |[ ]VIN           3V3[ ]| /!\ uniquement sortie
                   |   EN            Boot  |
                   |() [o]   +---+   [o] ()|
                   |_________|USB|_________|

Le même
                    _______________________
                   |()   ESP32-devKitV1  ()|
                   |     WIFI-BLUETOOTH    |
                   |                       |
                   |[ ]EN         23-D23[ ]|
        input only-|[ ]VP-36      22-D22[ ]|-SCL
        input only-|[ ]VN-39       1-TXo[ ]|
        input only-|[ ]D34-34      3-RXo[ ]|
        input only-|[ ]D35-35     21-D21[ ]|-SDA
            Touch9-|[ ]D32-32     19-D19[ ]|
            Touch8-|[ ]D33-33     18-D18[ ]|
                   |[ ]D25-25       5-D5[ ]|
                   |[ ]D26-26     17-TX2[ ]|
            Touch7-|[ ]D27-27     16-RX2[ ]|
            Touch6-|[ ]D14-14       4-D4[ ]|-Touch0
            Touch5-|[ ]D12-12       2-D2[ ]|-Touch2-LED_BUILTIN
            Touch4-|[ ]D13-13     15-D15[ ]|-Touch3
                   |[ ]GND           GND[ ]|
                   |[ ]VIN           3V3[ ]| /!\ uniquement sortie
                   |   EN            Boot  |
                   |() [o]   +---+   [o] ()|
                   |_________|USB|_________|










  /*

                                     D1 mini
                                     BROCHAGE
                                _________________
                               /     D1 mini     \
                              |[ ]RST        TX[ ]|
                              |[ ]A0  -GPIO  RX[ ]|
                              |[ ]D0-16    5-D1[ ]| SCL
                              |[ ]D5-14    4-D2[ ]| SDA
                              |[ ]D6-12    0-D3[ ]|
                              |[ ]D7-13    2-D4[ ]| LED_BUILTIN
                              |[ ]D8-15     GND[ ]|
                              |[ ]3V3 .      5V[ ]|
                              |       +---+       |
                              |_______|USB|_______|

  _______________
  | droit | gauche|
  |-------|-------|
  | RST   |  TX   |
  | A0    |  RX   |
  | D0 16 |  D1 5 |
  | D5 14 |  D2 4 |
  | D6 12 |  D3 0 |
  | D7 13 |  D4 2 |
  | D8 15 |  GND  |
  | 3V3   |  5V   |
  |-------|-------|

  poussoir

   |___|
  |     |
  | ( ) |
  |_____|
   |   |

  bouton d'arcade
      ______
    /________\
     |------|
     |------|
     |------|
     |______|
       |  |

  Gros bouton d'arcade lumineux
      _________________
    /                   \
   /         ()          \
  /_______________________\
          |------|
          |------|
          |------|
          |------|- LED+
          |______|- LED-
            |  |


  DHT22
    ___
  /_____\
  |_|_|_|_|
  |_DHT22_|
  |_|_|_|_|
  |_|_|_|_|
  |_|_|_|_|
  | | | |

  BME280
  ______________
  |()  BME280    |
  |       VCC [ ]|
  |  _    GND [ ]|
  | |_|   SCL [ ]|
  |       SDA [ ]|
  |       CSB [ ]|
  |       SDO [ ]|
  |()____________|

  Lecteur MP3
                               +-------\_/--------+
                           +5V |[X] MP3-TF-16P [ ]|
            resistance 1K - TX |[X]  DFPlayer  [ ]|
                            RX |[X] __________ [ ]|
                               |[ ]|          |[ ]|
                               |[ ]|   CARTE  |[ ]|
                  Haut-Parleur |[X]|    SD    |[ ]|
                           GND |[X]|          |[ ]|
                  Haut-Parleur |[X]|          |[ ]|
                               |___|__________|___|

  Arduino

                                          +-----+
             +----[PWR]-------------------| USB |--+
             |                            +-----+  |
             |         GND/RST2  [ ][ ]            |
             |       MOSI2/SCK2  [ ][ ]  A5/SCL[ ] |
             |          5V/MISO2 [ ][ ]  A4/SDA[ ] |
             |                             AREF[ ] |
             |                              GND[ ] |
             | [ ]N/C                    SCK/13[ ] |
             | [ ]IOREF                 MISO/12[ ] |
             | [ ]RST                   MOSI/11[ ]~|
             | [ ]3V3    +---+               10[ ]~|
             | [ ]5v    -| A |-               9[ ]~|
             | [ ]GND   -| R |-               8[ ] |
             | [ ]GND   -| D |-                    |
             | [ ]Vin   -| U |-               7[ ] |
             |          -| I |-               6[ ]~|
             | [ ]A0    -| N |-               5[ ]~|
             | [ ]A1    -| O |-               4[ ] |
             | [ ]A2     +---+           INT1/3[ ]~|
             | [ ]A3                     INT0/2[ ] |
             | [ ]A4/SDA  RST SCK MISO     TX>1[ ] |
             | [ ]A5/SCL  [ ] [ ] [ ]      RX<0[ ] |
             |            [ ] [ ] [ ]              |
             |  UNO_R3    GND MOSI 5V  ____________/
              \_______________________/

  Arduino Pro-micro - émule un clavier (comme Léonardo).
                      _________________
                     |    Pro   micro   |
                     |    ATmega32U4    |
                     |[ ]10-A10  A9-9[ ]|
                     |[ ]16-MOSI A8-8[ ]|
                     |[ ]14-MISO    7[ ]|
                     |[ ]15-SCLK A7-6[ ]|
                     |[ ]18-A0      5[ ]|
                     |[ ]19-A1   A6-4[ ]|
                     |[ ]20-A2  SCL-3[ ]|
                     |[ ]21-A3  SDA-2[ ]|
                     |[ ]VCC      GND[ ]|
                     |[ ]RST      GND[ ]|
                     |[ ]GND     RX-1[ ]|
                     |[ ]RAW     TX-0[ ]|
                     |       +---+      |
                     |_______|USB|______|

  Arduino NANO
                    +-----+
         +----------| USB |----------+
         |          +-----+          |
         | [ ]D13/SCK    MISO/D12[ ] |
         | [ ]3.3V       MOSI/D11[ ]~|
         | [ ]V.ref    _   SS/D10[ ]~|
         | [ ]A0     / N \     D9[ ]~|
         | [ ]A1   /   A   \   D8[ ] |
         | [ ]A2   \   N   /   D7[ ] |
         | [ ]A3     \ 0 /     D6[ ]~|
         | [ ]A4/SDA           D5[ ]~|
         | [ ]A5/SCL           D4[ ] |
         | [ ]A6          INT1/D3[ ]~|
         | [ ]A7          INT0/D2[ ] |
         | [ ]5V              GND[ ] |
         | [ ]RST             RST[ ] |
         | [ ]GND 5V MOSI GND TX1[ ] |
         | [ ]Vin [ ] [ ] [ ] RX1[ ] |
         |        [ ] [ ] [ ]        |
         |        MISO SCK RST       |
         | NANO-V3                   |
         +---------------------------+

  Ecran OLED
     GND 5V D5 D6
  ______|_|_|_|______
  |()    * * * *    ()|
  |  GND VCC SCL SDA  |
  |  _______________  |
  | |               | |
  | |               | |
  | |               | |
  | |_______________| |
  |()_______________()|


  Encodeur rotatif
  A = broche A de l'encodeur
  B = broche B de l'encodeur
  G = GND
  SW = bouton poussoir de l'encodeur

    A G B
   _|_|_|_
  |   _   |
  | /   \ |
  | \ _ / |
  |_______|
    |   |
    G   SW

  horloge
     ______________________________
    |        POWER ////////        |
   -|[ ]32k       | RTC   |        |
   -|[ ]SQW       |DS3231 |  SCL[ ]|
   -|[ ]SCL       |       |  SDA[ ]|
   -|[ ]SDA        \\\\\\\\  VCC[ ]|
   -|[ ]VCC        ___       GND[ ]|
   -|[ ]GND       |___|            |
    |______________________________|

  lecteur de carte SD
    ______________________________
   |        SD CARD  _____________|
  -|[ ]GND   MODULE |         /
  -|[ ]3,3V  [XXX]  |       / |
  -|[ ]5       =    |     /   |
  -|[ ]CS      =    |    |    |
  -|[ ]MOSI    =    |    |    |
  -|[ ]SCK .   =    |     \   |
  -|[ ]MISO    =    |       \ |
  -|[ ]GND     =    |_________\___
   |______________________________|

  Capteur capacitif MPR121
          _________________
         |         L  11[ ]|
         |         E  10[ ]|
         |         D   9[ ]|
         |[ ]3,3V  /   8[ ]|
         |[ ]IRQ   e   7[ ]|
         |[ ]SCL   l   6[ ]|
         |[ ]SDA   e   5[ ]|
         |[ ]ADD   c   4[ ]|
         |[ ]GND   t   3[ ]|
         |         r   2[ ]|
         |         o   1[ ]|
         | MPR121  d   0[ ]|s
         |_________e_______|

  Servomoteur
    ___
   |_°_|
  |     |
  |  ^  |
  | | | |
  | (o) |
  |     |
  |_____|
   |_°_|
    |||
    || \___ data
    | \____ Vin
     \_____ GND
    ___
   |_°_|
  |  ^  |
  | | | |
  | | | |
  | (o) |
  |Servo|
  |_____|
   |_°_|
    |||
    || \___ data
    | \____ Vin
     \_____ GND
    ___
   |_°_|
  |    / |
  |   / /
  |  / /|
  | (o) |
  |Servo|
  |_____|
   |_°_|
    |||
    || \___ data
    | \____ Vin
     \_____ GND
    ___
   |_°_|
  |     |
  |     |
  |   __|___
  | (o)_____/
  |Servo|
  |_____|
   |_°_|
    |||
    || \___ data
    | \____ Vin
     \_____ GND
              _
    _________| |_
   |   ______    |
   |  |      |   |___
   |  |Servo |       |_
   |  |      |       |_|
   |  |______|    ___|
   |_________   __|
    |||      |_|
    || \___ data
    | \____ Vin
     \_____ GND


  matrice de LED 8X8 :
         ________________
     In | O O O O O O O O | Out
     -> | O O O O O O O O | ->
  VCC [ ]| O O O O O O O O |[ ] VCC
  GND [ ]| O O O O O O O O |[ ] GND
  DIn [ ]| O O O O O O O O |[ ] DOut
  CS  [ ]| O O O O O O O O |[ ] CS
  CLK [ ]| O O O O O O O O |[ ] CLK
        | O O O O O O O O |
         -----------------

  _________________________
  |   ___     (__)    ___   |
  | //   \\ HC-SR04 //   \\ |
  ||(     )|       |(     )||
  | \\___//         \\___// |
  |    VCC TRIG ECHO GND    |
  |------[ ][ ][ ][ ]-------|

  RFID_RC522

  _____________________________________
  |                           ()        |
  |  ()R         _-_                    |
  |    F      /  _-_  \           3V3[ ]|
  |    I    /  /  _  \  \         RST[ ]|
  |    D     /  /   \  \     _    GND[ ]|
  |    -          o         |_|   IRQ[ ]|
  |    R     \  \ _ /  /         MISO[ ]|
  |    C    \  \_ _ _/  /        MOSI[ ]|
  |    5      \ _   _ /           SCK[ ]|
  |    2          -               SDA[ ]|
  |  ()2                           ___  |
  |____________________________()_|___|_|

  Senseair S8
              ________________________
             |   |° ° ° ° ° °|    |   |
          G+ |[ ]| ° ° ° ° °/     |[ ]| DVCC_out
          G0 |[ ]|° ° ° ° °/      |[ ]| UART_RxD
    Alarm_OC |[ ]|_°_°_°_°|       |[ ]| UART_TxD
    PWM 1Khz |[ ]|                |[ ]| UART_R/T
             |   |  SenseAir® S8  |[ ]| bCAL_in/CAL
             |___|________________|___|


  Gyroscope et accéléromètre GY-521 - MPU6050

    _________________
   |     MPU6050   ()|
   |[ ]VCC           |
   |[ ]GND         G |
   |[ ]SCL   ___   Y |
   |[ ]SDA  |   |  | |
   |[ ]XCA  |___|  5 |
   |[ ]XCL .       2 |
   |[ ]ADO      Y  1 |
   |[ ]INT  ->X |    |
   |_______________()|


  Capteur de couleur GY-31
           _________________________
          | ()   [ ][ ][ ][ ][ ]   () |
          |     INT LED S0 S1 VCC     |
          |           GY-31           |
          |           _ - _           |
          |     ( ) /       \ ( )     |
          |        /    _    \        |
          |       (    |_|    )       |
          |        \         /        |
          |     ( )  \_ _ _/  ( )     |
          |                           |
          |     GND OUT S2 S3 VCC     |
          | ()   [ ][ ][ ][ ][ ]   () |
          |---------------------------|

  Matériel :
  - des fils dupont.
  - une breadbord
  - Arduino
  - ...
  Schéma de l'Arduino en ASCII-ART CC-By http://busyducks.com/ascii-art-arduinos
  Sous licence CC-By-Sa (http://creativecommons.org/licenses/by-nc-sa/3.0/)
*/
/*
   ___
  / ___ \
  |_|   | 
     /_/
     _   ___   _
    |_| |___|_| |_
         ___|_   _|
        |___| |_|
  Les petits Débrouillards - CC-By-Sa http://creativecommons.org/licenses/by-nc-sa/3.0/
*/