control para las cortinas de casaModerador: 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
Tema previo • Siguiente tema
1 mensaje
• Página 1 de 1
control para las cortinas de casaAqui 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
AnuncioTambién contribuirás al mantenimiento de OnLineWii.es y todas sus actividades. Al instante dejarás de ver estos anuncios.
Tema previo • Siguiente tema
1 mensaje
• Página 1 de 1
Volver A Scene/homebrew Channel ¿Quién está conectado?Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 1 invitado |