Month 2 -I’ll have a Raspberry Pi and an Arduino Frappuchino, please.

I’ll take a Raspberry Pi and an Arduino Frappachino please. Tomare un Raspberry Pi y un Frappachino Arduino por favor

I’m going to concentrate more heavily on my specific project that I’ve been tasked with in this blog entry, partly because that’s what my focus has shifted towards, and the other because in October I wasn’t able to visit the community due to a biking accident. More on that later.

Concentrare mas con mi proyecto especfico que es mi trabajo principal adentro este blog, en parte porque mi focus ha cambiado, y tambien porque en Octubre, no pude a visitar la communidad por un accidente de bici. 

After my first month making two turbines, I started working on my own project, the design and construction of a remote monitor for the turbines. When I was in the UK, I started to look at options, if other people had already made a monitor for similar applications. During my research I came across a movement or community called ‘makers’ where people can make prototypes of different things, such as a video games console that played retro games from Super Nintendo or Mega Drive using a small computer called a Rasperry Pi. This computer is super small, but can be used for many different projects. Also another piece of equipment people are using is something called an Arduino, which is a micrcontroller which acts as a brain for electronic projects. Perhaps you’ve heard of an Arduino Uno or a Raspberry Pi (which are big in schools, as a cheap and simple way as an introduction for computer coding for children but is very versatile), the big difference between them is, a Raspberry Pi is a full blown computer, but is a little less than the size of your wallet. It runs an operating system called Linux, which coming from a Windows background takes a little getting used to, but its manageable, it has an Ethernet port, plus depending on the model several USB ports to connect a keyboard, mouse, Wifi dongle and other USB enabled devices, also a HDMI port for connecting a monitor. Whereas the Arduino is not a computer, its designed to receive signals from a wide selection of sensors, do calculations, take in signals from buttons, turn on LEDS for indication amongst other things. You write your project code, upload it and the chip runs the code in a loop so long as it’s receiving power.


Raspberry Pi – Wallet sized Computer


Esta computadora es Super pequeño pero puede hacer muchas cosas. También hay otro equipo que muchos personas están usando una llama arduino, es un microcontrolador que es el cerebro para los proyectos electrónicos. Quizas, ha escuchado de un Arduino Uno o un Raspberry Pi (que son grandes en escuelas, porque son muy económicos y sencillos de una ensenar codificacion de los ninos), la diferencia entre los dos, es el Raspberry Pi es una computadora completa. Tienen un tamanillo que es un poquito menos que su billetera, pero es un sistema operativo que se llama Linux, que viene de un fondo de Windows es un poco estrano, pero posible. El Pi tiene coneccion de ethernet, algunos USB y un HDMI para conectar monitores. En el otro lado del Arduino no es una computadora, se diseñan un receptor de selección de ancho de sensores, hacen cálculos, reciben signales de tonos, LED de emprender para indicar, y otras cosas. Usted escribe su código de proyecto, cargarlo y el chip expulsar el código en un bucle siempre y cuando reciba energía.

Electronic Shopping in Lima / Electrónica Compras en Lima

There were different options but the most important aspect, was to try and obtain, all the parts within Peru, because WindAid regularly have problems with importation of components, (all of the control equipment for the Wind Turbine is currently imported from China, they are also working on building their own controller to avoid the cost and complication of importing controllers). So ideally all the parts for my project need to be found in Peru, so as further models can be made, and hopefully this will be adopted as part of their standard monthly build that goes along with fabrication of the wind turbine. Early in October, I headed to Lima in search of various electronic parts and components that we’d need, my colleague Rishi had already scoped out suppliers in the capital, so it made my job much simplier. The trip also tied in nicely to met Jessica, one of the three founders of the WindAid Institute, who was based in Lima. We met up and headed to the Paruro district, which was great fun, it’s the electronic shopping centre of Lima, but along with flatscreen TV and washing machines, there are a collection of shops selling at component and part level various electronics. I had a great time, searching for different parts for the project, that in Europe or Northern America, I would have just ordered online probably from amazon and get it delivered, but instead it was searching the different stalls and asking questions to see if the parts would be suitable for the project. I got nearly everything I needed, more than enough to be getting started with. The rest of the weekend trip, I caught up with Isobelle another EWB volunteer based in Lima working for another NGO Light Up the World, and ate good food that Lima has to offer.

Hubo different opciones pero la aspecto más importante es a tratar a obtener todo los partes adentro de Perú, porque WindAid ya tiene problemas con la importación del equipo, entonces idealmente todos los partes de mi proyecto necesitamos encontrar en Perú. Hay algunos mercados electrónica en Trujillo pero no tienen todos los partes necesite. Entonces en octubre fui a lima con una lista de compras partes y componentes que necesitaramos, mi colega Rishi, ya encontro algunos tiendas en la capital entonces mi trabjao estaba un poc mas facil. Durante el viaje encontre Jessica, uno de los fondodoras del instituo WindAid. Nosotros fuimos al districto Pararuo, estaba mucho divertido, es el centro de compras para electronicos en Lima, pero al lado de televisones y lavandora, hay un gran coleccion de tiendas que se vende componentes y partes de varios electronicos. Tuve un gran tiempo buscando por las partes, que en Europa or American Norte, probablemente solo necesito perdir por un pagina de web, quizas Amazon, todavia tuvimos buscando los differentes puestos de venta y pregunatmos a tendero si los partes era adecuado para el proyecto. Para el otro partes del mi viaje, reuni con Isobelle otra voluntario de EWB, que trabajas en Lima por otra ONG se llama Light Up the World (Illumina el Mundo), y tambien comi la buena comida que hay en Lima.

Project Development / Desarollo del Proyecto

Before my placement I purchased a starter Arduino pack from amazon, to try and get to grips with equipment I’d likely be using, and experimented with simple projects available on the web, a quick google search of Arduino Uno project will provide numerous results. Whilst initially I hadn’t envisaged using a Raspberry Pi, after further research it seemed fairly evident that the Pi would serve the project well, but this was to be steep learning curve, I plan on writing a step by step walkthrough on how to replicate the monitor we’ve developed at WindAid, so others can use this as a model and improve upon it. Not say there aren’t guides already on the web (the Open Energy Monitor project has lots of useful information, but I found it to be useful in the later parts of the project and a bit advanced to begin with) other projects on instructables (website that teaches you how to do all sorts of projects, not just electronics), or hackster websites assume an intermediate or higher knowledge base or when I was prototyping they simply didn’t work, so hopefully the guide I write will save the pain and hours of confusion I went through and am currently going through with some aspects. As at times, it isn’t always straight forward. The best example would be getting the Raspberry Pi to connect to the internet via a USB modem or dongle, the modem dongle contains a regular SIM card, and can be used to connect to the internet. Most USB devices are plug and play with Raspberry Pi (mouse, keyboard, external hard drive), this however is not one of them, and a bit of pig to setup and get a reliable connection (January’s big battle I’m predicting)


Arduino Uno – Very popular Microcontroller in the makers scene


Antes de mi, compre un paquete de Arduino desde Amazon, traté de aprender, que probablemente usaremos y hice experimentos con proyectos faciles que estan disponibles para el web. Si buscas en Google, por ‘Arduino Uno projects’ teneras muchos resultados. Al inicio no pense que usaremos un Raspberry Pi, pero despue de investigaciones se parece que un Pi seria muy util, pero fue un dificil para aprender a usarlo al initio. Tengo planes a escribir un guia por replicando el monitor que hemos desarrollado en WindAid, asi que otra personas pueden usarlo como un modela y mejorar el proyecto. Hay un montón de información disponible un gran ejemplo es el ‘Open Energy Monitor’ que tiene mucho informacion, pero al principio los partes son muy dificil a entender, proyectos que yo use como instructables or assumieron un nivel intermedio or mas o simplemente no funcion. Entonces esper que el guia que voy a escribir van a quedar mucho tiempo y frustraciones. Algunos veces para trabajo con el Pi no es sensillo, el mejor ejemplo puedo dar es a hacer un connexcion del internet usando un modem de USB que tiene un SIM de movil. Es un poco dificil a hacerlo, y ademas a maintainear un buen connecion (el gran proyecto de Enero creo).

Remote Monitor Building Blocks / Partes de Monitor Remoto

Sensor Interface / Interfaz de sensores

The monitor is going to have a few different sensors connected to it, current, voltage, wind speed, and potentially wind direction. For those that are not familiar, or it’s been a while since your physics class in school, voltage (measured in Volts, symbol V) can be thought of as the pressure of electricity in the system, and current (measured in Amps, symbol I) like the flow of electricity, and the combination of these two aspects gives electrical power. So by multiplying the voltage by the current that the turbine is producing we can measure the power (measured in Watts, symbol P, P=I x V). Or in another circuit the load circuit (lights and other electrical loads) we can monitor the consumption of the home. An anemometer will measure the wind speed, the faster the cups of the anemometer spin, the more counts the sensor observes, giving a calculation of wind speed. All these sensor produce a low power voltage signal from 0V to 5V, for example the voltage sensor could be able to detect voltages from 0V (0V sensor output) up to 48V (5V sensor output), 24V would give the sensor output of 2.5V. We then input these sensors to a device that can receive and process the signal, that’s the job of the microcontroller, I’ll be using an Arduino Uno to do this. Mircocontrollers have built in analogue to digital converters (ADC), and the value returned by the ADC is 10-bit value, which means a range from 0 -1023 (1024 discreet steps if you like). So the 2.5V example would give us a value of 511 from the ADC. Calculations can then been done in the Arduino code so the 511 value represents 24V, and that’s what’s displayed on the an LCD screen and will be sent to the Raspberry Pi computer.

El monitor van a tener diferente sensores conectadolo, corriente, voltaje, velocida del viento, y quizas direccion del viento. Para los personas que no son familiar, o hace poco tiempo de tus classes to fisica en escuela, voltaje (Medido en voltios, símbolo V) es como la presion del electricidad, y el corriente como el flujo de electricidad (Medido en Amperios, símbolo A) , y esa combinacion darnos potencia electrical (Medido en Watts, símbolo W). Entonces, si multiplicar el voltaje por el corriente vamos a tener el poder que el turbina estan produciendo, o ademas en otra circuito (los luzes) podemos monitor el consumpcion del hogar. Un anemómetro va a medir el velocidad del viento, el mas rapido se gira, el mas revoluciones el sensor observeran, dando un calculo de velocidad del viento. Todos los sensores se producen un poder bajo voltage de 0V hasta 5V, por ejemplo el sensor de voltaje pueden medir voltages de 0V (0V salida del sensor) hasta 48V (5V salida del sensor) entonces si el turbina generar 24 voltages, el sensor da el arduino un signal de 2.5V. Despues ponemos esa connecions en un devicio que pueden tomar y processar los signales, y eso es el trabajo del microcontroller, voy a usar el Arduino Uno. Microcontrollers tienen un convertidor analógico a digital (CAD), y el valor da por el CAD es de 10-bit, que significa un spectro de 0 -1023 (1024 paso discretos). Entonces el ejemplo de 2.5V puede darnos un valor de 511 de la CAD. Se puede hacer calculos en el Arduino asi que el valor de 511, es 24V, y eso es que se pone en el LCD y ademes enviara al computadora Raspberry Pi.

Storage and Transmission / Almacenamiento y transmisión

The next step would be that the Raspberry Pi then recieves the data from the Arduino. Code on the Pi adds a timestamp and creates a spreadsheet file with all the data recorded. This can be opened in Microsoft Excel for example, and can be accessed locally by connecting to the Pi. Due to the Pi running Linux it comes with a free office software called OfficeLibre, which I recommend using on your PC, it’s free or you can give a donation to the project.

El siguiente paso seria que el Raspberry Pi luego recibe los datos del Arduino. Codigo en el Pi agrega un marca de tiempo, y hace un archivo de hoja de calculo con los datos. Esto se puede abrir en Microsoft Excel por ejemplo, y se puede accesso local por un connection a el Pi. El Pi usan Linux, y viene con software gratis se llama OfficeLibre, que recomiendo usar en su PC, es gratis or se puede dar un donacion al proyecto.

On top of that the data would then be sent in some form perhaps to a webpage, or an email address, so the data can be accessed remotely in Trujillo by WindAid. This part kind of depends what I’m able to develop. More info on that as the project develops.

Ademas los datos se enviarian en alguno forma, tal vez a una pagina de web o un correo electronico, por lo que los datos se pueden accedor de forma remota en Trujillo por WindAid. Esa parte depende en que puede desarillo. Mas info on eso cuando el proyecto es mas desarrollado.

Exploring Trujillo / Explorando Trujillo

It wasn’t all work in October, I meet new people though another NGO (Non Governmental Organisation) called Espaanglish, where English speakers can volunteer and help their social program of providing free english lesson to primary school children within Trujillo. Espaaanglish also run fund raisers such as visiting the lesser seen parts of the region. Trujillo is famous for it’s archaeological sites of Chan Chan and Huacas del Sol y Luna (which I haven’t been to yet so can’t tell you about) plus a few others. So one of the weekend events I went along with a mixed group of Peruvians and Gringos to a place called Condornada. After taking public transport and a chartered minibus we arrived in the village where we’d spend the night, and then hike to waterfalls the following day. We set up our tents quite literally in someone’s front yard, a few meters away from where the family kept rabbits and guinea pigs. Considering how arid the landscape was, this was an agricultural zone, still using a system of water aqueducts originally installed by the Moche civilisation hundreds of years ago. Our host was super friendly and we talked a little while, he was explaining to me that until a few years ago when the electricity network reached the region, he and his neighbouring two families got their electricity from a microhydro system. The water from the aqueducts was diverted into a pipe downhill, passing a turbine which would spin an old electrical motor acting as a generator (a motor is happy to generate electricity if it’s spun by a force). In recent years a major hydro electro dam had been constructed which brought along with it the grid. That night we relaxed, We had a bonfire, drank nasty local spirit and generally had a good time. The following day we hiked a few hours to these impressive waterfalls, I’ll let the photos do the talking.


No todo fue trabajo en Octubre, encontre neuvos personas con otra ONG (Orgninasacion Non Govermental) se llama Espaaanglish, donde angloparlantes puede volunteer y ayuda con su programma social de ensenyando ingles por chicos de primaria por gratis. Ademas Espaaanglish hice recaudadores de fondos como vistando lugares menos conocedo del zona. Trujillo es famoso por sus sitios arqueológico que se llama Chan Chan y Huacas del Sol y Luna (que yo no conozco entonces no puedo hablarte de ellos) y pocos mas. Algunos de los eventos de fin de semana, fui con un grupo mixto de Peruanos y Gringos a un lugar se llam Condornada. Despues de tomando transporte publico y un minibus fletado, llegamos al pueblo donde alojariamos la noche, y el dia seguente trek a las caterratas. Ponemos nuestra carpas literalmente en el patio delantero de alguien, a poco metros de donde la familia tenia conejos y cuyo. La zona era muy árido, pero Condornada es un zona de agricola, todavia utilizando un sistema de acueductos de aqua originalmente instalado por la civilizacion Moche hace cientos de anos. Nuestro hospedador era super amable y hablemos bastante, el dijo que hasta pocos años atraz, cuando el red de electricidad llega al zona, el senor y sus vecinos consiguieron su electricidad de un sistema microhidraulico. El agua del aquaductos fue desviada a dentro un tuberia cuesta abajo, pasando por una turbina que giraria un viejo motor electrico actuando como un generador (un motor esta feliz de generar electricidad si es girando por una fuerza). En los ultimos anos se construyo un gran presa hidroelectric que trajo consigo la red de electricidad. Esa noche, relajemos, teniamos un fugata, bebimos desagradable espiritu local, y generalmente nos lo pasamos bien. Al dia siguiente caminamos pocos horas a estes cataratas impressionate. Dejaré las fotos hablar.

A week or two later, again with Espaanglish I went biking and explored some nearby hills, and after a great few hours I unfortunately, I took a potholed speed bump badly, and did a rather unexpected superman impression going clean over the handlebars. It was quite fun the moments in air before the impact….not so fun on impact. I can say the most painful thing I’ve experienced in many a year. I was fortunate enough not to break anything, but massively affected my mobility for months after. I’m fine and the EWB insurance were great at paying for MRI scans, and physio, and am on the mend. But it did mean I was unable to attend the second community install which I was pretty gutted about. Here’s some photos of the scenery before the accident. I’ll leave it there for now, and start working on Novembers blog, unfortunately I’ve not been able to keep on track, writing this the 17th January. Bye for now.

Pocos semanas antes, otra vez con Espaanglish, fui en bicicleta y explore cerros cerca, y despues de algunos horas genial, desafortunadamente fui sobre un rompe muelle en mal condicion con huecos, y hize una impression inesperada de Superman. Volé limpio sobre el manillar. Fue bastanate divertido, en al aire antes del impacto….no tan divertido en impacto. Puedo decir el mas doloroso cosa, he experimentado en muchos años. Tuve la suerte de no romper nada, pero se affectado mi mobilidad por meses antes. Estoy bien y la seguro de EWB era genial, pagando por resonancia y fisioterapia, y estoy mejorando. Pero significa que no pude ir a la segundo installacion en una communidad, que estaba muy triste por esto. Aqui es algunos photos del vistas antes del accident. Voy a parar aqui y empezar a trabajar en el blog de Noviembre, lamentablemente no he podido escribir cada mes, estoy escribiendo este el 17th January. Adios por ahora.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s