Monthly Archive for April, 2011

Instalar Word y Excel 2003 y 2007 en la misma PC

Es posible instalar Word y Excel 2003 y 2007 conviviendo en la misma pc, para esto hay que instalar primero el Office 2003, y luego 2007, con la opción de mantener las versiones anteriores.

Luego hay que agregar la entrada dword NoReReg para Word y Excel, para que los programas utilicen las aplicaciones 2003 por defecto.

Para esto simplemente ejecutar los siguientes comandos presionando Tecla Windows+R o Inicio/Ejecutar:

reg add HKCU\Software\Microsoft\Office\11.0\Word\Options /v NoReReg /t REG_DWORD /d 1

reg add HKCU\Software\Microsoft\Office\12.0\Word\Options /v NoReReg /t REG_DWORD /d 1

Esto es todo para Word. Puede ser que Office 2007 presente algún dialogo extra pero al cerrarlo ya quedará configurado.

Para  Excel 2003 hay que cambiar la asociación de archivos de 2007 a 2003.

Primero Cerrar Excel y luego ejecutar:

Inicio>Ejecutar “C:\ruta de archivos de programa\office11\excel.exe” /regserver

Eso es todo!

El procedimiento no es válido para Access ni para Outlook. Al ejecutar Access 2007 vuelve a re-registrar también Word y Excel y hace caso omiso de la entrada NoReReg.

Visto en Installing Office 2003 and Office 2007 on the same system

Contenedores para componentes electrónicos

Para organizar mejor los componentes electrónicos para los proyectos conseguí estos en Colombraro por $125 en total:

 

Display LCD 16×2 con Arduino

Siguiendo con los ejemplos de Arduino, pude seguir este tutorial para soldar LCD a conectores (Header) para poder conectarlo a la protoboard.

http://web.cecs.pdx.edu/~gerry/class/EAS199B/howto/LCDwiring/panel_prep.html

Así lo preparé para soldar:

LCD 16x2 listo para soldar

LCD 16x2 listo para soldar

Este es el equipo para soldar:

Equipo para Soldar

Equipo para Soldar

Así quedó:

LCD 16x2 con Headers Soldados

LCD 16x2 con Headers Soldados

A continuación armé un circuito con el LCD en el Protoboard basado en el circuito siguiente sacado de
http://robocodes.guiskas.com/2010/05/practica1-lcd-con-ldr/

LCD LDR Arduino Circuit

LCD LDR Arduino Circuit

Las siguientes son las modificaciones al circuito:

  • Coloqué un resistor de 10 k ohm en el pin 15 para bajar un poco el backlight que era muy fuerte
  • El LDR en Analog IN 0 y el botón en Digital IN 2 no los conecté todavía

Cargué primero un esquema (programa) con el ejemplo “Hello World” y anduvo, asi que despues cargué el siguiente modificado en base al ejemplo “Scroll” cambiando el texto por “blog.nivel7.com.ar” y el delay del desplazamiento de 150 a 250:

/*
LiquidCrystal Library - scrollDisplayLeft() and scrollDisplayRight()

Demonstrates the use a 16x2 LCD display.  The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver. There are many of them out there, and you
can usually tell them by the 16-pin interface.

This sketch prints "Hello World!" to the LCD and uses the
scrollDisplayLeft() and scrollDisplayRight() methods to scroll
the text.

The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)

Library originally added 18 Apr 2008
by David A. Mellis
library modified 5 Jul 2009
by Limor Fried (http://www.ladyada.net)
example added 9 Jul 2009
by Tom Igoe
modified 22 Nov 2010
by Tom Igoe

This example code is in the public domain.

http://www.arduino.cc/en/Tutorial/LiquidCrystal

*/

// include the library code:
#include

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("blog.nivel7.com.ar");
delay(1000);
}

void loop() {
// scroll 13 positions (string length) to the left
// to move it offscreen left:
for (int positionCounter = 0; positionCounter < 13; positionCounter++) {
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(250);
}

// scroll 29 positions (string length + display length) to the right
// to move it offscreen right:
for (int positionCounter = 0; positionCounter < 29; positionCounter++) {
// scroll one position right:
lcd.scrollDisplayRight();
// wait a bit:
delay(250);
}

// scroll 16 positions (display length + string length) to the left
// to move it back to center:
for (int positionCounter = 0; positionCounter < 16; positionCounter++) {
// scroll one position left:
lcd.scrollDisplayLeft();
// wait a bit:
delay(250);
}

// delay at the end of the full loop:
delay(1000);

}

Y estos son los resultados:

LCD con Arduino, Ejemplo Hello World

LCD con Arduino, Ejemplo Hello World

Arduino con LCD 16x2

Arduino con LCD 16x2

 

Resultado en video:

Video de Hello World para móviles o embebido:

Video de scroll blog.nivel7.com.ar o embebido:

Semáforo de autos y peatonal con botón usando Arduino

Para empezar a probar circuitos básicos, decidí seguir algunos de los tutoriales, en particular me pareció interesante el de Semáforo de autos y peatonal interactivo que está en el libro Arduino Starter Kit Manual de Mike McRoberts , este es el diagrama:

Y este el circuito que armé basado en el diagrama, en la foto funcionando con una batería de 9v, teniendo cuidado que el positivo esté en el centro del conector a la placa.

Arduino con circuito de Semáforo

Arduino con circuito de Semáforo

Como el semáforo estaba programado para la lógica de Reino Unido, cambié un poco la lógica del sketch (programa) y los tiempos para Argentina:

// Project 4 - Interactive Traffic Lights
int carRed = 12; // assign the car lights
int carYellow = 11;
int carGreen = 10;
int pedRed = 9; // assign the pedestrian lights
int pedGreen = 8;
int button = 2; // button pin
int crossTime = 7000; // time allowed to cross
unsigned long changeTime; // time since button pressed
void setup() {
pinMode(carRed, OUTPUT);
pinMode(carYellow, OUTPUT);
pinMode(carGreen, OUTPUT);
pinMode(pedRed, OUTPUT);
pinMode(pedGreen, OUTPUT);
pinMode(button, INPUT); // button on pin 2
// turn on the green light
digitalWrite(carGreen, HIGH);
digitalWrite(pedRed, HIGH);
}
void loop() {
int state = digitalRead(button);
/* check if button is pressed and it is
over 5 seconds since last button press */
if (state == HIGH &amp;&amp; (millis() - changeTime) &gt; 5000) {
// Call the function to change the lights
changeLights();
}
}
void changeLights() {
digitalWrite(carGreen, LOW); // green off
digitalWrite(carYellow, HIGH); // yellow on
delay(2000); // wait 2 seconds
digitalWrite(carYellow, LOW); // yellow off
digitalWrite(carRed, HIGH); // red on
delay(1500); // wait 1 second till its safe
digitalWrite(pedRed, LOW); // ped red off
digitalWrite(pedGreen, HIGH); // ped green on
delay(crossTime); // wait for preset time period
// flash the ped green
digitalWrite(pedGreen, LOW); // ped red off
for (int x=0; x&lt;10; x++) {
digitalWrite(pedRed, HIGH);
delay(500);
digitalWrite(pedRed, LOW);
delay(500);
}
// turn ped red on
digitalWrite(pedRed, HIGH);
delay(500);
digitalWrite(carYellow, HIGH); // yellow on
digitalWrite(carRed, LOW); // red off
delay(1000);
digitalWrite(carGreen, HIGH);
digitalWrite(carYellow, LOW); // yellow off
// record the time since last change of lights
changeTime = millis();
// then return to the main program loop
}

El resultado final puede verse en el siguiente video para móviles

o embebido:

Lista de Compras para proyectos con Arduino

Ahora que la Arduino funciona, llegó el momento de empezar con algunos proyectos.

Tengo varios libros para apoyar los proyectos:
Make: Electronics, Learn by Discovery, Charles Platt
Getting Started With Arduino, Massimo Banzi
Beggining Arduino, Michael Mc Roberts
Manual de Programación Arduino, Brian W. Evans
Arduino Cookbook,Michael Margolis

Esta es la lista de materiales para proyectos con Arduino:

HIGH TEC ELECTRONICA
AV. RAUL SCALABRINI ORTIZ 67
(1414) CAPITAL FEDERAL
BUENOS AIRES
ARGENTINA
TEL : 011-4856-6972

    Multímetro Digital ZR161 Con buzzer. $40
    2 Protoboard $40
    LCD Azul 16×2 caracteres 65x15mm $65

Subtotal $145

Compras HIGH TECH

Compras HIGH TECH

Electrónica El Universo
Boulogne Sur Mer 917

    Alicate $14
    5 Resistores 100Ω $2
    5 Resistores 200 220Ω $2

Subtotal $18

Compras El Universo

Compras El Universo

Electrocomponentes
Paraná 128
4381-9558

    1 Circuito Integrado L293DB, Doble puente H para control de motores, 1A $16,31
    50 Resistor 1kΩ $2,25
    50 Resistor 10kΩ $2,25
    50 Resistor 150Ω $2,25
    10 Diodo Rectificador 1N4007 1Am 100V $1,11
    2 Potenciómetro 50kΩ $7,94
    2 Mini Preset montaje horizontal ajuste vertical 10k $6,15
    2 Transistor PN2222A $0,50
    2 soporte 2 pilas AA $2,98
    2 tira de conectores macho x 40 $1,45
    2 metros de cable wire wrap $4,50
    1 switch $1,36
    2 botones pushbutton $1,19
    5 led blanco 5mm $4,53
    5 led difuso rojo 5mm 40mCD $1,09
    5 led difuso verde 5mm 40mCD $1,09
    5 led difuso amarillo 5mm $1,09
    4 Sensor ldr Fotoresistor 10mm $9,97

SubTotal $68

Compras Electrocomponentes

Compras Electrocomponentes

Jugueterías Daisy
Av. San Juan 2283
4943-6558

    Rasti Cuatriciclo Motobox TRX250 300 piezas$207
    2 Baterías Recargables Sony Cycleenergy AA $60
Rasti Cuatriciclo Motobox

Rasti Cuatriciclo Motobox TRX 250

Subtotal $267
Total $498

Ahora que tengo todo para comenzar, solo me faltan algunos recipientes plásticos para guardar todo sin que se dañe y un poco de tiempo para seguir los tutoriales.

200Ω

Conectando LEDs a Arduino

Juguete que tenía LED

Juguete que tenía LED

Desarmando juguetes con leds que ya no funcionan porque se agotaron las baterías de tipo botón, se pueden obtener distintos tipos de LED, en este caso un led rojo de aprox. 3v (el juguete tenía 2 baterías de 1.5v) y un led blanco de aprox 4.5 v (el juguete tenía 3 baterías de 1.5v).
Cuando consiga el tester podré determinar exactamente los voltajes de los LED haciendo pasar corriente por ellos y midiendo la pérdida.

LED Rojo (izq.) y LED Blanco (der.)

LED Rojo (izq.) y LED Blanco (der.)

Como el pin 13 de la Arduino tiene un resistor de 220ohm incorporado, se puede conectar el LED rojo sin quemarlo.

Arduino con LED rojo en Pin 13 y LED blanco en 12

Arduino con LED rojo en Pin 13 y LED blanco en 12


Arduino con LEDs blanco y Rojo

Arduino con LEDs blanco y Rojo


En el pin 12 que entrega 5v conecté el led blanco.

Modificando el sketch Blink para 2 LED que enciendan alternativamente y vayan ‘acelerando’ y luego volver a la velocidad inicial quedó el siguiente código:

// defino la variable demora y la inicializo en 1000 (1 segundo)
int demora = 1000;

void setup() {
  // initialize the digitals pin as an output.
  pinMode(12, OUTPUT);
  pinMode(13, OUTPUT);
}

void loop() {
  digitalWrite(13, HIGH);   // set the LED on
  delay(demora);              // wait
  digitalWrite(12, HIGH);   // set the LED on
  delay(demora);              // wait
  digitalWrite(13, LOW);    // set the LED off
  delay(demora);              // wait
  digitalWrite(12, LOW);    // set the LED off
  delay(demora);              // wait
  demora-=10;                 // disminuyo la demora en 10
  if (demora < 0) {           // si la demora es negativa la vuelvo a inicializar en 1000
    demora=1000;
  }
}

Encendiendo la Arduino con una fuente de 9V

Pude hacer funcionar la Arduino con una fuente de 9V. Para esto tuve que invertir la polaridad porque la fuente tenía el positivo en la parte externa del conector.

Arduino UNO con fuente de 9V

Arduino UNO con fuente de 9V

Fuente de 9V

Fuente de 9V

Polaridad cambiada

Polaridad cambiada

Instalando el Soft Arduino y Probando la Placa

Siguiendo la Guía de Instalación
http://www.arduino.cc/en/Guide/Windows
Está Instalado el Soft y ya está viva la Arduino conectada por USB, prendió el led de Power y titila el Led Interno.

Al arrancar la IDE noté que estaba muy lenta, tuve que desactivar el Bluetooth de la notebook según recomiendan en http://arduino.cc/forum/index.php?topic=50159.0 y anduvo bien, pero la mejor solución para no tener que desactivar el Bluetooth es reemplazar la DLL rxtxSerial.dll por la nueva sin problemas: http://arduino.cc/forum/index.php/topic,50986.msg363706.html#msg363706

Arduino UNO Funcionando

Arduino UNO Funcionando

Ya está funcionando!, Anduvieron bien los ejemplos Blink (lo cambié para 3 segundos de intervalo y tambien para bajar el prendido del led a 500 milisegundos) y BlinkWithoutDelay.

Probé aumentar el delay en 100ms en cada iteración y anduvo OK, con el botón de reset de la placa comienza de nuevo.

Este es el código que agregué en BlinkWithoutDelay:

  // Pausa
  delay(demora);
  // Incrementa demora en 100
  demora+=100;
  // Si la demora es más de 3seg vuelve a dejarla en 1 seg
  if (demora > 3000) {
     demora = 1000;
  }

El próximo paso es conseguir el multímetro, LEDs y algunos resistores para armar algún circuito.

Hoy llegó la Arduino UNO

Arduino Uno Pack

Arduino Uno Pack

Arduino Uno Board

Arduino Uno Board

Hoy me llegó la Arduino UNO, cuando tenga novedades del proyecto voy a ir posteando.

Categorías

RSS Entradas GReader Compartidas

  • Programming Interactivity - O'Reilly Media Thursday, September 8, 2011
    Processing, a Java-based programming language and environment for building projects on the desktop, Web, or mobile phones; Arduino, a system that integrates a microcomputer prototyping board, IDE, and programming language for ... […]
    O'Reilly Media
  • Google+ suma juegos Monday, August 15, 2011
    Shared by Guille Ya me envicié con Angry Birds en G+ también! La red social del gigante de internet agregó juegos a su propuesta, entre ellos Angry Birds, que causó sensación a nivel global, en un nuevo intento por disputar a facebook la primacía en la vida online de los usuarios […]
    (author unknown)
  • Book Review: Getting Started With Audacity 1.3 Monday, August 15, 2011
    MassDosage writes "Getting Started with Audacity 1.3 by Bethany Hiitola covers the basics of using the Audacity software package for recording and editing audio. This book is written in a tutorial style and stays true to its title by covering Audacity from a newcomer's perspective with lots of diagrams and detailed explanations of how to install an […]
    samzenpus
  • Arduino Code Syntax Highlighting Plugin for your WordPress Blog Sunday, August 14, 2011
    Download and install this Arduino code highlighting and markup WordPress plugin. […]
    admin
  • How to Hack Your Wii for Homebrew in Five Minutes [Video] Friday, August 12, 2011
    Hacking your Wii hasn't been difficult, but it has required a somewhat detailed process. Now we have LetterBomb, which is an incredibly simple way to hack your Wii. It only takes about five minutes to accomplish. Here's how to do it. First things first, you're going to need the following: A Nintendo Wii, obviously, but make sure it's runn […]
    Adam Dachis
  • Wii homebrew hack – no game discs required - Hack a Day Friday, August 12, 2011
    Jailbreaking hacks have come and gone for the Wii, ever changing as Nintendo tweaks their software to prevent homebrew from running. Piracy concerns aside, there is a legitimate Wii homebrew scene, and a new, ... […]
    Mike Nathan
  • Gentoo Linux libera el LiveDVD 11.2 Monday, August 8, 2011
    Gentoo Linux liberó el LiveDVD 11.2 Edición “The future is now” Gentoo Linux está orgulloso en anunciar la disponibilid de un nuevo LiveDVD para celebrar la continua colaboración entre usuarios y desarrolladores Gentoo. El LiveDVD contiene una impresionante lista de paquetes, alguno de los cuales están listados abajo. Paquetes del sistema: Linux kernel 3.0 ( […]
    Guille
  • Gentoo Linux releases 11.2 LiveDVD Monday, August 8, 2011
    "The future is now" edition Gentoo Linux is proud to announce the availability of a new LiveDVD to celebrate the continued collaboration between Gentoo users and developers. The LiveDVD features a superb list of packages, some of which are listed below. System packages include: Linux kernel 3.0 (with Gentoo patches), Accessibility Support with Spea […]
    David Abbott
  • Capacitor Replacement Tutorial #twt Capacitor Replacement Tutorial http://w Wednesday, August 3, 2011
    Capacitor Replacement Tutorial #twt Capacitor Replacement Tutorial http://www.youtube.com/v/YCSNWi3UHf4&hl=en&fs=1&autoplay=1 […]
    (author unknown)
  • Start Google Plus Combines Google+ with Facebook and Twitter [Downloads] Tuesday, August 2, 2011
    Start Google Plus is a great extension for Chrome and Firefox that lets you update Twitter and Facebook from within Google+, also adding feeds from both social networks onto your main page. We mentioned it in our Facebook to Google+ migration guide, but felt it deserved to be highlighted on its own because it's so useful. To get started, you just downlo […]
    Adam Dachis