39
Angel Vates Jiménez Rubèn Galmés Ferrer Marta Montserrat Tello

Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

  • Upload
    lycong

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

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

� Angel Vates Jiménez� Rubèn Galmés Ferrer� Marta Montserrat Tello

Page 2: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

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

�����������

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

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

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

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

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

�� ��%����������������

Page 3: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

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

� Estudio del microntrolador PIC16F87X en robótica móvil

-Definir microcontrolador-Caracteristicas de un PIC para robótica móvil-Programación del PIC-Aplicaciones diversas

Page 4: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� %

� Como se puede observar en la gráfica anterior,el microcontralodor más usado en robótica móvil es objeto de estudio de esta publicación.

Page 5: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

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

� Microcontrolador: responsables de la “ inteligencia” de los robots.

� Microntrolador PIC: almacenar y ejecutar un programa. Contenidos:

- CPU- Memoria (RAM/ROM)- Entradas/Salidas ( I/O)- Temporizadores- ......

Page 6: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

����������

�&���#���'�#�$��&���#���'�#�$�

���#�����#���'�#���#�����#���'�#

� Controlador: dispositivo para el gobierno de uno o varios procesos.

� Microcontrolador: esquema interno

Page 7: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

����������

���#���#���'�# !��) #���� !&���#���#���'�# !��) #���� !&

� Microchip (16F876)

� Siemens (80C537 ,familia 8051)

PARA MÁS INFORMACIÓN...

www.siemens.comwww.microchip.com

Page 8: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

���#�����#���'�# !����#�����#���'�# !�

�) #���� !*�����(�����+�) #���� !*�����(�����+

� Motorola

� Thompson

� Rabbit

Page 9: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

,-�������� !����#�����#���'�# !,-�������� !����#�����#���'�# !

Page 10: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

�� �� !����#�����#���'�# !�� �� !����#�����#���'�# !

Page 11: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

�&��)�����" ����#�����#���'�# !��&��)�����" ����#�����#���'�# !�

����

� ����� �����.������*�+����' ���-�� !/�! ����) ����

����(�������� �"� ��# ��/��0�$��/��0&����1�#)����' �!(!�

��!�#(����� !�-( ' �! #�' �������%����!�$�!(�! ��' �

��!�#(����� !� !�' �����������!�#(����� !�# !- �����) �� &

� ����� ����.�������' ����$����-�� !/�����

��!�#(����� !�' �������!&��!��!���/�-( ' �����) ���#! ���

-�#��#�' �(���� �!����' ��/��0/����2( ���!�3�� ��' �� !�-�#��

1(������#�������� #4�!&�"�!-�� ��' �(��! ��' ����

��!�#(����� !/�����')�� �����56����-��' ���� ##(-�����$����

-����!����'�!-�� �' ������ � !&

Page 12: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

• ��������.���������' ����3�!�����-�� !&��!�(���5�)��)($���#��'��$���)-� ��/�'��' �! � ��( ��#��

�����)7!�(!�'��2( � !� ������*�+�%�*���(��) �� �

��� �+8�*�9�� )�#���������8���9�� )�#���

�:,;<+&��!���5�)��-�! ���!�#(����� !�' ��%����!/�����

(��; ��' ������!�#(����� !&�"�!-�� �' ���� ##(-���� !�$�

(���-����' ������ � !�2( �- #)�� �� �����'�)� ����' �

!(�#(����!&

• ���������.���� ���/���!�3�$�' �%��3�!�����-�� !/������=�����!������!�#(����� !�' ������!&�"�!-�� ��' �

(��!�!� )��' �5 !�����' ���� ##(-���� !�� ���#�=�'�!�

)($�-�� �� &�>�)��?������($ ����#��'�!�����#���'�# !�

' �- #�1?#���!/��( #��!�! #� �$���#�� ��!&

• ����������� ������ ���� ����� ���������

�������&����#�����#���'�# !��(�'#�'�!�' ���

-�� !&

Page 13: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

Page 14: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �%

%��#����-�� !��#��� #�!����!%��#����-�� !��#��� #�!����!

Page 15: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

����-!(��'�!����-!(��'�!

� Hay dos encapsulados, uno de 28 pins, y otro de 40

Page 16: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

� Tabla de caracteristicas según modelo

Page 17: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

"��5#�)��" �@��2( !"��5#�)��" �@��2( !

*������ #��+*������ #��+

Page 18: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

A#���'�#��-�#����!A#���'�#��-�#����!

Page 19: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

�&: �5(�� !�' ��#�5#�)������&: �5(�� !�' ��#�5#�)�����

� Tipos de Lenguajes:- Ensamblador: compactos y rápidos. Realizan un completo control de la máquina.Inconveniente:mal estructurados lentos y de gran tamaño.-Compilador: C y Pascal.

Page 20: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

< ##�)� ���!�-�#�� ��' !�##�����< ##�)� ���!�-�#�� ��' !�##�����

' ��-�������� !' ��-�������� !

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

� Tarjeta de desarrollo.(ej:PIC16F87X).

Page 21: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

�-���*��#� ���' �' !�##����+�-���*��#� ���' �' !�##����+

Page 22: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

Page 23: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

Page 24: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �%

Page 25: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

Page 26: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

Page 27: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

Page 28: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

&�,-�������� !&�,-�������� !

� Troncomóvil� Microrobótica� Microrobot "PICBOT-2"� GOS7

Page 29: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

>#����)����>#����)����

� En este ejemplo observamos la placa del robot (figura izquierda) y tambien el robot montado

Page 30: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

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

� Microrobot: dispositivo móvil que reacciona ante el entorno de acuerdo con un plan de acciones programados por el usuario.

� Un microbot consta de 4 partes principales:� 1. Sistema computerizado basado en un

microcontrolador� 2. Armazón� 3. Órganos motrices que emplea para

moverse y realizar operaciones� 4. Sensores de información

Page 31: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

��@�>��@�>BB��

Page 32: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

� Realizar con precisión y velocidad múltiples tareas, como por ejemplo transportar pequeñas piezas, seguir trayectorias marcadas en el suelo, dibujar figuras con un rotulador, sortear todo tipo de obstáculos, limpiar superficies, incluso participar en competiciones de sumo, de fútbol y de golf.

Page 33: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

A�; A�;

� Robot móvil desarrollado por la universidad de Lleida.

� La forma de GOSSET esta inspirada en un pequeño perro y su comportamiento se inspira en el comportamiento canino.Dispone de cuatro patas articuladas para desplazarse y de una cabeza con boca articulada. Además dispone de una cola móvil para fomentar la interacción emocional con las personas.

Page 34: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �%

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

Page 35: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

"�! C��1�����' ��A�; "�! C��1�����' ��A�;

Page 36: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

&:��1�)�������������&& &:��1�)�������������&&

� Microcontroladores con arquitectura RISC de 8 bits.

� Avances de hardware y software para simplificar y potenciar miles de aplicaciones centradas en la áreas de la automoción, las comunicaciones, la ofimática, los productos de gran consumo y el control industrial.

Page 37: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

���������� �

@�����5#�1��@�����5#�1��

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

� ��������&

� �!���������

� �"�����������

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

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

� �%�����%������

� �&�������������%� ��'�����

Page 38: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

��������������������� '�������������������

����������

$�����&�

(����') $�!���*����!�

+�����,������-���

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

/��������&

'�0��1�2���

Page 39: Projecte 52: PIC16F87X en Robótica Móvil - ocw.upc.eduocw.upc.edu/sites/ocw.upc.edu/files/materials/14589/2011/1/54326/... · Siemens (80C537 ,familia 8051) PARA MÁS INFORMACIÓN

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

� '�������������������

��������������3�#

$�����&

/��'������.�����

(�'�$�!���*����!�

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

/��������&

�������%�