Cars have red lights at the back because that colour is more visible through spray and fog. I thought if I swapped green LEDs for red, they might shine through better. The LEDs that arrived seemed brighter than the old ones in the first place and they shine straight through the veneer, even when its not sanded thin. So that problem is solved, and I have some spare LEDs for another project one day.
Here's a video of me testing them out - check out the shine from the lights on the table:
Next I had to get them working so that I can send any string to be displayed. It turns out the chip I had cant address enough memory in one chunk to hold the font data, so I got the next model up. It's taken me forever to get it working, but I'm in a better place with it now. I can even program it whilst its still in the circuit, so I can write new firmware without taking the chip out, which is saving loads of time.
I needed to build a new circuit board. Seperate ones to manage the coin detector, the LEDs and the other stuff coing on was getting crowded, so I decided to put it all on one chip, on one board.
Heres the old one
And heres the new
It currently controls the coin detector, joystick inputs for menu selections, the outputs from the cap touch sensor and in the near future, a motor driver and RS232 port for comms with the PC.
I have to have the cap touch sensor code on a seperate chip because it has to be close to the sensor buttons.
The touch-buttons is awesome. Please add some details on how they actually work. I'm thinking of doing something similar at work.
Here is the chip that detects capacitance changes. The connectors to the left connect to the sensors (previous post) and the wires on the right go to the iPac (or in my case, another chip)
It works by measuring the time it takes to charge and discharge any capacitors (the hidden 'buttons') connected. When your finger gets near, you become part of the capacitor and that alters the charge time. It can have around 16 channels - but I only need 4: Pause, volume, exit and one more for 'future use'. They send a pulse which I pass to the main controller. It needs some tuning up, it's very sensitive to the size of the sensor and the length of the wires. PM me if you want the details, or I'll maybe start a seperate thread if anyone wants to make their own.
The pause and exit could have been connected directly to the iPac, but I wanted to intercept them to display some feedback to the user.
When you press pause - I display 'Paused' on the LEDs until you press it again.
When you press exit, it displays a countdown from 3 - you have to hold it so I avoid any accidental touches. On zero I send an exit keypress to the iPac which returns you back to choose another game.
Volume control is done by moving left and right on the joystick. It does nothing at the moment - I need a digital potentiometer to hook up to the existing manual control on the amplifier.
Here is a video of those controls in action.
The fade in/out took a while to work out, but I think it adds to the effect. The LEDs have 16 levels of brightness, and the lowest is just visible, so it looks like the image fades into the wood.
Almost there now. I'm going to move onto the motorised top next...