![]() ![]() Instead of physically pressing a button on their controller they use a library to simulate being a controller enabling them to trivially send signals. Also, I’ve since discovered that someone went one step better than me, although in a slightly different direction. I could try again but at almost 40 minutes per attempt I’m just not interested enough. ![]() Every loop the code calculates how many milliseconds should have elapsed before the next jump and if that threshold is met turns on the solenoid there is a short duration that it keeps the solenoid on before resetting (maybe it needed to be shorter to avoid the long-press).Īnd that’s it… almost stupidly simple, fittingly so, given the nature of the jumping challenge. The code calculates everything using dead reckoning from the time the challenge started, I assumed imprecisions in triggering any single jump would average out. A few pieces of wood raised it over the other buttons, a few pieces of electrical tape held the wood in place, and a rubber band kept the solenoid in position.įor simplicities sake I measured all timings in how many frames between jumps, I could count the frames easily in the video, and then just divide by 60 to turn that into seconds. Given how little thought I had put into planning this part, it was no surprise how inelegant the solution turned out. Step four involved attaching the solenoid to the controller. The magnetic force of a solenoid increases with the voltage (actually it goes up with the square of the voltage) so at 9 volts my solenoid should be applying closer to 250 grams, or as I like to think about it, 1 cup of water! Suddenly my 80 gram solenoid didn’t seem so underpowered, what if I… overpowered it? I was giving it the 5 volts it asked for, but I had a 9 volt power supply. 250 ml is 250 grams, so my Joy-Con needed somewhere between 83 grams and 125 grams to depress. Turning those back into real units, 1 cup = 250 ml and the easy thing about the metric system is that weight is derived from the volume of water. So there’s your answer, a Joy-Con button needs somewhere between a third and half a cup of water. I filled 1/2 of a cup with water and it depressed. What about cooking measures? I filled 1/3 of a cup with water and balanced that above a button, no movement. So, with no good tools, I went looking for some bad ones. Googling for how much force is needed to press a Switch controller yielded no results, and around my house I had no good tools to measure it with. No movement, the button refused the budge. I held it against the controller and… nothing. In my naiveté I’d assumed the solenoid would be able to trivially depress a Switch button, the one I bought was a 5V solenoid able to move 3mm and apply 80 grams of force, that seemed like a lot (it’s actually less than a single newton). At this point I’d basically assumed success, and then reality kicked in (or rather, kicked me). ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |