Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 2 : Ligne 2 :     
{{traduction}}
 
{{traduction}}
 +
 +
== Contrôler un servo ==
 +
 +
This section gives tips for how additional electronics can be connected to the Romi 32U4 Control Board.
 +
 +
=== Free I/O pins ===
 +
 +
If you want your additional devices to send or receive information from the AVR, you will need to connect them to one or more of the AVR’s I/O pins. The pin assignment table in Section [[lists all of these pins]] and how they are used. Many of the I/O pins are already being used for some other purpose on the board, but there are 8 free I/O pins: 0, 1, 5, 12, A0, A2, A3, and A4. Any of the free I/O lines can be used as basic digital inputs or outputs; each pin also has some special capabilities.
 +
 +
Pin 0 (PD2) and pin 1 (PD3) are the RX and TX lines of the AVR’s TTL serial port.
 +
 +
Pin 5 (PC6) is a hardware PWM output and is usable with the Arduino {{fname|analogWrite()}} function. Pin 12 (A11/PD6) can also be used as a PWM output, but it is not supported by {{fname|analogWrite()}}, and using pin 12 for PWM might conflict with uses of pin 6 (which controls the buzzer by default) as these two pins are complementary outputs of Timer4 channel D.
 +
 +
Pins 12 (A11/PD6), A0 (18/PF7), A2 (20/PF5), A3 (21/PF4), and A4 (22/PF1) can be used as analog inputs.
    
{{Pololu-Romi-32U4-TRAILER}}
 
{{Pololu-Romi-32U4-TRAILER}}
29 836

modifications

Menu de navigation