Homebrew Question On the switch's vibration

EIREXE

Well-Known Member
OP
Newcomer
Joined
Oct 13, 2015
Messages
71
Trophies
0
Age
25
XP
236
Country
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?
 

zomgugoff

Well-Known Member
Newcomer
Joined
May 8, 2016
Messages
89
Trophies
0
Age
40
XP
597
Country
United States
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?

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.
 

EIREXE

Well-Known Member
OP
Newcomer
Joined
Oct 13, 2015
Messages
71
Trophies
0
Age
25
XP
236
Country
Spain
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.
Ah so they could be playing back both waves at the same time intermittently? do you have any link to those articles?
 

icefox

Well-Known Member
Newcomer
Joined
Jun 16, 2018
Messages
99
Trophies
0
Age
44
XP
528
Country
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.
 
  • Like
Reactions: mattyxarope

Rahkeesh

Well-Known Member
Member
Joined
Apr 3, 2018
Messages
2,178
Trophies
1
Age
42
XP
3,263
Country
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.
 

EIREXE

Well-Known Member
OP
Newcomer
Joined
Oct 13, 2015
Messages
71
Trophies
0
Age
25
XP
236
Country
Spain
Dont put your switch in your butt please
Well I was investigating for a reason similar to that, but worry not, you aren't mean to put it in your butt.

--------------------- MERGED ---------------------------

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.

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?

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.

Thanks for the info, it isn't linux however, this is using libnx.
 
  • Like
Reactions: Deleted User
D

Deleted User

Guest
Well I was investigating for a reason similar to that, but worry not, you aren't mean to put it in your butt.

--------------------- MERGED ---------------------------



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.

As long as it's for a chick thumbs up
 

Matchitza

Well-Known Member
Newcomer
Joined
May 27, 2017
Messages
79
Trophies
0
Age
28
XP
277
Country
Indonesia
Well I was investigating for a reason similar to that, but worry not, you aren't mean to put it in your butt.
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,
  • Like
Reactions: Deleted User

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion