Sunday, August 15, 2021

Chameleon IO Controller - Adventures in Latency Testing

Chameleon IO Controller & Round-Trip Latency
One of my primary objectives when designing the Chameleon IO Controller was minimizing round-trip latency.  In mechanical games like pinball, lower latency improves game feel, by reducing the amount of time from pressing a cabinet button to a solenoid firing.  If latency is too great, you will notice a lag after pressing the button until the flipper fires, or after a ball hits a slingshot and the slingshot activates.

Unlike a typical pinball controller where the switch to fire a solenoid (i.e. a flipper) is directly connected to the solenoid, my design takes the button press and sends it over USB to the host PC, where my Chameleon Pinball Engine software processes the button press, and sends a command signal back over USB to turn on the solenoid.  

As the Chameleon IO Controller has both the gamepad buttons and LED outputs all on a single PCB, effectively the signal makes a round-trip from IO Controller to host PC and back to the IO Controller.

This design introduces latency at several distinct points.  There is the latency in the IO Controller to detect a button press and send the new button state info to the host PC.  There is latency in my pinball software to recognize and process the button press.  There is the latency in sending the new LED state back to the IO Controller.  And finally there is latency in the IO Controller to actually turn on the output.

My previous post detailed working on the Chameleon IO Controller's firmware to improve PWM performance, so of those four distinct points affected by latency, I've already addressed the last two.  My goal with this new round of testing is to work on the other two points.

Below a certain threshold, latency isn't an actual problem.  When you're playing video games, as long as latency from button pressed to pixels updating stays below 40ms, response feels instantaneous and you'll have a great experience.  But real world games like pinball are more demanding - physics waits for no-one - so latency needs to be even lower for good ball control.

Friday, August 13, 2021

The Black Knight Rises Project Update - It Lives!

 I can't believe it's been almost 4 years since the last project update here.  I'm sure everyone has assumed The Black Knight Rises is DOA.

I'm happy to say that not only is it not dead, but for the first time in a while, the project is  making great progress!

Yeah, this is a long post.  It's hard to wrap up 4 years in a couple paragraphs.


What Happened?

In the summer of 2017 I needed a break from working on the The Black Knight Rises.  Building a complete pinball machine from scratch, designing and assembling my own electronics, writing firmware, programming the pinball software, and troubleshooting issues coming from every direction - it was just all too much.

Click through below to follow along on the journey and see the great new developments!

Friday, September 8, 2017

Modern Firepower - Upgrades and a Tune-up

It's been about 4 years since Modern Firepower received any attention under the hood, and it has been such a solid build it really didn't need any attention.  I had a switch wire break a solder connection once - my own fault for keeping the wires taut between connections, always leave wire slack - but beyond that it has been pretty much trouble-free.

Well, except for that one sheared pop-bumper bolt I discovered in the cabinet a few months back, still clinging to the nut it liberated in its desperate attempt to escape a life of pinball attacks.  It crossed my mind that perhaps I should see where the destroyed bolt was located, but since Williams style pop bumpers are connected with three bolts, I didn't give it too much thought.  From the top side of the playfield, all four pop bumpers seemed solid.

Fast forward to the end of the 2017 Southern Fried Gaming Expo.  While packing up Modern Firepower for the short trip home, I noticed another sheared pop bumper bolt lying underneath it on the floor.  Though I couldn't rule out its origination coming from a nearby machine, in my gut I knew Modern Firepower was the source.

Modern Firepower at the 2017 Southern Fried Gaming Expo, next to an original classic Firepower - photo by Juan Josino


Read on to see the Modern Firepower repairs, tune-ups, and the very special upgrade I installed...

Thursday, June 29, 2017

"The Black Knight Rises" - Week 5 Progress

Though The Black Knight Rises missed the show, the work must go on...

Days 29 & 30 - Saturday & Sunday at the 2017 SFGE:
For me, one of the best things about attending the Southern-Fried Gaming Expo is hands-on time with hundreds of machines, including some custom machines.  Sure, I was having fun playing, but this was also work, research to be specific.

As I would play each game, I would make note of any unique features, not just from a playfield design standpoint, but more importantly from a software capabilities standpoint.

For example, I got to play American Pinball's freshly assembled Houdini.  At one point during gameplay, I triggered a mirrored and reversed flipper mode, in which the right button controlled the left flipper, and vice-versa, plus the flipper bats stayed in the upright position, and you had to press the buttons to lower them, releasing to hit the ball.

With a few lines of code, I could certainly add such a routine to the Chameleon Pinball Engine.

It was also a treat to see under the hood of Scott Danesi's most excellent Total Nuclear Annihilation custom pinball machine.  I learned some simple things, like how a drop target can be both raised and lowered by adding a second solenoid to "hit" the target and make it drop, and that there is a stock Williams flapper style one-way ball gate that includes a solenoid to raise the gate, opening a passageway to both directions of travel.  Scott also has developed his own Computer Startup and Shutdown Controller, allowing the standard power switch on the bottom of a cabinet to directly, and safely, power cycle a PC.

I came home with a mind overflowing with ideas, and it will take a while to work through them.

Read on for the rest of this week's progress...

Tuesday, June 13, 2017

Modern Firepower returned to the Southern-Fried Gaming Expo

Three years ago, Modern Firepower made its public debut at the first annual 2014 Southern-Fried Gaming Expo.

While schedule conflicts prevented return appearances in 2015 and 2016, Modern Firepower was able to make the trip again for the 2017 Southern-Fried Gaming Expo.  A big thanks to Dan and Joe for making room for Modern Firepower.  An even bigger thanks to Troy, without whom the trip would not have been possible, and Steven, who also assisted with moving duties.

This year's expo itself was a smashing success, with a reported 270+ pinball machines and arcades.  The show was a lot of fun.  If you missed it, be sure to attend next year.

Firepower vs. Modern Firepower at the 2017 Southern-Fried Gaming Expo
Read on for show highlights...

Monday, June 12, 2017

"The Black Knight Rises" - Week 4 Progress

With less than a week remaining until the 4th annual Southern Fried Gameroom Expo, I was now in overdrive working 16+ hour days.  The lack of sleep was beginning to take a toll on my ability to work.  I began to notice that even small obstacles would completely derail progress as I struggled to think through solutions.  I'm beginning to regret the challenging 4 week timeline.

Still, I pushed forward.  This post is longer than most, as a lot happened this week.


Day 22 - Saturday:
The cabinet felt very close to completion, and I was determined to spend half a day and knock it out.  I had applied the Danish Oil on Monday, and after giving it over 4 days to cure, it was time to apply a polyurethane protective coat.

But first I wanted to finish the trim out.  During parts sourcing, I had stumbled onto reproduction Black Knight cabinet side rails, with the dual flipper/Magna-Save button cut-outs.  Of course, being sized for an 80's style cabinet in which the side rails extend to the very back of the cabinet, they were too long for a modern standard sized cabinet with a pivoting backbox.  To make them work, they would have to be trimmed to length.  I also needed to shorten the backbox hinges.

I put a ferrous metal blade on my compound miter saw and got to work.  The hinges were stamped from thick gauge stainless steel, and cut like butter.  The siderails, while much thicker than modern siderails, were still thin and soft, and more than a couple times I slipped with the saw and bent the rails.  I thought for sure I had damaged them beyond repair, but luckily with a bit of straightening and a more meticulous cutting process, I was able to get them finished.

Cutting the 1980's era Black Knight side rails to make them fit on modern cabinet.

Working again on the cabinet, I aligned and drilled the holes for the backbox hinges.  I also had to notch the side rails for the hinge bolts, and the rails were too tall.  I then assembled and tested the side rails and backbox hinges.  This cabinet build is similar to building a hot rod - merging old with new with unique, plus lots of custom fabrication.

Metal cutting finally done, the backbox pivots!

Read on to see how the final build week turned out...

"The Black Knight Rises" - Week 3 Progress


It felt like I was beginning to turn the corner in week 3.  With the fabrication and restoration steps complete, and reassembly underway, it seems I might just make my self imposed deadline.



Day 15 - Saturday:
With the playfield clear coat happily curing without me, I turned my attention back to the cabinet.  I measured and cut out the coin door and bottom panels, then glued it all up.

Clamps, a woodworkers best friend.  Plus heavy stuff to weigh down the bottom panel while glue sets.

Once it was assembled, I was able to then measure for the top shelf and the playfield backstop (not sure what else to call it), cut them out and glued them to the cabinet.

Read on for the day by day recap...