Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
projets:cmdcentrale [2020/01/12 18:04] – [Schémas] chefprojets:cmdcentrale [2020/11/08 14:33] (Version actuelle) chef
Ligne 26: Ligne 26:
  
 <code> <code>
-    Serials 0 (RX) and 1 (TX); Serial 1s 19 (RX) and 18 (TX); Serial 2s 17 (RX) and 16 (TX); Serial 3s 15 (RX) and 14 (TX). Used to receive (RX) and transmit (TX) TTL serial data. Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip. +    Serials 0 (RX) and 1 (TX);  
-    External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). These pins can be configured to trigger an interrupt on a low level, a rising or falling edge, or a change in level. See the attachInterrupt() function for details. +    Serial 1s 19 (RX) and 18 (TX);  
-    PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function. +    Serial 2s 17 (RX) and 16 (TX);  
-    SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS). These pins support SPI communication using the SPI library. The SPI pins are also broken out on the ICSP header, which is physically compatible with the Uno and the old Duemilanove and Diecimila boards. +    Serial 3s 15 (RX) and 14 (TX).  
-    LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it’s off. +    Used to receive (RX) and transmit (TX) TTL serial data.  
-    TWI: 20 (SDA) and 21 (SCL). Support TWI communication using the Wire library. Note that these pins are not in the same location as the TWI pins on the old Duemilanove or Diecimila boards. +    Pins 0 and 1 are also connected to the corresponding pins of the ATmega16U2 USB-to-TTL Serial chip. 
-    The Mega 2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values). By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analogReference() function.+     
 +    External Interrupts:  
 +    2 (interrupt 0),  
 +    3 (interrupt 1),  
 +    18 (interrupt 5),  
 +    19 (interrupt 4),  
 +    20 (interrupt 3),  
 +    21 (interrupt 2).  
 +    These pins can be configured to trigger an interrupt on a low level, a rising or falling edge, or a change in level.  
 +    See the attachInterrupt() function for details. 
 +     
 +    PWM: 2 to 13 and 44 to 46.  
 +    Provide 8-bit PWM output with the analogWrite() function. 
 +     
 +    SPI: 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).  
 +    These pins support SPI communication using the SPI library.  
 +    The SPI pins are also broken out on the ICSP header, which is physically compatible with the Uno and the old Duemilanove and Diecimila boards. 
 +     
 +    LED: 13. There is a built-in LED connected to digital pin 13.  
 +    When the pin is HIGH value, the LED is on, when the pin is LOW, it’s off. 
 +     
 +    TWI: 20 (SDA) and 21 (SCL).  
 +    Support TWI communication using the Wire library.  
 +    Note that these pins are not in the same location as the TWI pins on the old Duemilanove or Diecimila boards. 
 +    The Mega 2560 has 16 analog inputs, each of which provide 10 bits of resolution (i.e. 1024 different values).  
 +    By default they measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and analogReference() function.
  
 </code> </code>
  
 +Pour programmer le Mega ou l'ESP voici le tableau de switch :
 +
 +{{:projets:1.png?300|}}
 +
 +|Switch status and mode selection: |1|2|3|4|5|6|7|8|
 +|CH340 connect to ESP8266 (upload sketch) |OFF|OFF|OFF|OFF|ON|ON|ON|NoUSE|
 +|CH340 connect to ESP8266 (connect)|OFF|OFF|OFF|OFF|ON|ON|OFF|NoUSE|
 +|CH340 connect to ATmega2560 (upload sketch)|OFF|OFF|ON|ON|OFF|OFF|OFF|NoUSE|
 +|CH340 connect to Mega2560 COM3 connect to ESP8266|ON|ON|ON|ON|OFF|OFF|OFF|NoUSE|
 +|Mega2560+ESP8266|ON|ON|OFF|OFF|OFF|OFF|OFF|NoUSE|
 +|All modules work independent|OFF|OFF|OFF|OFF|OFF|OFF|OFF|NoUSE|
 +
 +Voici où change le port série entre le mega et l'ESP :\\
 +{{:projets:2.png?300|}}
 +
 +Après avoir changer le mode sur la carte, il faut configurer l'IDE.\\
 +Il est important quand l'ESP est programé de presser le bouton "MODE"\\ 
 +After choosing the mode of the board can proceed to set up the IDE \\
 +It is important that when the ESP8266 module is programming, it is necessary to press the button “Mode” \\
 +
 +{{:projets:3.png?600|}}
  
 ===== Description ===== ===== Description =====
projets/cmdcentrale.1578852271.txt.gz · Dernière modification : 2020/01/12 18:04 de chef
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0