Announcement

Collapse
No announcement yet.

Wii Remote to iphone Led.....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wii Remote to iphone Led.....

    I would like to know how to program OSCulator, so when I move the Wii remote, pitch,roll,yaw, or accel. It will turn on one led on the iphone. When the Wii remote is sitting still and not moving, the led
    on the iphone will be off.



    Input from the wii to computer to iphone led = (On)
    No input from wii to computer to iphone led = (Off)

  • #2
    Hi Tricky11,

    OSCulator may not offer the most flexible options to do this, but here is a solution that works:

    There are a couple of things to note:
    1. the input you need to use is the fourth parameter ("accel") of the message /wii/1/accel/pry, representing the overall acceleration applied to the remote.
    2. you need to fine-tune the scalings of this input so you obtain a value that is a bit under 0.5 at rest and goes up to 2. The reason why we want to go up to 2 is that we need to cross the boundary of 1, so we generate either 0 we the value is under 1, and 1 when the value is over 1. This way the LED will be either on or off.
    3. once you have the proper value, you can send it over OSC using a OSC Routing as an integer number.

    See the screenshots and attached example file for more info.

    Best,
    Cam

    Wiimote to TouchOSC LED 1.pngWiimote to TouchOSC LED 2.pngWiimote to TouchOSC LED 3.pngWiimote to TouchOSC LED 4.pngWiimote to TouchOSC LED 5.png
    Attached Files

    Comment

    Working...
    X