automated toy piano ******************* firmware programmmed: 09.08.2008 - V1.0 last file update: 10.08.2008 Midi kanaal voor Toypi: 10 (tellend vanaf 0) First PIC task: make all outputs low. In de PIC implementatie zouden we een bereik willen hebben van 0.05 tot 10ms. (gemapt op 1-127 in midi) [nu tot 50ms] PIC's: 2 stuks 18F4620 - 12V magneten, werkend op 24V elk board stuurt 19 noten PIC 1: low notes Weidmuller/ mosfet (T1-T28) midi noot kommando 1 72 Note On + velo PULSE 2 73 Note On + velo PULSE 3 74 Note On + velo PULSE 4 75 Note On + velo PULSE 5 76 Note ON + velo PULSE 6 77 Note ON + velo PULSE 7 78 Note ON + velo PULSE 8 79 Note ON + velo PULSE 9 80 Note ON + velo PULSE 10 81 Note ON + velo PULSE 11 82 Note ON + velo PULSE 12 83 Note ON + velo PULSE 13 84 Note ON + velo PULSE 14 85 Note ON + velo PULSE 15 86 Note ON + velo PULSE 16 87 Note ON + velo PULSE 17 88 Note ON + velo PULSE 18 89 Note ON + velo PULSE 19 0 nc - not implemented 20 1 nc - not implemented 21 60 Note On / Off - hold only (light) - yellow led keyboard lowest 22 61 Note On / Off - hold only (light) - yellow 23 62 Note On / Off - hold only (light) - yellow 24 63 Note On / Off - hold only (light) - yellow led left side 25 48 Note On / Off - hold only (light) - blue underneeth 20mA 26 49 Note On / Off - hold only (light) - white underneeth 20mA 27 50 Note On / Off - hold only (light) - reserved 28 51 Note On / Off - hold only (light) - reserved All notes off (ctrl.123) should write zero's to all outputs PIC 2: - high notes Weidmuller/ mosfet (T1-T28) midi noot kommando 1 52 Note On / Off - hold only (light) - reserved 2 53 Note On / Off - hold only (light) - reserved 3 54 Note On / Off - hold only (light) - white underneeth 20mA 4 55 Note On / Off - hold only (light) - blue underneeth 20mA 5 64 Note On / Off - hold only (light) - yellow led keyboard 30mA 6 65 Note On / Off - hold only (light) - yellow 30mA 7 66 Note On / Off - hold only (light) - yellow 30mA 8 67 Note On / Off - hold only (light) - yellow led high side, highest 30mA 9 2 Note On / Off - hold only (light) - reserved 10 3 Note On / Off - hold only (light) - reserved 11 90 Note ON + velo PULSE 12 91 Note ON + velo PULSE 13 92 Note ON + velo PULSE 14 93 Note ON + velo PULSE 15 94 Note ON + velo PULSE 16 95 Note ON + velo PULSE 17 96 Note ON + velo PULSE 18 97 Note ON + velo PULSE 19 98 Note ON + velo PULSE 20 99 Note ON + velo PULSE 21 100 Note ON + velo PULSE 22 101 Note ON + velo PULSE 23 102 Note ON + velo PULSE 24 103 Note ON + velo PULSE 25 104 Note ON + velo PULSE 26 105 Note On + velo PULSE 27 106 Note On + velo PULSE 28 108 Note On + velo PULSE All notes off (ctrl.123) should write zero's to all outputs SysEx programmable lookuptables for velocity scaling. Pincode "toyp"