Jump to content

Analog scanning of manuals: Is it fast enough?


Sander

Recommended Posts

I've started a midification project of organ manuals to hook up to organ simulation software (Hauptwerk). As interface I'd like to use a reflective opto switch. I'm currently testing this with the Vishay CNY70. When pressing a key, the amount of refective light and thus the output resistivity / voltage changes. To scan the output I have two options:

 

1) Scan it with DIN and tune the correct voltage for the moment it switches, perhaps with some potmeters to tune the LED or output voltage.

 

2) Use AIN to scan the acual position of the key and set a threshold for each key on when to switch. This enables full control over the key, and for example enables a different position of NOTE ON and NOTE OFF. I'm wondering however if this would response fast enough to play music.

 

 I still have some old parts (MIOS V2 mainboard) for testing, but could also get a newer version.

Link to comment
Share on other sites

In MIOS8, each analog conversion will take 200 uS, accordingly 64 inputs can be scanned within 12.8 mS

 

This might be sufficient for an organ keyboard, but you've to try it out.

 

MIOS32 in conjunction with the MBHP_AINSER64 module and the MBNG firmware won't be much faster (ca. 10 mS for 64 inputs), because the driver isn't optimized for higher speed. In theory a faster conversion would be possible, but this would require a different firmware.

 

Best Regards, Thorsten.

Link to comment
Share on other sites

12.8 mS sounds a bit slow, but I'll test it out. I assume DIN is a lot faster. Is it easy to change the MBNG firmware for an experienced programmer or are there really fundamental limitations?

 

Can you send me instructions to update my old PIC 18F452 to the latest MIOS version? The current bootloader was loaded 9 years ago and doesn't work with the new MIOS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...