Jump to content



Photo
* * * * * 9 votes

Pinscape Controller software V2

pinscape

  • Please log in to reply
975 replies to this topic

#341 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2017 - 05:57 PM

Well, you've convinced me to do at least the main board now. So the "small LED" pins will power my lighted buttons?

 

The "small LED" outputs can handle up to about 60mA, so they'll work as long as your buttons are below that limit.  You should check the lights you're planning to use.  If they're LEDs, they'll probably be fine.  If you're planning to use incandescent #555 bulbs, those are too big for the "small LED" outputs (#555 incandescents run at about 250mA).

 

The "flasher" outputs can handle up to 1.5A (1500mA), so you can use those for power-hungrier lights like #555 bulbs, if you're not planning on a full set of RGB flashers.



#342 sasa12345

sasa12345

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts

  • Flag: ---------

  • Favorite Pinball: indiana jones

Posted 17 March 2017 - 06:42 PM

 

Mrj how to restore function pinbal slope,because now it seems to me that it restarts at 0 Positioning..

It seems to me that this function  not responsible for nudge.

 

Hi - I'm afraid I'm not sure what you're asking.  Could you give me some more detail?

 

If you raise my cab and ball was moved all the way cab, now this is not the case?

The translation should kl25z the angle that we want, he is now reset to zero position..



#343 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2017 - 06:53 PM

If you raise my cab and ball was moved all the way cab, now this is not the case?

The translation should kl25z the angle that we want, he is now reset to zero position..

 

Are you saying the accelerometer isn't working?

 

The first thing to try would be to look at the joystick data.  Run the Pinscape Config Tool, and click on the "Joystick" icon.  This will show the raw accelerometer readings in the little box with the moving "+" sign.  Check to see if the "+" sign is moving around in response to motion as expected.



#344 sasa12345

sasa12345

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts

  • Flag: ---------

  • Favorite Pinball: indiana jones

Posted 17 March 2017 - 07:08 PM

OK he moves,if you move kl25z 45 degrees he is reset to 0 position.

I would like to keep it at an angle

 

My English is very bad for the French at school :tapping:



#345 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2017 - 07:18 PM

OK he moves,if you move kl25z 45 degrees he is reset to 0 position.

I would like to keep it at an angle

 

Right, that's the automatic calibration - it zeroes itself after being stationary for a few seconds.  So do want it to ALWAYS report a 45 degree angle, permanently?  I'm afraid the firmware doesn't have a way of doing that; it always centers itself on whatever position it's installed in.

 

What are you trying to do that needs constant acceleration?  Maybe it's better handled in VP instead of in the accelerometer.


Edited by mjr, 17 March 2017 - 07:18 PM.


#346 sasa12345

sasa12345

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts

  • Flag: ---------

  • Favorite Pinball: indiana jones

Posted 17 March 2017 - 07:52 PM

It is realistic to be tilted at an angle if you much stuck a ball you just pick up the cab..

Angle of 45 degrees is just an example..

It seems to me that it would be more realistic and tilt to make(nudge)



#347 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2017 - 09:12 PM

It is realistic to be tilted at an angle if you much stuck a ball you just pick up the cab..

Angle of 45 degrees is just an example..

It seems to me that it would be more realistic and tilt to make(nudge)

 

Well, the accelerometer won't zero itself until the device has been almost motionless for about 5 seconds, so if you're just tilting the cabinet momentarily like that, it should register as an acceleration.



#348 sasa12345

sasa12345

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts

  • Flag: ---------

  • Favorite Pinball: indiana jones

Posted 17 March 2017 - 09:28 PM

Ok, but it seems to me not so before any..

Thank you for everything you do for this community :otvclap:



#349 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 17 March 2017 - 10:17 PM

Ok, but it seems to me not so before any..

 

The self-centering has always been there.  It doesn't zero itself unless it's nearly stationary for about 5 seconds, so maybe you just didn't hold it perfectly still long enough in past attempts.  It won't center if there's more than a very small amount of vibration.  The whole point is to find the actual stationary position of the cabinet automatically, so that you don't have to worry about installing the board perfectly level in the cabinet (which would be almost impossible given how sensitive the accelerometer is).

 

I could make the auto-centering a configuration option if it's a problem for you.  But that might create more problems for you than the centering, since then you'd have manually center it somehow.


Edited by mjr, 17 March 2017 - 10:18 PM.


#350 sasa12345

sasa12345

    Enthusiast

  • Members
  • PipPipPip
  • 250 posts

  • Flag: ---------

  • Favorite Pinball: indiana jones

Posted 17 March 2017 - 10:32 PM

If you are not a big task..

kl25z is positioned perfectly in front of the middle..

Among other things I'd like to see how they will react tilt (nudge)

Now if you push cab three times for the third time a ball bounces off an uncontrolled( intervals of one to two seconds)



#351 Joppnl

Joppnl

    Enthusiast

  • Members
  • PipPipPip
  • 301 posts

  • Flag: Netherlands

  • Favorite Pinball: Where I can put my name on as Grand Champion......

Posted 19 March 2017 - 07:17 PM

Hello Mike,

 

can I ask you on this thread something about the PinVol software?

 

Installed it this week and it's running perfectly only.....

 

as soon as PinVol is running (minimized) the framerate drops from around 260fps to 60fps. I do not have to start a table, it immediately is visable in attrect mode by pressing F11 (and the fps will stay the same during play)

 

Even if I exit Pinvol while running a table (with alt-tab go to PinVol and exit it) the fps goes up immediately to 260 (depending on the video-settings but the drop is clear).

 

Strange thing however is that when PinVol is running and causing this drop the GPU and CPU load on the PC isn't that much so I can not see it there.....

 

This is the GPU and CPU load when running VPX and PinVol

20170319_184349.jpg

 

and with Pinvol running these are the fps, coming from a 260 without PinVol

20170319_183016.jpg

 

I'm running VPX directly so no PinballX or so, happens with the tables I tested, do not know if it's also the case with VP9 (can test it but didn't do it).

 

Anu clue Mike? And why do you think it isn't visable in the CPU/GPU load although it does affect the GPU/fps...

 

Thank you!


Edited by Joppnl, 19 March 2017 - 07:20 PM.


#352 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 19 March 2017 - 08:42 PM

as soon as PinVol is running (minimized) the framerate drops from around 260fps to 60fps. I do not have to start a table, it immediately is visable in attrect mode by pressing F11 (and the fps will stay the same during play)

 

Even if I exit Pinvol while running a table (with alt-tab go to PinVol and exit it) the fps goes up immediately to 260 (depending on the video-settings but the drop is clear).

 

Strange thing however is that when PinVol is running and causing this drop the GPU and CPU load on the PC isn't that much so I can not see it there.....

 

My best guess is that it's the overlay window that PinVol creates for the pop-up volume display.  It's an always-on-top, transparent window, so that might be interfering with your graphics card's drivers.  Transparency often creates a big load on graphics drivers.  The window is hidden when not active, but it's always open, so its presence might be forcing your graphics drivers to disable some optimization that they'd otherwise be doing.  I might have to create an option to disable the pop-up display, or maybe create the window only when needed and destroy it entirely when not displayed rather than just hiding it.



#353 Joppnl

Joppnl

    Enthusiast

  • Members
  • PipPipPip
  • 301 posts

  • Flag: Netherlands

  • Favorite Pinball: Where I can put my name on as Grand Champion......

Posted 20 March 2017 - 07:10 PM

Hello Mike:

 

found something......

 

When PinVol is started (automatically on PCstartup or manually, that doesn't matter) and PinVol is not touched it will slow down the FPS (very dramatically, from a 360 to 60).

 

However....

 

When PinVol is 'touched' which means checking/unchecking a box (I tried it with the overlay box) or just changing the volume (in my case <windows-key> + <F10> ) the FPS comes back immediately.

 

It does not matter if the 'overlay-visable-box'  is checked or not  at startup.

 

So to conclude: when PinVol is being started it will cause a huge fps drop but as soon as it did something and got a 'wake-up'call the program behaviour is excellent.

 

Nevertheless I think it's strange that PinVol is causing this fps drop which is not visable on the CPU or GPU load....

 

Hope this helps Mike.

 

Thnx!


Edited by Joppnl, 20 March 2017 - 07:11 PM.


#354 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 24 March 2017 - 06:28 AM

I've just posted a new release of the firmware and config tool.  If you have the auto-update feature set in the config tool, it should find it and download it for you automatically.  You an also grab the new copies manually from the usual place:

 

http://mjrnet.org/pi...oller_KL25Z.bin

http://mjrnet.org/pi...eConfigTool.zip

 

 

New features:

 

* IR remote control.  The IR remote control features on the expansion board are finally supported!  The software is now capable of sending and receiving IR remote control commands, which can be used in three ways.  First, it works with the TV ON feature: program the remote control code for your TV's ON button, and the board can transmit that code when the system powers up to make your TV turn on.  Second, you can assign IR commands to cabinet buttons, allowing you to transmit whatever other commands you might want to send to your TVs or other devices at any time.  Third, you can assign PC keystrokes (either keyboard keys or joystick buttons) to be sent when designated IR commands are received.  This lets you point a remote control at Pinscape, press a button on the remote, and have Pinscape send a key to the PC.  This lets you access extra PC command functions using remote controls rather than adding more cabinet buttons.  E.g., you could control your PC audio volume using a remote control.

 

The firmware acts like a universal learning remote.  It's fluent in about 30 common protocols, which should cover most major consumer electronics brands, but there are probably some outliers that it doesn't recognize yet.  The software is designed to make it fairly easy to add new protocols, so let me know if you run into a remote it doesn't recognize, and I'll try to add support.  Send me details on the make and model of the equipment, plus the "raw signal data" report that you can get from the "learn" dialog in the config tool.

 

* New Shift button options.  You can now configure the Shift button (if you're using one) to act more like an ordinary button, if you prefer.  I've noticed that some people don't like the "delay" that the Shift button has in sending its mapped key.  By default, the Shift button waits to send its mapped key until you release the button, because that's the only way it can know for sure that you're not going to engage its Shift function by pressing another key.  If you prefer, you can get rid of that delay by selecting the new "Shift AND Key" mode.   In this mode, the Shift button always sends its mapped key, without waiting to see if you're going to press another button - that lets it send the key immediately when you press the button, just like any other button.  The tradeoff is that it always sends the key press, so you have to choose a button whose mapped key won't cause unwanted side effects when you only wanted to engage the Shift function.  It's a tradeoff either way, but at least now you can decide which tradeoff you prefer.

 

* New accelerometer options.  You can now control the auto-centering feature, by changing its timing or just turning it off entirely.  

 

You can also change the dynamic range of the accelerometer if you wish.  The hardware itself provides +/- 2G, 4G, or 8G ranges, so I exposed the option to select which range you want.  Previous Pinscape versions used the 2G hardware range, although they limited it to 1G when reporting it to the PC.  The reason the hardware has the range selection is that there's a tradeoff between precision and range.  No matter which range you use, the hardware quantizes the analog motion reading into 14 bits of digital data.  To get the wider ranges, it drops bits off the low end, meaning that you get slightly coarser readings at the wider ranges.  The highest precision is at the 2G range.  From what I can see, there's no good reason to use the higher ranges for virtual pinball, because you're just not going to shake the cabinet hard enough to need them - jolts that hard are pretty much just tilts.  But the option is there if you want to experiment.

 

 

 

This version also has quite a few internal changes for memory and speed optimization, which aren't particularly visible in terms of features, but could cause unexpected changes in behavior, or just plain bugs.  If you run into anything weird or problematic, let me know.  I usually manage to break at least two old things for each new thing on any major release, so I undoubtedly added a few bugs along with the new features.  If you run into anything catastrophic or showstopping, I left a copy of the last build up there as an emergency fallback:

 

http://mjrnet.org/pi...5Z_20170203.bin



#355 kiwiBri

kiwiBri

    Enthusiast

  • Members
  • PipPipPip
  • 369 posts
  • Location:Ontario, Canada

  • Flag: Canada

  • Favorite Pinball: STNG/TAF/IJ

Posted 24 March 2017 - 01:30 PM

Thanks for this fantastic update. :otvclap:  Although I have a Backglass tv that auto powers on , the IR functionality to allow the PC to be controlled from a remote control will allow me to use the remote control from the TV I trashed by mistake when decasing during the earlly part of my build. :(

I'll have to add an IR LED to the cab when I get to doing the " Icing on the cake" phase so to speak ;)


Completed: (For now ;) )  - My 46/30/DMD Judge Dredd Cab Build


#356 NobodyYouKnow

NobodyYouKnow

    Hobbyist

  • Platinum Supporter
  • 48 posts

  • Flag: United States of America

  • Favorite Pinball: Space Invaders

Posted 25 March 2017 - 10:32 PM

Mike - as usual, you rock. Thanks for this fantastic update. I'll play around with it over the coming few days and let you know of any problems. Somehow I expect I will find none.



#357 NobodyYouKnow

NobodyYouKnow

    Hobbyist

  • Platinum Supporter
  • 48 posts

  • Flag: United States of America

  • Favorite Pinball: Space Invaders

Posted 25 March 2017 - 10:42 PM

I am experiencing a problem with the new PinscapeConfigTool. When I have the plunger option turned off (set to "None".) and click the "Test Outputs" button I receive the following in a popup.Everything works with sensor type set to "TSL1410R". Perhaps I have stumbled upon an untested code path?

 

Internal error!

An error has occurred within the config tool. This is probably due to a

bug in the program, not anything you did wrong.

 

Technical details (for debugging):

html/Configure.htm, line 7106, col 9

TypeError:Unable to set property 'a' of undefined or null reference



#358 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,331 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 25 March 2017 - 11:09 PM

I am experiencing a problem with the new PinscapeConfigTool. When I have the plunger option turned off (set to "None".) and click the "Test Outputs" button I receive the following in a popup.Everything works with sensor type set to "TSL1410R". Perhaps I have stumbled upon an untested code path?

 

Sure enough!  It should be fixed now.



#359 NobodyYouKnow

NobodyYouKnow

    Hobbyist

  • Platinum Supporter
  • 48 posts

  • Flag: United States of America

  • Favorite Pinball: Space Invaders

Posted 26 March 2017 - 01:01 AM

Hmmm. The Pinscape setup tool auto-updated as expected, and now reports "The firmware and setup tool are both up to date." I still get the popup error when I try "Test buttons" or "Test output". Of possible significance, "Configure.htm" still has a 3/23 date on it. Looking in "PinscapeConfigTool.AutoUpdate.zip" I see "Configure.htm" has a 3/25 date. Do I need to do something more to force updates?

 

update:

 

Okay - never mind. I restarted Pinscape setup again and this time the update took. Maybe I was a bit too hasty before.  :tapping:


Edited by NobodyYouKnow, 26 March 2017 - 01:05 AM.


#360 47pinhead

47pinhead

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: United States of America

  • Favorite Pinball: any

Posted 30 March 2017 - 07:57 PM

some of us..uumm... cant upgrade to 11 <wink wink>


it would be awesome to use all the features, but no biggie if i cant, I can use the latest firmware, and plunger config so... there the most important...

 

Download offline installer here....  https://support.micr...fline-installer







Also tagged with one or more of these keywords: pinscape