Question On the switch's vibration

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by EIREXE, Jun 16, 2019.

  1. EIREXE
    OP

    EIREXE Advanced Member

    Newcomer
    2
    Oct 13, 2015
    Spain
    Hello, I'm trying to test the vibration system on the console, and from the examples for libnx, there would appear to be both a low and a high frequency motor, just like in the xbox 360 controller.

    However, it would appear from my own testing using the demo example (https://github.com/switchbrew/switch-examples/blob/master/hid/vibration/source/main.c) that cranking up the low frequency motor makes the motors on both joycons run, and from ifixit's teardown (https://www.ifixit.com/Teardown/Nintendo+Switch+Teardown/78263) there is only one motor per joycon, so how is this achieved? are the control electronics simply emulating two motors?
     
  2. zomgugoff

    zomgugoff Advanced Member

    Newcomer
    4
    May 8, 2016
    United States
    Emulation may not be the right word for what it's doing, but it's something like that. The motors don't function like previous rumble motors. There are various articles that describe these as being treated more like speakers than motors. Something like feeding the game sound, or something based on that sound, into the motors instead of just supplying arbitrary DC voltages... Similar to AC motors. I guess the motors can change speed quickly and finely enough to make distinct low and high speed vibrations seemingly simultaneously.
     
  3. EIREXE
    OP

    EIREXE Advanced Member

    Newcomer
    2
    Oct 13, 2015
    Spain
    Ah so they could be playing back both waves at the same time intermittently? do you have any link to those articles?
     
  4. icefox

    icefox Advanced Member

    Newcomer
    3
    Jun 16, 2018
    United States
    Have you heard of HD rumble? The Switch, like a post 2017 iPhone, uses linear actuators that can reach peak output in one vibration cycle. Such a system can be controlled to a highly fine level and emulate different touch senses. On the iPhone and MacBook and touchpad etc the actuator can emulate the sensation of a microswitch click. So there is no high and low frequency motor like in a traditional controller, as there is no rotary motor at all.
     
    mattyxarope likes this.
  5. Rahkeesh

    Rahkeesh GBAtemp Advanced Fan

    Member
    6
    Apr 3, 2018
    United States
    Actuators are more or less modified speakers. You feed them amplitude with a level of precision closer to a sound wave. It's handled the same way as audio, your system mixes multiple waves into a single waveform before transmitting it to the speaker, which is usually tuned more towards vibrating the case than making something too audible. Linux is probably doing something at some point to translate traditional rumble inputs into some waveform for the actuators.
     
  6. budtoka420

    budtoka420 GBAtemp Fan

    Member
    5
    Jun 6, 2012
    United States
    Dont put your switch in your butt please
     
    jacobas92 and Purple_Shyguy like this.
  7. hippy dave

    hippy dave BBMB

    Member
    14
    Apr 30, 2012
    United Kingdom
    Obviously not.

    Just the joy-cons.
     
    medoli900 and MUDD_BR like this.
  8. MUDD_BR

    MUDD_BR GBAtemp Advanced Fan

    Member
    5
    Nov 17, 2008
    Brazil
    But with protection please.
     
  9. EIREXE
    OP

    EIREXE Advanced Member

    Newcomer
    2
    Oct 13, 2015
    Spain
    Well I was investigating for a reason similar to that, but worry not, you aren't mean to put it in your butt.

    — Posts automatically merged - Please don't double post! —

    That's interesting, thanks for the info.

    Is it libnx emulating a traditional vibration system then? or does the official API also emulate a traditional vibration mechanism?

    Thanks for the info, it isn't linux however, this is using libnx.
     
    budtoka420 likes this.
  10. budtoka420

    budtoka420 GBAtemp Fan

    Member
    5
    Jun 6, 2012
    United States
    As long as it's for a chick thumbs up
     
  11. Matchitza

    Matchitza Advanced Member

    Newcomer
    2
    May 27, 2017
    Indonesia
    Well, I mean, doing it with a joy-con does put you at a lower risk of being exposed. So win-win either way.

    But hey, science! Anything for the sake of science, right?


    (God I feel so disgusted at myself for this)
     
    Last edited by Matchitza, Jun 19, 2019
    budtoka420 likes this.
Loading...