Está en la página 1de 1

GEN1

GENUINO MEGA 2560

Genuino Mega 2560


www.TheEngineeringProjects.com

ON
ON
ON
RESET
AREF
VCC 13
ATMEGA2560

PB7/OC0A/OC1C/PCINT7
GND 12
16AU 1126

PB6/OC1B/PCINT6
PB5/OC1A/PCINT5 11
A0 PF0/ADC0
PB4/OC2A/PCINT4 10
A1 PF1/ADC1
PH6/OC2B 9
A2 PF2/ADC2
PH5/OC4C 8
A3
PWM

PF3/ADC3
A7 PF7/ADC7/TDI
PH4/OC4B 7
ANALOG IN

A6 PF6/ADC6/TDO
PH3/OC4A 6
A5 PF5/ADC5/TMS
PE3/OC3A/AIN1 5
A4 PF4/ADC4/TCK
PG5/OC0B 4
PE5/OC3C/INT5 3
A8 PK0/ADC8/PCINT16
PE4/OC3B/INT4 2
A9 PK1/ADC9/PCINT17
TX0 PE1/TXD0/PDO 1 RXD
A10 PK2/ADC10/PCINT18
RX0 PE0/RXD0/PCINT8 0
A11
COMUNICATION

PK3/ADC11/PCINT19 TXD
A12 PK4/ADC12/PCINT20
TX3 PJ1/TXD3/PCINT10 14
A13 PK5/ADC13/PCINT21
RX3 PJ0/RXD3/PCINT9 15 RTS
Reset BTN

A14 PK6/ADC14/PCINT22
TX2 PH1/TXD2 16
A15 PK7/ADC15/PCINT23
RX2 PH0/RXD2 17 CTS
TX1 PD3/TXD1/INT3 18
RX1 PD2/RXD1/INT2 19
SDA PD1/SDA/INT1 20
SCL PD0/SCL/INT0 21
DIGITAL
PEDAL
PB2/MOSI/PCINT2
PB3/MISO/PCINT3
PB1/SCK/PCINT1
PB0/SS/PCINT0

PL5/OC5C
PL3/OC5A
PL4/OC5B
PL0/ICP4
PL1/ICP5

PG2/ALE

PA7/AD7
PA6/AD6
PA5/AD5
PA4/AD4
PA3/AD3
PA2/AD2
PA1/AD1
PA0/AD0
PC2/A10

PC4/A12
PC5/A13
PC6/A14
PC7/A15
PG0/WR

PC3/A11
PG1/RD

NOTA: NOTE:
PC0/A8
PC1/A9
PD7/T0
PL2/T5

Este es el esquema de un teclado Yamaha PSR 530 sensitivo. This is the schematics of a sensitive Yamaha PSR 530 keyboard.
PL6
PL7

En las imagenes se puede ver que cada tecla tiene tres In the images you can see that each key has three contacts
contactos ("Externo", "Interno" y "Común"). Cuando una tecla ("External", "Internal" and "Common"). When a key is
es presionada, los contactos "Ext" actúan primeros, por diferencia pressed, the "Ext" contacts act first, by height difference, and
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22

de altura, y cierran circuito con el contacto "común". Luego, actua close the circuit with the "common" contact. Then act the "Int"
el contacto "Int" del mismo modo. contact in the same way.

La sensivilidad de cada tecla es en referencia al tiempo transcurrido The sensitivity of each key is in reference to the time elapsed
entre cierre del circuito de los contactos "Ext" e "Int". between closing the circuit of the "Ext" and "Int" contacts.

Este esquema puede ser de gran ayuda para entender distintas matrices This schematics can be of great help to understand the matrix
teclados y poder realizar las conecciones en el Arduino. of different keyboards and to be able to make the connections
on the Arduino.
Este diagrama se puede simular si tenés instalada la librería de
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12

Arduino en Proteus. Con el terminal virtual se puede ver cada This diagram can be simulated if you have the Arduino library
mensaje MIDI. Te recomiendo que descomentes la linea installed in Proteus. With the virtual terminal you can see
"#define DEBUG_MIDI_MESSAGE" en el sketch para realizar pruebas. each MIDI message. I recommend that you uncomment the line
B1
B2
B3
B4
B5
B6
B7

"#define DEBUG_MIDI_MESSAGE" in the sketch for testing purposes.


C1
C2
C3
C4
C5

A12
A11
A10
A9
A8
A7
A6
A5
A4
A3
A2
A1
C0 C#0 D0 D#0 E0 F0 F#0 G0 G#0 A0 A#0 B0 C1 C#1 D1 D#1 E1 F1 F#1 G1 G#1 A1 A#1 B1 C2 C#2 D2 D#2 E2 F2 F#2 G2 G#2 A2

Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int

B7
B6
B5
B4
B3
B2
B1

A#2 B2 C3 C#3 D3 D#3 E3 F3 F#3 G3 G#3 A3 A#3 B3 C4 C#4 D4 D#4 E4 F4 F#4 G4 G#4 A4 A#4 B4 C5

Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int Ext Int

C5
C4
C3
C2
C1

También podría gustarte