Jump to content



Photo
- - - - -

Calibrating an accellerometer


  • Please log in to reply
20 replies to this topic

#1 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 23 April 2013 - 10:43 PM

I have tried several times to get my UVID-G calibrated but not with very much luck.

 

Step 1. UHID-G is mounted in the cabinet in it's pertinent position.

Step 2. Start calibration in windows and leave the board screwed down to find center. And then when  asked to move the board in all directions - I unscrew the board and do this and then place it back in it's original position screwed down.

Step 3. Finish calibration and the + sign seems centered correctly.

Step 4. Start VP and everything works great.

Step 5. Increase the gains so that my nudges cause an effect with the accellerometer - but then the ball is slightly moving in one direction  or the other like it is not exactly centered.

 

I am sure there is a way to get this calibrated correctly but i am at a loss. Any suggestions is greatly appreciated.

 

thanks,

Pinhead22


Edited by Pinhead22, 23 April 2013 - 10:44 PM.


#2 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 24 April 2013 - 12:50 AM

Here you go.

Forget windows calibration and do this:

I've created a new post in tutorials just for this:

http://www.vpforums....397#entry224740

 

Let me know how it goes.


Edited by uberpinball, 07 May 2013 - 08:37 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#3 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 24 April 2013 - 12:59 AM

Thanks Uberpinball!! Sounds like you really have experience with this...It;'s freaking frustrating. Thanks a bunch for the advice!! I am going to try this ASAP!


Edited by Pinhead22, 24 April 2013 - 01:00 AM.


#4 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 24 April 2013 - 02:31 AM

Oh it's very touchy and frustrating. I gave up on my nanotech board and went mercury switches.

But my nanotech board is calibrated perfect, but the nudges are so inconsistent that it varied from table to table, so I went to mercury switches and digital nudge.

I'd like to hear your results with the UHID-G board.

Edited by uberpinball, 24 April 2013 - 02:31 AM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#5 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 25 April 2013 - 12:20 AM

Ok. Some good news and some bad. DWTweak2 does not work in Win7 64bit. Which is what I have been using for my OS. Fortunately, U-Hid makes their own utility for the Uhid-g board called U-Config that let me get the accelerometer perfectly centered. Now, I started playing around with the zero slop table for testing and I got it working to my satisfaction. The problem is, like you described Uberpinball, consistency is not there. One table, it seems to work pretty good and then another table it is way off. Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think. I need to find a connector for this board so i don't have to solder wires straight to the leads. What kind of switches did you buy Uberpinball?


Edited by Pinhead22, 25 April 2013 - 12:26 AM.


#6 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 25 April 2013 - 12:47 AM

Ok. Some good news and some bad. DWTweak2 does not work in Win7 64bit. Which is what I have been using for my OS. Fortunately, U-Hid makes their own utility for the Uhid-g board called U-Config that let me get the accelerometer perfectly centered. Now, I started playing around with the zero slop table for testing and I got it working to my satisfaction. The problem is, like you described Uberpinball, consistency is not there. One table, it seems to work pretty good and then another table it is way off. Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think. I need to find a connector for this board so i don't have to solder wires straight to the leads. What kind of switches did you buy Uberpinball?
Yea figured DXTweak was outdated for newer OSs. If you want to double check before you abandon the accelerometer try this DIView http://www.vpforums.org/index.php?app=core&module=attach§ion=attach&attach_id=13671

On the mercury switches, you use three one located on each side on the inside by the flipper buttons and one under the lockdown bar in the center. The wires will point towards the cabinet walls when you install them.

You need to have an extra three inputs on your keyboard emulator like ipac or PBW board, w/e you ae using now. Wire them like and button, connect three 'negative' wires from the mercury switches together, just pick the same sides, and that will be negative, black, ground..w/e. then the other wires each one goes to a separate input on your controller board.

Then you just map the buttons where you connected the switches to in VP > preferences> keys.

switches > http://www.amazon.co...0?ie=UTF8&psc=1

Still not done...lol...you'll need to tweak the nudge code by simply adding a NudgePlugin.vbs file that you create and drop in blurs code(read the thread, you'll see the link to the code) then you drop the NudgePlugin.vbs into the same directory as core.vbs. You can then tweak variables like rebound, which you will have with any tilt switches(including our mercury switches). I cover it here http://www.vpforums....topic=24051&hl=

Edited by uberpinball, 25 April 2013 - 12:56 AM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#7 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 25 April 2013 - 01:11 AM

Awesome. Thanks for all the info Uberpinball, I really appreciated it!!!



#8 pinuck

pinuck

    Pinball Fan

  • VIP
  • 514 posts
  • Location:Toronto

  • Flag: Canada

  • Favorite Pinball: Jacks Open, AFM, TOM



Posted 25 April 2013 - 02:45 AM

Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think.

you can set up the uhid for digital nudge instead of analog, that's how i'm using mine currently.

#9 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 25 April 2013 - 12:05 PM

Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think.

you can set up the uhid for digital nudge instead of analog, that's how i'm using mine currently.


Not familiar with this board, does it have some keyboard emulation outputs? Or how do you map a accelerometer to VP keys?

 

Oh...found it:

 

The second mode is digital, in which a "nudge" of the sensor sends a keystroke or button signal to the PC. For each of the six nudge directions, a key or button can be configured. This mode is used, for example in pinball nudge detection. The sensitivity can be adjusted using the U-Config calibration screen, and you can set the detection so that a key or button is "pressed" for different orientations of the board if you have an application for this.


Edited by uberpinball, 25 April 2013 - 02:07 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#10 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 25 April 2013 - 01:52 PM

 

Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think.

you can set up the uhid for digital nudge instead of analog, that's how i'm using mine currently.

 


Not familiar with this board, does it have some keyboard emulation outputs? Or how do you map a accelerometer to VP keys?

@Uberpinball --  http://www.u-hid.com/home/uhidg.php --  @Pinuck -- How does the board perform with digital nudges Pinuck? Are you happy with it?  Also, did you have to find a connector for your board or did yours come with one? Since I have this already setup I am going to try using the digital nudges with the UHID-g before going the mercury switch route.


Edited by Pinhead22, 25 April 2013 - 01:53 PM.


#11 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 25 April 2013 - 02:08 PM

 

Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think.

you can set up the uhid for digital nudge instead of analog, that's how i'm using mine currently.

 


Not familiar with this board, does it have some keyboard emulation outputs? Or how do you map a accelerometer to VP keys?

@Uberpinball --  http://www.u-hid.com/home/uhidg.php --  @Pinuck -- How does the board perform with digital nudges Pinuck? Are you happy with it?  Also, did you have to find a connector for your board or did yours come with one? Since I have this already setup I am going to try using the digital nudges with the UHID-g before going the mercury switch route.

Thanks for the link. I've seen it before, never read it all. I see the second 'mode', which i pasted in my question in a above post. So isn't it as easy as setting this 'digital mode' and binding keys in VP?

 

I read the rest, seems pretty cool. Once you set the J6 'keys' it will map that direction(X, Y, or Z). I guess this still comes down to how well the board detects a directional nudge on the cabinet. If you have to bang the heck out of the cab or really shake it, then it's not good. And if you nudge it left...i would hope it triggers just the left direction and not right also.

 

Let me know how it tests out.


Edited by uberpinball, 25 April 2013 - 02:14 PM.

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#12 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 25 April 2013 - 02:13 PM

 

Looks like I am going to try some mercury switches and digital nudge. Or, I can try this setup using digital nudge I think.

you can set up the uhid for digital nudge instead of analog, that's how i'm using mine currently.

 


Not familiar with this board, does it have some keyboard emulation outputs? Or how do you map a accelerometer to VP keys?

@Uberpinball --  http://www.u-hid.com/home/uhidg.php --  @Pinuck -- How does the board perform with digital nudges Pinuck? Are you happy with it?  Also, did you have to find a connector for your board or did yours come with one? Since I have this already setup I am going to try using the digital nudges with the UHID-g before going the mercury switch route.

Thanks for the link. I've seen it before, never read it all. I see the second 'mode', which i pasted in my question in a above post. So isn't it as easy as setting this 'digital mode' and binding keys in VP?

Yeah, I think it is that easy. I was just wondering if Pinuck was happy with the way it performs. Is it worth the time to set it up or not? 



#13 pinuck

pinuck

    Pinball Fan

  • VIP
  • 514 posts
  • Location:Toronto

  • Flag: Canada

  • Favorite Pinball: Jacks Open, AFM, TOM



Posted 26 April 2013 - 04:07 AM

I was just wondering if Pinuck was happy with the way it performs. Is it worth the time to set it up or not?

If you've already got the board, I'd say try it out.
It works out reasonably well for me. Definitely not perfect. Some mixed up directions. Some unfair tilts/double hits.
But I've been using it for a couple years, so it's certainly not terrible either. Don't have much to compare it to though.
I've been planning on trying out the analog on it, but haven't yet.

I'm not sure which connector you're referring to. Mine came with a mini-USB, and that just hooks up to the computer. The ipac2 i'm using for keys, and it hooks up on it's own via USB also.

Mine's screwed into some offsets where the cashbox would normally go:

uhid.jpg

#14 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 26 April 2013 - 04:15 AM

I was just wondering if Pinuck was happy with the way it performs. Is it worth the time to set it up or not?

If you've already got the board, I'd say try it out.It works out reasonably well for me. Definitely not perfect. Some mixed up directions. Some unfair tilts/double hits.But I've been using it for a couple years, so it's certainly not terrible either. Don't have much to compare it to though.I've been planning on trying out the analog on it, but haven't yet.I'm not sure which connector you're referring to. Mine came with a mini-USB, and that just hooks up to the computer. The ipac2 i'm using for keys, and it hooks up on it's own via USB also.Mine's screwed into some offsets where the cashbox would normally go:[img]http://vpforums.org/imghost/174/uhid.jpg[/img]


Is that the head of a body bag in your cab? O_O

Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#15 Pinhead22

Pinhead22

    PinHead

  • Silver Supporter
  • 438 posts
  • Location:Boise, ID

  • Flag: United States of America

  • Favorite Pinball: Banzai Run, STTNG, Black Knight 2K, 2001

Posted 26 April 2013 - 03:44 PM

I was just wondering if Pinuck was happy with the way it performs. Is it worth the time to set it up or not?

If you've already got the board, I'd say try it out.
It works out reasonably well for me. Definitely not perfect. Some mixed up directions. Some unfair tilts/double hits.
But I've been using it for a couple years, so it's certainly not terrible either. Don't have much to compare it to though.
I've been planning on trying out the analog on it, but haven't yet.

I'm not sure which connector you're referring to. Mine came with a mini-USB, and that just hooks up to the computer. The ipac2 i'm using for keys, and it hooks up on it's own via USB also.

Mine's screwed into some offsets where the cashbox would normally go:

uhid.jpg

Thanks Pinuck. I am going to give it a try this weekend.I was referring to the 9 pin connector on the board but I don't need it anyway. The analog setup wasn't too bad once i figured out the U-Config program and got the board centered correctly. I played a bunch of pinball last night with it and it's not too bad. I will post if I think one is better than the other. Thanks!



#16 pinuck

pinuck

    Pinball Fan

  • VIP
  • 514 posts
  • Location:Toronto

  • Flag: Canada

  • Favorite Pinball: Jacks Open, AFM, TOM



Posted 26 April 2013 - 09:12 PM

Thanks Pinuck. I am going to give it a try this weekend.I was referring to the 9 pin connector on the board but I don't need it anyway. The analog setup wasn't too bad once i figured out the U-Config program and got the board centered correctly. I played a bunch of pinball last night with it and it's not too bad. I will post if I think one is better than the other. Thanks!

The other thing I recall from back when i was setting it up, is that the latest version of the U-Config wasn't on their website, and I had to email support to get it...

#17 hotdp

hotdp

    Enthusiast

  • Members
  • PipPipPip
  • 434 posts

  • Flag: Denmark

  • Favorite Pinball: T2

Posted 07 May 2013 - 05:12 PM

Hi,

 

 

4) Start the test table with zero slope in VP and see how the all reacts.

 

What is zero slope? When i am lunching the table the ball is just in the middle?

 

I would love to know how the ball should move for perfect callibration? Maybe a explanation or video? Video would e GREAT. I don't know how perfect will look.


Edited by hotdp, 07 May 2013 - 05:41 PM.


#18 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 07 May 2013 - 07:20 PM

Hi,

 

 

4) Start the test table with zero slope in VP and see how the all reacts.

 

What is zero slope? When i am lunching the table the ball is just in the middle?

 

I would love to know how the ball should move for perfect callibration? Maybe a explanation or video? Video would e GREAT. I don't know how perfect will look.

 

A normal table has a ~6 degree slope. So the ball will roll towards the flippers. If you test on a zero slope table that I provided, the ball should not roll at all if the accelerometer is perfectly calibrated. When you nudge it, it would move based on the tuning you did.


Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>


#19 hotdp

hotdp

    Enthusiast

  • Members
  • PipPipPip
  • 434 posts

  • Flag: Denmark

  • Favorite Pinball: T2

Posted 07 May 2013 - 08:27 PM

Hi,

 

 

4) Start the test table with zero slope in VP and see how the all reacts.

 

What is zero slope? When i am lunching the table the ball is just in the middle?

 

I would love to know how the ball should move for perfect callibration? Maybe a explanation or video? Video would e GREAT. I don't know how perfect will look.

 

A normal table has a ~6 degree slope. So the ball will roll towards the flippers. If you test on a zero slope table that I provided, the ball should not roll at all if the accelerometer is perfectly calibrated. When you nudge it, it would move based on the tuning you did.

So to sum up (just to be 100%). When loading the table, the ball should stand still. If I nudge to one side it should start rolling?

Right now the ball is very still, but after a 1 sec it starts to roll sharp right. 



#20 uberpinball

uberpinball

    Enthusiast

  • Platinum Supporter
  • 449 posts

  • Flag: United States of America

  • Favorite Pinball: Gorgar, Attack from Mars, MM, MB, Pinbot...

Posted 07 May 2013 - 08:40 PM

Hi,

 

 

4) Start the test table with zero slope in VP and see how the all reacts.

 

What is zero slope? When i am lunching the table the ball is just in the middle?

 

I would love to know how the ball should move for perfect callibration? Maybe a explanation or video? Video would e GREAT. I don't know how perfect will look.

 

A normal table has a ~6 degree slope. So the ball will roll towards the flippers. If you test on a zero slope table that I provided, the ball should not roll at all if the accelerometer is perfectly calibrated. When you nudge it, it would move based on the tuning you did.

So to sum up (just to be 100%). When loading the table, the ball should stand still. If I nudge to one side it should start rolling?

Right now the ball is very still, but after a 1 sec it starts to roll sharp right. 

It should stand still. Then your accelerometer is still triggering. Try adjusting your deadzone in VP just slightly, to like 1% and increment by 1% no further than 5% to see if it stops.

 

Here is my new post for reference, please continue to reply here and i'll help where i can.

http://www.vpforums....397#entry224740


Seeds of War, Piles of Skulls

<OO>  Pinball Cab  <OO>  ArcadeX Mame Cab  <OO>