Jump to content


Photo
- - - - -

Mios pinball


  • Please log in to reply
9 replies to this topic

#1 mb944

mb944

    MIDIbox Newbie

  • Members
  • Pip
  • 58 posts

Posted 22 January 2005 - 12:57

Hi there!

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


Posted Image
above: playfield before
Posted Image
above: playfield after (still needs touching up, plastics and decals)
Posted Image
above: See the midibox? ;D
Posted Image
above: nice rotating element
Posted Image
above: theres that core!




#2 smashtv

smashtv

    MIDIbox Guru

  • Administrators
  • 1,432 posts

Posted 22 January 2005 - 13:55

Ahhhh!  Having flashbacks........  ;)

#3 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,450 posts
  • LocationGermany

Posted 22 January 2005 - 19:54

Hi mb944,

what a fancy project! :)

I just have tested MIDIO128 on my MIDIbox SEQ and noticed exactly the same behaviour. This shocked me a little, because I don't remember that this problem occured during the implementation of the last changes. After some debugging I finally found out that in app_defines.inc the "MB_STAT_FETCH_DIN_REQ" flag is assigned to the same bit like "MB_STAT_DISPLAY_UPDATE_REQ" (a totally unexpected error) and this causes the flickering.

So, when you change this flag to 1 and recompile the code, it will work.

It will also work when you set the "DEFAULT_FORWARD_IO" option to 0 in main.asm (you have to do this anyhow), thats possibly the reason why there were no complaints about this error in the past, because most people don't use the forwarding option, this is only for testing the DINs/DOUTs

Ok, and I found out why I never saw this problem: it was one of the last changes which I've tested on my MIDIbox LC which has a graphical display. Since characters are printed out slower than on a common LCD, the possibility that the wrong bit assignment affects the DOUT is much lower

Best Regards, Thorsten.



#4 moebius

moebius

    MIDIbox Guru

  • Banned
  • PipPipPipPip
  • 1,199 posts
  • LocationOulu - FINLAND

Posted 22 January 2005 - 20:20

I think saw something, that was resembling a cow flyin' :D

Was it like a 3rd unknow bug around MIOS / ported APPS..

Now TK,

Would you mind being nominated for a SynthDIY Soddy? And to not break the rules, what would you consider as your favourite MB release for the Year 2004?

Bye, Moebius

#5 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,450 posts
  • LocationGermany

Posted 22 January 2005 - 23:22

Would you mind being nominated for a SynthDIY Soddy?


*grin* just compare the number of code lines against the number of bugs ;-)

The only thing which makes me worry each time is that now we will notice an increased number of postings where people assume software bugs before they start to check their hardware. From my experience it will take 3-4 months until MIOS applications have reached the known confidence level again ;-)

And to not break the rules, what would you consider as your favourite MB release for the Year 2004?


There are too much favourite MBs in the different categories, but last year no MIDIbox reached the originality of PulseBox16 (for the guys who don't remember the best design ever, here the design: http://homepage.ntlw...on/pb16--ad.jpg and here what the press said: http://homepage.ntlw...midibox_mag.jpg)

Best Regards, Thorsten.



#6 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,450 posts
  • LocationGermany

Posted 23 January 2005 - 00:55

Just gone through the synth-diy mailings, now it's clear what you mean with "SynthDIY Soddy" - I mixed it with "shoddy" ;-)

Best Regards, Thorsten.


#7 mb944

mb944

    MIDIbox Newbie

  • Members
  • Pip
  • 58 posts

Posted 23 January 2005 - 02:16

thanks for the info Tk!
I'll get activeperl downloaded and recompile

best regards,
Alex

#8 mb944

mb944

    MIDIbox Newbie

  • Members
  • Pip
  • 58 posts

Posted 23 January 2005 - 12:59

Hey Tk!
Dont want you to think I was doubting the quality of your app!! Trust, me i have tried loads of leds before asking  ;)
obviously, i was convinced it was a hardware problem at first!

You told me to change the flag in the app_defines.inc file, but he zip I downloaded contains app_defines.h
Should I rename this extension?
Thanks in avance, and cheer up, your work is the best in my opinion,
All my friends are hooked on midiboxing, its a crazy thing!

best regards,
Alex

#9 TK.

TK.

    MIDIbox Guru

  • Administrators
  • 12,450 posts
  • LocationGermany

Posted 23 January 2005 - 21:28

Thanks :)

app_defines.h is the right name, don't rename it, otherwise you are not able to build the project anymore

Best Regards, Thorsten.


#10 airmailed

airmailed

    MIDIbox Addict

  • Members
  • PipPip
  • 150 posts

Posted 06 March 2005 - 20:03

this is from the pd-announce list.. it is not me..  the address of the creator is at the bottom of the post
----------------------------------------------------------------


Hi all,

Tomorrow, there will be the first public showing of my pinball machine
project.

venue : Tent, CBK (visual arts center for Rotterdam)
adress: Witte de Withstraat 50
Rotterdam, Netherlands
time : 20:30 starting time
http://www.tentplaza.nl is their official site,
warning: this is a very artistic flash site (and not up to date)
taking over
your entire screen.
The presentation is part of an evening with various Berlin Artists, and
a
beerstube with bratwurst.

ABOUT:
A slightly modified and repainted pinball machine (a 1992 DataEast) is
hooked
up to a computer running linux, effectively replacing the soundcard of
the
pinball machine.

In this first presentation, the sounds are generated by csound and the
composition controlled by pd interpreting the many codes it receives
from the
pinball machine in sometimes surprising ways.
A play costs a Euro, and for that price you get your very own
interactive
concert of contemporary electronic music and a chance to win another
round,
or to enter your initials or to play the fabulous multiball mode.


FUTURE:
I would like to invite other composers to write pieces for pinball
machine.
Stay tuned for further announcements about this.

ciao

gerard

--
electronic & acoustic musics-- http://www.xs4all.nl/~gml




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users