<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Raúl Alves Santos &#187; Raspberry</title>
	<atom:link href="https://diarium.usal.es/ralves/tag/raspberry/feed/" rel="self" type="application/rss+xml" />
	<link>https://diarium.usal.es/ralves</link>
	<description>Facultad de Ciencias. Informática y Automática</description>
	<lastBuildDate>Thu, 12 Mar 2026 09:53:35 +0000</lastBuildDate>
	<language>es-ES</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>RaspberryPi + ili9341</title>
		<link>https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/</link>
		<comments>https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/#comments</comments>
		<pubDate>Mon, 12 May 2014 17:04:09 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[ili9341]]></category>
		<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[TFT]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=679</guid>
		<description><![CDATA[Tal y como aparece en muchos proyectos en la Web es posible conectar una pantalla TFT de bajo coste a la RaspberryPi vía SPI. En este caso se va a conectar una pantalla de 2.2&#8243; con el controlador ili9341. Las principales características de esta pantalla son: Operating Voltage:5v/3.3v Size : 67mmX40mm/2.63&#8221;x1.57&#8221; Congroller: ILI9341 Resolution: QVGA [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span style="font-size: small">Tal y como aparece en muchos proyectos en la Web es posible conectar una pantalla TFT de bajo coste a la RaspberryPi vía SPI.</span> <span style="font-size: small">En este caso se va a conectar una pantalla de 2.2&#8243; con el controlador ili9341.</span> <span style="font-size: small"><a href="http://www.aliexpress.com/item/Wholesale-1PC-2-2-Inch-240-320-Dots-SPI-TFT-LCD-Serial-Port-Module-Display-ILI9341/1641459659.html"><img class="aligncenter" alt="" src="https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcTSkBkhZcH4bZyoZZbSLi-9s4y4uSxqzJ12Ptt7fQHgTWK2pkgn" width="282" height="179" /></a></span> <span style="font-size: small">Las principales características de esta pantalla son:</span></p>
<ul>
<li><span style="font-size: small">Operating Voltage:5v/3.3v</span></li>
<li><span style="font-size: small">Size : 67mmX40mm/2.63&#8221;x1.57&#8221;</span></li>
<li><span style="font-size: small">Congroller: ILI9341</span></li>
<li><span style="font-size: small">Resolution: QVGA 240*320 Dots</span></li>
</ul>
<p><span style="font-size: small"> </span> <span style="font-size: small">Las conexiones necesarias entre la RaspberryPi y la pantalla son (RaspberryPi -&gt; Pantalla):</span></p>
<ul>
<li><span style="font-size: small">3.3 v (Pin 1)-&gt; VCC</span></li>
<li><span style="font-size: small">GND (Pin 6) -&gt; GND</span></li>
<li><span style="font-size: small">CE0 (Pin 24) -&gt; CS</span></li>
<li><span style="font-size: small">GPIO23 (Pin 16)-&gt; RESET</span></li>
<li><span style="font-size: small">GPIO25 (Pin 22)-&gt; D/C</span></li>
<li><span style="font-size: small">MOSI (Pin 19)-&gt; SDI (MOSI)</span></li>
<li><span style="font-size: small">CLK (Pin 23)-&gt; SCK</span></li>
<li><span style="font-size: small">GPIO24 (Pin 18)-&gt; LED</span></li>
<li><span style="font-size: small">MISO (Pin 21)-&gt; SDO (MISO)</span></li>
</ul>
<p><span style="font-size: small">La instalación de los driver/modulos se realiza según lo mostrado en:</span></p>
<ul>
<li><span style="font-size: small">https://github.com/notro/fbtft/</span></li>
<li><span style="font-size: small">https://github.com/notro/fbtft/wiki</span></li>
</ul>
<p><span style="font-size: small">Siguiendo los pasos se puede realizar de la manera fácil bajándose una distribución que ya incluya todo, o compilar e instalar manualmente.</span></p>
<ol>
<li>Opciones
<ol>
<li><span style="font-size: small">Instalado ya en una distribución: <a href="http://tronnes.org/downloads/2014-01-07-wheezy-raspbian-2014-03-12-fbtft-master-firmware.zip">2014-01-07-wheezy-raspbian-2014-03-12-fbtft-master-firmware.zip</a></span></li>
<li>Instalando el kernel y el driver
<ol>
<li>
<pre>sudo wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update -O /usr/bin/rpi-update &amp;&amp; sudo chmod +x /usr/bin/rpi-update</pre>
</li>
<li>
<pre># remove or comment out the spi blacklist line
sudo nano /etc/modprobe.d/raspi-blacklist.conf</pre>
</li>
<li>Install
<ol>
<li>FBTFT driver as loadable
<ol>
<li>
<pre>sudo REPO_URI=https://github.com/notro/rpi-firmware rpi-update
sudo shutdown -r now</pre>
</li>
</ol>
</li>
<li>FBTFT driver built into the kernel
<ol>
<li>
<pre>sudo REPO_URI=https://github.com/notro/rpi-firmware BRANCH=builtin rpi-update
sudo shutdown -r now</pre>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
<li><span style="font-size: small">Step-by-Step:</span></li>
<li><span style="font-size: small">https://github.com/notro/fbtft/wiki#step-by-step-using-fbtft</span>
<ol>
<li>
<pre><em style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">sudo modprobe fbtft_device custom name=fb_ili9341 speed=32000000 rotate=90  buswidth=8  gpios=reset:23,led:24,dc:25</em></pre>
<ol>
<li><span style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">http://www.raspberrypi.org/forums/viewtopic.php?t=52882</span></li>
</ol>
</li>
<li>
<pre><em></em>con2fbmap 1 1</pre>
<ol>
<li> http://manpages.ubuntu.com/manpages/gutsy/man1/con2fbmap.1.html</li>
</ol>
</li>
</ol>
</li>
<li><span style="font-size: small">Autoarranque y rotado</span>
<ol>
<li><span style="font-size: small">Driver</span>
<ol>
<li>Add to file: <em style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">/etc/modules</em></li>
<li>
<pre>sudo modprobe fbtft_device custom name=fb_ili9341 speed=32000000 rotate=90  buswidth=8  gpios=reset:23,led:24,dc:25 verbose=0</pre>
<ol>
<li>Ref: https://github.com/notro/fbtft/wiki/fbtft_device</li>
</ol>
</li>
</ol>
</li>
<li><span style="font-size: small">Auto login and startx</span>
<ol>
<li><span style="font-size: small">Auto login:  </span><em><code>/etc/inittab</code></em>
<ol>
<li>
<pre><span style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">#1:2345:respawn:/sbin/getty --noclear 38400 tty1</span></pre>
</li>
<li>
<pre><span style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">1:2345:respawn:/bin/login -f pi tty1 &lt;/dev/tty1 &gt;/dev/tty1 2&gt;&amp;1</span></pre>
</li>
</ol>
</li>
<li><span style="font-size: small">Auto startx: </span> <em><code>/etc/rc.local</code></em>
<ol>
<li><span style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">su -l pi -c &#8220;env FRAMEBUFFER=/dev/fb1 startx &amp;&#8221;</span></li>
</ol>
</li>
<li><span style="font-size: small">Console at boot</span>
<ol>
<li><span style="font-size: small">Add kernel argument to file </span><em><code>/boot/cmdline.txt</code></em>
<ol>
<li><span style="font-family: Consolas, Monaco, monospace;font-size: 12px;line-height: 18px">fbcon=map:10</span></li>
</ol>
</li>
<li><span style="font-size: small">Para cambiar el título de letra</span>
<ol>
<li>
<pre>fbcon=font:MINI4x6</pre>
<ol>
<li><span style="font-size: small">http://www.mjmwired.net/kernel/Documentation/fb/fbcon.txt#72</span></li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</li>
</ol>

<a href='https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/arranque/' title='RaspberryPi + ili9341'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2014/05/Arranque-150x150.png" class="attachment-thumbnail" alt="Arranque" /></a>
<a href='https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/htop/' title='htop'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2014/05/htop-150x150.png" class="attachment-thumbnail" alt="htop" /></a>
<a href='https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/x/' title='X'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2014/05/X-150x150.png" class="attachment-thumbnail" alt="X-Window" /></a>

<p>Aquí otro tutorial: http://www.raspberrypirobot.com/2-2-tft-lcd-display-240&#215;320-for-raspberrypi/ <p><a href="https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/"><em>Pinche aquí para ver el vídeo</em></a></p>   Siguiente paso:</p>
<ul>
<li>Instalar el AdvMame</li>
<li>Hacer lo mismo con una TFT + Touch de bajo coste
<ul>
<li><a href="http://diarium.usal.es/ralves/files/2014/05/TFT_Touch.png"><img class="aligncenter size-full wp-image-699" alt="TFT_Touch" src="http://diarium.usal.es/ralves/files/2014/05/TFT_Touch.png" width="300" height="202" /></a></li>
</ul>
</li>
<li>Añadir las entradas de estas dos pantallas manejadas con arduino</li>
<li>Probar esta pantalla con el ODROID-U3</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2014/05/12/raspberrypi-ili9341/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adaptador wifi TP-LINK TL-WN725N para Raspberry Pi</title>
		<link>https://diarium.usal.es/ralves/2014/01/17/adaptador-wifi-tp-link-tl-wn725n-para-raspberry-pi/</link>
		<comments>https://diarium.usal.es/ralves/2014/01/17/adaptador-wifi-tp-link-tl-wn725n-para-raspberry-pi/#comments</comments>
		<pubDate>Fri, 17 Jan 2014 14:38:47 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[TP-LINK]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=621</guid>
		<description><![CDATA[ACTUALIZACIÓN: Instrucciones en: https://www.raspberrypi.org/forums/viewtopic.php?p=462982 Para ver la versión de linux: uname -a Buscar la versión del driver: 8188eu-20160201.tar.gz 8188eu-v7-20160201.tar.gz (Pi 2) Instalar: wget https://dl.dropboxusercontent.com/u/80256631/8188eu-2015yyzz.tar.gz tar xzf 8188eu-2015yyzz.tar.gz ./install.sh &#160; &#160; Dado que el adaptador TP-LINK (TL-WN725N) no es reconocido directamente por wheezy-raspbian habrá que instalar el driver correspondiente. En la siguiente web (http://www.raspberrypi.org/forum/viewtopic.php?p=479340#p479340) se puede ver el [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>ACTUALIZACIÓN:</p>
<p>Instrucciones en: https://www.raspberrypi.org/forums/viewtopic.php?p=462982</p>
<p><strong>Para ver la versión de linux:</strong></p>
<p>uname -a</p>
<p><strong>Buscar la versión del driver:</strong></p>
<p>8188eu-20160201.tar.gz</p>
<p>8188eu-v7-20160201.tar.gz (Pi 2)</p>
<p><strong>Instalar:</strong></p>
<p>wget https://dl.dropboxusercontent.com/u/80256631/8188eu-2015yyzz.tar.gz<br />
tar xzf 8188eu-2015yyzz.tar.gz<br />
./install.sh</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Dado que el adaptador TP-LINK (<a href="http://www.tp-link.es/products/details/?categoryid=&amp;model=TL-WN725N#down">TL-WN725N</a>) no es reconocido directamente por wheezy-raspbian habrá que instalar el driver correspondiente.</p>
<p>En la siguiente web (http://www.raspberrypi.org/forum/viewtopic.php?p=479340#p479340) se puede ver el procedimiento:</p>
<p><em>&#8220;automatic download and install script&#8221;: version information is fetched directly from the initial post in this topic, and firmware is systematically installed if present in tarball. Use install-8188eu.sh to download and install the proper driver for the rpi you run from. Use install-8188eu.sh -k &lt;kernel build&gt; to select the closest available driver version in case no exact match is found for the local kernel. install-8188eu.sh -l shows a list of available driver versions.</em></p>
<p><em>pi@raspberrypi ~ $ curl -s http://www.raspberrypi.org/phpBB3/download/file.php?id=5536 | tar xz</em></p>
<p><em>pi@raspberrypi ~ $ ./install-8188eu.sh -h</em><br />
<em> usage: install-8188eu.sh [-k|--kernel &lt;kernel build&gt;] [-l|--list]</em></p>
<p><em>pi@raspberrypi ~ $ ./install-8188eu.sh -k</em></p>
<p>Después como en la EDUP:</p>
<p>/etc/network/interfaces  con el WPA-SSID y WPA-PSK correspondiente, funciona directamente</p>
<p><em>auto wlan0</em><br />
<em> iface wlan0 inet dhcp</em><br />
<em> wpa-ssid &#8220;&lt;mySSID&gt;&#8221;</em><br />
<em> wpa-psk &#8220;&lt;MySuperSecretPassword&gt;&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2014/01/17/adaptador-wifi-tp-link-tl-wn725n-para-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MiniAntimorlacoPi (Primera Versión)</title>
		<link>https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/</link>
		<comments>https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/#comments</comments>
		<pubDate>Wed, 11 Sep 2013 18:06:22 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Robótica]]></category>
		<category><![CDATA[SoC (System on Chip)]]></category>
		<category><![CDATA[Raspberry]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=541</guid>
		<description><![CDATA[Siguiendo la tradición del los robots de madera y con el objetivo de emplear la RaspberryPi en un robot se procede a crear a MiniAntimorlacoPi. Componentes necesarios: RaspberryPi + SD USB wifi EDUP http://www.aliexpress.com/snapshot/232335587.html Batería externa USB 5200mAh http://www.amazon.es/Romoss-5200mAh-cargador-Micro-USB-Smartphone/dp/B00BH90LAM Kit de motores y ruedas http://www.aliexpress.com/item/2sets-Smart-Car-Robot-Rubber-Tire-Wheel-N20-DC-Geared-Motor-3V-9V-free-shipping/763323807.html Controladora de motores http://www.aliexpress.com/item/FREE-SHIPPING-L298-L298N-motor-driver-board-motor-drive-module/1053402330.html Detectores de distancia http://www.aliexpress.com/item/Free-shippping-5pcs-Smart-car-robot-E18-D80NK-infrared-obstacle-avoidance-sensor-proximity-switch-3-80cm/905509966.html (Estos para la versión segunda) Conversores de nivel [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Siguiendo la tradición del los robots de madera y con el objetivo de emplear la RaspberryPi en un robot se procede a crear a MiniAntimorlacoPi.</p>
<p><strong>Componentes necesarios:</strong></p>
<ul>
<li>RaspberryPi + SD</li>
<li>USB wifi EDUP <a href="http://www.aliexpress.com/snapshot/232335587.html">http://www.aliexpress.com/snapshot/232335587.html</a></li>
<li>Batería externa USB 5200mAh <a href="http://www.amazon.es/Romoss-5200mAh-cargador-Micro-USB-Smartphone/dp/B00BH90LAM">http://www.amazon.es/Romoss-5200mAh-cargador-Micro-USB-Smartphone/dp/B00BH90LAM</a></li>
<li>Kit de motores y ruedas <a href="http://www.aliexpress.com/item/2sets-Smart-Car-Robot-Rubber-Tire-Wheel-N20-DC-Geared-Motor-3V-9V-free-shipping/763323807.html">http://www.aliexpress.com/item/2sets-Smart-Car-Robot-Rubber-Tire-Wheel-N20-DC-Geared-Motor-3V-9V-free-shipping/763323807.html</a></li>
<li>Controladora de motores <a href="http://www.aliexpress.com/item/FREE-SHIPPING-L298-L298N-motor-driver-board-motor-drive-module/1053402330.html">http://www.aliexpress.com/item/FREE-SHIPPING-L298-L298N-motor-driver-board-motor-drive-module/1053402330.html</a></li>
<li>Detectores de distancia <a href="http://www.aliexpress.com/item/Free-shippping-5pcs-Smart-car-robot-E18-D80NK-infrared-obstacle-avoidance-sensor-proximity-switch-3-80cm/905509966.html">http://www.aliexpress.com/item/Free-shippping-5pcs-Smart-car-robot-E18-D80NK-infrared-obstacle-avoidance-sensor-proximity-switch-3-80cm/905509966.html</a> (Estos para la versión segunda)</li>
<li>Conversores de nivel <a href="http://www.aliexpress.com/item/HOT-SALE-7pc-Logic-Level-Converter-converts-3-3V-5V-TTL-logic-level-conversion-bidirectional-Mutual/858000551.html">http://www.aliexpress.com/item/HOT-SALE-7pc-Logic-Level-Converter-converts-3-3V-5V-TTL-logic-level-conversion-bidirectional-Mutual/858000551.html</a> (Estos para la segunda versión)</li>
<li>Rueda loca</li>
<li>Madera</li>
<li>Batería de 9v</li>
<li>Cables, tornillos, etc.</li>
</ul>
<p>&nbsp;</p>
<p><strong>Montando la plataforma:</strong></p>
<p>Siguiendo el diseño de Antimorlaco con varias capas de madera obtenemos la estructura en la cual se van a montar los motores, ruedas y controladora.</p>
<p>&nbsp;</p>

<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000823/' title='Montando la base 1'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000823-150x150.jpg" class="attachment-thumbnail" alt="Montando la base 1" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000822/' title='Montado la base 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000822-150x150.jpg" class="attachment-thumbnail" alt="Montado la base 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000825/' title='Base base'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000825-150x150.jpg" class="attachment-thumbnail" alt="Base base" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000824/' title='Colocando sensores de proximidad'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000824-150x150.jpg" class="attachment-thumbnail" alt="Colocando sensores de proximidad" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000826/' title='Base'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000826-150x150.jpg" class="attachment-thumbnail" alt="Base" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000827/' title='Probando como ubicación'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000827-150x150.jpg" class="attachment-thumbnail" alt="Probando como ubicación" /></a>

<p>&nbsp;</p>
<p><strong>Probando la controladora con la RaspberryPi:</strong></p>
<p>&nbsp;</p>

<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000821/' title='Probando motores 1'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000821-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 1" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1228/' title='Probando motores 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1228-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1219/' title='Probando motores 3'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1219-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 3" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1217/' title='Piezas'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1217-150x150.jpg" class="attachment-thumbnail" alt="Piezas" /></a>

<p>&nbsp;</p>
<p>En la siguiente dirección se puede encontrar un manual de la controladora de motores:</p>
<p>http://www.mineco.gob.es/stfls/mineco/prensa/ficheros/noticias/2013/130802_APLSCP_2_agosto.pdf</p>
<p>&nbsp;</p>
<p>Como se ve en la siguiente figura no es exactamente la misma controladora pero es muy similar.</p>
<p><img class="aligncenter size-medium wp-image-565" alt="Controladora" src="http://diarium.usal.es/ralves/files/2013/09/Controladora-300x152.jpg" width="300" height="152" /></p>
<p>Para manejar los botones se necesitan 6 salidas (ENA, ENB, IN1, IN2, IN3 e IN4). Estas están agrupadas de tres en tres (ENA-IN1-IN2 y ENB-IN3-IN4). La entradas INx sirven para seleccionar la dirección de giro, y las ENx para habilitar el motor o no, en este caso estas entradas conectadas a una salida PWM permitirían manejar la velocidad de giro.</p>
<p>Para manejar estas 6 señales se van a emplear seis pines de la RaspberryPi (hay que tener en cuenta que las E/S son de 3.3v, aunque en este caso, en principio da lo mismo). Para manejarlos se va a emplear la librería <strong><a title="Wiring Pi" href="http://wiringpi.com/">Wiring Pi</a>:</strong></p>
<p>&#8220;<em><strong>WiringPi</strong></em> is a GPIO access library written in C for the BCM2835 used in the <strong>Raspberry Pi</strong>. It’s released under the <a title="GNU LGPLv3" href="http://www.gnu.org/copyleft/lesser.html" target="_blank">GNU LGPLv3</a> license and is usable from C and C++ and many other languages with suitable wrappers (See below) It’s designed to be familiar to people who have used the Arduino “<em>wiring</em>” system&#8221; <a href="http://wiringpi.com/">http://wiringpi.com/</a></p>
<p>La placa tiene dos conectores, P1 y P5, con los pines GPIO</p>
<p><img class="aligncenter" alt="" src="http://wiringpi.com/wp-content/uploads/2013/03/gpio1.png" width="600" height="295" /></p>
<p><img class="aligncenter" alt="" src="http://wiringpi.com/wp-content/uploads/2013/03/gpio21.png" width="600" height="137" /></p>
<p>Se conectaran directamente los pines de la Raspberry a la controladora (la numeración de pines es la indicada para WiringPi):</p>
<ul>
<li>ENA -&gt; Pin 0</li>
<li>IN1 -&gt; Pin 2</li>
<li>IN2 -&gt; Pin 3</li>
<li>ENB -&gt; Pin 1</li>
<li>IN3 -&gt; Pin 4</li>
<li>IN4 -&gt; Pin 5</li>
</ul>
<p><a href="http://diarium.usal.es/ralves/files/2013/09/P1000821.jpg"><img class="aligncenter size-medium wp-image-552" alt="P1000821" src="http://diarium.usal.es/ralves/files/2013/09/P1000821-300x156.jpg" width="300" height="156" /></a></p>
<p>Para probar el funcionamiento, una vez conectado todo, se alimenta la placa controladora con una fuente de 9v y habrá que hacer un programa en C para activar y desactivar las distintas salidas. Para ello se va a emplear la librería WiringPi, para instalarla hay que seguir los siguientes pasos (<a href="http://wiringpi.com/download-and-install/">http://wiringpi.com/download-and-install/</a>)</p>
<ol>
<li>sudo apt-get install git-core</li>
<li>sudo apt-get update</li>
<li>sudo apt-get upgrade</li>
<li>git clone git://git.drogon.net/wiringPi</li>
<li>cd wiringPi</li>
<li>git pull origin</li>
<li>cd wiringPi</li>
<li>./build</li>
</ol>
<p>Una vez hecho esto hay gran variedad de ejemplos de demostración de uso de las GPIO, PWM, I2C, etc.</p>
<p>Para probar si está bien instalado:</p>
<ol>
<li>cd ./wiringPi/gpio</li>
<li>./pintest</li>
<li>./gpio readall</li>
</ol>
<p>Para la prueba inicial basta con realizar un programa que maneje los seis pines:</p>
<ol>
<li>Declarar la librería: #include &lt;wiringPi.h&gt;</li>
<li>Inicializar: wiringPiSetup();</li>
<li>Configurar los pines: pinMode(ENA,OUTPUT);</li>
<li>Escribir un valor: digitalWrite(ENA, HIGH);</li>
</ol>
<p>Para realizar una prueba modificando la velocidad de giro de los motores se va a emplear PWM, como solamente se dispone de un PWM hardware se va a emplear PWM software, para ello:</p>
<ol>
<li>Declarar adicionalmente la librería: #include &lt;softPwm.h&gt;</li>
<li>Iniciar los PEM software: softPwmWrite(ENA, 0, RANGO);</li>
<li>Dar un valor: softPwmWrite(EN1, velocidad);</li>
</ol>
<p>&nbsp;</p>
<p>Con esto, y unas funciones para pasar de valores de velocidad de avance y giro a valores de PWM y determinar el sentido de giro, ya se podrían controlar los motores.</p>
<p>&nbsp;</p>
<p><strong>Todo junto:</strong></p>
<p>Ahora, para ver como se mueve la plataforma, hay que montar el soporte junto a la RaspberryPi y las baterías.</p>

<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000827/' title='Probando como ubicación'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000827-150x150.jpg" class="attachment-thumbnail" alt="Probando como ubicación" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000832/' title='Robot montado'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000832-150x150.jpg" class="attachment-thumbnail" alt="Robot montado" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000831/' title='Robot montado 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000831-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000833/' title='Robot montado 4'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000833-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 4" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000834/' title='Robot montado 3'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000834-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 3" /></a>

<p>&nbsp;</p>
<p><strong> Primera prueba:</strong></p>
<p>La primera prueba realizada se ha hecho siguiendo lo visto anteriormente, un programa que según se pulsen las teclas O,P,Q,A se mueva el robot, y pulsando N y M que se permita variar la velocidad. Con este programa se ha probado los motores, al aire, y después para manejarlo de forma remota simplemente se ha iniciado una conexión ssh remota y se ha arrancado el programa desde el terminal.</p>
<p><strong>Segunda prueba:</strong></p>
<p>La segunda prueba realizada en vez de arrancar un terminal remoto&#8230; lo que se ha creado es un servidor al cual se puede conectar un cliente y mandarle órdenes de movimiento por un socket. En este caso se ha respetado el protocolo empleado en Antimorlaco, con lo que el mismo programa cliente podría conectarse a los dos robots sin necesidad de modificaciones.</p>
<p>Reutilizando el software existente para Antimorlaco se ha creado el servidor (RaspberryPi-Linux) y el cliente (Windows 7).</p>
<p>&nbsp;</p>
<p><em id="__mceDel"><a href="http://diarium.usal.es/ralves/files/2013/09/WindowsAntimorlacoPi.jpg"><img class="aligncenter size-medium wp-image-548" alt="WindowsAntimorlacoPi" src="http://diarium.usal.es/ralves/files/2013/09/WindowsAntimorlacoPi-300x121.jpg" width="300" height="121" /></a></em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000835/' title='Andando'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000835-150x150.jpg" class="attachment-thumbnail" alt="Andando" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000837/' title='Familia Antimorlaco'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000837-150x150.jpg" class="attachment-thumbnail" alt="Familia Antimorlaco" /></a>

<p>Y con esto ya está preparado para la segunda versión en la que se añadirán los detectores de proximidad y seguidores de líneas.</p>
<p>&nbsp;</p>
<p><strong>Galería completa:</strong></p>

<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/controladora-3/' title='Controladora'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/Controladora-150x150.jpg" class="attachment-thumbnail" alt="Controladora" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1217/' title='Piezas'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1217-150x150.jpg" class="attachment-thumbnail" alt="Piezas" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000821/' title='Probando motores 1'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000821-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 1" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000823/' title='Montando la base 1'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000823-150x150.jpg" class="attachment-thumbnail" alt="Montando la base 1" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000822/' title='Montado la base 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000822-150x150.jpg" class="attachment-thumbnail" alt="Montado la base 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000825/' title='Base base'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000825-150x150.jpg" class="attachment-thumbnail" alt="Base base" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000824/' title='Colocando sensores de proximidad'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000824-150x150.jpg" class="attachment-thumbnail" alt="Colocando sensores de proximidad" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000826/' title='Base'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000826-150x150.jpg" class="attachment-thumbnail" alt="Base" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000827/' title='Probando como ubicación'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000827-150x150.jpg" class="attachment-thumbnail" alt="Probando como ubicación" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1228/' title='Probando motores 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1228-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000828/' title='Conectado Raspberry'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000828-150x150.jpg" class="attachment-thumbnail" alt="Conectado Raspberry" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/dsc_1219/' title='Probando motores 3'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/DSC_1219-150x150.jpg" class="attachment-thumbnail" alt="Probando motores 3" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/windowsantimorlacopi/' title='WindowsAntimorlacoPi'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/WindowsAntimorlacoPi-150x150.jpg" class="attachment-thumbnail" alt="WindowsAntimorlacoPi" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000832/' title='Robot montado'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000832-150x150.jpg" class="attachment-thumbnail" alt="Robot montado" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000831/' title='Robot montado 2'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000831-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 2" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000834/' title='Robot montado 3'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000834-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 3" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000835/' title='Andando'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000835-150x150.jpg" class="attachment-thumbnail" alt="Andando" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000837/' title='Familia Antimorlaco'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000837-150x150.jpg" class="attachment-thumbnail" alt="Familia Antimorlaco" /></a>
<a href='https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/p1000833/' title='Robot montado 4'><img width="150" height="150" src="http://diarium.usal.es/ralves/files/2013/09/P1000833-150x150.jpg" class="attachment-thumbnail" alt="Robot montado 4" /></a>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/09/11/miniantimorlacopi-primera-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Probando el bus I2C de la Raspberry Pi</title>
		<link>https://diarium.usal.es/ralves/2013/06/25/probando-el-bus-i2c-de-la-raspberry-pi/</link>
		<comments>https://diarium.usal.es/ralves/2013/06/25/probando-el-bus-i2c-de-la-raspberry-pi/#comments</comments>
		<pubDate>Tue, 25 Jun 2013 11:51:13 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[i2c]]></category>
		<category><![CDATA[Raspberry]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=419</guid>
		<description><![CDATA[Se ha probado la comunicación vía I2C con la placa controladora de motores MD25 y se está intentando con un anillo de sónares SRF08. En el caso de no tener la distribución Occidentalis que ya tiene el soporte I2C activado, se deben de seguir una serie de pasos (sacados de aquí): Editar el fichero /etc/modprobe.d/raspi-blacklist.conf y eliminar [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Se ha probado la comunicación vía I2C con la placa controladora de motores <a href="http://www.robot-electronics.co.uk/htm/md25i2c.htm">MD25</a> y se está intentando con un anillo de sónares <a href="http://www.robot-electronics.co.uk/htm/srf08tech.shtml">SRF08</a>.</p>
<p>En el caso de no tener la distribución <a href="http://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2">Occidentalis</a> que ya tiene el soporte I2C activado, se deben de seguir una serie de pasos (sacados de <a href="http://www.robot-electronics.co.uk/files/rpi_i2c_setup.doc">aquí</a>):</p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">Editar el fichero </span><em style="font-size: 13px;line-height: 19px">/etc/modprobe.d/raspi-blacklist.conf y </em><span style="font-size: 13px;line-height: 19px">eliminar de la lista </span><em style="font-size: 13px;line-height: 19px">i2c-bcm2708 :</em>
<ul>
<li><span style="font-size: 13px;line-height: 19px">$sudo nano /etc/modprobe.d/rasp-backlist.conf</span></li>
<li><span style="font-size: 13px;line-height: 19px">#blacklist i2c-bcm2708</span></li>
</ul>
</li>
<li><span style="font-size: 13px;line-height: 19px">Reiniciar:</span>
<ul>
<li><span style="font-size: 13px;line-height: 19px">$sudo reboot</span></li>
</ul>
</li>
<li><span style="font-size: 13px;line-height: 19px">Activar los puertos:</span>
<ul>
<li><span style="font-size: 13px;line-height: 19px">$sudo modprobe i2c-dev</span></li>
</ul>
</li>
<li><span style="font-size: 13px;line-height: 19px">Ver si está disponibles:</span>
<ul>
<li><span style="font-size: 13px;line-height: 19px">$ls /dev/i2c*</span></li>
</ul>
</li>
<li><span style="font-size: 13px;line-height: 19px">Dar permisos:</span>
<ul>
<li><span style="font-size: 13px;line-height: 19px">$sudo chmod o+rw /dev/i2c*</span></li>
</ul>
</li>
</ul>
<p>Para buscar los dispositivos conectados al bus I2C:</p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">sudo i2cdetect -y 1</span></li>
<li>i2cget e i2cset</li>
</ul>
<p>Más información en <a href="http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c">http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/06/25/probando-el-bus-i2c-de-la-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Probando adaptador wifi EDUP en Raspberry Pi</title>
		<link>https://diarium.usal.es/ralves/2013/06/25/probando-adaptador-wifi-edup-en-raspberry-pi/</link>
		<comments>https://diarium.usal.es/ralves/2013/06/25/probando-adaptador-wifi-edup-en-raspberry-pi/#comments</comments>
		<pubDate>Tue, 25 Jun 2013 11:49:56 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[EDUP]]></category>
		<category><![CDATA[Raspberry]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=425</guid>
		<description><![CDATA[Siguiendo los pasos de: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=46&#38;t=22868 he probado el adaptador wifi EDUP con chip Realtek RTL8188CUS 802.11n: &#8220;Free shipping! EDUP EP-N8508GS USB 150 Mbps Wireless Wifi Mini 150M Network Card 802.11 n/g/b for For Raspberry Pi 512M Model B&#8221; http://www.aliexpress.com/snapshot/232335587.html y una vez configurado /etc/network/interfaces  con el WPA-SSID y WPA-PSK correspondiente, funciona directamente auto wlan0 iface [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Siguiendo los pasos de:</p>
<p><a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=46&amp;t=22868">http://www.raspberrypi.org/phpBB3/viewtopic.php?f=46&amp;t=22868</a></p>
<p>he probado el adaptador wifi EDUP con chip Realtek RTL8188CUS 802.11n:</p>
<p>&#8220;Free shipping! EDUP EP-N8508GS USB 150 Mbps Wireless Wifi Mini 150M Network Card 802.11 n/g/b for For Raspberry Pi 512M Model B&#8221;</p>
<p><a href="http://www.aliexpress.com/snapshot/232335587.html">http://www.aliexpress.com/snapshot/232335587.html</a></p>
<p>y una vez configurado /etc/network/interfaces  con el WPA-SSID y WPA-PSK correspondiente, funciona directamente</p>
<p style="padding-left: 30px">auto wlan0<br />
iface wlan0 inet dhcp<br />
wpa-ssid &#8220;&lt;mySSID&gt;&#8221;<br />
wpa-psk &#8220;&lt;MySuperSecretPassword&gt;&#8221;</p>
<p>Ahora toca hacer lo mismo para la distribución ChameleonPi y también funciona.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/06/25/probando-adaptador-wifi-edup-en-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Probando GPIO de la Raspberry Pi</title>
		<link>https://diarium.usal.es/ralves/2013/06/25/probando-gpio-de-la-raspberry-pi/</link>
		<comments>https://diarium.usal.es/ralves/2013/06/25/probando-gpio-de-la-raspberry-pi/#comments</comments>
		<pubDate>Tue, 25 Jun 2013 11:48:55 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[GPIO]]></category>
		<category><![CDATA[Raspberry]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=413</guid>
		<description><![CDATA[Primera prueba con de la interfaz GPIO de la Raspberry Pi. &#160; Para hacerla he empleado la librería de Mike McCauley del chip  bcm2835: http://www.airspayce.com/mikem/bcm2835/ Siguiendo los pasos de: http://engineerdemos.blogspot.com.es/2012/08/snes-on-rapsberry-pi.html Y para probarla con el ejemplo de: http://www.raspberry-projects.com/pi/programming-in-c/c-libraries/bcm2835-by-mike-mccauley &#160; En vez de usar un LED he empleado un analizador lógico de bajo coste y el programa [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Primera prueba con de la interfaz GPIO de la Raspberry Pi.</p>
<p>&nbsp;</p>
<p>Para hacerla he empleado la librería de Mike McCauley del chip  bcm2835:</p>
<p style="padding-left: 30px"><a href="http://www.airspayce.com/mikem/bcm2835/">http://www.airspayce.com/mikem/bcm2835/</a></p>
<p><span style="font-size: 13px;line-height: 19px">Siguiendo los pasos de:</span></p>
<p style="padding-left: 30px"><a href="http://engineerdemos.blogspot.com.es/2012/08/snes-on-rapsberry-pi.html">http://engineerdemos.blogspot.com.es/2012/08/snes-on-rapsberry-pi.html</a></p>
<p><span style="font-size: 13px;line-height: 19px">Y para probarla con el ejemplo de:</span></p>
<p style="padding-left: 30px"><a href="http://www.raspberry-projects.com/pi/programming-in-c/c-libraries/bcm2835-by-mike-mccauley">http://www.raspberry-projects.com/pi/programming-in-c/c-libraries/bcm2835-by-mike-mccauley</a></p>
<p>&nbsp;</p>
<p>En vez de usar un LED he empleado un analizador lógico de bajo coste y el programa Saleae:</p>
<p style="padding-left: 30px"><a href="http://www.aliexpress.com/snapshot/213129247.html">http://www.aliexpress.com/snapshot/213129247.html</a></p>
<p style="padding-left: 30px"><a href="http://www.saleae.com/logic">http://www.saleae.com/logic</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/06/25/probando-gpio-de-la-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Puerto serie con la Raspberry Pi</title>
		<link>https://diarium.usal.es/ralves/2013/06/25/puerto-serie-con-la-raspberry-pi/</link>
		<comments>https://diarium.usal.es/ralves/2013/06/25/puerto-serie-con-la-raspberry-pi/#comments</comments>
		<pubDate>Tue, 25 Jun 2013 11:45:17 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Puerto Serie]]></category>
		<category><![CDATA[Raspberry]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=402</guid>
		<description><![CDATA[Pruebas iniciales de comunicación con placas vía serie (niveles TTL (3.3v)): Controladora de servos: http://www.aliexpress.com/snapshot/203414667.html Controladora de motores: http://www.robot-electronics.co.uk/htm/md25tech.htm Pantalla OLED: http://www.digole.com/index.php?productID=545 Y para que no se me olviden los pasos&#8230;&#8230;. &#160; 1º: Habilitar el puerto serie (Sacado de http://www.cooking-hacks.com/index.php/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge) 4.2 Enabling the UART port: The following steps (based on a clean 2012-07-15-wheezy-raspbian install 0. Open a terminal on [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Pruebas iniciales de comunicación con placas vía serie (niveles TTL (3.3v)):</p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">Controladora de servos: <a href="http://www.aliexpress.com/snapshot/203414667.html">http://www.aliexpress.com/snapshot/203414667.html</a></span></li>
<li><span style="font-size: 13px;line-height: 19px">Controladora de motores: <a href="http://www.robot-electronics.co.uk/htm/md25tech.htm">http://www.robot-electronics.co.uk/htm/md25tech.htm</a></span></li>
<li><span style="font-size: 13px;line-height: 19px">Pantalla OLED: <a href="http://www.digole.com/index.php?productID=545">http://www.digole.com/index.php?productID=545</a><br />
</span></li>
</ul>
<p>Y para que no se me olviden los pasos&#8230;&#8230;.</p>
<p>&nbsp;</p>
<p><strong>1º: Habilitar el puerto serie (Sacado de <a href="http://www.cooking-hacks.com/index.php/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge">http://www.cooking-hacks.com/index.php/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge</a>)</strong></p>
<address style="padding-left: 30px">4.2 Enabling the UART port:</address>
<address style="padding-left: 30px">The following steps (based on a clean 2012-07-15-wheezy-raspbian install</address>
<address style="padding-left: 30px">0. Open a terminal on the Raspberry, or connect to Raspberry Pi through SSH.1. Make a backup of the /boot/cmdline.txt file.<br />
sudo cp /boot/cmdline.txt /boot/cmdline_backup.txt2. Edit /boot/cmdline.txt file:<br />
sudo vi /boot/cmdline.txtThis file contains:<br />
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 $Remove the parameters that reference the UART serial port (ttyAMA0):<br />
dwc_otg.lpm_enable=0 console=tty1 $3. Comment next line in /etc/inittab:<br />
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt1004. Reboot Raspberry Pi<br />
sudo reboot</address>
<p> <strong>2º Dar permisos (Sacado de <a href="http://muyraspi.blogspot.com.es/2013/03/configuracion-de-la-uart.html">http://muyraspi.blogspot.com.es/2013/03/configuracion-de-la-uart.html</a>)</strong></p>
<address style="padding-left: 30px">sudo chmod a+rw /dev/ttyAMA0</address>
<address style="padding-left: 30px">sudo usermod -a -G tty pi</address>
<p> <strong>3º Librería de C para puerto serie (Sacado de  Dr. Juan Gonzalez Gomez. (C) January, 2009)</strong></p>
<address style="padding-left: 30px"> <a href="http://svn.iearobotics.com/serial/">http://svn.iearobotics.com/serial/</a> </address>
<p><strong>4º Conectando una pantalla serie</strong></p>
<p style="padding-left: 30px"><a href="http://www.digole.com/index.php?productID=545">http://www.digole.com/index.php?productID=545</a></p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/06/25/puerto-serie-con-la-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nueva adquisición: Raspberry Pi Rev2</title>
		<link>https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/</link>
		<comments>https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/#comments</comments>
		<pubDate>Tue, 25 Jun 2013 11:43:11 +0000</pubDate>
		<dc:creator>ralves</dc:creator>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[SoC (System on Chip)]]></category>
		<category><![CDATA[Commodore]]></category>
		<category><![CDATA[Raspberry]]></category>
		<category><![CDATA[SoC]]></category>

		<guid isPermaLink="false">http://diarium.usal.es/ralves/?p=381</guid>
		<description><![CDATA[Hace tiempo ya me llegó mi Raspberry Pi Rev B, en la siguiente página se puede ver sus características http://es.wikipedia.org/wiki/Raspberry_Pi &#160; Ahora toca: Probar el módulo GPIO, Serie, I2C&#8230;&#8230;&#8230;. e intentar montar un Robot (AntimorlacoPi) con ella Montar una máquina recreativa con ella. &#160; Curiosidades: VC 314 Raspberry PI in a Commodore 64 Supercomputador con [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hace tiempo ya me llegó mi Raspberry Pi Rev B, en la siguiente página se puede ver sus características</p>
<p><a href="http://es.wikipedia.org/wiki/Raspberry_Pi">http://es.wikipedia.org/wiki/Raspberry_Pi</a></p>
<p>&nbsp;</p>
<p><strong style="font-size: 13px;line-height: 19px">Ahora toca:</strong></p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">Probar el módulo GPIO, Serie, I2C&#8230;&#8230;&#8230;. e intentar montar un Robot (AntimorlacoPi) con ella</span></li>
<li><span style="font-size: 13px;line-height: 19px">Montar una máquina recreativa con ella.</span></li>
</ul>
<p>&nbsp;</p>
<p><strong>Curiosidades:</strong></p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">VC 314 Raspberry PI in a Commodore 64</span></li>
</ul>
<p><a href="https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/"><em>Pinche aquí para ver el vídeo</em></a></p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">Supercomputador con Raspberry PI</span></li>
</ul>
<p><a href="https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/"><em>Pinche aquí para ver el vídeo</em></a></p>
<ul>
<li><span style="line-height: 12.997159004211426px">ChameleonPi: Old Computers, classic games, consoles and arcade on our Raspberry Pi</span></li>
</ul>
<p><a href="https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/"><em>Pinche aquí para ver el vídeo</em></a></p>
<p>&nbsp;</p>
<p><strong>Enlaces de interés:</strong></p>
<ul>
<li><span style="font-size: 13px;line-height: 19px">Página oficial: <a href="http://www.raspberrypi.org/">http://www.raspberrypi.org/</a></span></li>
<li><span style="font-size: 13px;line-height: 19px">La comunidad hispana de Raspberry Pi: <a href="http://www.raspberrypi-spanish.es/">http://www.raspberrypi-spanish.es/</a></span></li>
<li><span style="font-size: 13px;line-height: 19px">Computer Laboratory (University of Cambridge): <a href="http://www.cl.cam.ac.uk/projects/raspberrypi/">http://www.cl.cam.ac.uk/projects/raspberrypi/</a></span></li>
<li><span style="font-size: 13px;line-height: 19px">Adafruit learning system: <a href="http://learn.adafruit.com/category/raspberry-pi">http://learn.adafruit.com/category/raspberry-pi</a></span></li>
<li>Revistas: <a href="http://www.themagpi.com/en/">http://www.themagpi.com/</a></li>
<li>ChemeleonPi: <a href="http://chameleon.enging.com/">http://chameleon.enging.com/</a></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://diarium.usal.es/ralves/2013/06/25/nueva-adquisicion-raspberry-pi-rev2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.480 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2026-04-06 09:27:57 -->
