# 3.3 Cableado esquema

Este es la parte más difícil !!!

<iframe allowfullscreen="allowfullscreen" class="giphy-embed" frameborder="0" height="241" id="bkmrk--3" src="https://giphy.com/embed/3o7abrH8o4HMgEAV9e" width="480"></iframe>

Tenemos que conseguir unir los diferentes elementos con los pines del **nanoArduino**:

- Los pines digitales D0,D1,D2,D3,D4,D5,D6,D7,D8,D9,D10,D11,D12,D13
- Los pines analógicos A0,A1,A2,A3,A4,A5,A6,A7
- Los pines de alimentación GND, VIN

Y tienen que ser estas conexiones y no otras para que sea compatible con mBlock y mBot Ver [planos de mBot](https://tecnoloxia.org/mclon/mbot/) :

## 3.3.1.- Tabla de conexiones

Estas son las conexiones al nanoArduino

[![2022-03-18 10_15_10-Documento1 - Microsoft Word.png](https://libros.catedu.es/uploads/images/gallery/2022-03/scaled-1680-/2022-03-18-10-15-10-documento1-microsoft-word.png)](https://libros.catedu.es/uploads/images/gallery/2022-03/2022-03-18-10-15-10-documento1-microsoft-word.png)

<table border="1" id="bkmrk-pin-elemento-a0-%C2%A0-a1" style="border-collapse: collapse; width: 100%; height: 464px;"><tbody><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">**PIN**</td><td style="width: 84.5679%; height: 29px;">**ELEMENTO**</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A0</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A1</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A2</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A3</td><td style="width: 84.5679%; height: 29px;">PINES ECHO Y TRG DEL SENSOR DE ULTRASONIDOS</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A4</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A5</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A6</td><td style="width: 84.5679%; height: 29px;">LDR</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">A7</td><td style="width: 84.5679%; height: 29px;">PULSADOR</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D1</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D2</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D3</td><td style="width: 84.5679%; height: 29px;"> </td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D4</td><td style="width: 84.5679%; height: 29px;">Pin BIN1 del driver B6612FNG y en pin 11 del 7404</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D5</td><td style="width: 84.5679%; height: 29px;">Pin PWMB del driver B6612FNG</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D6</td><td style="width: 84.5679%; height: 29px;">Pin PWMA del driver B6612FNG</td></tr><tr style="height: 29px;"><td style="width: 15.4321%; height: 29px;">D7</td><td style="width: 84.5679%;">Pin AIN1 del driver B6612FNG y en pin 13 del 7404</td></tr><tr><td style="width: 15.4321%;">D8</td><td style="width: 84.5679%;">BUZZER</td></tr><tr><td style="width: 15.4321%;">D9</td><td style="width: 84.5679%;">SENSOR IZQUIERDO SIGUELINEAS</td></tr><tr><td style="width: 15.4321%;">D10</td><td style="width: 84.5679%;">SENSOR DERECHO SIGUELINEAS</td></tr><tr><td style="width: 15.4321%;">D11</td><td style="width: 84.5679%;">SERVO DEL BRAZO ROBOT</td></tr><tr><td style="width: 15.4321%;">D12</td><td style="width: 84.5679%;"> </td></tr><tr><td style="width: 15.4321%;">D13</td><td style="width: 84.5679%;">LEDS RGB</td></tr></tbody></table>

[![2022-03-18 10_04_47-3.3 Cableado esquema _ Librería CATEDU.png](https://libros.catedu.es/uploads/images/gallery/2022-03/scaled-1680-/2022-03-18-10-04-47-3-3-cableado-esquema-libreria-catedu.png)](https://libros.catedu.es/uploads/images/gallery/2022-03/2022-03-18-10-04-47-3-3-cableado-esquema-libreria-catedu.png)

*Fuente: https://mclon.org Maria L CC-BY-SA*

[![2022-03-18 10_05_37-3.3 Cableado esquema _ Librería CATEDU.png](https://libros.catedu.es/uploads/images/gallery/2022-03/scaled-1680-/2022-03-18-10-05-37-3-3-cableado-esquema-libreria-catedu.png)](https://libros.catedu.es/uploads/images/gallery/2022-03/2022-03-18-10-05-37-3-3-cableado-esquema-libreria-catedu.png)

*Fuente: https://mclon.org Maria L CC-BY-SA*

*[![2022-03-18 10_09_31-Documento1 - Microsoft Word.png](https://libros.catedu.es/uploads/images/gallery/2022-03/scaled-1680-/2022-03-18-10-09-31-documento1-microsoft-word.png)](https://libros.catedu.es/uploads/images/gallery/2022-03/2022-03-18-10-09-31-documento1-microsoft-word.png)*

## 3.3.3 Esquema accesorios

<div id="bkmrk-los-dos-leds-rgb"><div><div><svg class="svg-icon" data-icon="link" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg><div>Los dos leds RGB</div><div>[![embedded-image-j0S5lOW4.png](https://libros.catedu.es/uploads/images/gallery/2022-02/scaled-1680-/embedded-image-j0s5low4.png)](https://libros.catedu.es/uploads/images/gallery/2022-02/embedded-image-j0s5low4.png)</div><div></div></div></div></div>*Fuente: https://mclon.org Maria L CC-BY-SA*

<div id="bkmrk-el-servo-del-brazo%3A"><div><div><div><div><div><div><svg class="svg-icon" data-icon="link" role="presentation" viewbox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"></svg><div>El servo del brazo:</div><div>[![embedded-image-nlvbNFjP.png](https://libros.catedu.es/uploads/images/gallery/2022-02/scaled-1680-/embedded-image-nlvbnfjp.png)](https://libros.catedu.es/uploads/images/gallery/2022-02/embedded-image-nlvbnfjp.png)</div><div></div></div></div></div></div></div></div></div>*Fuente: https://mclon.org Maria L CC-BY-SA*

El LDR :

[![embedded-image-UpNcdkj7.jpeg](https://libros.catedu.es/uploads/images/gallery/2022-02/scaled-1680-/embedded-image-upncdkj7.jpeg)](https://libros.catedu.es/uploads/images/gallery/2022-02/embedded-image-upncdkj7.jpeg)  
  
*Fuente: Adaptado de https://mclon.org Maria L CC-BY-SA*