{"id":5097,"date":"2021-10-13T06:33:04","date_gmt":"2021-10-13T06:33:04","guid":{"rendered":"https:\/\/omchsmps.com\/?p=5097"},"modified":"2021-10-13T06:47:44","modified_gmt":"2021-10-13T06:47:44","slug":"absolute-rotary-encoder","status":"publish","type":"post","link":"https:\/\/omchsmps.com\/es\/absolute-rotary-encoder\/","title":{"rendered":"Codificador rotatorio absoluto"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Un codificador rotatorio es un dispositivo electromec\u00e1nico que se utiliza para controlar objetos giratorios como ejes. Los codificadores rotatorios pueden utilizarse para medir la posici\u00f3n, la distancia y la velocidad angular del eje giratorio.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Existen dos tipos de codificadores rotatorios: <\/span><i><span style=\"font-weight: 400;\">codificadores rotatorios incrementales <\/span><\/i><span style=\"font-weight: 400;\">y <\/span><i><span style=\"font-weight: 400;\">codificadores rotatorios absolutos. <\/span><\/i><span style=\"font-weight: 400;\">En este art\u00edculo nos ocuparemos de <a href=\"https:\/\/omchsmps.com\/es\/categoria-producto\/optical-rotary-encoder\/absolute-rotary-encoder\/\">codificadores rotatorios absolutos<\/a>su principio de funcionamiento y sus aplicaciones.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">\u00bfQu\u00e9 es un codificador rotatorio absoluto?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los codificadores rotatorios absolutos pertenecen a la familia de los <\/span><i><span style=\"font-weight: 400;\">codificadores rotatorios<\/span><\/i><span style=\"font-weight: 400;\">. Se utilizan para medir los siguientes par\u00e1metros de objetos giratorios como ejes:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Velocidad angular<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Informaci\u00f3n sobre el puesto<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Distancia<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5099 aligncenter\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/index.jpg\" alt=\"\" width=\"265\" height=\"190\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres rotativos absolutos se encuentran en aplicaciones en las que se requiere la medici\u00f3n precisa de la posici\u00f3n y el desplazamiento angular. Estos sensores tambi\u00e9n se utilizan en sistemas en los que debe medirse la velocidad de rotaci\u00f3n.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Estos sensores emiten una palabra \u00fanica (una palabra es un <\/span><b>conjunto de bits<\/b><span style=\"font-weight: 400;\">) seg\u00fan el <\/span><b>posici\u00f3n actual<\/b><span style=\"font-weight: 400;\"> del sensor. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Esto es diferente de los codificadores rotatorios incrementales, ya que los codificadores incrementales est\u00e1n dise\u00f1ados para emitir un <\/span><i><span style=\"font-weight: 400;\">flujo continuo de pulsos ubicuos<\/span><\/i><span style=\"font-weight: 400;\"> mientras que los codificadores absolutos emiten un <\/span><i><span style=\"font-weight: 400;\">conjunto \u00fanico de bits por cada posici\u00f3n<\/span><\/i><span style=\"font-weight: 400;\"> del sensor. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Esto nos permite medir la <\/span><b>posici\u00f3n exacta(absoluta)<\/b><span style=\"font-weight: 400;\"> del eje en lugar de calcular el <\/span><b>cambio de posici\u00f3n<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Veamos en profundidad c\u00f3mo funcionan los enc\u00f3deres rotativos absolutos.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Principio de funcionamiento del codificador rotatorio absoluto<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">En comparaci\u00f3n con los codificadores rotatorios incrementales, los codificadores rotatorios absolutos tienen un funcionamiento algo complejo, pero son f\u00e1ciles de utilizar en una aplicaci\u00f3n.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Al igual que los enc\u00f3deres rotativos incrementales, los enc\u00f3deres absolutos tambi\u00e9n tienen un eje giratorio unido al sensor. El eje est\u00e1 conectado a un disco con un conjunto de ranuras cuidadosamente colocadas. Esta rueda tambi\u00e9n se conoce como \"rueda codificadora\".<\/span><\/p>\n<p><span style=\"font-weight: 400;\">La rueda codificadora tiene un patr\u00f3n de bits \u00fanico. A diferencia de los codificadores incrementales, en los que todas las ranuras se colocan siguiendo un patr\u00f3n repetitivo, las ranuras de la rueda codificadora del codificador absoluto son diferentes entre s\u00ed.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5100 aligncenter\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-02-300x216.jpg\" alt=\"\" width=\"300\" height=\"216\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-02-300x216.jpg 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-02.jpg 370w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Cuando el eje gira, la rueda tambi\u00e9n lo hace. Hay un conjunto de LED que emiten haces de luz sobre la rueda codificadora. Cuando los haces de luz se alinean con las ranuras, los haces atraviesan la rueda codificadora, la rendija fija e iluminan los fototransistores. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Existen enc\u00f3deres absolutos magn\u00e9ticos que sustituyen la matriz de LED por una matriz de detecci\u00f3n magn\u00e9tica y un conjunto de polos magn\u00e9ticos que sustituyen a los marcadores \u00f3pticos.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Cada fototransistor funciona de forma independiente y, cuando se ilumina, emite una se\u00f1al l\u00f3gica ALTA. Cuando no hay haz presente en un fototransistor en particular, emite una se\u00f1al l\u00f3gica BAJA.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">El n\u00famero de fototransistores y los niveles de ranuras grabados en la rueda codificadora determinan la precisi\u00f3n y la resoluci\u00f3n del codificador rotatorio absoluto. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Suele indicarse en <\/span><b>bits<\/b><span style=\"font-weight: 400;\">. Por ejemplo, un enc\u00f3der absoluto de 8 bits de resoluci\u00f3n puede proporcionar 256 informaciones de posici\u00f3n y medir desplazamientos angulares de incrementos de 1,41 grados.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Dependiendo del tipo de enc\u00f3der absoluto y de su construcci\u00f3n, existen m\u00faltiples configuraciones de salida disponibles:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Salida paralela<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Este tipo de sensor tiene m\u00faltiples l\u00edneas de salida que proporcionan la informaci\u00f3n de posici\u00f3n. Por ejemplo, un sensor de salida en paralelo de 8 bits tiene 8 l\u00edneas de se\u00f1al y dos cables de alimentaci\u00f3n. La salida puede codificarse en <\/span><b>binario <\/b><span style=\"font-weight: 400;\">o <\/span><b>c\u00f3digo gris <\/b><span style=\"font-weight: 400;\">formato.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los sensores de salida paralela tienen una cantidad m\u00ednima de circuitos incorporados, ya que no implican mucho procesamiento.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5101\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-03.png\" alt=\"\" width=\"603\" height=\"305\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-03.png 850w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-03-300x152.png 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-03-768x389.png 768w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-03-510x258.png 510w\" sizes=\"(max-width: 603px) 100vw, 603px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Salida en serie<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos de salida serie emiten la informaci\u00f3n de posici\u00f3n y velocidad a trav\u00e9s de un protocolo de transmisi\u00f3n de datos s\u00edncrono. <\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5102\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-04.jpg\" alt=\"\" width=\"605\" height=\"186\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-04.jpg 768w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-04-300x92.jpg 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-04-510x157.jpg 510w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/p>\n<ul style=\"list-style-type: circle;\">\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los sensores de salida serie tienen l\u00edneas de datos y de reloj, y emiten un bit por cada impulso de reloj. Estos sensores tambi\u00e9n vienen en formatos de salida binarios o codificados en gris.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Para una mayor inmunidad al ruido, los sensores del tipo de salida en serie utilizan comunicaci\u00f3n de par diferencial seg\u00fan <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/RS-422\"><span style=\"font-weight: 400;\">RS-422 est\u00e1ndar<\/span><\/a><span style=\"font-weight: 400;\">. Un par por reloj y otro para las l\u00edneas de datos.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los m\u00e9todos de comunicaci\u00f3n s\u00edncrona m\u00e1s populares para los codificadores absolutos son <\/span><b>SSI: Interfaz serie s\u00edncrona, BiSS: Interfaz serie s\u00edncrona bidireccional e Hiperfaz DSL. <\/b><span style=\"font-weight: 400;\">Tambi\u00e9n existen interfaces propietarias como <\/span><b>EnDat2.2.<\/b><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Salida anal\u00f3gica<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los sensores de salida anal\u00f3gica emiten un valor de tensi\u00f3n o de corriente en funci\u00f3n de la posici\u00f3n del sensor.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400;\">Ventajas de los enc\u00f3deres absolutos<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los codificadores absolutos, aunque cuestan un poco m\u00e1s, tienen m\u00faltiples ventajas en t\u00e9rminos de detecci\u00f3n de posici\u00f3n:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Emite la posici\u00f3n absoluta del eje<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Cuando se \"sondean\", los enc\u00f3deres absolutos emiten una informaci\u00f3n de posici\u00f3n \u00fanica relacionada con su posici\u00f3n actual. Esto significa que no hay dos posiciones id\u00e9nticas del eje en una rotaci\u00f3n de 360 grados.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">M\u00faltiples opciones de salida<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los codificadores absolutos tienen varios tipos de salida: paralela, serie (protocolos est\u00e1ndar y propietarios)<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Inmune a los cortes de electricidad<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos no sufren fallos de alimentaci\u00f3n. Siempre est\u00e1n listos para proporcionar informaci\u00f3n de posicionamiento justo despu\u00e9s de un ciclo de alimentaci\u00f3n.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Alta resoluci\u00f3n<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Con s\u00f3lo aumentar el n\u00famero de pistas de enc\u00f3der y unidades sensoras, los enc\u00f3deres absolutos pueden tener una resoluci\u00f3n mucho mayor que los incrementales.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400;\">Codificadores incrementales frente a absolutos<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">La principal diferencia entre los enc\u00f3deres absolutos y los incrementales es su funcionamiento. Los enc\u00f3deres absolutos pueden proporcionar informaci\u00f3n de posici\u00f3n incluso cuando el eje no gira.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> Los enc\u00f3deres incrementales s\u00f3lo pueden proporcionar impulsos cuando el eje est\u00e1 girando. Debe realizarse un recuento de impulsos independiente para determinar la posici\u00f3n relativa y la distancia.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres incrementales deben disponer de un marcador \"de referencia\" independiente para determinar la posici\u00f3n inicial\/de referencia del eje. Sin embargo, los enc\u00f3deres absolutos no necesitan esta adici\u00f3n y pueden proporcionar una posici\u00f3n inmediata para volver a la posici\u00f3n inicial del eje. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Esto puede ser muy \u00fatil en aplicaciones en las que no es deseable girar el eje para obtener la posici\u00f3n \"inicial\".<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los codificadores incrementales requieren m\u00f3dulos decodificadores especiales de alta velocidad para obtener la informaci\u00f3n de velocidad, posici\u00f3n y distancia. Esto limita la integraci\u00f3n con dispositivos electr\u00f3nicos distintos de PLC y microcontroladores. A veces, la sobrecarga de procesamiento tambi\u00e9n puede afectar negativamente al rendimiento del sistema.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los sensores absolutos tienen una resoluci\u00f3n global m\u00e1s alta que sus hom\u00f3logos incrementales. La resoluci\u00f3n de los enc\u00f3deres incrementales est\u00e1 limitada por el tama\u00f1o f\u00edsico del disco y la respuesta en frecuencia del sistema.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos est\u00e1n siempre listos para proporcionar informaci\u00f3n de posici\u00f3n bajo demanda, mientras que los enc\u00f3deres incrementales necesitan ser monitorizados constantemente para obtener el tren de impulsos y calcular la velocidad, direcci\u00f3n y distancia actuales. Por eso, los enc\u00f3deres absolutos pueden recuperarse f\u00e1cilmente de los cortes de corriente.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Aplicaciones del enc\u00f3der absoluto<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos se utilizan principalmente en aplicaciones de posicionamiento de alta precisi\u00f3n como,<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">M\u00e1quinas CNC multieje (montaje y fabricaci\u00f3n)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Brazos rob\u00f3ticos (robots quir\u00fargicos, diagn\u00f3stico por imagen)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sistema de posicionamiento de ascensores<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Aplicaciones de impresi\u00f3n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Industria automovil\u00edstica (sistemas de direcci\u00f3n asistida por cable) y muchos m\u00e1s.<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400;\">Salida de encoder absoluto<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos emiten un conjunto de bits denominado \"palabra\" por cada posici\u00f3n del eje. Existen tres tipos de salidas para los enc\u00f3deres absolutos: <\/span><i><span style=\"font-weight: 400;\">paralelo, serie y anal\u00f3gico.<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres de salida paralela tienen n-n\u00famero de hilos (n=n\u00famero de bits (resoluci\u00f3n)) que emiten los bits correspondientes de la palabra. La figura siguiente muestra la salida de un codificador absoluto de 6 bits de palabra. La palabra de salida puede ser de <\/span><a href=\"https:\/\/www.allaboutcircuits.com\/technical-articles\/gray-code-basics\/\"><span style=\"font-weight: 400;\">c\u00f3digo gris<\/span><\/a><span style=\"font-weight: 400;\"> o <\/span><a href=\"https:\/\/www.tutorialspoint.com\/computer_logical_organization\/binary_codes.htm\"><span style=\"font-weight: 400;\">binario<\/span><\/a><span style=\"font-weight: 400;\"> formato.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5104\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-05.jpg\" alt=\"\" width=\"578\" height=\"375\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-05.jpg 781w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-05-300x195.jpg 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-05-768x499.jpg 768w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-05-510x331.jpg 510w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Los codificadores de salida serie emiten un flujo de datos cuando se les \"sondea\". El sensor lleva incorporado un circuito de procesamiento de se\u00f1ales basado en un microcontrolador. Existen sistemas de bus serie como SSI, BiSS, EnDat, Modbus y Profibus que permiten que un dispositivo compatible se comunique con el sensor.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los sensores de salida anal\u00f3gica emiten una se\u00f1al de tensi\u00f3n o de corriente en funci\u00f3n de la posici\u00f3n del sensor.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Tipos de codificadores absolutos<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los codificadores absolutos pueden clasificarse en funci\u00f3n de la tecnolog\u00eda de detecci\u00f3n como <\/span><i><span style=\"font-weight: 400;\">\u00f3ptico <\/span><\/i><span style=\"font-weight: 400;\">y <\/span><i><span style=\"font-weight: 400;\">magn\u00e9tico.<\/span><\/i><span style=\"font-weight: 400;\"> Los codificadores \u00f3pticos utilizan <\/span><i><span style=\"font-weight: 400;\">luz visible (LED) y una rueda codificadora ranurada<\/span><\/i><span style=\"font-weight: 400;\">. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los codificadores magn\u00e9ticos utilizan <\/span><i><span style=\"font-weight: 400;\">polos magn\u00e9ticos<\/span><\/i><span style=\"font-weight: 400;\"> y un <\/span><i><span style=\"font-weight: 400;\">conjunto de detecci\u00f3n magn\u00e9tica<\/span><\/i><span style=\"font-weight: 400;\"> para obtener la posici\u00f3n actual de la rueda codificadora.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">La otra clasificaci\u00f3n se basa en el tipo de salida. Existen enc\u00f3deres absolutos monovuelta y multivuelta. Los enc\u00f3deres absolutos monovuelta solo pueden proporcionar informaci\u00f3n de posicionamiento en un \u00fanico giro de 260 grados.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> Los enc\u00f3deres multivuelta proporcionan datos adicionales que indican el n\u00famero de vueltas de 360 grados que ha girado el eje. Esto ayuda a determinar el n\u00famero de rotaciones sin tener que contar desde el principio.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Enc\u00f3deres absolutos monovuelta vs. multivuelta<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Dependiendo de la disponibilidad de una funci\u00f3n especial para contar las revoluciones, existen dos tipos de enc\u00f3deres absolutos: <\/span><i><span style=\"font-weight: 400;\">Enc\u00f3deres absolutos monovuelta y multivuelta.<\/span><\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5105\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06-1024x576.jpg\" alt=\"\" width=\"688\" height=\"387\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06-1024x576.jpg 1024w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06-300x169.jpg 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06-768x432.jpg 768w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06-510x287.jpg 510w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-06.jpg 1240w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos monovuelta pueden medir la posici\u00f3n en un giro.<\/span><\/p>\n<p><span style=\"font-weight: 400;\"> Por ejemplo, si un enc\u00f3der absoluto de una vuelta gira 360 grados desde su posici\u00f3n inicial y alcanza el grado 361 de rotaci\u00f3n, el sensor iniciar\u00e1 la salida desde el principio. Indicar\u00e1 la posici\u00f3n como 1 grado.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Estos sensores no pueden contar ni proporcionar una se\u00f1al especial cuando la rotaci\u00f3n supera una vuelta completa. Por ejemplo, el <\/span><a href=\"https:\/\/www.rockwellautomation.com\/en-us\/products\/hardware\/allen-bradley\/motion-control\/encoders\/absolute-encoders\/bulletin-845g-single-turn.html\"><span style=\"font-weight: 400;\">Sensores de la serie 845G de Allen Bradley<\/span><\/a><span style=\"font-weight: 400;\"> tienen una salida de 12 bits, siendo 0 el m\u00ednimo y 4095 la posici\u00f3n m\u00e1xima. Una vez que alcanza 4096, la salida llega a 0.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres absolutos de una vuelta se encuentran en aplicaciones como:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Telescopios<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Antenas giratorias<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Generadores e\u00f3licos<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Puertas<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres de una vuelta s\u00f3lo carecen de la funci\u00f3n de recuento de revoluciones y pueden utilizarse para mediciones de velocidad y posici\u00f3n. Si es necesario, puede utilizarse la posici\u00f3n inicial como referencia y el m\u00e9todo de software para contar el n\u00famero aproximado de revoluciones.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Por otro lado, los enc\u00f3deres absolutos multivuelta tambi\u00e9n pueden contar las revoluciones. Por ejemplo, un enc\u00f3der absoluto multivuelta de 12 bits tiene 4096 pasos por revoluci\u00f3n y tambi\u00e9n puede contar 4096 revoluciones. Los enc\u00f3deres multivuelta utilizan una de las siguientes tecnolog\u00edas para conservar el recuento de revoluciones:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tipo de engranaje<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Los enc\u00f3deres de engranajes utilizan un conjunto de engranajes planetarios para controlar el n\u00famero de revoluciones. Estos tipos tienen el inconveniente del desgaste mec\u00e1nico con el paso del tiempo.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tipo de bater\u00eda de reserva<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Este tipo utiliza un contador electr\u00f3nico y una memoria para almacenar la informaci\u00f3n del contador. Pueden contar revoluciones incluso cuando est\u00e1n apagados. Sin embargo, en la mayor\u00eda de los casos la pila est\u00e1 incorporada al sensor. Puede ser necesario sustituirla de vez en cuando en funci\u00f3n de la frecuencia de uso.<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Tipo de sensor Wiegand<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Wiegand_effect\"><span style=\"font-weight: 400;\">Wiegand<\/span><\/a><span style=\"font-weight: 400;\">-Los sensores de tipo cable utilizan un cable especial enrollado cerca del eje y utilizan un impulso magn\u00e9tico para provocar un cambio de polaridad. Este cambio se produce despu\u00e9s de cada revoluci\u00f3n completa. Este cambio se utiliza para contar el n\u00famero de revoluciones.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Los codificadores multivuelta se encuentran en aplicaciones como,<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Articulaciones rob\u00f3ticas<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Gr\u00faas<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Servomotores (360 servos)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Sistemas de control de antenas parab\u00f3licas y muchos m\u00e1s en los que un punto de pivote de rotaci\u00f3n no es accesible\/disponible.<\/span><\/li>\n<\/ul>\n<h2><span style=\"font-weight: 400;\">\u00bfQu\u00e9 es un enc\u00f3der magn\u00e9tico absoluto?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres magn\u00e9ticos absolutos utilizan polos magn\u00e9ticos y sensores magn\u00e9ticos en lugar de los LED y fotodiodos de los enc\u00f3deres \u00f3pticos. La imagen siguiente muestra un ejemplo de rueda de enc\u00f3der magn\u00e9tico de codificaci\u00f3n absoluta.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-5106 aligncenter\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07-295x300.jpg\" alt=\"\" width=\"295\" height=\"300\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07-295x300.jpg 295w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07-1008x1024.jpg 1008w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07-768x780.jpg 768w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07-510x518.jpg 510w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-07.jpg 1050w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">El polo exterior tiene un polo magn\u00e9tico m\u00e1s que el interior. Esto hace que los pares de polos interior y exterior est\u00e9n desplazados de forma \u00fanica. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los sensores captan se\u00f1ales de un polo por rueda a la vez y calculan su diferencia de fase (desfase). Esta diferencia de fase anal\u00f3gica se convierte en un valor digital que se emite.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los codificadores magn\u00e9ticos son muy robustos y resistentes a golpes y vibraciones. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Encuentran su aplicaci\u00f3n en entornos donde pueden acumularse part\u00edculas contaminantes como polvo, humedad y otras part\u00edculas materiales. Sin embargo, debido a su principio de funcionamiento, los codificadores magn\u00e9ticos son susceptibles a las perturbaciones causadas por campos magn\u00e9ticos intensos.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Conexi\u00f3n de un codificador absoluto con Raspberry Pi<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Aunque conectar un encoder absoluto con una Raspberry Pi puede ser sencillo, el programa para leer correctamente las entradas puede complicarse un poco dependiendo del tipo de sensor. Echemos un vistazo a c\u00f3mo interconectar un codificador absoluto de tipo salida serie (<\/span><a href=\"https:\/\/www.mouser.com\/ProductDetail\/Bourns\/EMS22A50-D28-LT6?qs=%2Fha2pyFadujE6GfpRtXTNHeJXdURc0UEB3tQGjk3omHQpKWsSc3EfQ%3D%3D\"><span style=\"font-weight: 400;\">EMS22A<\/span><\/a><span style=\"font-weight: 400;\">) con una Raspberry Pi.<\/span><\/p>\n<p><b>Cableado del sensor<\/b><\/p>\n<p><span style=\"font-weight: 400;\">El sensor tiene el siguiente formato de cableado:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5108 size-full\" src=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-08-1.jpg\" alt=\"\" width=\"616\" height=\"354\" srcset=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-08-1.jpg 616w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-08-1-300x172.jpg 300w, https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/Absolute-Rotary-Encoder-08-1-510x293.jpg 510w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Conecta los cables del sensor como se indica a continuaci\u00f3n con la Raspberry Pi:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pin 2 (CLK) -&gt; RPi pin 2<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pin 4 (DO) -&gt; RPi pin 3 (si utiliza m\u00e1s de un sensor, conecte el pin de datos del segundo sensor al pin 14)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pin 6 (CS) -&gt; RPi pin 4<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">VCC -&gt; RPi +5V pin<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">GND -&gt; pin GND RPi<\/span><\/li>\n<\/ul>\n<p><b>C\u00f3digo de ejemplo<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Para sondear la informaci\u00f3n del sensor, el siguiente c\u00f3digo de ejemplo escrito por <\/span><a href=\"https:\/\/github.com\/HareshKarnan\/AbsoluteEncoder\"><span style=\"font-weight: 400;\">HareshKarnan<\/span><\/a><span style=\"font-weight: 400;\"> puede utilizarse. Al ejecutarse, imprimir\u00e1 la(s) lectura(s) del sensor conectado.<\/span><\/p>\n<p><code><b>importar<\/b><span style=\"font-weight: 400;\"> tiempo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>importar<\/b><span style=\"font-weight: 400;\"> RPi.GPIO <\/span><b>como<\/b><span style=\"font-weight: 400;\"> GPIO<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">GPIO.setmode(GPIO.BCM)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">PIN_CLK = <\/span><span style=\"font-weight: 400;\">2<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">PIN_DAT = [<\/span><span style=\"font-weight: 400;\">3<\/span><span style=\"font-weight: 400;\">,<\/span><span style=\"font-weight: 400;\">14<\/span><span style=\"font-weight: 400;\">]<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">PIN_CS = <\/span><span style=\"font-weight: 400;\">4<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">retraso = <\/span><span style=\"font-weight: 400;\">0.0000005<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">ns = <\/span><span style=\"font-weight: 400;\">2<\/span> <span style=\"font-weight: 400;\"># n\u00famero de sensores conectados<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># totalmente 10 bits a extraer de la se\u00f1al SSI<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">recuento de bits = <\/span><span style=\"font-weight: 400;\">16<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"># pin setup hecho aqu\u00ed<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>pruebe<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.setup(PIN_CLK,GPIO.OUT)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.setup(PIN_DAT[:],GPIO.IN)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.setup(PIN_CS,GPIO.OUT) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CS,<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CLK,<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>excepto<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <b>imprimir<\/b> <span style=\"font-weight: 400;\">\"ERROR. No se ha podido establecer la configuraci\u00f3n solicitada\"<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">1TP5Espera un poco para empezar<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">time.sleep(<\/span><span style=\"font-weight: 400;\">0.5<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>imprimir<\/b> <span style=\"font-weight: 400;\">\"Configuraci\u00f3n GPIO habilitada\"<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>def<\/b> <b>clockup<\/b><span style=\"font-weight: 400;\">():<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CLK,<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>def<\/b> <b>reloj en marcha<\/b><span style=\"font-weight: 400;\">():<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CLK,<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>def<\/b> <b>MSB<\/b><span style=\"font-weight: 400;\">():<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\"># Bit m\u00e1s significativo<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">reloj parado()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>def<\/b> <b>readpos<\/b><span style=\"font-weight: 400;\">():<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CS,<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">time.sleep(retraso*<\/span><span style=\"font-weight: 400;\">2<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">MSB()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">datos = [<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">]*ns<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <b>para<\/b><span style=\"font-weight: 400;\"> i <\/span><b>en<\/b><span style=\"font-weight: 400;\"> rango(<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">bitcount):<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span> <b>si<\/b><span style=\"font-weight: 400;\"> i&lt;<\/span><span style=\"font-weight: 400;\">10<\/span><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">#print i<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">clockup()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 <\/span> <b>para<\/b><span style=\"font-weight: 400;\"> j <\/span><b>en<\/b><span style=\"font-weight: 400;\"> rango(<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">ns):<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">datos[j]&lt;&lt;=<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">\u00a0 <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">data[j]|=GPIO.input(PIN_DAT[j])<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">reloj parado()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span> <b>si no<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 <\/span> <b>para<\/b><span style=\"font-weight: 400;\"> k <\/span><b>en<\/b><span style=\"font-weight: 400;\"> rango(<\/span><span style=\"font-weight: 400;\">0<\/span><span style=\"font-weight: 400;\">,<\/span><span style=\"font-weight: 400;\">6<\/span><span style=\"font-weight: 400;\">):<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">clockup()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">reloj parado()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.output(PIN_CS,<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <b>devolver<\/b><span style=\"font-weight: 400;\"> datos<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>pruebe<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <b>mientras que<\/b><span style=\"font-weight: 400;\">(<\/span><span style=\"font-weight: 400;\">1<\/span><span style=\"font-weight: 400;\">):<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span> <b>imprimir<\/b><span style=\"font-weight: 400;\"> readpos()<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">time.sleep(<\/span><span style=\"font-weight: 400;\">0.001<\/span><span style=\"font-weight: 400;\">)<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">\u00a0 \u00a0 <\/span> <span style=\"font-weight: 400;\">#break<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\"> \u00a0 <\/span> <span style=\"font-weight: 400;\"><br \/>\n<\/span><b>finalmente<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <b>imprimir<\/b> <span style=\"font-weight: 400;\">\"limpiando GPIO\"<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span> <span style=\"font-weight: 400;\">GPIO.cleanup()<\/span><\/code><\/p>\n<h2><span style=\"font-weight: 400;\">Precio del codificador absoluto<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los precios de los codificadores rotativos absolutos var\u00edan entre $10-15 y m\u00e1s de $1000. Esto se debe principalmente a las caracter\u00edsticas disponibles, la resoluci\u00f3n, el tipo de salida y el protocolo utilizado. Los sensores propietarios de alta resoluci\u00f3n suelen costar m\u00e1s que los sensores sencillos de salida paralela, que pueden adquirirse a un precio inferior.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Conclusi\u00f3n<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres rotativos se utilizan para controlar componentes mec\u00e1nicos giratorios, como ejes y varillas. Los enc\u00f3deres absolutos y los enc\u00f3deres incrementales son los dos tipos de enc\u00f3deres rotativos. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Existen dispositivos especiales de interfaz de codificadores que pueden leer la entrada bruta de un codificador rotatorio y enviar la informaci\u00f3n de velocidad, posici\u00f3n y distancia a un ordenador. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Los enc\u00f3deres compatibles tambi\u00e9n pueden conectarse directamente a PLC y otros ordenadores para obtener los valores brutos y realizar c\u00e1lculos dentro del software.\u00a0<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>Un codificador rotatorio es un dispositivo electromec\u00e1nico que se utiliza para controlar objetos giratorios como ejes. Los codificadores rotatorios pueden utilizarse para medir la posici\u00f3n, la distancia y la velocidad angular del eje giratorio. Existen dos tipos de enc\u00f3deres rotativos: enc\u00f3deres rotativos incrementales y enc\u00f3deres rotativos absolutos. En este art\u00edculo, veremos los enc\u00f3deres absolutos [...]<\/p>","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Absolute Rotary Encoder - OMCH<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/omchsmps.com\/es\/absolute-rotary-encoder\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Absolute Rotary Encoder\" \/>\n<meta property=\"og:description\" content=\"A rotary encoder is an electromechanical device used to monitor rotating objects like shafts and axles. Rotary encoders can be used to measure the position, distance and angular velocity of the rotating shaft. There are two types of rotary encoders: incremental rotary encoders and absolute rotary encoders. In this article, we\u2019ll be looking at absolute [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/omchsmps.com\/es\/absolute-rotary-encoder\/\" \/>\n<meta property=\"og:site_name\" content=\"OMCH\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-13T06:33:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-13T06:47:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/index.jpg\" \/>\n<meta name=\"author\" content=\"niu feng\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"niu feng\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/omchsmps.com\/absolute-rotary-encoder\/\",\"url\":\"https:\/\/omchsmps.com\/absolute-rotary-encoder\/\",\"name\":\"Absolute Rotary Encoder - OMCH\",\"isPartOf\":{\"@id\":\"https:\/\/omchsmps.com\/#website\"},\"datePublished\":\"2021-10-13T06:33:04+00:00\",\"dateModified\":\"2021-10-13T06:47:44+00:00\",\"author\":{\"@id\":\"https:\/\/omchsmps.com\/#\/schema\/person\/47dfe2e43df9368544ea4d6576099eea\"},\"breadcrumb\":{\"@id\":\"https:\/\/omchsmps.com\/absolute-rotary-encoder\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/omchsmps.com\/absolute-rotary-encoder\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/omchsmps.com\/absolute-rotary-encoder\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/omchsmps.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Absolute Rotary Encoder\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/omchsmps.com\/#website\",\"url\":\"https:\/\/omchsmps.com\/\",\"name\":\"OMCH\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/omchsmps.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/omchsmps.com\/#\/schema\/person\/47dfe2e43df9368544ea4d6576099eea\",\"name\":\"niu feng\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/omchsmps.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/37bd6f5d3e88741513890d7b3da8e7c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/37bd6f5d3e88741513890d7b3da8e7c4?s=96&d=mm&r=g\",\"caption\":\"niu feng\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Absolute Rotary Encoder - OMCH","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/omchsmps.com\/es\/absolute-rotary-encoder\/","og_locale":"es_ES","og_type":"article","og_title":"Absolute Rotary Encoder","og_description":"A rotary encoder is an electromechanical device used to monitor rotating objects like shafts and axles. Rotary encoders can be used to measure the position, distance and angular velocity of the rotating shaft. There are two types of rotary encoders: incremental rotary encoders and absolute rotary encoders. In this article, we\u2019ll be looking at absolute [&hellip;]","og_url":"https:\/\/omchsmps.com\/es\/absolute-rotary-encoder\/","og_site_name":"OMCH","article_published_time":"2021-10-13T06:33:04+00:00","article_modified_time":"2021-10-13T06:47:44+00:00","og_image":[{"url":"https:\/\/omchsmps.com\/wp-content\/uploads\/2021\/10\/index.jpg"}],"author":"niu feng","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"niu feng","Tiempo de lectura":"12 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/omchsmps.com\/absolute-rotary-encoder\/","url":"https:\/\/omchsmps.com\/absolute-rotary-encoder\/","name":"Absolute Rotary Encoder - OMCH","isPartOf":{"@id":"https:\/\/omchsmps.com\/#website"},"datePublished":"2021-10-13T06:33:04+00:00","dateModified":"2021-10-13T06:47:44+00:00","author":{"@id":"https:\/\/omchsmps.com\/#\/schema\/person\/47dfe2e43df9368544ea4d6576099eea"},"breadcrumb":{"@id":"https:\/\/omchsmps.com\/absolute-rotary-encoder\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/omchsmps.com\/absolute-rotary-encoder\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/omchsmps.com\/absolute-rotary-encoder\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/omchsmps.com\/"},{"@type":"ListItem","position":2,"name":"Absolute Rotary Encoder"}]},{"@type":"WebSite","@id":"https:\/\/omchsmps.com\/#website","url":"https:\/\/omchsmps.com\/","name":"OMCH","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/omchsmps.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/omchsmps.com\/#\/schema\/person\/47dfe2e43df9368544ea4d6576099eea","name":"niu feng","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/omchsmps.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/37bd6f5d3e88741513890d7b3da8e7c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/37bd6f5d3e88741513890d7b3da8e7c4?s=96&d=mm&r=g","caption":"niu feng"}}]}},"_links":{"self":[{"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/posts\/5097"}],"collection":[{"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/comments?post=5097"}],"version-history":[{"count":0,"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/posts\/5097\/revisions"}],"wp:attachment":[{"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/media?parent=5097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/categories?post=5097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omchsmps.com\/es\/wp-json\/wp\/v2\/tags?post=5097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}