<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1736520531321673521</id><updated>2026-10-27T16:38:09.617-07:00</updated><category term="ANSI C"/><category term="Freescale"/><category term="HCS08"/><category term="Analizador de espectro"/><category term="Audio"/><category term="LCD"/><category term="LEDS"/><category term="VUMETER"/><title type='text'>Candelectronica</title><subtitle type='html'>Un espacio para compartir experiencias de diseño en electronica, software, sistemas, vehículos, etc.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://candelectronica.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://candelectronica.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Candelectrónica</name><uri>http://www.blogger.com/profile/17660727745222938895</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1736520531321673521.post-6723667641429615642</id><published>2012-08-09T16:26:00.000-07:00</published><updated>2012-08-09T16:27:21.191-07:00</updated><title type='text'>Contro Remoto por RF con módulos TLP434A - RLP434 y MC9S08QG8</title><content type='html'>&lt;div id=&quot;google_translate_element&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;script&gt;
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: &#39;es&#39;
  }, &#39;google_translate_element&#39;);
}
&lt;/script&gt;&lt;script src=&quot;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;&gt;
&lt;/script&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Todos alguna vez hemos querido o necesitado activar o controlar algún dispositivo a distancia y para ello requerimos de un &quot;Control Remoto&quot;. Suelen&amp;nbsp;utilizarse&amp;nbsp;mucho los que trabajan a través de IR (infrarrojo) pero a veces necesitamos utilizar un Control Remoto a&amp;nbsp;través&amp;nbsp;de Radio Frecuencia para mejorar el alcance y tener&amp;nbsp;obstáculos&amp;nbsp;en linea de vista.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Se utilizaron dos módulos RF de bajo costo y fácil integración. Uno es el modulo&amp;nbsp;TLP434A &amp;nbsp;que es un transmisor RF sintonizado en la frecuencia de 433.92MHz. El modulo receptor es el&amp;nbsp;RLP434 que&amp;nbsp;también&amp;nbsp;esta sintonizado a la misma frecuencia. Estos&amp;nbsp;módulos&amp;nbsp;trabajan enviando y recibiendo datos de manera serial usando niveles TTL 5V-3V, la velocidad de transmisión recomendada es 4800bps.&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/?8chp6xux3914858&quot;&gt;Descarga la Hoja de Datos&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtXO_Wp88Aef5nazUgSaGQ60ylhxgpUmvYBYDr5A_TJVgoI4578l6FM_RNca4t7VDX2hdEUyHi_yvbG5rqktvLSzvFIY794xMSPrEIZ4AV7HvC725nOxXyVKelcjTq_BgFzMOHRI2MilU/s1600/RLP434.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtXO_Wp88Aef5nazUgSaGQ60ylhxgpUmvYBYDr5A_TJVgoI4578l6FM_RNca4t7VDX2hdEUyHi_yvbG5rqktvLSzvFIY794xMSPrEIZ4AV7HvC725nOxXyVKelcjTq_BgFzMOHRI2MilU/s320/RLP434.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-BKxW1jL2h8EIgqIsCd0xuvwEcpYw8KbBfgFWn3cXuS6I5evCfRF8e_lMIHNcnQiCm98e0Cxfa-hLGTbMAUYgL0A63DpdS7dncEfXSuVzHs_fcx39w1kJNDRbqPtaOT8CqNjHP3yRq0I/s1600/TLP434-2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-BKxW1jL2h8EIgqIsCd0xuvwEcpYw8KbBfgFWn3cXuS6I5evCfRF8e_lMIHNcnQiCm98e0Cxfa-hLGTbMAUYgL0A63DpdS7dncEfXSuVzHs_fcx39w1kJNDRbqPtaOT8CqNjHP3yRq0I/s1600/TLP434-2.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Para este caso, (que es un control remoto), solo se va a transmitir una cadena de caracteres fija que identifique la acción que se quiere realizar, dado que&amp;nbsp;también&amp;nbsp;podemos enviar información con datos que nos interesen (por ejemplo un texto para ser mostrado en un LCD escrito remotamente).&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7VZ9CSjp7uaCD0VY9bN-faLv2OZEH9PrCSxemEhdn46tE0K8FLlf63blwSYEDY6cvRcukzGjPG-Xm_k86N4FEzLk1dWmp8IHVWceSlZBQudvnHpul4IEehZC_HjLXWDR-foo4oforJu0/s1600/ControlRemoto.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;440&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7VZ9CSjp7uaCD0VY9bN-faLv2OZEH9PrCSxemEhdn46tE0K8FLlf63blwSYEDY6cvRcukzGjPG-Xm_k86N4FEzLk1dWmp8IHVWceSlZBQudvnHpul4IEehZC_HjLXWDR-foo4oforJu0/s640/ControlRemoto.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglD4bZj2wEVYq8viBlXNeTy712ElWFtFhJMVRZfQN0gHyF85pfsXaDwxFq8OsPxQcL2q0EUUiGA3dAMUe7Fz-IsOilmrizW1lie2QMHYPuJEKJAKTMzc6k53_tGG6nI1z1fkxHdIjiBC8/s1600/ControlRemotoBrd.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglD4bZj2wEVYq8viBlXNeTy712ElWFtFhJMVRZfQN0gHyF85pfsXaDwxFq8OsPxQcL2q0EUUiGA3dAMUe7Fz-IsOilmrizW1lie2QMHYPuJEKJAKTMzc6k53_tGG6nI1z1fkxHdIjiBC8/s400/ControlRemotoBrd.png&quot; width=&quot;231&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.mediafire.com/?8gdmwwaa3i3ahfw&quot;&gt;Descargar Esquematico y PCB en EAGLE&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
EL diseño se realizo de manera que el transmisor no consuma corriente cuando no este siendo utilizado, para esto se utilizó un MOSFET que entra en modo de conducción al presionar cualquiera de los pulsadores. Los diodos son para evitar que la corriente se devuelva y poder identificar con el microcontrolador cual de los pulsadores fue activado.&lt;/div&gt;
&lt;br /&gt;
El IDE utilizado para compilar y programar el firmware es el Freescale Codewarrior 10.2&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1wL8TkVsCvN9nl1UHI0F96Uu8-hypANKpabSZ0lb304TQGfeuiWkwupIB7M1FISxF_8f7AJa2_vqBgfQ0DsFtDHUeF8pA_Awfs4sWIqOXd-CPEbGn-BdE3EgW5bMUq7cfCznfktCpdS4/s1600/Captura+de+pantalla+de+2012-08-09+16_44_27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;356&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1wL8TkVsCvN9nl1UHI0F96Uu8-hypANKpabSZ0lb304TQGfeuiWkwupIB7M1FISxF_8f7AJa2_vqBgfQ0DsFtDHUeF8pA_Awfs4sWIqOXd-CPEbGn-BdE3EgW5bMUq7cfCznfktCpdS4/s640/Captura+de+pantalla+de+2012-08-09+16_44_27.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZne___3CQFOleNP0vQutn58DV-_YO72BA7PZsaRSHVzEQLpj9JWRtXjBGQo-TmtOjC-sec4mBBe3JKr3Uk2YSBF_5pMYUh3v0kKmfQ6n4edjnw_NgrS7AWb_JNTe4XVPxGCq2KRUzZbg/s1600/Captura+de+pantalla+de+2012-08-09+16_45_00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;358&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZne___3CQFOleNP0vQutn58DV-_YO72BA7PZsaRSHVzEQLpj9JWRtXjBGQo-TmtOjC-sec4mBBe3JKr3Uk2YSBF_5pMYUh3v0kKmfQ6n4edjnw_NgrS7AWb_JNTe4XVPxGCq2KRUzZbg/s640/Captura+de+pantalla+de+2012-08-09+16_45_00.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.mediafire.com/?hok469j29j026q1&quot;&gt;Descargar Codigo Fuente&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/kuhHdqkhlys?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://candelectronica.blogspot.com/feeds/6723667641429615642/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1736520531321673521/6723667641429615642' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/6723667641429615642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/6723667641429615642'/><link rel='alternate' type='text/html' href='http://candelectronica.blogspot.com/2012/08/contro-remoto-por-rf-con-modulos.html' title='Contro Remoto por RF con módulos TLP434A - RLP434 y MC9S08QG8'/><author><name>Candelectrónica</name><uri>http://www.blogger.com/profile/17660727745222938895</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtXO_Wp88Aef5nazUgSaGQ60ylhxgpUmvYBYDr5A_TJVgoI4578l6FM_RNca4t7VDX2hdEUyHi_yvbG5rqktvLSzvFIY794xMSPrEIZ4AV7HvC725nOxXyVKelcjTq_BgFzMOHRI2MilU/s72-c/RLP434.JPG" height="72" width="72"/><thr:total>5</thr:total><georss:featurename>Carrera 7 # 10-1 a 10-99, Bogotá, Cundinamarca, Colombia</georss:featurename><georss:point>4.5980556 -74.0758333</georss:point><georss:box>3.5851516000000005 -75.3392608 5.6109596 -72.8124058</georss:box></entry><entry><id>tag:blogger.com,1999:blog-1736520531321673521.post-7112696858521062233</id><published>2011-12-09T11:39:00.001-08:00</published><updated>2011-12-09T12:49:57.457-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ANSI C"/><category scheme="http://www.blogger.com/atom/ns#" term="Audio"/><category scheme="http://www.blogger.com/atom/ns#" term="Freescale"/><category scheme="http://www.blogger.com/atom/ns#" term="HCS08"/><category scheme="http://www.blogger.com/atom/ns#" term="LEDS"/><category scheme="http://www.blogger.com/atom/ns#" term="VUMETER"/><title type='text'>LED VU METER en un HCS08 de  Freescale</title><content type='html'>&lt;div id=&quot;google_translate_element&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;script&gt;
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: &#39;es&#39;
  }, &#39;google_translate_element&#39;);
}
&lt;/script&gt;&lt;script src=&quot;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;&gt;
&lt;/script&gt;

&lt;span style=&quot;color: yellow;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;Al igual que en el desarrollo anterior, en estre trabajamos una parte analoga&lt;/span&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: justify;&quot;&gt;
(muy sencilla) y una digital.&lt;/div&gt;
&lt;div style=&quot;color: black; text-align: justify;&quot;&gt;
Consiste en realizar el famoso VU METER o visualizador de nivel de audio usando un arreglo de LEDS.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/1HCKX00H7SY?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
Aqui esta el diagrama esquemático del circuito utilizado:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5K5VgjzImTVuHVpfwD90-vQvV7eACRGqGbdFrE83ICLumaXXXOj_Fz5422rxnc7ua_RgL7kNgk8-Z0rpc1XyNm33SIdT4pzKT3v9zyd9PfLLt-ktTvJ6VygYkiTUdyRMe1nsK35UrxOI/s1600/VU+METER.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5K5VgjzImTVuHVpfwD90-vQvV7eACRGqGbdFrE83ICLumaXXXOj_Fz5422rxnc7ua_RgL7kNgk8-Z0rpc1XyNm33SIdT4pzKT3v9zyd9PfLLt-ktTvJ6VygYkiTUdyRMe1nsK35UrxOI/s320/VU+METER.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
El firmware Se divide en dos partes:&lt;br /&gt;
&lt;br /&gt;
1. Muestreo&lt;br /&gt;
2. Visualización&lt;br /&gt;
&lt;br /&gt;
1. Muestreo&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Utilizando un microcontrolador Freescale de la familia HCS08 (8bits) y lenguaje ANSI C, se configura el conversor ADC (10Bits) interno para que tome una muestra cada 14uS. Se toman 10 muestras y se calcula el promedio, se guarda este resultado como un dato de ADC válido para ser procesado por la función de visualización que se encarga de ajustar el valor matemático en un formato coherente para ser mostrado en los LEDS.&lt;/div&gt;
&lt;br /&gt;
2. Visualización&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
La visualización se hace realizando un calculo matemático en donde se escoge un valor constante que va a ser la sensibilidad del nivel mostrado según el valor máximo del ADC.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;code&gt;
num = ((float)8 / (float)512);&lt;br /&gt;
num = (num * (float)valor);&lt;br /&gt;
nument = (unsigned int)num;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
El cálculo es 8 LEDS dividido la constante de sensibilidad multiplicado por el valor leído del ADC. Esto da como resultado un valor entre 0 y 8 para ser visualizado. Pero para que se muestre como una barra de progreso, es necesario cambiar el valor del byte de la siguiente forma:&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;code&gt;
for(i = 0; i &amp;lt; nument; i ++){&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arregloled = arregloled &amp;lt;&amp;lt; 1;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;arregloled = arregloled | 1;&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;

&lt;/code&gt;

&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Se realiza un desplazamiento el número de veces que representa el número calculado.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Ahora, como el cambio del sonido es tan rápido para el ojo humano, esta visualización se realiza cada 5mS, y si el valor leído nuevamente es menor al del ciclo anterior, se decrementa sucesivamente para tener un funcionamiento suave.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Tambien se mantiene el máximo valor leído durante 1.5S para poder mostrar el punto máximo.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Código fuente y proyecto completo para descargar, realizado en IDE Freescale Codewarrior v6.3&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://www.mediafire.com/?a75r11vn8j9ddsu&quot;&gt;Descargar Codigo Fuente&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://candelectronica.blogspot.com/feeds/7112696858521062233/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1736520531321673521/7112696858521062233' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/7112696858521062233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/7112696858521062233'/><link rel='alternate' type='text/html' href='http://candelectronica.blogspot.com/2011/12/led-vu-meter-en-un-hcs08-freescale.html' title='LED VU METER en un HCS08 de  Freescale'/><author><name>Candelectrónica</name><uri>http://www.blogger.com/profile/17660727745222938895</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5K5VgjzImTVuHVpfwD90-vQvV7eACRGqGbdFrE83ICLumaXXXOj_Fz5422rxnc7ua_RgL7kNgk8-Z0rpc1XyNm33SIdT4pzKT3v9zyd9PfLLt-ktTvJ6VygYkiTUdyRMe1nsK35UrxOI/s72-c/VU+METER.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1736520531321673521.post-2854863678702252871</id><published>2011-09-06T14:21:00.000-07:00</published><updated>2013-04-25T13:35:13.218-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Analizador de espectro"/><category scheme="http://www.blogger.com/atom/ns#" term="ANSI C"/><category scheme="http://www.blogger.com/atom/ns#" term="Freescale"/><category scheme="http://www.blogger.com/atom/ns#" term="HCS08"/><category scheme="http://www.blogger.com/atom/ns#" term="LCD"/><title type='text'>Analizador de Espectro de Audio con LCD 8Bit Freescale GT60</title><content type='html'>&lt;div id=&quot;google_translate_element&quot;&gt;
&lt;/div&gt;
&lt;script&gt;
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: &#39;es&#39;
  }, &#39;google_translate_element&#39;);
}
&lt;/script&gt;&lt;script src=&quot;//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit&quot;&gt;
&lt;/script&gt;
&amp;nbsp;Este es un desarrollo el cuál incluye una parte análoga y una digital.&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Básicamente consiste en representar la potencia de la señal de audio separada en frecuencias, para esto necesitamos hacer un muestreo de la señal cumpliendo con el teorema del muestreo&amp;nbsp;&lt;a href=&quot;http://es.wikipedia.org/wiki/Teorema_de_muestreo_de_Nyquist-Shannon&quot;&gt;Teorema de muestreo de Nyquist-Shannon&lt;/a&gt;. Una señal de audio &quot;audible&quot;&amp;nbsp; para el oído humano se encuentra en la banda de 20Hz a 20Khz, en nuestro caso vamos a realizar un muestreo completo de dicha banda. Para esto la frecuencia mínima de muestreo debe ser 40KHz.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Utilizando un microcontrolador &lt;a href=&quot;http://www.freescale.com/&quot;&gt;Freescale&lt;/a&gt; de la familia HCS08 (8bits) y lenguaje ANSI C, configuramos el conversor ADC interno para que tome una muestra cada 25uS (40KHz) y asi aplicar una FFT de 64 puntos en tiempo real (gracias a que el bus interno del microcontrolador corre a 20MHz), dando como resultado 32 niveles que representan las frecuencias desde 20Hz hasta 20KHz con un intervalo de 312.5Hz cada nivel. Como tenemos un display de caracteres de 16 x 2, realizamos un promedio del valor de los niveles contiguos para así obtener como resultado 16 niveles y poder representarlos como barras (caracteres personalizados en LCD de caracteres ver Tutorial).&lt;br /&gt;
&lt;br /&gt;
Demos agradecimientos a&amp;nbsp;&lt;a href=&quot;http://www.jjj.de/crs4/integer_fft.c&quot;&gt;Tom Roberts y  Malcolm Slaney&lt;/a&gt;&amp;nbsp;que publicaron este código de FFT en tiempo real en C el cual he ajustado para ser ejecutado en este microcontrolador.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Esquematico: (Click para agrandar)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQB_b0XGghYY7Rr4qzyASPrpyGVQ2_7hegn0A3ihUxw1kyOga3M3U6UTxmL0N1_7owNDowth_hpaXmxyayaTdtT1_g0yTe16QS8uME4GRyy3-3fjPYIP2sW3XEfGYsmYCurh8rn0Cdp0w/s1600/schematic.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQB_b0XGghYY7Rr4qzyASPrpyGVQ2_7hegn0A3ihUxw1kyOga3M3U6UTxmL0N1_7owNDowth_hpaXmxyayaTdtT1_g0yTe16QS8uME4GRyy3-3fjPYIP2sW3XEfGYsmYCurh8rn0Cdp0w/s320/schematic.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;Video Funcionando:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/dm2jUzTKCWc?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
Archivo S19 para grabar en el microcontrolador &lt;a href=&quot;http://www.mediafire.com/?o21ldmvuln6o7nt&quot;&gt;aqui&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Archivo ZIP del código fuente del proyecto&lt;a href=&quot;http://www.mediafire.com/?tghg0txq5qzmfsr&quot; target=&quot;_blank&quot;&gt; aquí&lt;/a&gt;&lt;br /&gt;
Pueden compartirlo y referenciarlo.&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://candelectronica.blogspot.com/feeds/2854863678702252871/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1736520531321673521/2854863678702252871' title='18 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/2854863678702252871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1736520531321673521/posts/default/2854863678702252871'/><link rel='alternate' type='text/html' href='http://candelectronica.blogspot.com/2011/09/analizador-de-espectro-de-audio-con-lcd.html' title='Analizador de Espectro de Audio con LCD 8Bit Freescale GT60'/><author><name>Candelectrónica</name><uri>http://www.blogger.com/profile/17660727745222938895</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQB_b0XGghYY7Rr4qzyASPrpyGVQ2_7hegn0A3ihUxw1kyOga3M3U6UTxmL0N1_7owNDowth_hpaXmxyayaTdtT1_g0yTe16QS8uME4GRyy3-3fjPYIP2sW3XEfGYsmYCurh8rn0Cdp0w/s72-c/schematic.png" height="72" width="72"/><thr:total>18</thr:total><georss:featurename>Carrera 11 86A # 1 a 99, Bogotá, Departamento de Cundinamarca, Colombia</georss:featurename><georss:point>4.6701892708300186 -74.049911499023438</georss:point><georss:box>4.6068862708300182 -74.128875499023437 4.7334922708300189 -73.970947499023438</georss:box></entry></feed>