I'm currently working on an exciting new midi project: A PINBALL(see photos)
I haven't a clue with Pic programming so I'm only using the Mios hardware as an IO inteface between a VISUAL BASIC application and the pinball hardware.
The pic is loaded with the default midi128 firmware.
Here's the pogress so far:
DAY ONE:
built a DIN and connected all 38 triggers to it, ran the ball through them, Visual basic registered all the NOTE ON messages.
that made my day! ;)
DAY TWO:
Made a Dout vectorboard and connected 25 Leds to It, programmed a simple sequence of consecutive lights:
YES YES YES ;D that had me dancing
Ok, not much talent envolved here but its my first DOUT and It worked first go!
unfortunately, when I took a closer look at sequencing, it noticed that the leds are being a bit random:
Sometimes they come on, sometimes they just flicker on then stay off
Sometimes when I light 10 leds, the 11th simply cuts off the 10 others
Maybe I need to change the software config?
My visual basic app handles midi in 3 decimals (MESSAGE; DATA1; DATA2)
I've therefore been using the folowing code the light a led:
144; 64; 1; (meaning NOTE ON; PIN 64; velocity 1)
as i said, it will come on, But not allways first time, and if I loop the message,
It will eventually turn off again, back on, flicker etc.
Is there another decimal value other than 144 that would work better? does it toggle by default?
I thought that My visual basic software might be unaccurate, but I have already used it in other situations
and it worked flawlessly Millisecond precise.
i know something needs changing in the software anyway because at the moment,
the din pin trigger their respective Dout pins, and i only wont them to send midi out.
This project is definitley great fun, But I dont want to ruin it because of unaccurate Dout,
especialy the next step being 25v solenoid coils on relays. I can't afford to burn them out because of a "sticky" pin >:(
By the way, I'm supplying 9VDC at 500 mA to the core, could this be the problem?
Thanks in advance for your interest in my project and for any advice with configuring the software.
Best regards,
Alex

above: playfield before

above: playfield after (still needs touching up, plastics and decals)

above: See the midibox? ;D

above: nice rotating element

above: theres that core!



