User Tools

Site Tools


din_module

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
din_module [2006/06/06 23:48]
admin added troubleshooting guide
din_module [2016/07/11 16:23] (current)
psykhaze
Line 1: Line 1:
-DIN module is used to connect buttons and encoders to the Midibox.+====== DIN Module ====== 
 + 
 +===== General Informations ===== 
 + 
 +DIN module is used to connect buttons and encoders to the Midibox. The Name comes from "​Digital Input" and means that the module can detect two states: ON or OFF.
  
   * [[http://​www.ucapps.de/​mbhp_din.html|DIN Module]] <​sup>​uCApps</​sup>​   * [[http://​www.ucapps.de/​mbhp_din.html|DIN Module]] <​sup>​uCApps</​sup>​
Line 5: Line 9:
     * [[DIN & DOUT Pintable]]     * [[DIN & DOUT Pintable]]
     * [[Encoders]]     * [[Encoders]]
 +    * [[din board parts list]]
  
-===== Troubleshooting ===== 
  
 +\\
 +===== Connection to Core Module =====
 +
 +Check the version of your Boards;
 +if you're using SmashTV'​s Core that's equipped with double rows, you can build a split-cable to connect J8/J9 to a DIN and a DOUT:
 +{{http://​www.audiocommander.de/​picBrowser/​galleries/​070707_ACSensorizer/​CORE_DIN_DOUT_J8J9_Cable.png}}
 +
 +
 +\\
 +===== Troubleshooting =====
  
 ==== Testing all pins ==== ==== Testing all pins ====
  
-Regardless which MIDIbox you are planning to build, you can use the MIDIO128 application ​in order to test the digital inputs of the DIN module(s)+Regardless which MIDIbox you are planning to build, you can use the MIDIO128 application to test the digital inputs of the DIN module(s)
  
-Once MIOS and the MIDIO128 application have been uploaded, each digital input will send a Note On event when a button is pressed (=0V at the digital input pin), and a Note Off event when the button is released (=5V at the digital input pin).  +Once MIOS and the MIDIO128 application have been uploaded, each digital input will send a Note On event (pin 1-64) or Controller Event (pin 65-128) ​when a button is pressed (=0V at the digital input pin), and a Note Off event (pin 1-64) or Controller Event (pin 65-128) ​when the button is released (=5V at the digital input pin).  
-Rotary encoders will send two Notes (because they are connected to two pins) depending on the quadrature state.+Rotary encoders will send two Events ​(because they are connected to two pins) depending on the quadrature state.
  
-Each pin will trigger an individual note number. This is the second byte of a Note event. The first pin will send "​90 ​00 7F" when pressed, and "​90 ​00 00" when released. The last 128th pin will send "90 7F 7F" when pressed, and "​90 ​7F 00" when released. ​+Each pin will trigger an individual note/CC number. This is the second byte of a event. The first pin will send "​90 ​30 7F" when pressed, and "​90 ​30 00" when released. The last 128th pin will send "B0 4F 7F" when pressed, and "​90 ​4F 00" when released. ​
 The MIDI events can be displayed with MIOS Studio or a MIDI monitor (e.g. MIDI-Ox) The MIDI events can be displayed with MIOS Studio or a MIDI monitor (e.g. MIDI-Ox)
-The [[DIN & DOUT Pintable]] helps to map the hexadecimal ​numbers to shift register pins.+The MIDIO_OUT_ENTRY definitions in midio128_presets.inc help to map the pins to the events, the [[DIN & DOUT Pintable]] helps to map the pin numbers to shift register pins.
  
  
-==== If required: ​Testing Shift Register Connections ====+==== Testing Shift Register Connections ====
  
-If the first input pin of the first shift register (74HC165) triggers all 128 Notes at once, there is propably a problem with the Shift or Register Clock line (SC/RC signal). Both signals are driven by the core module, and they are connected to all shift registers in order to scan the chain. If these signals are not connected, or if they have a short, the core will "​see" ​always ​the first digital pin, and never the remaining pins of the chain.+If the first input pin of the first shift register (74HC165) triggers all 128 Notes at once, there is propably a problem with the Shift or Register Clock line (SC/RC signal). Both signals are driven by the core module, and they are connected to all shift registers in order to scan the chain. If these signals are not connected, or if there is a short, the core will always ​"​see"​ the first digital pin, and never the remaining pins of the chain.
  
 If some of the last shift registers cannot be scanned, it is very likely that the SC/RC line is broken, that there is a bad soldering, or similar. If some of the last shift registers cannot be scanned, it is very likely that the SC/RC line is broken, that there is a bad soldering, or similar.
  
-Such types of errors can be located with the srio_interconnection_test application,​ which can be found at the [[MIOS download page|http://​www.ucapps.de/​mios_download.html]]. ​+Such types of errors can be located with the srio_interconnection_test application,​ which can be found at the [[http://​www.ucapps.de/​mios_download.html|MIOS download page]]. 
 Step by Step instructions for the testing procedure are described in the main.asm file Step by Step instructions for the testing procedure are described in the main.asm file
  
Line 41: Line 55:
 If visual checks don't help to detect the short circuit, you could begin with a very drastic, but effective method: cut the failing track in the middle, and check if the short has disappeared. Cutting has to be repeated until you've found the cause for the failure. If visual checks don't help to detect the short circuit, you could begin with a very drastic, but effective method: cut the failing track in the middle, and check if the short has disappeared. Cutting has to be repeated until you've found the cause for the failure.
  
-Warning: Don't do this too early, this should be the last measure which normaly leads to success, but also to a bad looking PCB +Warning: Don't do this too early, this should be the last measure which normaly leads to success, but also to a bad looking PCB. After this procedure, you have to repair the track with some solder
din_module.1149637709.txt.gz · Last modified: 2006/10/15 09:35 (external edit)