...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by...

70

Transcript of ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by...

Page 1: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ��

������� ���������������

��������

������������������ �������������������������������

�����������������������

��

������������� �� � � �������

�������������������������������� ����� �������� �

Page 2: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !�

Datos del documento original

Arduino Notebook: A Beginner’s Reference Written

and compiled by Brian W. Evans

With information or inspiration taken from: http://www.arduino.cc

http://www.wiring.org.co

http://www.arduino.cc/en/Booklet/HomePage

http://cslibrary.stanford.edu/101/

Including material written by: Massimo Banzi

Hernando Barragin David Cuartielles Tom Igoe Todd Kurt

David Mellis and others

Published: First Edition August 2007

This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

To view a copy of this license, visit:

http://creativecommons.org/licenses/by-nc-/

Or send a letter to:

Creative Commons

171 Second Street, Suite 300 San Francisco, California, 94105, USA

������������������

Page 3: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "�

#���� �� ����� �������������������

���������� �� ���$%� �����$%� �������� �� �&'������ ����( �� �)�������������� �*+,�+*�-��.� �� ���� �������� �**���� ��� ���� ������� �

��������

(����-� �� �� ����������� �(����-� �� �(����-� ����� � �

� ������������

-�� � ����� ������ ������� �������� �

���������

����������� �������������� ����������� �� ��� ����� ��� ������������� ��� ����� ���������� �

�����������

�������� �� ��� ���*������ �����*-�/�� � ������*������� �

Page 4: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0�

���������������������

��� ���,� �� � ����� �12�� � ���,�12�� � �

������������

����� $���3���� %� ��������� ��$���%� ��������4��� $���3�(��� %� �

��������������

������� ��$���%� �������4��� $���3�(��� %� �

��� ��

� ���$��%� �������$%� �

�����������

���$53��%� ���5$53��%� �

���������

������6 �$� �%� �������$���3���5%� �

������������

6 ����7- ���$��� %� �6 ����7�������$����%�6 ����7�����$����3��������� %��

� ������

��������������� � ��������������� ��������� ��������������$����� �� %� ������������������$�1�%� ���� ����� ����� � ������� �� ���� �����(����-� �� � ������� �6��������� �(�� �

������� ���

�8������� �9�� 5������� � ������������������9���� ����-���������-� �����������������6 :�� �������������� �������� ����������$�4%7�

Page 5: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;�

9��������������������������������� ����9������������(����� ����6 �� ��<�(���� �������� �� � ���9�$�9=>�������%����������������� ����� ��������������� �� ��<�(������ �������$���������� %�9��( ��������������=?�������$�*?%�9������������� �� �����-����� � �(������ ��@?<�� ���������9���������� ���� ���� �������������

Page 6: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A�

��

�B�� ����������-������� ��� ����/ �� ��������������� ��������� ��-������ ������ ���� ������� �� ����� ������������ �7�<������������� ��� � ������3���������� �3� ��� �����-��.� ��.� ������ � ��� ��������� �3� ���� ������������������ �7��

�������� !"��

#��

����������$�

%�

������� !"�

#�

����������$�

%�

<������ ����� !"� ��������� � ���������� �� ��� ������������������������ !"� �����.� ������ � �� �����������.� �� � / ��������������� �� �$� ��2�� ��� �����������C-��� =%7���-���������� ������� � ������������.� � ��������������-�/ 7���B����������� ���������������� - ����� � ������ ����������� �����(����-� �7�<��������� ������������� / ������ �� ����������3�� � / ��������������( 3���� ������ ���������������������������� �������� �$������ ����-�/��� �����<*6%3���������������� ����������������� ��� �� ��������7��B����������-��� �$����%������ �� ������ � � ���������.� �� � / ���������������� �� �$� ������� � �������3�����(������� ��������3� ��%�<������������ �� ���D�� ��� ���������������������� ��������������.� �� ��� ��������������� �� �����-�/�7�

����

�B�������������� !"�� ���(�������������( �������� ����������� ��� �7�6 ������ ��������������� �������������� ����-�/��� ���������3��� ���� ����� �� 7�? - �� ����������� �����������������.� ����2����� ����������.� � / �����7��

�������� !"�

#��

�&���! �'��()*�)*"$�� ����������������������������������

%��

���

����������� �������������

� ���$%��

����$%�

Page 7: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� E�

? ������� �������������� !"'��������������� !"�2�� ��� ����� �� ����.� ����� � �������-� 3�� � / ������ ��������������3����.� �����-������.� � ����������� �� �� ������ ������������� �� ���� ����� ( �����.� �� ������ ���� ��������/ �����

������ !"�

#�

�����+���! �'�,�-,"$� �������������������������� ��� �

����.!/000"$� � � ���������������������!"""�����

�����+���! �'�1(+"$� ����������������������"�#���� ��� �

����.!/000"$�

%� �

����

�F����������� �����-��.� �� ��������.� ��� � �������-� ���������/������ � ���� �����.� ����� / ���������������� �������������������7�6���������� ��� ���$%�������$%�� �����.� ����� �2��2�-����7�B���������� ��� ����������� � ��� �� �������������� ��� ������ ���� � ����(����������� ������ ������:��� ������������7�B���������� ��� �� ����������������������������� �(�����2�. �37�<�� �(������ ��� ��.� �� (��( �������������3����� / �����4��4�� ������ ����������������������� (� �(�������������������� ������ �� ��7�6����������������� (� �( �����D��(����� ����� ��� ����������� ���� ��������-���G��3'�.� �����������G��������(����H7�? ������� �� ������� �������� ������.� �� (� �( ������������� �� - � ����-��� �����-� �� �������������� ��� ������� ����� � ����-����3���� ��� � �����3���������� �����.� �� �� - ��������������������������.� �� � / ��� 7����

�. ���������5�����! ���������"�

#��

����������$�

%�

�B��������������� �� �� (� �( �����D� ��� �� ��3�����.6��!"�� ������ ���������� �����(������ �� ������ ��������������.� �� �����(����-� ������������ ������� ����� ������� ������������ �������� ��������7��������������� �� ���������������(����-� ������3�I7�� ��� � ��(������ ����� ����� ����� ����.� � ����������� ������ ��� �J����J!"3��� ���� ���(�� � ��(���������0�������/����������������� ������� ������ ��� �J���!;;3������� �� �� �� (� �( � ��(�����I7����� �� ������������������������������7�<�������������������� � / ������ (� �( � ��(������ ������ �� ���I7��

��������.6��!"��

#�

����$� � � � ������������������$���������������

8�������9���! ��"$� � ������������������������������

���8��:$� � � � ���������������"%!"&'����"%&���

��������$� � � � �������������������������

%�

������� ���

Page 8: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� K�

����

�B������( �����( �������� ������ �������������� ��������� ����-��.� �� ������������ �7�6 ������ ������������-��.� ��� ��������������� ���$%3�����$%3���773� ��7��

�. ���������!"��

#��

����������$�

%�

F������( �� ��� ������G&G��� ��� �� - ����� ������� ��������( �� ��� �� �G'H3������� ������ ���������������� ���� �7���<�� �������� ��������������� ��������������� �����2 ����� ����� ��������������������������-��� ��������� ����( �7�6������ � ��.� �2�� ������L� �� ��������� ���� ������� ��������( ��-� ���� ���� ������ �� �� ������� ������ ������ �� ��� �� �� � � �-��.� �$���( �� �����%7�

����

<���������������G)H�� ������ �������� ����������������� �� �� ��� ����/ �� ��������������� ��������7����-����� ������ �������� ������ � � ����� ������������������� ������G-��� ����H7���

����;��8��/<$�� ������������������$���������������������������������!'��

������=�M�(����� �� ���� ��������������� ����������������������� ����������� ����� ������ ������������7�<��� 5���� � ������� � �� ���-(��3���� �� � ����������������� ���������3����� � �.� ���7�6��� ������� ���� ������������� ���������� � ������������� ���.� �� - ����2�� �� ��������-���.� �������������������� ������������������������� ���������������� �7���

���

�B���-��.� ��� ���� �������3��������=��� ��� ���� �������3������� ���� �� 5����������������� �����������.� �� ������ ������������� ��������� ��� �������������� ��������.� ��������������� �� �� ����������7�9��� � �������*�+���� �����������+�*����� � ���-������(��������� ��7��

����������������$�(�����������������

�������������$��������������������������������

�������������$����������(���$�������

)���

&'� ��� ����( ��

)���������������

*+,�+*�-��.� �� ���� ���������

Page 9: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� N�

? -������.� �������� �������������������������� ����������������������� ������� ������ ������� ����������� � ��� ������� ���������� � �������������-������ � ������� ��� ������O��� ����O�-��.� ��� ������������ ������������� ������������������� �������� ��������7��������? ������ �������������� ��� ����-��.� �� ���� ������������ ��� � � ����-��������-��.� �� ���� ��������$��������*+���77�+*�%����

���

F������ ��� ���� ������� ��� ������*�*���� ������������������� �� ���� ��� �������7����������.� �������� ��������� �-��.� 3������ ���� �������������������� ����������������������� ������� ������ �����7��

���������������������������

�F������ ��� ���� �������� ������ ����� ������ ������� ����������������3������������������������������������� ����� ����.� �2�� � ������������ ��������������� ���� 7��

����

F���(����-� � ��������� ���� ����-����������� �������(������������������������������ ��������� ����������7�9����������-� �������3�����(����-� �������D� ����.� �� ��� � ��(��������������� �� � ���������� ����.� ������ ����������������� �������(��������������-��7�F���(����-� �� - �� ��� ���������3���������� �� 3��������� ����(����7�<������� �� ��������� � / ������ ����������(����-� ��������������$�*����������� ���� �������� ��(������-� ����� ����� ������������������ ���@P!���������������������8��0$� � ��������������������$��+����������������"��

���������������8��������9���!>"$�����������$��������������������������,-.&�

�Q(����-� <������Q� �����(����-� � ����7�B������ ������ ��� ������.� �� ���� ������ �� ���G���H7��B��� ��������� ����/�������(����-� � ��(��������� ������ �� ������ �������������������@P!7�<����2�� �.� � ��(������ ��@P!�� ����� ��-� � ������������ ��� ��������7��F���( �.� �����(����-� �2���������������3���� =��������3���� ���� � ����-������(����������( ���������� ��� �������������� ��$����������� ����77%3����� � ������ ������ ���� �� ����(����7�9���� / ��������������(��( ������� ���� ������ ��D��� ������(����-� �� ������� �� ����������� -��������(����-� ���������/����$��� ����� ��������JJ3���� ���� ����� �������� ��(������JJ�����������/����$�H��3���������������3� ���-� � ����� ������$� ���%������ ����������(�����G�������/����$���.� ��2����� ���������������� �(������JJ��

**���� ��� ���� ���������

(����-� ���

Page 10: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �J�

���!�������6��������?��/00"������������������������$����������������!""�����#���������������6��������8��/00�������������������������������!""��������

���%�

����.!�������6������"$� �����������������������������

�����=�B���(����-� ��� - �����������-� ��� �������(��3������2�� �� ��������������� ��-� 7�P��-� ��� �(����-� ���� � ��� ��G��������6 ����H���G��������H3������������������������������������.�� �������� ��������� �� ����������� �� �� �����.� �� �� � �������(����-� 7�P��-� ��� �(����-� �������G(��H���G(����H3��������������������.� � ���������� ����� ����-� 7�F���(����-� ��� � �� ������.�� �����-� �������-���.� ����� ���������$������������� �� �� �������� ��������7���

���

����������(����-� ���� � ��.� �� ������� ���� ��� �.� ��� ����� ������� ����7������� �����������(����-� �� ����� � ������� ����������������������$ �� ��%3������$�����%3�������$������������ %3� ��3����������� ���� ��� �������-� 3��3���������� �� 3����(������������7�<���������� - �2�� �� �����( � �������������3�� ��� ��(������ ��� � ����-���� ������.�� ����� ������������������������� ���������� ����( ����7��<������� �� � / ������ ���������(����-� ��������/����$�����������(����-� �� ������ �� ���������������������� ����(���������������������� ��7�<����� ���������������������7��

�����������6��������8��0$��

�F���(����-� ��� � �� ��� �������� ������� �� �� ������ ��� ������������� ����������� �������� ������ �� ��� ( �����-������ ��������� ����� � �������� ��.� ����� ��� ������������ �������2�� ������� � ���7��

��

�F���(����-� ��� � �� ��� ������������������� ��������������� ��� �������� �� ����������������������3�����( ��������� ������ ������������ �3��3���( � �3�� ������ ����-��.� 3���������������-��� ��� ���������77����773� ��7�<����������� ��������� �� ����������� ����(����-� ������ �� � �������� ����-����� �����������3����������������� ��� ��������� ��� ������������������2�� ������� � ���7���F��������$���$�� ���.� ����.� ��� � �� ��(������������ ������������.�� ������������ ���� ����� ������������7�<����(����-� �� �� ������������� � ��� ����������3���� ��� ��������7���F��������$������ ���.� ����.� �� �� ��� �� ������ ������������������������ �� ����-��� 7�6���� ��(���-� ���������� � ������ ��� �� ������ ������������ �����.� �� �� �����7��

� ����������� �(����-� ���

F���� ������� �����(����-� ��

Page 11: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ���

������������3� ������-� �� � ������������(����-� ��� �����������-� � ����� � �� ������ ��� �����������������.� ��� � ������ � ��(���� ����� � �� �7�B������������ �.� �������������������� � ���� ���������(����-� ��� ������ ������������������������� ��� � ����� ������� � ���� ��� �������������7���<������� �� � / ������� ����������� ����������������������� � �� ��� �(����-� �������(���-�������� ������(����-� ���

��������$� �������������������$����������(��������������������� !"�

#�

������������������������������

%�

������� !"�

#�

�����!����80$��?>0$"� ��������������������$���

#� ��������������$��������

@@$�

%�

��������$�����������������$������

%� ��������������$����

��

��

R�� ������ ������(��������������� �K�-��������� ����� �7��� � ����������� ��� ��J���!;;��

�.�������6��������8��/A0$� ����������������/����$�������������$+���

���

�<�� ����������������� �����������������.� ������ ����(���� ������������� ��A�-��������� ����� ������� ������� �� ��������"!3EAE����="!3EAK7��

�������6��������8��/B00$� ����������������/����$�����������������$��

���������������

�����=�B���(����-� ��� ������ �� ���G���H��� � ����-� ���������(�������5���������������������� �� ������ ������� ������7����� / ����3����5�S�"!EAE����������� ������ ������������� �������53�5�S�5�T��� ����� �� ��(������ �5����������� ��="!7EAK7�$��������������.� � ��(�����������(� ���%���

-�� ��

@���

Page 12: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �!�

��

�<����������� �(����-� ����������� ������ 5� ������G����H�� �� �� � ����D� ���� �� ����$�����"!�-���%������ ����� ��.� �� � ��� ������� ������ ��������=!�0E0K"A0K���!�0E0K"A0E7��

���������6��������8��C0000$�����������������/����$������������������

����

�<����������� ������� �������G������������� H�G�����H�� ���������������D� ��������� ����� �7�B����D� ����� �������������� ��� � ������������� ����������.� ������ �"!�-���������������������� ������"70J!K!";<�T"K���T"K="70J!K!";<7������������6��������8��<D/:�������������������/����$����������������������������B����D� ����� �������������� �������� 5�����3����� � ������������ ��������� 5���:��� ����������������� �7�B��������������� ��������� �������������� ��������-�������2������� �����.� ������ �������� ��D� ���� �� ���3��������.� �� - � (����� ����������� ������-� 7�

���

�F�������� ��������/������ �(���� ��������.� �� ���� � ���������D� �������� 7�9���.�� ��(������� � �� ��� �������2��� ��������� �����-� �� ��������� ��� ���D� ���� ������� 7�<������ ��(������ ��������� � �� ��.� � ����������������� ������� �J3� ��� ���� ������ ��(������ �����/����� �� ��� �������������J7�F���������� � �.� �� ��� ������������������� �� �����������(���� ��������������������� ��� �� ������� ������

���������.EF��8��#����0'������/'������>DDD%��

�? ������������� ������-� �� ���������������� ������������ �������� ��������� ������:�������� ����� �� 3���������(���� ����������������� �� ���������

���������.EBF$�� ������������������+����������������0������������������.E<F�8�/0$� ����������������!"��������������1�

������� ��� �����������-��������� ����-��� �����-� ������������������ ����

;��8�������.E<F$� �������2��������������!"�(������3���������������'�

�������+�

������

�������

��������

Page 13: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �"�

B��������� ��� ������ ������ ���������� ���� ������ ������-��� 3� ������.� ����(����-� �� ����� � ����� ������������ ��-��� �� ������ ������������ ������� ���� �������7�<������� �� � / ������������������ ������ �������� ��� ����B<?7���F���� ��������-��� ���������3� ��������������� � �� ��� ���J��� ����- � ��(�����.� �������� ��������������� ������ �J� ������ �� �.� �2 ���� �������� ������ �������������� �UV3� �� �� �������KJ3�.� �� � �(�������������������������������4������������� �� ���@P�J3�� �2�� ������������ �!JJ���������������������� �������������� �� �(�����.� �������� ������� �G�H7�������������8��/0$� ����4������*5�������,-.�!"�

�.���� �� ����EF��8��#/A0'��<0'��>BB'��>00'��/0'��C0'��/B0'��G0%$���������+����6��������

�������������

�������� !"��

#�

�&���!�����'��()*�)*"$�**���������������������@P��J�%�

������� !"� **��-��� �� �������������

#�

���!����80$��?A$��TT%��**��� �����-��� ��������������� ��������(����-� ���� �J���E�#�

�������+���!�����'�� �� ����EF"$�����������$�������������,-.�!"�����������

(��������������������������+�

��������78�����.!>00"$� �����������&""���

�%�

%�

���

�B����� ����� ��������������.� �� ������� �� �� �� �������� ����������������������3�� ���3��������������������(�����7�<������ (� �( ���������3���� � ����3���������3������� �� �$� �� ���(�� �� %�� ������� ��������

.��8��.��@��<$��

;��8��;��H��I$��

��8�����J��G$��

���8��������B$��

B���� ������ ��� � � ��D��� �� ���� ��������� �������� �������.� �2 ����� ������������������ �������$���3��-�3������3� ��77%3��������.� 3����� / ����3����� ��������N���0������ �� ����G���H3�N�*�0�� (� �( �� �� ���������!� ��������� �!3!;����.� � ��N���0�� �(���� ��� ������ �� ���G���H�$ �� ���%������� �� ����� ������� ����� ������ �� ������� ������7�

������������

Page 14: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �0�

<�������-��������������.� ������ ��������� � ������������ �-������ ������� ��� �������� ����������� �.� ����.� ��� � �� ������� ����� �� �������� ������7�� ���� ���� �������� �� ������������ �����������������.� ����2 ���� 5����������� ����� �� 7���6�������� ������������ ���� � �� �������3������ ����������� ������ ���� ���������������� �� ������� ������� ��/� ��7����� / ����3��������� ������D� ����$�� ������%� ��� ��������������������� ��������� � �3������ ����������� ������ ���� ���������� ������� ��� ���� ���������� ������������� 7���<��/�� ������:��� �����(����-� ��� �������� ���.� �� ����������� �� � �� ������ �����������.� ������ ���������� �������� ������.� ���� ��� � �7������������ ������ ��.� �� .�� ����� ����� �������� �(����-� ������������3�� ���� �������� �� �� �.� ������� ������ ������ �� ������� �(����-� ����������� ����������2����� �� ��� ��� � ���������77�������=�F����� � ���� ��������������+9�������������( �������������� �(����-� ����������-� ��������2�7����� / ����3��8�!��"�<'G� ���-� � �������������<7���

���

B������������� ������� ��������-����������� ��������������������������(����-� ����������7�<������������D�� �� ������ ����� ������-��� ������������ �� ����- ������� ���� 7�<��������������� ������� ������� � ��� ���

;��@@� ��������(�������:�����;��!��� ��������������������;�!�

;��HH� ��������(�������:�����%��!��� ���������������������%!�

;��@8��.� ��������(�������:�����;��+��� ��������������������;+�

;��H8��.� ��������(�������:�����%��+��� ��������������������%+�

;��J8��.� ���������(������:�����)��+���� ��������������������+�

;���8��.� ��������(�������:��������+��� ������������������+�

��������� / ����3�5�+�S�"�2�� �.� �5�� ����(� ���� �� ������� �� ����������(�����5����������������5� ��� �������������� (��(�����7���

���

�B�������������� ��� �����(����-� ����������� ����������� ������ ��������� �� ����� ������ ���������������������� ��� ���������77������� �� �������������������� ��( ���� ��7�<������ / ������.� ����� �� ���������5�������������� �( ����������� �������������������������������� �� �������� ������������ ���

;��88��.� ����������������+�

;��K8��.� ������������������+�

;��?����.� ���������������(����+�

;��L����.� �����������+���(����+�

���������� ������� ������

�� ����� ��� ��������������

Page 15: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �;�

;��?8��.� ���������������������(����+�

;��L8��.� �����������+���������(���+�

��

B����� ����� �������������������� �� ������������ �������������� 5�� ���� ����� (��( �����6�9����9(���5�1�(�� � ��� ����� ���� �����7�<5��� ���� ���� ����� ���������3�����!MM"3�(9�!NN"����(*�!K"3�.� ���� ������ ������ ��� �� ���� ������ ��������77��

1���������=�

���!;��L��0��MM��;��?��B"� �������������������������������������������������

�1������(9=�

���!;��L��0��NN��.��L��0"� � ��������������������(�������������������������

����������

�1�������(*=�

���!K;��L��0"�� � � ��������������������������������������

����

<��� ����/ �� ��������������� ����������� � ������(���� ���� � � ��������3�.� ���������������������� �7�6 ������ ��������2�� ������������������������� ��� �� �7�B����������� ��� ������������ ��������7�

����

<����������������� ��-��� �����.� �� ��� ��������( � ��,�-,�$����%���1(+�$-�/�%�������� ������ �� �� � ����� ������� �������������������� �7�5�1���� ������������0�$� ��%3��� ������.� �*9)��� ������������/3�� �����F<����-������ � �� ������.�� ������������ 5� ����� ��7�������������3� ��� ������-��� ���3�=�3�!���=!JJ��������������-����� �� ��� ��������F<7�$ ���� ����������� �� � ���� ��������%��

���!���88��*9)�"$��

#��

������������������������$�

%�

�����

�� ����� ����������

�������� ���

�� ���*������$��� *���� %�

Page 16: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �A�

���

�<������������� ��� ��� ��������( � ��� ����������������-�/������ ������ ������������ ������������ ����������������������������������7��1*(�� �� ��� ������ ������������� ���( ���3�(�3���;�(������3��� ������.� �O�P(� �����������( ��J3�(553���J�(������7��

�����+���!/<'��,�-,"$�**�����(�������������"����������( �������$;(7%��

����

<������������� ����������� ����������� �����3�������� � ��� ����������3� �������� ����������� ����� �������� ��� ����� �������������������<����� �������� ���.� � �������� � �� �����������������)*�������������()*�)*7���

�&���!/<'��()*�)*"$�**�� ���������.� � ���@P��"� ���������������

��

��� ����� ���� ����.� �� ������ ����������-����������� � ������������������� �2������� ���3���������� / ������( �������������(��������������� �������� ������� ������ �����D� ��3��� / ����������� �� �� �� ��������� ��$�� ������ �%�.� �� � ����- ��� ������ ����( �3���� ��( ����7�6�� ��������$����������������� ������ %� ���������������������� / ����������� ������ ��.� � ������ ������ ��������( �3�<������������������ �� ������� �� ��

���!���6��������QQ������"��

#��

�������������������$�

%�

�<�� �� / �������� ������ �������������(����-� ��������(����3� ��������� � �� ������(����-� ����������� 7�6����������������3���������������� ��� ������� ����� ������ �$ ���� ���%3������ ��������� ��� ������ ���������2 � ��� � / �����7�6����� �����3� �������������������-� � ����������� 7�������=�� ���� ���� ���� ������ �� ������ �����-����QSQ3���� ��� ������ ����$5�S��J%3����������� � ��.� � ��(������� ������� �-����������� �����.� � ��� 5�� ������������ ��(������J������(����-� �53������ ���� ������ ���� �������������� ������ �����WSS�J�.� � �� �� ���������.� �2�� � ����������� ��������-������ ��(������ �5� ���J77���-������������������������������������� ������ ����� �������������3��������� ��� ���� ��������(������ �� - ���� �� ����������-� �� �������GSSH��

2��2*��1��

�����*��������

����$��%�

Page 17: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �E�

����

��R������(� � ���� ����� ����������.� �� � / ����� ��� ��� �����������������������������

������2�=�����������#����� / ����3����� �� � �����-������� ��������������3���2�� ����������������� ��������� ��������2�� ������������������ ������� ��-�/�3���� �� ����-�����.� �� � ������� ����

���!� ������88��,�-,"�**���� ��(������ ���� ���������������� �������#��

������������$�** / ��������� ������ ��������������%�

�����

#�

�����������O$�** / ������������ ������ ��������������%�

�<�� ��� � ������ � ������ ����������������� ���� ���.� �� ��� � �� ���-� � ��(������ ���������������������� ��� ������������ ������ �����������$������� ���%�� �������.� �� ��������� �� � 5���� �� ����������� � / �����������( 7�<��������������-� �� � ������D� �������������� � ���������������� �7�� �� �� ����� �-�����.��������������/������ �� ��������� ��� ��� (��������-��� � ��� ����� �����������������-�����

���!� ������?��B00"�

#��

������������$�**� / ����������� ������ ����%�

���������!� ������L8��/000"�

#�

�����������O$�**� / ����������� ������ �R�%�

�����

#�

����������� $�**� / ����������� ������ ��9�%�

�����=�F�� ���� ����� ������������ -������� � �� ������������������ ������ �������� ���� ��( ���� ����������7�<����� ������������ � �� ������.�� ��� ����������(�����7�<�� ����� ����� / ����3�������-����������� �����$���������SS�X@�X%7�<�� �� �����3� �� ���� �������������2 .� ������������ ������� �� ��������� ���� ����( �������$X@�X%3���T;�(7�

���

B��� ��������������� ����������� � �������-��.� �� �� �� ������ �� ������� ��� ����( ������D� ���� � ��������� �( � �7�9����( �.� �� � / ��������������������� ��� ��-��� �� �

��,� �� ��$��,77������77%�

�����

Page 18: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �K�

(� �( ���� �� ���������������7�B��� ���������������� � ��� ������ ��� ������������$)%��( ���� �� / ������ ���������5�����

�����!����S����$���������$���; �����"��

#��

�������������������$�

%�

�B���������=������� �����(����-� �������� ������� ����������( ����������������� �� �� �������( �.� �� �� ��������� / �������� ���������������� ��� ������ ��-��� 7�6������������������� ������������ 3���������������� ��� ��-��� �� �(� �( ���� / �����7�9����������������������� ������ 3� ��-��� �� �����7���<������� �� � / ������������ �� �� ����� �� ��J3���������������� �����-���.� � ��(����� ����� �������!J������ ���� ������� ����� � ���� ������� �(� �( ���� / ��������������������� ��.� �2���� ������ ��������( ����

�����!����80$��?>0$��@@"� ���������������������$��(������������(���

&"���������������������!�

#� �

�����+���!/<'��,�-,"$��� �������>�����!�������!'�

����.!>B0"$� � � ����������?���#�

�����+���!/<'��1(+"$� ������>�����"�������!'�

����.!>B0"$� � � ����������?������#�

%��

�����<��-��� � �� ��� ����/ �9� �����2�������� 5�-� �.� �������-��� �� ����������� ����������������� ����/ ��� �������������3������� ����R�6@97�9���.�� ���� ������� ��� � � ������ ���- � ����� � �������� 3����.� � ��������������� ���-���������7����-��������� ��������� ��� ��������� �����3������������� 5�� ������� � �� ������.�� �� ���� ����(������ ��� ����/ �9������ ���������������(����-� ��� ��������7�<������������ � ������������������� ���� ���� ��������� ���������� ���������������-� ����� �������������������7��

��

�F��-��� �� �������TU��� �����-��� �� � / ������������������ ������� ����������� 5�� �������������� ��� ������� ���� �������- � ���� ��-��� 7�B�������$���������$��� �����.� ����-���������������� ��-��� 7�B���������������������-������ 5� ������ ����� 5�� ������ ����� ���������� ��-��� ������-�������� �����-���� ����(����� ������ �������� ����� �������

TU����!���6��������QQ������"��

#��

12�� ��

Page 19: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� �N�

�����������������$�

%�

�<������� �� � / ������ �� ��������(����-� �O���Y����-� H� ����� �������!JJ��3���� ��( ����3� / ���������� ��������� ��� ������ ���������2 � ��������������� / �������� ��-��� �2�����.� �Q���Y����-� Q����� ����� �������!JJ7���

+U����!���6��������?��>00"�� ������������������������(���&""��

#��

�����������$� � � ����������������������������������������

���6������@@$�� � ����������������������$�����!�

%��

��

�<��-��� ����TU������������� ������������� ���.� � ��-��� �12�� 3�����������( ����� �.� ��������������� ���� -������������ ��-��� 3��������.� � ��-��� ��� ��� �� � / ����������� ��������( 7��

����

#��

������������$��

%��TU����!���6��������QQ������"$���<������� �� � / ������������ ��(������ ������4�������������(����-� �Q5Q3� �� ���;J������ ������3����� �������������� ������.� � ��(������ ����Q5Q�� ����� ��������JJ���

����

#�

;��8�����������!"$�

����.!B0"$�

%��TU����!;��?��/00"$�

��

��

�<���������������� ������� ���� ��������� �� �����������������������������( ����������������� �������� ����-�/��� ������������ ����� �����)*�$ ������%���()*�)*�$������%7��

�&���! �'��()*�)*"$�� �������������@���A�������������

�B���� ������ ��� ��������3������ � ���3� ����������������������� �������3����������������� ��� � ������� ��������� �� �������� �.� �(����������-�/�������� �������7�B������ ��

��,�12�� ��

����� $���3���� %��

Page 20: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !J�

������������������ �������.� ���3�-�/�� ��������� �(����� ��������3������ �������� �� ������� ��������� ������7���<�������� ���� � ������( ����� ��������� ���� ������ �!J�Z[�������.� �� ��� � ���� � ��� ����� �����1�� 7�<������ ���� ������� ���� � �� ��������� �� ���� �����

�&���! �'�����)*"$� ��������������@���A��������������

�����+���! �'��,�-,"$� ������������������������������������

�B���� ���� ��������� ������������ �� �� ������ ����������� ��������� ������������� ������� �7�<�� �� / �������� ��������� �������� ����( ������������ ��������3� ������� � �� ��������������������(�������� ���� ��������� ���� �7���B�������������������������MF��F��$������%�� ���� �.� � ����� ����� ������� �-�/����� ������� ���������� � ���������������:0����$������� ����%�� ������ �� ������������������(��������������7�<��������� �� � �������� �� ���������� ��������������B<?�$�����(���������� ������� ���� ����� ��� �� %3�� ������ ����������� �� ������ ��������������� ������������� ��������������������� ���3���� ���� �3�������� �7���F���������������� ��������������������������(��������������� �� � � (����.� ��� � ���:������ ������� ���2������ ��7���� ����� ������-� ����� ����� ����� �����MF�F���$������%������ ���� ����� 5� ����� �0EJ���� ��JJJ��[7��

���

�B � ��(������ ��������$� �������������������%����������� ��������,�-,�$����%���1(+�$-�/�%7�<������� ��� � � �� ������������ �����������(����-� ��������������� �$J=�"%7���

������8�������9���!��"$� ���2����(���������������������������>����

��� ,�� ��

��

�<�(������I���I�� ��������� (��� �� ������MF��F�� ��(�����X@�X���BM4�$���� ���� ������J����������%7�<������� ��� � � �� ������������ �����������(����-� �������������������� �$J=�"%7���

�����+���! �'��,�-,"$� ��������������������������������B-CB��������!��

�<������� �� � / ������ � �� ������� ���������������� ������������ �������������������� ����- � �� ��I���I� ��������B<?��

�������� ��$���%��

�������4��� $���3�(��� %�

Page 21: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !��

�������� 8��/<$� �������������*5��������!'�

���������� 8� I$� ������������$�������������D�

����������8� 0$� ������������������+����������������"��

�������� !"�

#�

�&���!���'��()*�)*"$�����������������������!'�������������

�&���!�����'�����)*"$�������������$���������D���������������

%�

������� !"�

#�

������8�������9���!�����"$����������������������������$�����

�����+���!���'������"$�������>������������ �� ��������>���%�

��

��

�B � ��(������ ����� � ������������� ������������ �����������������������������������

���!"�$���7�<������������������������������ ��������� ��$J=;%7�<��������� �(�����.� ���� ����� ���������� �J�����J!"7��

������8��������9���! �"$����������������������(������������������� ������

�����B�������������������$J=;%������ � ������ �������� ��������� �3����� � ������� ��� ��������������@P�F����MF�F�����.� ������� ��� �@P�F�I�7��

���

�<�������������������( ������ ����-�������� ���=(�������������������� ����� ������ ���� ����� �������������������2��� �������$�4%�������� ��������I��� ����������������������������,E<�7�<������� �� �� ��������3�.� ����� � ���� ���2����*����/GA'� ������U������������������������������ ���+&����� ����<'�B'�G'�C'�/0�.�//7�B������ ����� ����������������������.� ����� � ����� ���2����*����A'�����������U��������� �������������������� ����C'�/0�.�//7�<��(�����.� �� ��� � � �(������ �������� ��� ��������������������� � ����� � ��������� �(����-� ����������� 3�� ����� ��� ������������ ��� �J=!;;7��

������+���! �'������"$�� ���������$�����������������������������������

���������

6�� �(������ ��(�����J�� � ��������������� �J�(������� �� ������ �� ��������)����(������ �!;;�� � ��������������� �;�(�������� �������� �� ������ �� ��������7������(���� ��� � ��� �J���!;;3� ������������ ����� �� ��� �J���;�(�������=� ��(�����X@�X�� �������� .��(�� ���;(�$;�(������%7�� �� ���� ���� ���� ������ ����� �� :����4�3����� / ����3����(������ �A0�

������� ��$���%��

������4��� $���3�(��� %��

Page 22: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !!�

.��(������������ � ��J�(�������� ��� �������������� ��� ���� �������;�(������������������������ �� ���� ���)����(������ ��!K� .��(������������ � ������������ ��J����������� ���� ������;�(����������������������� ���� ���3������(������ ��N!� .��(������������ � �� ������������J�(���������������������� �� ���� ������� �;�(�������� ��� �������������� ��� ���� ����� ����� 7���? -������.� � ���� ��������������� �2���1�� 3� �� �������� ������������������$�4P%�� �� � ���������������������� �� ������� � / ��������������������������E�����2������.� �� ��� �� ��� / ���������������������������E������$������������������������ ������������4��� � �� �����������%7�������=�B��������������������������� � ������ ������������ �3������ � ������� ��� ��������������@P�F����MF��F�77���<������� �� � / ������ ����(���������������� ��������� � ����������������3����(� �� � ��(�������(��������������03��� �(��� ���� (��(��������( �������������������� ��������4���������������������

���������8��/0$� � ������������������!"������ �� �

������������8� 0$� ����������������"������ ���� �

��������$� � � �����������������$�� ���� �

�������� !"#%� � ���������������������������������������+��������

������� !"�

#�

������8��������9���!������"$�� ������������"�+��������������

�����$�������

�������8��:F����������������������1�+������������������

������+���!���'������"$���������$����������!"�������

%�

��

�? �� � ���� / �������� ������������������������ ��� ���� �����.� �� �������� �����������������������7�? �������� ���.� ��JJJ� .��(�� ����� �7��

����.!/000"$�� �����������!���������

��? (� �( � ���D� ���� ������ ��������������������� �� � ���������� ����������� ����������2����� ����� ����������7�P������ �� �� ������(���������� �$� � ��� ����� ��

� ���$��%��

������$%��

Page 23: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !"�

�� ����.� � �� � ������2����������������� ������� ������������ ������� ����D������( �.� �� ������� ��-�����G� � �H�� �������/ ��%77���

������8������!"$�� ������������������G��������������������

�����=�<�� ��D� ���� �� �-�������$������� �� � � ��� ��� (����� ��%3�� ������� �����5������ �� �N�2����7����

���

9������� ���������� ������D� ��������������.�� �������� �������� (��(� ���� ���D� �������� .� :�7��������8����!����'��/00"$����������������������3����(��H��������������G������

�������������#�

�6����Q(����Q�� ��� ����.� ��JJ�(������ ��� �������������(��������I(����I� ��������.� ��JJ�(��������������(�� ���JJ7���

9������� ����5����� ������D� ��������������.�� �������� �������� (��(� ���� ���D� ���������� ��������7��

������8����;!����'��/00"$��**��������������������+��������������G��������������+�

!""#���? � ������� ��������� ��������� �.� �(������ ����������������JJ7�

���

�<���-� � ����(����3���� �����3������������� ���������������������������������#���

����������!����"$�� **��2����(��������������������������������? -������.� ��������� �������� �� ��� ������( ���� ����D� ����� ������3�������4������ �� ���� �������������(����-� 3��������� 3����������������� ���������� ������ ������������������3����.� �� ���� �� � �����D� ������ ��������O���� ��O7�X��������(��� ����� �� ������3���������� �3�.� ��� � ��� ������� ����� �� �����������3�����������

���$53��%��

������6 �$� �%��

��5$53��%��

Page 24: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !0�

�������$%������������������ ���$%�.� �� ���� �� �������� ��������������(���� �����������������7���

����

�B������������������ (� �( �����D� ����� ������� �� ���� ������� �(����� �(���� �� �� ��������� ��� �����(���� ����������57��������8��������!/00'��>00"$� ��������������������$�������������������������������

�������������������!""%&""�

�����=�F� � ������������� ������� ������ ��������6 �$%7���<������� �� � / ������ � ������(������� ������� ��� �J=!;;������ �(���������������������������4���

��������������$� ���������$��(���������������������������

���������8��/0$� � �������������������!"�

��������� !"��#%� � ������������������������������������

�������� !"�

#�

����������!����!""$�� � ��������������������������������������������

���������������������

������������8��������!>BB"$� �����������G���������������������"%&���

������+���!���'������������"$���������>�����������������������,E<�������������.!B00"$� � � � ����������"�����#�

%��

����

��-� � ���� ����� �� �����/�����( �������� ��-���������������������������� ������� ��� �� 7�<��(������������� �( ����������������������� ����� ����� ������ ��NAJJ3����.� �������( ������� ���� � ��� ������������7����������� !"�

#��

�����D����!CG00"$� �����$�����,�������������

%� � � � � �������������������������������I0""��$���

������$��5%��������$���3���5%���

6 ����7- ���$��� %��

Page 25: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !;�

�����9������� ������ ������������������� �� ������������������J�$�W%�����$�W%������ � ������ ��� ������������ ���7��

����

@����� ����������� �� ���� ����� �� 3�� �������������� ������� ��������������������������� ���� �7�<�� �����������������������������.� �6 ����7������$%3�� ��� ��������������������� ������� ����������� �� ���������6 �� �� ������1�� 7���

�����D �����!������6����"$� �������>���������������/��������������

����=�������-� � ��������������������-� �������������������-������ ��� �6 ����7��������$%���6 ����7������$%��� � ����������� � ��������1 -�� ��������7���<������� �� � / ����������� ������ �������������������J��� �(��� ����������������� �������������� �����7��

�������� !"��

#��

�����D����!CG00"$� ��������������������������������I0""$���

%��

������� !"�

#��

�����D �����!������9���!0""$���������>����������������

����.!/000"$� ������������������������������������!��������

%��

Y� ������ �(�������D� ������������ ���� ������ � ������� ����� �� 3�� ������� ���������� ��� �� ������� �������O9�O�$�69@@��"3����Q\�Q%����������� ��� �������� ���� ��OB8O$�69@@��J3����Q\�Q%7���������������������.� � ����������6 ����7�����$%��

�����D �����!�"�(� ������ �(��� ��(������ �-����������D� ���� ������ �������� � ���69@@�� ������� �O9�O���OB8O7��������D �����!�'��� "�(� ������ �(��� ��(������ �-����������D� ���� ������ �������� � ���69@@�� ������� �O9�O���OB8O7�������D �����!�'�,�V"�(� ������ �(��� ��(������ �-����������D� ���2 5� ������ �������� � ���69@@�� ������� �O9�O���OB8O7�

6 ����7�������$����%��

6 ����7�������$����3��������� %��

Page 26: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !A�

�����D �����!�'�( *"�(� ������ �(��� ��(������ �-����������D� ���M����� �������� � ���69@@�� ������� �O9�O���OB8O7�������D �����!�'�O��"�(� ������ �(��� ��(������ �-����������D� ���-������� �������� � ���69@@�� ������� �O9�O���OB8O7�������D ���!�'�OW*�"�(� ������ �(��� ��(������ �-���������-�� � ������� �O9�O���OB8O7�������D �����!���"�(� ������ �(��������� ���� ������� � �������������� ����69@@�� ������� �O9�O���OB8O7�������D �����!"������(� ������ �(���O9�O���OB8O7�<.��(��������������P 1��� $%7����

��

Y� ������ �(�������D� ������������ ���� ������ � �3������ ����� �� 7�?��2������������ � ���������� � �� ��������3�� � ��� ����� ���������� �����.� ������� ���������� ������ ����������� �(�������� ������D� ���7��

����� ������

����=� ���D� ����������� ���� ������� � ����(�������� �(���7��

������. ��� � ������ ����������� ��������� �����(���� ������������$� �����3������3�-������3� ��777%��� '�( *'�O��'�,�V'�OW*��'��������� �������������� ���

���� �����

�����D ���!�"��

�/����������>������������$����������G�������������������������� 4J--#�*(������>��

�������-�������#�

�����8�IC$������D ���!�"$������������2��������KDIK#��

������D ���!�'��� "��

�/����������>������������$����������G�������������������������� 4J--#���

*(������>���������-�������#��

�����8�IC$��

�����D ���!�'��� "$������������2��������KDIK#��

6 ����7�����$����3��������� %��

Page 27: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !E�

�����D ���!�'�,�V"��

�/����������>������������$����������G�����2����������������������� 4J--#�

*(������>���������B����F�

�����8�IC$��

�����D ���!�'�,�V"$������������2��������K19K#��������D ���!�'�( *"��

�/����������>������������$����������G�����L������������������ 4J--#�*(������>����

�����L�����F�

�����8�IC$��

�����D ���!�'�( *"$������������2��������K!!DK#��

�����D ���!�'�O��"��

�/����������>������������$����������G�����$��������������������� 4J--#�*(������>��

�������M����+��F�

�����8�IC$��

�����D ���!�'�O��"$������������2��������K!""!!!!K#��

�����D ���!�'�OW*�"��

�/����������>������������$���������$+��#�*(������>���������M+����F�

�����8�IC$��

�����D ���!�'�OW*�"$�����5������������������KLK���������������������

��������� 4J--���������DI#��/�����$�� 4J--��#��

�����D ���!���"���Y� ������ �(��������� ���� ������� � �������������� ����69@@7�<.��(���������������6�����$%7��

�����D ���!X,�����+����KX"$����������KB���E���NK#��

���

����6 ����7�(����-� $%��

M-�� � �����D� ��� �� ������� ���D� ���� �-�� ��$������ � �%�������-� �������� �������������� �� � ���� ����� �� 7�<.��(��������������������� �����(����-� $%7��

6 ����7�(��-� $%��

Page 28: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !K�

? (� �( �F�� �� ������� ���D� ���� �-�� ���������-� �������� ��� �� � ��-��� ��� �� 3���J�������2����������7�6��2������D��������������-� 3�6 �����(����-� $%�� ���������.� �J7�<��-��� ��� �� ��� � ������ �����������5����A0�-�� �7��

</ ������

���������O.���8�0$��������������������������

������� !"�#��

� �����D����!CG00"$�����$�������������������+�����������������������I0""�

$���

%��

������ !"�#��

� ������>����������������������$�O�

� ��!�����D�������!"�L�0"�#�

� � ��������$+�������������O�

� � ������O.���8������D����!"$�

������������������������������������

� � �����D ���!X��������=�X"$�

� � �����D �����!������O.��'��� "$�

� %�

%��

����

����6 ����7� ��$%��

B ��������������-�� �$��������� �%�� �� � ���� ����� �� 7�<.��(��������������������� ����� ��$%7��

? (� �( �<������� �� �-�� �$������ �%�� �� � ���� ����� �� 3���=��������2����������7��

</ ������

���������O.���8�0$���������������������������

������� !"�#��

� �����D����!CG00"$�����$������������������+�����������������������I0""�

$���

%��

������ !"�#��

� ������>����������������������$�O�

� ��!�����D�������!"�L�0"�#�

� � ��������$+�������������O�

� � ������O.���8������D����!"$�

������������������������������������

� � �����D ���!X��������=�X"$�

� � �����D �����!������O.��'��� "$�

� %�

%��

6 ����7� ��$%��

Page 29: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� !N�

��8������� �9�� 5�������� � �������������������

���

��]�� � �� �� / �����-������ .��(�� �� ����O2���������O�� �����.�� ��� ����/ �� ��������������2��� ��������� � �� � �� �� ����������������� ����� �7�<�� �� � / ����� ��B<?� ������� ������ �� �������"3���� � ��� �� ���������G������ �H������� �����7�B��� ���� �����.� �� �� - ��������� ��� �� ����� ��� �� �� �� �������� � �������� ����.� � ������"�� ������������������ � ��������/ ��� ����� ���� ����3��

�����������8��/<$������*5�����������������!'�

�������� !"� ����������������������������

#�

�&���!�����'��()*�)*"$�������������������!'������

������

%�

������� !"�� �������������$���������������#�

�����+���!�����'��,�-,"$���������������*5�

����.!/000"$������������!��������

�����+���!�����'��1(+"$������������������*5���

����.!/000"$������������!���������%�

������

�� ���� ��

����������������

Page 30: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "J�

����

��

���]���� ���������������� �������� � ������������������������-� �� ������� �� ���������������7�<�� �� � / ������ �� ��������� ��1���2��������������� ���������@P!7�9������ ����� �������� ����� ������ ������� � �������� �� ��B�M��� �� �� ������B<?���������� �� ���@P�"���

�����������8��/<$���������!'�����������������*5�������������������8��>$���������&������������������������

�������� !"����J�����������������+��������

#�

�&���!�����'��()*�)*"$��������������*5�������������� �&���!���'�����)*"$�����������������������������������

%�

������� !"�

#�

���!�����9���!���"��88��,�-,"��������������������������������������B-CB�#�

�����+���!�����'��,�-,"$�����������������*5������.!/000"$������������!��������������+���!�����'��1(+"$�������������*5��%�

%�

�����������

����������������

Page 31: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "��

���

��

����( � �� ��� � ������������������������ ������ �����0J����.� � ������ �� �������������������/ ����������7�<�� �� ������� �2�� ������ ���������������M68<��.� ��� � ����� ������������� ���������������� ������ �� 7�<������� �� � / ������� ���������� �������������M68<����������;�( � �������� �����7�������=�<�� �.� ����� ���������������������������� ����� ����������� �������������������(�7�<������������.� ���������������� ����������(������� ���� � �������������� �������7������������8�B$� ������������������������<L49*P�

�������� !"�

#��

�&���!�����'�()*�)*"$���������������������

%�

������� !"�

#�

�����!����80$��?8B$��@@"� ������������$�������������

#�

�����+���!�����'��,�-,"$���������������<L49*P��

����.!>B0"$������������!�1���������

�����+���!�����'��1(+"$�����������������<L49*P������.!>B0"$�����������!�1���������

%�

����.!/000"$������������!���������

%�

�������� ����������� �� �� ����������

Page 32: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "!�

��

����

���B������������� �@�������� ��8� �� �����$�4%� ������������� ����� ���������G�����H�����������������7�<������������ ������� ������������������� ��-������� ����B<?����������������� �(�������7�<������� �� � / ������ ���� �� �2�� �.� � ��B<?�� ������� ���� ������ �2��� ��������� �����-��� �7��

����������8�C$� ��������,E<������������*5�

�������� !"#%������������������������������������

������� !"�

����#�

�����!����80$��?8>BB$��@@"� �������������������������

#�

������+���!�����'��"$�������������$������������-������,-.��������������*5�

����.!/00"$������������������!""���

%�

�����!����8>BB$��L80$��HH"���������������-������������

#�

������+���!�����'��"$�������������$����������������

����.!/00"$���������������������!""���

%�

����%�

���������

������������������ ��������1���4�$������������ ���������� ���� ������%�

Page 33: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ""�

�����

��

��<������� ������� ����� ����������� �������� ��� � ����������������=��������� ���������$�?9%�� ���� �� ��(���� �������������.� �� ����( ������� ��(���� ��� ������ ��������� ��J=�J!07�<������� �� � / ���������� �������� ����� ���������������������� ���� ����� ������� ��� ����B<?7������� ������8��0$�����������������������������������

�����������8��/<$� ��������������������������*5�

�������� !"�

#�

�&���!�����'��()*�)*"$� �������������,���������4 �-5 �

%�

������� !"�

#�

�����+���!�����'��,�-,"$�������������,����������

����.!������9���! ����""$��������������������������������������,�����

�����+���!�����'��1(+"$������������,�����������

����.!������9���! ����""$����������������������������������2���,����

%�

�����������

�������������� ����� ����$ ����������������%�

Page 34: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "0�

��

� �����

����B���� ���� ������(����-� ������������ ���� ��� ��� �B9?������ ������� �3�� ���� ��� � ��� � ��3� ��3�� ���� ����������� ������������������������� ��� ��(���� ��� ������ ������������7�<�� � / �����2�� ������ ������������������� �� ��(����������������� ���-� � ������� ����� �� �����7�<�� ��� ������������� ��-������� ����������B<?���� ������ �����������7�

����������8� C$�������4�������������,E<�������������������*5���������������8�0$���**�������������������$������������������������������������"��

�������� !"#%� ����������������������������������������+��������

������� !"�

#�

�����!����80$��?8>BB$��@@"� ����������������������������

#�

������+���!�����'��"$�**������������������$��������������������

����.!����.6��!""$��**�������������������

%� �

�����!����8>BB$��L80$��HH"�**�������������������������

#�

������+���!�����'��"$�**���������������������$���������������������

����.!����.6��!""$�**�������������������%�

%�

��������.6��!"�����<Q�������������������������������������

#�

����$�**����������������$��������������%�� 8��������9���!��������"$����������������������

���8��A$� ����������������������>�������"%!"&1�����"%!&6�

��������$� ���������������������

%��

���������� ��������� ���� �����(����-� ��$ ����������������%�

Page 35: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ";�

����

�B���� �(���� �����/��� � ���� � ����������� �������.� �� ��� � ���( �� ����������� ��KJ�^�������� � ����� � ���������� � ����������� ���7���������.� �� �� � ����� ����������� �(����������!J��7�<�� � / ���������� ��������������� �(����� ��������( �� ��� �(��� ��J^�����EJ�^7��

������������8��>$���������������������������������&�

�����.�����$����3�����������������"%!6"�

���� ����+��U$��������2���������������������������������,������������� !"�

#�

�&���!������'��()*�)*"$� �����������������&������������%�

�������������!����������'�������.�����"�

#�

����+��U�8�!�.�������J��/0"��@�G00$�����������������������

�����+���!������'��,�-,"$���������������������

����.&����������! ����+��U"$������������

�����+���!������'��1(+"$������������������������

����.!>0"$��������������������������%�

������� !"�

#�

����������������������������������!"R�+�����2�����!D"R��

�����!�.�����8/0$���.�����?8/I0$���.�����@@"�

#��

���������!������'���.�����"$�

%�

�����������������������!D"R�2�����!"R�

�����!�.�����8/I0$���.�����L8/0$���.�����HH"�

#�

���������!������'���.�����"$�

%�

%��

���������� ��������� �(���

Page 36: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "A�

9���� ����-���������-� �����������������

<�� ������ ���� 5������������� ���������-� ����������������7�6 ����� � �������������������.� �� ��� �3�� ����� � �� ����������������� ����� �3� ������������� ���� � 5��������������( ����� �� � ��������������� ���-� ���7�<����� ���� ���������� ������������ ��������� �� � ���������.� �2��� ������������������� ������������ ������7�

��6 ����� � ������ ������������ ����� ����������������� �

B������-������ � ���� ��6M6��$7�7�7����=�=�=���7�7�7�%�

**�� � ���6M6� ������������ �������������������S��")��������� !"�

&�������� $���3�MF��F�%)�'�������� !"��**�������������������.� �� � ���G7�7�7�G=�=�=G���G7�7�7�G�&������$%)����$%)����$%)�**� � ������6�$7�7�7�%������2$%)����2$%)����2$%)�**�� � ������M�$=�=�=%������$%)����$%)����$%)�**�� � ������6�$7�7�7�%���� ���$"JJJ%)�**<�� �������� ����'��������!"���**���� ���� ���������� � �������������&����������4��� $���3�X@�X%)���� ���$!;J%)����������4��� $���3�BM4%)���� ���$!;J%)�'��������U!"� **���� ���� ���������� � �������������&����������4��� $���3�X@�X%)���� ���$�JJJ%)����������4��� $���3�BM4%)���� ���$!;J%)�'�

Page 37: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "E�

6��� � / ����� �� ���������3�� � / ����� ���������6M6�$��������� ������������ ���5����%� �������������@P�"7�

�<������������� � ��������������� ��.� �� ��� ����.� ���� �� ���� �������-� ���7�<������ �������3��������� ���3�� � ��������������� �������$������%��������$����%�.� �� � ��������� �.� � ��B<?������� ��� ���� ������������������ �� ���(�� �� 7�<��� �����������3�� � ���������������������,����.� ������ ����������� � ������� ������������� ��7�����D�����3� ���������������������������� ���������.� ��������� �� �����������������7�

Y������� �� ��������( ����� ����������� ��������-� ���7��

F�� ��� � ������������� �����������2�(��� ��������-� ����������2�(��� ���- � ���$1�*���� 5� �����7�X%��� �����2�(���� �� �$1�*� 5� �����7�9��%7�<�����2 ���� ���- � ����� � �� �������� ������������-� ����-������ �� ������������ ���������.� ������ � 3��� ������.� � �����2�(���� �� ��� � � ���������� ��7�Y������������������ �����-�-���� ���O��� O3��������.� ��� ��������2 ���� ���- � ���� �&����DU7�<�2 �������(���� �������.� ���� � � �� ���7��� � ���� � ���������� 5���:��������������3�� ������ �� �� �������( �.� �( �� �����2�(��� ����� ��.� �(������ ���7��

<���D�� ��� �����2�(��� ���- � ���������� � ��������� �������������������� �����-�-���� ��3� �(� ���� ���������� �/�������������(����-� ��.� ���� ��� � �����

������&�����

#�

�� ����=�

����&����!��� �"$�

����������!"$�

����������U!"$�

�� ����=�

�������Y �$�

%$�

F������� � ������� � �� �������� ������� �������� ����(����-� ��.� �� ������ � ��������������� ���������������7�<������������ ����(����-� ���� � ��� ���D-�����3����.� �����������.� ��� � �� ������� ���������.�� � ������� ��������-� ���3������(����3����.� �����������.� ������� ��� � ���� � ��� �� �� ������ ��������������� 7�9�������� ��� � ������������� �� ���������������������������������3�.� �� ������ ��������� ������������������ �������� 7�<���������������� � � �����������-� �.� �������� 3������� (� �( �����7�

��F�� ��� � ������������������� �� �����2 ���� ���- � ��7�F���� � ����� �����Z��������� ����������.� �� ������� ��������������� ���������������������� ��� ��� ����/ �� ���������$ ����� ��:�� ������������ �� � ����������������������.� �2�� ���������������3�� ��������������-� ����%7��������.� �� - ���������������$���������������� ������� ����� ���������� ����� ��������� ����� �� %�

Z��������X+ ��������DUX�

����D�����3�� ����������� ���� �� ��������������- � �������� �� �

Z�������&����YU�

Page 38: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "K�

Z������&����YU�

����������������Z�������.�����������������������[�\DD�

�Z�����

R������ �� 3� ���� (�������-� ������������ ������� ����� �� ���� ��_������� � �������-� ��������( � �7�������D�����3��������� � ���3�� ���� ������� ������� ��������� ���� ������ ������-� ��������������-� 3�����-� ( �� ����������� ����.� �2�� 3�.�� ����� ����-��3����� �2���������� ����7���<�2 �������(���� ���������- � �������� ���������������� �����2 ���� ���- � ���2��5�U����&����DU�

�J�

��<����#2�%���$���+��������2���<���������#�

��J�������$+�5����� #�<�����.����$���&��&""D#�

��S�������������2����$���������#�

)��

Z������&����YU�

Z������&����YU�

Z�������X+ ��������DUX�

������&�����

#�

�� ����=�

����&����!��� �"$�

����������!"$�

����������U!"$�

�� ����=�

�������Y �$�

%$�

Z�����

�2����(������� ����-���������( ��������� ��� �����2�(���� �� �� ������-� ���3�&����D� 7��

����� ���� ���� ���������� �� ��������� ��� ����� �G_������� H7�<����������� ��� ����� ���������� ���� ���������������� �� ��������� ��������3����.� � ������� �������� ���������� �� �����2�(��� ���- � ���

Z�������X+�������DUX�

Z�������X&����DUX�

Page 39: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� "N�

B� ���(� � � �������������7��2����� �������������.� �� - ������� � �������������� ���� ������������������������� 7�<�� �� �����3� ���������� �� ������� ������.� �� ���������������� ��7�9������������ ���������������������������� ������(����-� ����(���������������� ������������������� ��

&����==&����!��� �"�

#�

�� �&���! �'�()*�)*"$�

��Y ��8� �$�

%�

X����������� ������� 5���:��� �� �� �������7�<������ ��� �� ��&����==���� ��� �����-� �� �����������7�<�����������.� ������������ ������ �� �������� �&����7�Y ��� �� �� ��� (�� ������������������� �� ��������� 7�B��� ������������������� �� ��������-�/�� �� �����-� �� ��� �����(����-� ����(���3�Y �7�<����(����-� ��� � �� � ������.�� �����-� �.� �� � 3��� ��� ��������������������������� ���������.� �������� �� �����2 ���� ���- � ��7�B����������� ����������-�/��������� � ��� �����-� � ���������( ������������ /���������.� �����(����-� ���������(����3������-����������������� �����-� �� ����� ������� �����������������$ �� �� �� �����%7���? ������(� � � ���������� �����������.� �.� � �������( ����� ��������������$`�������a%7���� � �����������3� 5� ��������&����==�� ���� �� ��������-� ��� ������������ �3���Y �� ��������� � ��

���&����==���!"�

#�

�������+���!Y �'�,�-,"$�

������.!>B0"$�

�������+���!Y �'�1(+"$�

������.!>B0"$���

%�

���&����==���U!"�

#�

�������+���!Y �'�,�-,"$�

������.!/000"$�

�������+���!Y �'�1(+"$�

������.!>B0"$�

%�

����D�����3� ����������������� ����� �������� ���- � ��� ��������� ���� ������ ������ �� ���������� �����2�(�7�Y�������( �� �����2 �������� ���

Page 40: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0J�

5�U����&����D� �

�)�

��<����#����%���$���+��������2���<���������#�

��J�������$+�5����� #�<�����.����$���&��&""D#�

��S�������������2����$���������#�

)��

Z�������X+�������DUX�

Z�������X&����DUX�

&����==&����!��� �"�

#�

���� �&���! �'�()*�)*"$�

����Y ��8� �$�

%�

���&����==���!"�

#�

���������+���!Y �'�,�-,"$�

��������.!>B0"$�

���������+���!Y �'�1(+"$�

��������.!>B0"$���

%�

���&����==���U!"�

#�

���������+���!Y �'�,�-,"$�

��������.!/000"$�

���������+���!Y �'�1(+"$�

��������.!>B0"$�

%�

b� ��� ����������.� �� � �����$2������������������������������� �3�� ���(�������2�-����� � ��������� ���� %7��

�2����(�������( �������� ������ �������-� ���7��

�<������ �������3�� - ������ ����������� �����������&������ ������ ����-��� �������U���T������������� ����������������������7�9����������( ���������2�(���&����DU���&����D� � �� ������� ��7��2������� ������������������������7�9������� �������3��������������� ������� ������-� ���3�� � ������������2 ����-/ ���$&����D�%�����������������.�� �������� ���( �� �������� ���� �7�6����� ���-� � ��� �D���]���UL��� ����1����.3���� ��� - ���( �� ����� ����� �����2 ����-/ ������ 7�9������� �����-�/�����������-� ���3�� �����.� �-������ �����2�(����� 7����� ��� �����������$�� � ���������� (�����/ ��� �� ��� �D��*����LO�����%������� ������������-�-���� ��7�6�����-�-���� ������� �

Page 41: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0��

�������� 3��� �D� � �� �.� � ������ ��� �� ��������2�(����9����7�X�$�������������� � ����������7��� ������ 5� �����7��5�3����� / ����%7��

�Y ������������� ���� ����-����� ������� (�����������6M6�2��� ��������� ������ (����-� ����

��������� �����������

Z�������?&����DUL�

&����������!/<"$�

������� !"�

#�

%�

������ !"�

#�

�������D���!"$������D���!"$������D���!"$�

�������D���U!"$������D���U!"$������D���U!"$�

�������D���!"$������D���!"$������D���!"$�

������.!<000"$�

%�

X�������������� � ����������� �� ������������������������$�� ����� ��2 �2��� �.� ���������� �������������� �2����������������������-� ���%7��

<������ �������3�2 �����:���������� ���� ����2Z�������3� ��������� ���� ������ ����������7�<����2�� �.� ������-� ������� �.� � ���������������� ���������������������� � �� ��������7�<��������������.� �������� � ������������-� ���� �� ����������3���� ��� - �-������ ��_������� �������2������ ������7�

<��� �����������3�����������2������� ������ ������������������ �������� ���� ���������������

&����������!/<"$�

9������ ������� ��� � / �����$.� � ��� ���������� � ���� ����������� ����� !"%3� ��������������� �������� ���� �� �����(��������� �������� ������� ����.� �� �2��������.���$ �� �� �����3������/<%7��

�� ���� ���� ����.� ��� ��������� ����� !"�� ����������� ����(����3����.� �������������� �&����!"�� ��� (������-�� �� ����� ������ ������-� ����$��������������������� ��������� %7��

�����D�����3�������������������������� �����������!"������������U!"3� ��� � �������������� ����� ��/�������7�C�� ���� �� ��������������.� �.� � ��������7������������ � ��(������

Page 42: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0!�

������������ �������� ���� 3���������� ��������������������� ������ �����(����-� ����(����c����� � ������������7����������������������� ��������������������3� �� ������� ����.���(����-� ��� �� / ������ - ������ ��� ������� � ������������������������7�<��� ���3����2 ���� �������

&����������!/<"$�

&����������>!/>"$�

����� ��� ������ ��������������������>D����!"'�Y ��� �����!7�

6��2�� ������� ���� (����������3����-�-� � �� �� �2�-���������� ����� �.� ���������� ��� ������������� ��� ������-� ������ �� ������������� �� �������� ���������� �����������������7������ �������3�� ������1�� �� �������������� � ��( ������������������ �� ����.� �� �2��� ������� �������-� ����$��� ����� �.� �� �������������� ����������� � ���� %3����.� ��� � �.� ����� ���������� ������7������2�� �� ���3��� �������2�(����������]�.T����D�;����� � �� ����� ������7�? - �� � �������� ��������� �� �

&����� ^�W+(9�/�

���U� ^�W+(9�>�

���� ^�W+(9�>�

9������� ���� � � �����-� �� ��������-������( 3�� ������� �����������$���� �������%3�� ���������� �������� �����-������( 7�B������� ��� - ��� ��Z<b4M�?��������� ������������/�)�������� ��� - ��� ��Z<b4M�?!���� ���� �������������7�� ������.� �� �������� �� ������������������������ ������ ����� �������� (�������-�������( 7�

<����� � ���� �.� �.�� � �������� �������-� ������ �� ����������� / ����������������.� ����� ��� �� ��@?<����������������� � ����������� ������ �������� ��� / ������$6L ��2%7������2�� �� ���3�� ��� ���������� ���� ����� ����� ������ �������� ���.� ������ � ������-� ������� 7���������������3���( ��������������� ����� �������.� ������ � � �����������$��������� ����6M6%�.� �2 ���� ���������� ����� �� � �� ����� �������� � / �����7�$F�� ���� � � ��������� �� / ������ ����� � ��� �D��]���UL��]���U��U�T�5�����D"�6��� ������������������� ���������( � ��������1����.Y&������ ������ ��� �D��5���L��]���U���]�L��;�� ����.� ������ � ���� / ����7�<������-� �.� �� � ��:���������������� ��������.� � 5�������� /������������� ������-�-���� ��7�

6��� � ������-��������-� ��������� ��$��������-�������( ��� �� / ����%3��� � �� ���������� ����� 7 ��7�

���

Page 43: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0"�

6 :�� �������������� �������� ����������$�4%7�

<�� �� ����������(�������( ������������ ����� ������.� �� �-�������� � �������� �������������������� ���������7�<������ ���� ���������� � ��������� :������������� �� �����������47�

6 :����4�$���� =1���2�����������%�� :���� �������������������2��� ������7��

�?��� ��

=��4�$���� �4���2%������2��� ������3�� �� � ����������2��$ ���� ���%�� �������7��

=�� ����*� ���2�$� �����%3���������3� �� ���� ����������.� ���������� :��7��

B���� �� ������ �� ��� ������������������� ��������$ ��������*���%����� ����������� 5�� �������� ������� �������( ����� ��� �����3�������� ������������� �� � �������7��

�<��� ������� ���� � ��� ������3�� � �� ���������������� ����������� ���� ������ �� �����$2 �� %� �������( ����������������� ��� ����$� ������%7��

<5��� ����������� ���������������.� �� ��� ������� :����43�� ���������O?�������� O3� �������� � ������ ������ ���/ �� ��� ����.� � ��������$��(����/ ���������%� ���� �� ����������(��$��%������� ���������7��

���� / ����3��������� :����� � ����� ������� ��J���������������������� ����2��$�4%�!��3����2��� :����� � ������������� �� �!Jd�$!Jd������KJd����%7�<������� �� ����������� ������� ��� :�� ���4�������� � �� ��O��������� �O7��

Page 44: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 00�

�B��� :����4�� ������ ��������������������������������������������������7�<��� ������������� �� ������ ���� ��� ���������� � �� � ������������� ����� ��� ����������2����������7�6�3����� / ����3�� � �������(����/ �� �N(�������������������������������� �� ���Jd3��-� � ����J7NY�� �� :�������������� �������7��

B���� :�� ���4��������D�� �� ������������� ����������� ������ ��?9�$���� �� � ���������� �� ����3������ ������ �������� ������� .� :���� ��������� ��� ( ������ ���� �� %3��/������������ �������� �-������� ����B<?3� ��7��

<�������������� :���� ���������4�$��� ��N3�J%� ������� :���� ��� �� ������������� �$"JEAN�X %���.� ����������� ���� ����-���� ��O��������� O��� ���� ����.� � �������� ��������(��$��%���������(��$���%3������ ����������������������4��� $%7��

M����������� �� � ����� :�� ���4� ������� ������������������� ����������� �����7�B��� :���� ���������-� ������ ������������� ������ ������� :������������ �J�(�������$BM4%���� �;�(�������$X@�X%7��

9��� ������� �� �������������������� ��� ��������������� �� ��������� �(������ ��� ����.� � ������� � ���������� ����(�����X@�X���BM43������(���� �������������������4��� �$%3�� � ���������� :����47��

�J���_����+&�J���

��������8�/0$��������������!"��

������� !"�#��

Page 45: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0;�

���� �&���!����'�()*�)*"$�������������������������

%��

������ !"�#��

���������+���!����'�,�-,"$�����������������B-CB�������

��������.!B00"$����������������������������������������

���������+���!����'�1(+"$�������������������LE�������

��������.!B00"$������������������������������������������

%��

<�������������� � ��������X@�X�����( ������ �����3������ �� �����.� �� �� � ��� �����2������ ��� �������������� ����������X �� �� �������� ��� �� �����$� ������� ���� �����%�7�9��-���������� ����� ������� ����������3����� �������-��������� �� ������ ����� :��7����� / ����3�������-����������������� �������� ���$;JJ%���� ���$!;J%3������������ ��������� �� ������������3�� �������.� � ������� �(������ ����-� �� �������������� ������������� ������.� ���� �7��

Page 46: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0A�

9�������� ��������

�?��� ��

8� �� ����=����S�*� ���2=� �������

6��O��������� OS;Jd3� ��� ���3� �����2��� ����������������(���$��%� �������(���$���%���������� �===>�� �����S!+�4��

M-� �� ������������ �� ������������ ��������

�4������2��� �������S��*$!�+���� 8� .� ���%�S�� �����*�!��

? �������.� ��������� �� �������� �����������3���� �����-� � ���������� �� ���-����

������������ 5��������H����� �������!��"� �+�!��"�

�� !A��X � "K"J� �N�;�

�� !N0�X � "0JJ� �EJJ�

� "!N�X � "J"K� �;�N�

�� "0N�X � !KA0� �0"!�

�� "N!�X � !;;J� �!E;�

�� 00J�X � !!E!� ��"A�

-� 0N"�X � !J!K� �J�0�

9� ;!"�X � �N�!� N;A�

$�� ��%�!JJ;�?7�9����� �� ������Z"��

9����������3�� � ���������������� �� � ���������7�9��� ������ �� / �������������� ������ �(��� ��������� :������������� ������������� �3��� ������.� ����� ��� ������2�� ��������� ����� :���� �������������������2��� ����������4�� �������� ���������7��

���� ���/=��

�)J��������������������+�������������=�������������������������������������

�������(�������������������������������B-CB����LE��������Q���������������

Page 47: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0E�

�����E����������������������H��,E<���������������������������������

�����:&0!B=)���

��������8�/0$��������������!"��

����+8/C/B$���������(����������������������(��������������������������������

������� !"�#��

���� �&���!����'�()*�)*"$�������������������������������

%��

������ !"�#��

��������.&����������!�+�F�������������������������������,E��

���������+���!����'�1(+"$�������������������LE�������

��������.&����������!�+"$������������������������������,E��

���������+���!����'�,�-,"$�����������������B-CB�������

%��

���� ���>=��

<�������������� :���� ���������4�$��� ��N3�J%� ������� :���� ��� �� ������������� �$"JEAN�X %���.� ����������� ���� ����-���� ��O��������� O��� ���� ����.� � �������� ��������(��$��%���������(��$���%3������ ����������������������4��� $%7��

F��� ������������� ���������G���� �4���2H�����G������4��� H���������-���� ��(���� �7��

������+���!'�����"��

����=�� �� � ������������ ����O��������� O�$( ���4%����� � �������(���� �� ��� �J�����!;;7��

0����� ����� �������� :���� ��������� �(������������� �� �J�(�$BM4%���Jd�� �O��������� O)��

>BB� ������� :���� ��������� �(������������� �� �;�(�$X@�X%����JJd�� �O��������� O)�7��

�����(���� ����� �� ����3� ������������� �� ���� ���� ��� �J���;�(�������=� ��(�������������3���������� ��.� � ������ ���� ��2��2�$;�(������%7��

B���� �� ������ ����� :����4� ���������� �������5������ �� �� �"JEAN�X 7��

���� ��]��(���8�C$����������8�<00$�����3��������������!"""�TU�

�����+8/C/B$��

������ !"�#��

������+���!� ��]��(��'�0"$��

������+���!� ��]��(��'�����"$��

����.&����������!�+"$��

������+���!� ��]��(��'�0"$��

����.&����������!�+"$�%��

Page 48: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0K�

9��������������������������������� ����X��� ������������ ����������D��� �������������� ��� ����������(��� � ���������� ������������������� ������������������ ����� 5� �����7������(���� � �� ������� ������������������ ���� �(��������������� �� ��� ������������������������������������� ������������������������� ����������������������� �� �����$���� �����3��?3�8���23�?�� ����3�YYYY3� ��7%7�<������������-������� ����� ������������ ����� ����������� ��(�� ����� ���� ������������ �7�<5���������.���-� ( � �� ����� � � �����-�������� � �������������

8������ ��-�������

<����������-� ����� ��.� ������������� ����������� �� ��������������� �������-� �� ��������������� ����7������.� ������������� � 5�� ���������������������������� � ���� ����� � / ������3�������� ��� ���-���� � ��� ����� ����� �� �����������.� �� �������������������7������ ��������� �����������������

���������!/C>00"$�

b��.� ������� � ������������ �� ������� ������( 3�������� �� ������ �� ��-��.� �(����� ���$%7�<���D� ���.� �(�� ��� ������� ���� �����( ��������� ��������������� ���������������� ����� �� �(����� ��������������� ����.� ��������������������(���.� �(��������������� �� - ��� � �����������( ���������������� �� �� �� �� 7��N!JJ� �����(����� ���������� �� ��.� ��� � ������� � ����������������������7��

F���( ��-� ���� ���� ������������ ����� ��.� ��� ���.� ������ �(����������������������������.� �(������� ������ � ����� �������(������� ���� �7�B����������.� � �(����������� ���

�������D ���!����"$�

F���������� ������ � � ������ ���������� ������������������.� ������������ ������������������$���������.� ������� ������ �������������� �� �����%��� � ����������� �� ����������������.� ��� � �� ��� �(�������������

�����D ���!����'��� "$����������������� 4J--�

�������D ���!����'�,�V"$�������2������������� 4J--�

�������D ���!����'�( *"$��������������� 4J--�

�������D ���!����'�O��"$�������$���������� 4J--�

�������D ���!����'�OW*�"$���������M+���

9������ � �( �� 3���������� �� ���������������������� �3�� �������3� �(����� ���/ �� ���69@@7�<5��������-� ( � �� ��

6 �� ��� ��������

<�� ������������ ������������D��� ��������������� �����$�����������3�K�-���3��������-���� �������%��� ��� �� � ���� �(���������-�� 3� ��� ��������� ��� �K��������� �(����/ �� ��-� ����������.��������������� �� �� �K3������J���

Page 49: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� 0N�

�M�� ��.� ������������������������������� ������ ��� �� � ����� �(������-�� �7�B����� � ����� ���� �����.� � ����-�� ��(������ �� � ������������2������������� �� �� �������� ��������������� �� �� ������� � ���69@@�������D� ��7��

6����������� � ������ ������������������(������ �A;3� .��(�� �� ������� �� �-�������J�JJJJJ�� ����� ��� �(����3�� �D�� �������������3�������

�����������&��������������������\��! �����"��

65 ---DEC---- (“6� y “5� ACIIs 54–55) 000110110–000110111

65 ---HEX---- (“4� Y “1� ACIIs 52–49) 000110100–000110001

65 ---OCT---- (“1�, “0� y “1� ACIIs 49–48–49) 000110001–

000110000–000110001

65 ---BIN---- (“0�,”1�,”0�,”0�,”0�,”0�,”0�y”1� ACIIs 49–48–

49–49–49–49–49–48) 000110000-…

65 ---BYTE--- 01000001

P�� 5������ �������( ����� �� ��� �������� � �� ������ ����� �� �� � ����������������3���������-����69@@�$����� %3�� ��� �� (�� �� ������ ��������������Rb�<�� ���� � �� �(���� ����������������� ���������$� ����������������������������������� ������������%����.� ���������������( �������� �����������������7�b����.� � ���� ����������� ��������� ��� ���� ����� �������� ���� ����� ��� �� �������.� ����� �������7��

F�� / ������ �������

<�(����������������� ��� ��� �� ������7�<�� ��������������� ������� ����� ������� �������������!0�� ����� ����

��� �����8�>$�����

���������8�/<$����

������8�0$��������

������� !"�#�

�������D����!CG00"$�

�� �&���!�����'�()*�)*"$�

�������+���!�����'�,�-,"$����������������������������$������������������

%�

������ !"�#�

Page 50: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;J�

�����8�������9���! ����"$��������������������,���

�������D �����!��"$�

%�

6���������� ���������D������������������� ��6 ����7�������� �����������.� ��������� ������� ��������������?<97�����.� ���� ������������ ����� ����������� ���� �� �� ������ ������������� �� �� �� ���������������7�������� �� �� �������������� ������� ������ �� ��-���� ����������� ������ ������1�� ���������$D������-����������� � �2�%������� � ��� �������� ���� �� ����� ����� ������������������������� ���������� ������ �����7��

<�(��������� ������$( ����������������� %�

����� �(���� �� ������������������ ���������������� � �������� ��� �������Rb�<�����.� � ����������� ����������.� �����������

��� �����8�>$�����

���������8�/<$����

������8�0$��������

������� !"�#�

�������D����!CG00"$�

�� �&���!�����'�()*�)*"$�

�������+���!�����'�,�-,"$��������������� �������������- �����������������%�

������ !"�#�

$������������,���+����������������1������(������������"%&���

�����8�������9���! ����"�:�

�������D ���!��'�OW*�"$�

%�

<������ ������� � ����.� ��� �������������.� �� �� �� ��������2�����������������

� ���� ��������D�����DJ$�

������ �����F���/����$����������������������

�.��� ��$�����������������

������V$�

������� !"�#�

���S�!:00'�>BG"$�

�� �����!�����D���!""$�����������������������������������$���

���$��������������������������������������I0""�

Page 51: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;��

�� ����8���T������!�U�'������D���!"E0F'�CG00"$��

�����!>BB'>BB'0"$�

�����V�8�0$�

�� ���8�0$�

%�

������T!"�#�

����! �����D�������!"�L�0"�#�������2�+��G��������������$��������������

���� ���8� �����D����!"$������$������

���� �����! ��"$�

��%�

����� ��!���V'� ��'�<'�<"$����.��������

����!���V�?�T��U"�#�

�������V@@$�

��%������#�

�������!��!������!>BB""'��!������!>BB""'��!������!>BB"""$�

�������V�8�0$�

��%�

%�

���

6������ ������������ ��������������� ����� ������������.� ���� ������������������������������������� ��7��

Page 52: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;!�

9������������(����� ����6 �� ��

B�����/ ������������� � � ���-� � ���������������� �� �$� ��-����� �(����(���� �������������� ���69@@%�����������������(�� 5� ���3������(���� �������� 5�������������-� *�� ����F6R�$���/ ���F6R%�����-� *�� ����� �� ��6=!"!$���/ ���� �� %�$<���� %��

@�����.� ���������� �������� ��������������3������� ���� � �������������� ���D� ���� ��� ����� ������������� ��.� � ������������ ����������( ��������� ������� � ����� ��-�������$ ���� %7���-����2���.� �� � �� ���� ������������������ ��� ���������������� ������������������� �� 3�.� ������� �� ��� �������(���� �(���� �������������������� �K=-����$��R�� %$Y ��� ����4��� $�%���� ����� ��$�%�%3��� ������.� ���������� �2 ������������3� ���*?�$9��( ������%�� ����������� � ������ ���������� ��J=-���7$ ���� %��

? ������ ����� ��� ��������3������� ����� �����������O������� ������� ��� ����6 �� O3�.� �����-���������(������ ������� ����������� � �� ��� �������/ ��7��

������ ���������( ��������� ������� � ������ ������3�2���.� �������� �D�OX ����� ����O���� � ����������� ��.� ���OY ��������� ���������6 �� O7�B��( ��������� � ��������3�� - ��������������� ��(�����.� �2 ����� � ����������� ������� ���� ���������������������(���

Page 53: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;"�

� ����������- ���6 ����$%7?��2��( �������� ����� � ��� �� �� ����( ��������� ���������������� �������� ��������������7��

B���������� �O������� ������� ��� ����� �� O�� ������ �� ��������������3����������� ����������� � �� ��� �������/ ��7�6��.� � ���� �(������������������/ ��3�� ��� ����.� ������ �������������������� ��������� ������� �������� ��� ����� �� ������X�� �� �������$�����4����1�%�=<���� ���e� ���$�������%=WWWW=�B���5=<���� 3� ��7��

���-����� ��� � ������� ������������������������ �(������� ��-���(���� ���69@@��� ���-� � ����������������������������������� ������$ ���� %3���� �?����$ ���� %3�?�� ����$ ���� %3�������-������������.� � �� ��������5��T�8���2�$ ���� %3��56��$ ���� %3� ��7��

P����X���.� �� /����� ������ � �� ��� ��� ����� �(����� ��������������-���� ������3�����.� �� ��� � ����������������������������������7�fg��

<�(���� �������� �� ��������$�������=>�9%�����9������� ����� ��������������� �� ��

</ �������� �(�������� �� ��������(���� ���-� ������� ����� ����������������

�����

�)�������������������������������������,J��

�*����������������������������������������������1�

����������������������������������"�+�&����+����>�����������,J����

��������������������� 4JJ-#�

� "�,J�O���������������������������������������!�+�����������,J%��

�J�������$+�P���-���0�L��#�&""���

�V�������

�)��

�����$�**�(����-� ��������������� ��(������ ��� ����������������

������� !"�#��

��**�� ��� ����( ��������� ������� � �������NAJJ�-���$-������%������������!CG00"$�

%��

������ !"�#��

���������������������������������������������1������2���������������"%&���

�����8�������9���!0"�:$��

��������������$������������������������������O��

����� ��������!X6��������������8X"$�

Page 54: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;0�

����$������������������������������ 4J--��!�M+����������������������O��

���� ����������!��"$�

���� ��������!X`�X"$����J��3�������������

����$������������������������������ 4J--��!�M+���������������2����������O��

���� ���,�;!��"$����� ��������!X`�X"$��

����$������������������������������ 4J--��!�M+���������������$��������

��� ���O���.!��"$�

��� ��������!X`�X"$�

����$������������������������������ 4J--��!�M+������������������O��

���� ���(����!��"$�

���� ��������!X`�`�X"$�������������������������+������������������

����������!"��������������������������

�������.!/0"$������������������

%��

M��������������� � �� ������ �����������������(���� ������������� ����������� ��� �J���N��� �������� ���������������69@@��� �������� � ���69@@7�? �������.� �������������� ����������������� ���������� ��-� 3���-� �������������������������7��

<������� �� �������������� ��������������������������6����!"�.� �� ��� �����2����������������7��

�����$���������$������������������������������������������

������� !"�#��

������������������������������������������I0""�$����$��������

�����������!CG00"$�

%��

��������6����!�������"�#��

���������!�����J�C���/0>:"�@�:A$������������������������������%�

������ !"�#��

��8�������9���!0"$��������������������������������������"%!"&'���

�����+���!�����6����!��""$����������������������������6%$�����

Page 55: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;;�

�����+���!/0"$���������������������������������

�����+���!/<"$�����������������������>�����

����.!/0"$�%��

������������ ���������������������� ��� �� �� �����!����"�#�� ���� ���$�%��

����T��U ��8�0$��������������������������������"��

������� !"�#��

�� �&���!�T��U �'����)*"$���������J������<P���?����������D����!CG00"$����������������������������������I0""$����

%��

������ !"�#��

���!�����9���!�T��U �"�88�,�-,"�����������������������������L.����#��

���������D ���!/"$����������������>��!���,������������%����#��

���������D ���!0"$���������������������������������>��"���,����������

��%��

������.!/00"$���������������������������!""����

%��

Page 56: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;A�

<�(���� �������� �� � ���9�$�9=>�������%����������������� ����� ��������������� �� ��

<������ �������3�� � ����������������������������������X�� �� ������� ���� ������93� �������� �.� �� ��4����1�77777777��

6���1�� �� ������������� ��� ��������������� ������ ���� ����� �� �

6 � �������� ���� ����.� � ������������ ���������������/ ��3����( ��������� ������� � ������� ����������� ��������� ����������7�b������� �� ���� ����777��

6 ��� � �� ��� �������������-���������� �� / ��������������������-�7��

P����<������������ ��������� ������� ������� ������������� ���� ��������� ��������������� 5������������/ ��3��������.� ����.�� � ��� ��� ��������� (��� �������� ����������3�� ������.� �� ���� ����� ��� (��� �� �� � �� �D�����7��

*+-��R������P�h2���**� ��� 7��� �������=�(� �7��*27-�������>��+? �� ����������� ����������� ���� ����� �� 7�6�� �������� ��-���� ������QXQ3������ �� �+ ��� �� �MP3���� �������QBQ3������ �� �������M887�B������������(� � ��� ���9���� ����+������������������ �����77�+�� �� ���"����!JJ0�� (�� ��!K�����!JJ;��+*���U�����$���������$��(�������$�������������������������������� ��8�/<$�����*5�����������������!'��

Page 57: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;E�

������� !"�#��

�� �&���!��� �'�()*�)*"$���������!'���*5������������4 �-5 �

�������D����!CG00"$�����������������������������������������������������I0""$����

%��

������ !"�#��

���!������D�������!"�"�������������2�+�����������������������

��#��

�������8������D����!"$���������������+��������������������������

��%��

���!����88�4,4�"�������������������������������$������� B �

��#��

���������+���!��� �'�,�-,"$��������������*5��

��%������#��

���������+���!��� �'�1(+"$��������������������������������������

��%��

������.!/00"$�������������������������������!""��������������������������

%

��

��������-��� �� ����������-������������������� �����������.� ����D �� �G� �������� �������������H�X�� �� �������� �4����11���� ����������������������� ����� �� ������ ���� �(����������������������-�����������D�7�

Page 58: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;K�

<�(������ �������$���������� %�9������� � �(�������� ���������� ��������������������� ��� ��� � ���������� � ������ ������ ����������������������� ���������� ���������������.� ���������� ����� ����������� �������.� � ��� �-�� ��� ��-����7�F������ �������� ��� ���� �� �� �2�� �� ���� ��/����������������+������7������������ �(���������(���� ��� ������ ���� ��2�����.� ����� ���������� � �(� ����-�������(��������� ���� ����� ����������� �����3������( 3���� �(����� � �(�����2��������� � ������������.� � �� �������� ���7��

<�� �� ���� ������������������������������� ����� ����� ����� ������D��������� ����� �������������� ����� ����

9������������������ ��������/ ������������ �� � ��@?<���������

��� ��/8�0$�����������������������������������������������

��� ��>8�0$�

��� ��<8�0$�

����O.���8�0$�����������������������������,���������

������� !"�

#�

�������D����!CG00"$�

%�

������ !"�

#�

����!�����D�������!"�L�0"�#���������������2�������

�����O.���8������D����!"$��������������

�������2�������������������������������������'�1+�����3�����

���� ��/�8�������9���!<"�:$�

���� ��>�8�������9���!:"�:$�

���� ��<�8�������9���!B"�:$�

Page 59: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� ;N�

�������+�������>��

���������D ���! ��/'�OW*�"$�

���������D ���! ��>'�OW*�"$�

���������D ���! ��<'�OW*�"$����������������

��%�

%�

F���( ��������� �� ���������� ��������/ ����������� ���� ��������������� � �(��������������� ������ �������� �������� ����� ������������� �� ���� ������������� �����������.� ������ .�� ��7�<���� ����� / �����(������� ����-��������������� �� ��@?<����� ��������� ��� �� � ��.� �� ����� �� �� ������������������ ���������������������������� �����-����.� ����� � ��� �����������

6 ������� ������.����� �� ���� ��G���������� H���� - ���� ����� �����������7�<�� � �� ����������

����� ��������������

� ���� ��������D�����DJ$�

������ �����$�������������������������

��EF����������������8���T���E<F$���������������������$�����������������

����������������8�0$���������������������������

��� ��V'� ��W'� ��a$� ������������������������$�����'5�

��������U�.������8������$���������������������������

������� !"�#�

���S�!:00'�:00'��<�"$�

��������]�!"$�

���

�� �����!�����D���!""$������������������������$���

�� ������8���T������!�U�'������D���!"E0F'�CG00"$����J����������������������

�� �����DT���!GB"$�������*��>������������������������������������+������

%�

������T!"�#�

�����]������!0"$�

����U��!"$�

�����!<0'>BB'>0"$�

�����������!T��U�>�@� ��V'�U��U��>�@� ��W'� ��a"$�

��� U���!:0"$�

����!U�.������88������"�#���������2�+����������>������

���� �����DT���!GB"$�

��%�

%�

�����������������������������=�(��������������������

Page 60: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� AJ�

������������!������ �����"�#�

����!U�.������88������"�#��

����U�.������8�����$�����������2����������������������������>��������3������������+�

�����

��%�

����������������+����H������������������G�����������

����������������E������������F�8� �����D����!"$�

��������������@@$�

����!�������������L�>�"�#����4��+��2�+�����������������������

���� ��V�8���������������E0F$�

���� ��W�8���������������E/F$�

���� ��a�8���������������E>F$�

���� �����!X6�������������� ������������=�X�@� ��V�@�X'X�@� ��W�@�X'X�@� ��a"$�

���� �����DT���!GB"$����+����>��������������3��

�����������������8�0$����+�����������=�����������

��%�

%�

��� ����� ��@?<����� ������������� ���� ������������ ���� ������������ ���������� �(���� ��� ������� ����� ����� ����7�

��

Page 61: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A��

9��( ��������������=?�������$�*?%��

F�����( ��������������=�������� ��������������(�� � ������������� �� ����( ���������� :������������� �����(�����-������3� ������������-���3� �� �� � �������� �������������� :�� ���������������������� ��$JQ�����Q�%7��

�<�����������(�� ���-� � ������ ������� ��� ���� �������$� :������������%�������������$?������%�� � ��� ����� ����� ���������7�B��� ���������� � ����������� ��������������.� �� �� ������ ����� :�����������7��

<����� ���������� ���� ���- �3��� ��� �������������� ������ ��(�������5����� ���� ������������( ���������������������5����� ����������� ����������-�������7��

� ���������S�TY� �*!�$�=-���%��

���� / ����3�������( ������*?�� �K=-������ � ����( �����(���� ��.� �(���� �� �JY�2����� ��(����/ �� �� � � �����$Y� �%������� ���������� ���� ��

� ���������S�Y� �*!;A�$!K%��

B��.� �.�� � �� ����.� ���� ��������(���� ��� �(����/ �� � ������3� ��� �J���Y� ��(������3���(���� �� �� ��������� ������� ��� �J���!;;�$!�=�%7��

B�����/ ���������������� ��������( ������*?�� ��J=-���3�����.� ��

� ���������S�Y� �*�J!0�$!�J%��

�� ��������(���� ��� �(����/ �� � ������3� ��� �J���Y� ��(������3���(���� �� �� ��������� ������� ��� �J����J!"�$!�=�%7�9�������������-���3� ����.�� � �� ����.� ��� ������� ���� ������������� ����������� �� ������������(���������� ������ ��� �J����J!"7�$Y ��������� ��$%%7��

6��Y� �� ����������;(3����� ��������� ������5������ �� �� �;�����(������7�������������� �� ����� ������� ������� �(����/ �� ����� ��� �� ������;�����(������7��

9����� ��������������� �(���� �������$������������%����� ���� ����� �� ��

��� �(�������������� ���� ����� �� 3�� � ����.� �� � �� ���� ����.� ������������������ �� ��� �������(���� �(���� �������������������� �K=-����$Y ��� ����4��� $�%���� ����� ��$�%�%3��� ������.� ���������� �2 ������������3� ���*?�$9��( ������%�� ����������� � ������ ���������� ��J=-���7��

Page 62: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A!�

���� / ����3�������������������(���� ��� ����� ���������������$ 7/7���� ����� ���%������� �(���������� ���� ����� �� �����93���������������������� ���������������� ����������� ��� �J���N��� �������� ���������������69@@�$������ �%7��

$���������������� ��� ���������������+�N�*��J!0%�T�0K)��

J��69@@�==>� ������S�0K��

���69@@�==>� ������S�0N��

��77��

<��������� ���������������.� ����������

����/�8�������9���!��������/"$��������������������������������������"%!"&'���

�����+���!�����6����!����/""$�������������������������6%$�����

��������6����!�������"�#��

�������!�����J�C���/0>:"�@�:A������������������������������%��

M������������� ������(��� ��������0�f<���� ������ ���g�$�J!0*!;A%����(���� �������������� ������ ���� ������������3���������( �������� ��(������ �-�� �(������$J�=�!;;%7��

�����8�������9���!��������"�:$��

�����+���!����"$��

Page 63: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A"�

9������������� �� ��

�����2�� ��.� ��������������(���� �������.� ��� � ������������������� �������������������� ����/ ����������������D�� ��� ���-������������(��7�B���������������D��� � ���-� � �����2��������������� ������� ���������������������� �� 7�B���������������� �� �������� � �������������������� � ������� ��������������� �3�������������( �������7��

<������������� �(����������.� �� �� � ����� ������� �(�����������( ��������� � �������3��� ��� � ����� ����2�����2������������ ���������( �������7�<������������ ������������������������������ �� ����������7�F���������������� �� ��� ����M?<� 5� ������� ������������97��

���� / ����3����� � �����������������(������ ���������.� ���� ����-����������������( ��������� �NAJJ�-��������� ������$���-�������������-������%3� ��� � ��������������� ��(����/ �.� �� � ���� �(������ ������������3���������*NAJJ�� ����� �����3���� ��� ��������2��(����/ ����������� (��-���� ������7�6�� ��(����/ ��� � �(�����X@�X�$T;(� �����������������������������%3���� ��� ����� �������������3�������� � �(�����BM4�$J(%3���� ��� ����� ������������J7�? � ���������3���� ��� ����������� �� ������ �-����� ������3� ��� � ������� � ��-� � �� ��� ���/ ������������7��

B������������(��� � ����������������D� ���������� �� � ����� ��-�� �������� � ����������������$� ��������D� ���%7������ ����� ������ �� ��������� �����������������69@@�$ ���� %3� ����������������������D� ������ ���� ��(������ ����-�� ������ ������ ��� � ��������� �J����!E�fg7�<����������69@@� ������� ���� �������������� ��������������(������������ �� ��������������� ������������� ��� �� 7��

����.� ����.� � ���� �(���� ���D� ���NJ�� �� �������������(��������7����� ��3�� ������ ���D� ���� �� ������������� �������������������-������7�<��-�������NJ� ��J�J��J�J�$��-�� %7��

b� �����������(������������������������ �� ������ ��������� �D�� ������� �� ����������

�M������������������� 3� ��� � ������� ����� ��� � �(���� �����-���7�P������ �� 3� ������������� �(��� ������ �������3� ��-������������ ���$�����������������(�%3�������D������ ��� �� ����� ���$��� ���������������(�%�� ����������-������7��

<����� �������������������3������.� �� ������-� ������������������ �� 3���-������������(���� - ������������ ��������( � ��� �(����/ �$X@�X���BM4%3� �����( ��������� ������������3��� �������� ��� �������� �����-����������������7�<��� ���3�.� �� - ��� �� � �� ������������������� ��������������� �� $���/������ �� �����.� ��������������

Page 64: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A0�

� �� ������ �� ���/ ��.� ������ �������� ������������������ ��� ����������(��%7�� � ���� �� �� ����� ������������� �� ����������6=!"!������ ���� ��$��� ���� ��(���� ������ �� %�.� ������ ������2�������7��

X��������2�� ����2�3������������� ������9������� �-��� �� ���������6=!"!����������������������� �� 3�� ���������� �� ������9�� ��������������2������������������� ��������������� �� 3���� �������F6R�$R���6 �� �F��( ����%3���8�� 1�� 3�.� �� ���� �������������������������� 5�-� ���( ������� ��� ����������������������7��

�������� �����������������(��������9�$������ ����� ����(�%�� � ��������� � ������������� ����� �� ��� ����-� ������������������� �����������������(��� �� 7��

��������� ��� ����� �� ��6=!"!� ���9�$( ������� �N���� ��?R=N%��

<������������ ����������� ����� ���� �������.� �2���������.�������� ��� ����.� � � ���������-� ��6=!"!�$ �������3����� - �� ��� �������������� �%���F6R���-� ����������������6=!"!*F6R7�$ ���� ��������� ������������%��

��

Page 65: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� A;�

����-����� � �(������ ��@?<�� ���������

<���������-���������������� 3�(����-� ����������� ��.� �� �� ��� �� �� ��� ����/ �� ��������������� ��������7�P��� �� - ������� ���������-�������( ���������-� ��� �(����-� �7�

Z� ����������

�X@�X� �BM4� �@P�F�� �MF��F�� �6<�@�B��?@6�B�b� ��@� �X�B8c�@� ��4Mc�@��B6R8@�6�� �6R8@�6�� �9X�P�<� �8�BB@P�� ��@6@P�� ����� � � ���� � � ������ ��Z�6�����������

������������� �������

.������������

�??�R��@PR��M��R��RJ��R���R!��R"��R0��R;��RA��RE��??�9��@P9��M��9��9J��9���9!�

���(�� � � ����� �� ��� ���-���� � �� ����� � ��2���� � ����� �� �������� � ��1���2� � ��2��1� � ����� � ������� ���(���� � ��

Z�(�U���

��-�������TS�T�UV������S����������!�i�j�-��� ���-�� ���� �� ����2����2���������3�**�g���������������&'�==�� ������� ����

�������5������������=�d�*+�+�� 1������$%��@�� �����>>�)�6 ����� �6 ���������.��.���=S��1���2������2������ ��4Mc�@�(����12�� �6 ����� �- ���� �� ���������1��� ����������(����-� ��������4��� � ��������� �������� �������� ���������4��� ������2@�� �������� ���2@�� �������

Page 66: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� AA�

�9"��90��9;��9A��9E��??�?��@P?��M��?��?J��?���?!��?"��?0��?;��?A��?E��Z�* ������������

�-��� ��� �-�� � ��2��� ������� � �� ������ � ���� � ����-� � � ����� ������ ��

� �������� ������*�*++�7�� �� �SS� 5������ �����������������������h�hS�X�B8c�@����TT�aS�����hh�h�hS�����ii�a�jj���

- ���6 ������ ����4��� �� ����� ���� �����(����-� ������6�����������@�� � �������R�� ������X 5������M����������R�����������P 1��� ����� @���2���M����

������������������

Page 67: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� AE�

9@�9F@�M6�?<�@P�<�8�9<�9MP���?F@PM���

��

9�� 5����� ����������B ���������������� ����������

��

9�� 5����� ������������*��� ���������

��

9�� 5����� ������������������(��� ��������������� ����� ����M68<����

��

9�� 5����� ���������������������������B<?��

Page 68: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� AK�

��

<������������������ ����� ������� ����� �����

��

9�� 5����� ����� ������ ������� �����(��$B�?3�P�93���977%������� �������������������

��

9�� 5����� ����� �(������������������������7��

Page 69: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� AN�

���-� ����� ����� ���� ����� ��������������������� ���������

��

��-� ����� ����������� ����� ����� ����������������������� ������������������������( ��������� ��������

���

��

9�������� ����������� ����� ����� � ��9@�B!N"���

Page 70: ...Datos del documento original Arduino Notebook: A Beginner’s Reference Written and compiled by Brian W. Evans With information or inspiration taken from:  ...

������������������� ����������������

� EJ�

��

9�������� ����������������������������������

��

9�������� ����� �������������@��!J��