OnLineWii usa cookies para mejorar su experiencia de navegación y mostrarle contenido personalizado.
Si quiere deshabilitar cookies en su dispositivo, revise nuestra información.
Tenga en cuenta que algunas partes de nuestro sitio web no funcionará de forma correcta si deshabilita las cookies.
Al cerrar este mensaje, usted acepta el uso de cookies en este dispositivo, de acuerdo con nuestra política de cookies, a menos que usted las haya desactivado. Acepto, y quiero cerrar esta ventana.
 Ayudar a la Asociación es fácil
La mejor manera de ayudar a la Asociación es con el donativo directo, pero para el que no quiera/pueda, existe una forma de ayudar con algo. Para ello, os podéis registrar en 20dollars2surf desde el siguiente banner:

Gana dinero y colabora con la Asociación OLW


En ESTE tema os lo explicamos más detenidamente.
 DONATIVOS
Colabora con la Asociación.

 

 

¡Gracias!

control para las cortinas de casa

Imagen

Todo lo relacionado con nuestra querida Scene. Aprende como instalar tu Homebrew Channel, reproduce archivos .avi y mp4 en tu wii, convierte tu wii en una pizarra......

Moderador: Enock

Reglas del Foro
OnLineWii no da soporte a la piratería, todo los artículos expuestos son con carácter informativo y de investigación.
Ni los autores ni OnLineWii, son responsables del uso final que hagan los usuarios de este material ni de posibles problemas con la Wii por su mal uso.
Términos de búsqueda
the, xones, var, key, wiimote, and, false, control, glovepie, debug, that, param, with, url, can
Desconectado

control para las cortinas de casa

NotaAutor: teddy_san » Mar 23 Jun 2009, 00:12

Aqui dejo otra pequeña aportación, esta es por si quereis haceros un control remoto para las cortinas del salon, y poder controlarlas con el wiimote, asi qeu dejo los enlaces de los programas necesarios, asi como el script para poder hacerlo... si alguien se atreve en casa que lo cuente,jejeje

<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/FSMJiGPPzGM&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/FSMJiGPPzGM&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object>

Curtain Controller
The curtain control system is an existing system from Goelst and is called "G-Rail 6200". Normally it is controlled by infrared or wallswitches. However, it can also be controlled with a CAN bus. I used this CAN bus to interface with an old PC.

Bluetooth Dongle
On the PC I attached a cheap USB Bluetooth dongle that I bought in China. It comes with a free version of the Blue Soleil bluetooth stack.

I paired my Wiimote with my PC. This is done by holding down the 1 and 2 button on the Wiimote (leds will flash) and use the bluetooth software to set op a connection with a HID device.

GlovePIE
There are several free programs on the internet that make it possible to interface your Wiimote with PC applications. I used a program called GlovePIE. It takes some time to understand the functions of the program because the documentation seems to be written for people that already know GlovePIE. Also the copyright disclaimer is really strange. But after investing some time to learn the functions of the programm and going through many examples and forums on the internet I found it one of the best solutions currently available. Actually real good solutions do not yet exists.

GlovePIE has no function to send messages to a CAN bus. So I started up my good old visual basic and made a little program that handles the CAN messaging. In the first version I used the keypressed event. I made a GlovePIE script that sends out keyboard keys when the Wiimote has a certain orientation and voila... L is for left, R is for Right and S is for Stop.

This is the first version of my script:

ExitScript = HeldDown(Wiimote.Home, 3s) // a safety break

if window.title == "G-rail control" then
//only do this when grail control software is active

key.RepeatFakeKeys = false

// read values from Wiimote
var.x = wiimote1.gx
var.y = wiimote1.gy
var.z = wiimote1.gz

// now control the curtains
if var.x > 0.8 then

var.debug = 'L'
key.R = false
key.S = false
key.L = true

elseif var.x <0> 0.9 then

var.debug = 'S'
key.R = false
key.L = false
key.S = true

else

var.debug = ''
key.R = false
key.L = false
key.S = false

endif

debug = var.x + ' ' + var.y + ' ' + var.z + ' ' + var.debug
endif

else
debug = window.title
endif


So the GlovePIE script sends keystrokes to a visual basic program that sends CAN messages to the curtain controllers.


Fuente: wii.hassel.nl

Avatar de Usuario
teddy_san

Mod.Global
OLWiiero Plata
OLWiiero Plata
 
Años como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembroAños como miembro
Bookmark and Share
 
Info. Usuario Info. Usuario
 
    Desconocido Desconocido

Anuncio



Contribuye con la labor social de la Asociación, haz una Donación.
También contribuirás al mantenimiento de OnLineWii.es y todas sus actividades.
Al instante dejarás de ver estos anuncios.


Volver A Scene/homebrew Channel

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 2 invitados

cron