Author Topic: hacking wiimote trigger  (Read 6562 times)

Offline justintylerclark

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Acidmods User
hacking wiimote trigger
« on: December 26, 2010, 04:41:54 PM »
Hi All,

I am a noobie trying to attach a wiimote to a rowing machine in order to use the rowing machine as an exergaming peripheral.  My question is whether it would be possible to wire the A or B trigger to the sensor in the rowing machine, such that when the rower is used at a certain minimum pace, the pulses coming from the rowing machine sensor are reconfigured through an IC as a continuous application of the Wiimote trigger.  The reason one would need to do this with a driving game is of course that one holds down, rather than pulses, the trigger button in order to apply the gas.

Anybody have any suggestions?  I'm thinking of using a potentiometer to calibrate the pulses from the rowing machine sensor, so that the machine has to be rowed at a minimum rate.  But what I don't know is how to set up the circuit that will convert those pulses into a continous signal to the trigger.

Thanks guys.

 

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: hacking wiimote trigger
« Reply #1 on: December 27, 2010, 06:08:58 AM »
yes it is possible however without knowing what kind of sensor the rowing machine uses it is difficult to help you

Offline Famas

  • Granny Spanker
  • *
  • Posts: 403
  • Post quality +1/-8
  • Acidmods User
Re: hacking wiimote trigger
« Reply #2 on: December 27, 2010, 07:03:14 AM »
could ths be done like basic rf with a 555 timer and a poteniometor?

Offline justintylerclark

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Acidmods User
Re: hacking wiimote trigger
« Reply #3 on: December 27, 2010, 03:49:07 PM »
The sensor seems to be a simple reed switch.  Like an exercise bike, there's a wheel that triggers (closes) the switch once per revolution. 

Were I to use the 555 chip, how would I be using it?  What sort of function would the chip be performing?

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: hacking wiimote trigger
« Reply #4 on: December 27, 2010, 03:56:08 PM »
i dont think a 555 timer is suitable for what you want
so what you want is when the rowing machine being used above a speed threshold a button on the wiimote is held down yes?

are you capable of writing code and programming an ic? or are you looking for a more hardware based solution?

Offline frenulem - No.5417

  • Ultimate Badass
  • Blogs & Media Team
  • Acid Modder
  • *
  • Posts: 633
  • Post quality +23/-0
  • Gender: Male
  • Learning Pascal Cuz i'm dumb and 'Ting
Re: hacking wiimote trigger
« Reply #5 on: December 27, 2010, 06:35:13 PM »
Just Blurting this out, But a capacitor could smooth out the signal This could be useful
« Last Edit: December 27, 2010, 07:17:23 PM by frenulem »

Offline justintylerclark

  • Guppy
  • *
  • Posts: 3
  • Post quality +0/-0
  • Acidmods User
Re: hacking wiimote trigger
« Reply #6 on: December 27, 2010, 09:23:25 PM »
"so what you want is when the rowing machine being used above a speed threshold a button on the wiimote is held down yes?"

Exactly. 

I've never programmed an IC.  I can read a basic circuit diagram and use a voltometer and a soldering iron, but that's pretty much the extent of my electronics skills.

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: hacking wiimote trigger
« Reply #7 on: December 28, 2010, 04:30:44 AM »
ok well in that case your probably better off with a hardware solution
so FOOKz? any input?

Offline frenulem - No.5417

  • Ultimate Badass
  • Blogs & Media Team
  • Acid Modder
  • *
  • Posts: 633
  • Post quality +23/-0
  • Gender: Male
  • Learning Pascal Cuz i'm dumb and 'Ting
Re: hacking wiimote trigger
« Reply #8 on: December 28, 2010, 05:40:58 AM »
A capacitor will work, but it's just finding the calculations you need

Offline FOOKz™

  • Hardware Modder
  • Research & Development
  • E = MC² Mad Scientist
  • *
  • Posts: 2070
  • Post quality +37/-2
  • Electronics Expert Electrical Engineer
Re: hacking wiimote trigger
« Reply #9 on: December 29, 2010, 02:11:14 PM »
Sounds to me you want a frequency counting VCO that controls a one-shot. (reverse frequency modulation)

hmmmm. let me think about this one tonight, im going out atm. I know its possible with a 555 timer and a few transistors.
« Last Edit: December 29, 2010, 11:30:58 PM by FOOKz »

Follow my Instagram and subscribe to my YouTube

Offline 802Chives

  • Sargeant at Arms
  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1304
  • Post quality +10/-0
  • Gender: Male
Re: hacking wiimote trigger
« Reply #10 on: December 29, 2010, 03:06:00 PM »
there are chips that convert frequency to voltage like a LM2917.   it can be done with op amps as well. 

sounds like this project would be good microcontroller candidate so the peripheral could be reconfigured for different games. 

any way you do it you will probably find this app note from Microchip useful:
http://ww1.microchip.com/downloads/en/AppNotes/00795a.pdf

that app note uses the TC9400 chip:
http://ww1.microchip.com/downloads/en/DeviceDoc/21483d.pdf
« Last Edit: December 29, 2010, 03:15:57 PM by 802Chives »


Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: hacking wiimote trigger
« Reply #11 on: December 29, 2010, 05:46:02 PM »
ok that looks great chives :D
so if we use an lm2917 could we just hook that up to a comparator like circuit and then we could adjust the threshold with a pot yes?
this sounds like a really good mod it could work with nearly any console and you could use it on things like excercise bikes , and tredmils aswell!
this would make a great RnD project

Offline FOOKz™

  • Hardware Modder
  • Research & Development
  • E = MC² Mad Scientist
  • *
  • Posts: 2070
  • Post quality +37/-2
  • Electronics Expert Electrical Engineer
Re: hacking wiimote trigger
« Reply #12 on: December 29, 2010, 11:56:55 PM »
the LM2917 seems like it will do the job well. i don't have any laying around anywhere :fear: so i cant test.

nice find Chives this is going into my bookmarks.  :tup:

a VCO from a 741 op amp is the best way to go IMHO since they are readily available at Radioshack and online.

Quote
so if we use an lm2917 could we just hook that up to a comparator like circuit and then we could adjust the threshold with a pot yes?
both Input signals to the comparator will need to be in phase greater than 90% to be effective.

How is it supposed to compare frequencies together if they aren't in phase. I'm stumped, i never ran into a problem like this before.

maybe you have a calibrated RC circuit in a one-shot. the one-shot gets triggered by your input button. when the button is held long enough the output of the one-shot is constant. In contrast; if the button is pressed faster the output of the one-shot becomes more frequent and charges a large capacitor quicker. If the input frequency is slow then the large capacitor won't charge at all.
SO where am I getting to this? just read on.
When the larger capacitor is charged to a certain calibrated point it says "hey your one-shot has reached a high enough frequency!" so you discharge your capacitor into some kind of PIC input or a transistor control circuit to make it useful and do something. (preferably controlled by a MOSFET because what if you want to hold your cap's charge until a certain point).
« Last Edit: December 29, 2010, 11:57:46 PM by FOOKz »

Follow my Instagram and subscribe to my YouTube

Offline hyper999

  • Acidmods Alumni
  • Millennium Poster
  • *
  • Posts: 1158
  • Post quality +544/-3
  • Research and Development
Re: hacking wiimote trigger
« Reply #13 on: December 30, 2010, 04:45:15 AM »
congratulations fookz you have baffled me once again :P

what i was thinking was use a circuit like this:

but replace the ldr with the lm2917 and the transistor would switch the button not an led
« Last Edit: December 30, 2010, 04:47:35 AM by hyper999 »

Offline Modded Matt

  • Site Owner
  • Administrator
  • Around the block
  • *
  • Posts: 4649
  • Post quality +65/-3
  • Gender: Male
Re: hacking wiimote trigger
« Reply #14 on: December 30, 2010, 06:08:35 AM »
are you guys just now figuring out the chives is the :censored:ing man???

Offline FOOKz™

  • Hardware Modder
  • Research & Development
  • E = MC² Mad Scientist
  • *
  • Posts: 2070
  • Post quality +37/-2
  • Electronics Expert Electrical Engineer
Re: hacking wiimote trigger
« Reply #15 on: January 08, 2011, 02:56:26 PM »
I think I'll just leave this here.

http://www.national.com/ds/LM/LM567.pdf

« Last Edit: January 08, 2011, 02:57:28 PM by FOOKz »

Follow my Instagram and subscribe to my YouTube

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal