diff --git a/projekte/disney-sound-source/leeland_2097_67866602.jpg b/projekte/disney-sound-source/leeland_2097_67866602.jpg new file mode 100644 index 0000000..248e799 Binary files /dev/null and b/projekte/disney-sound-source/leeland_2097_67866602.jpg differ diff --git a/projekte/disney-sound-source/leeland_2097_68043618.jpg b/projekte/disney-sound-source/leeland_2097_68043618.jpg new file mode 100644 index 0000000..ec335ed Binary files /dev/null and b/projekte/disney-sound-source/leeland_2097_68043618.jpg differ diff --git a/projekte/disney-sound-source/leeland_2097_68701269.jpg b/projekte/disney-sound-source/leeland_2097_68701269.jpg new file mode 100644 index 0000000..64efa4b Binary files /dev/null and b/projekte/disney-sound-source/leeland_2097_68701269.jpg differ diff --git a/projekte/disney-sound-source/leeland_2097_69307497.jpg b/projekte/disney-sound-source/leeland_2097_69307497.jpg new file mode 100644 index 0000000..dc3a619 Binary files /dev/null and b/projekte/disney-sound-source/leeland_2097_69307497.jpg differ diff --git a/projekte/disney-sound-source/leeland_2097_69910642.jpg b/projekte/disney-sound-source/leeland_2097_69910642.jpg new file mode 100644 index 0000000..4b63031 Binary files /dev/null and b/projekte/disney-sound-source/leeland_2097_69910642.jpg differ diff --git a/projekte/disney-sound-source/sketch_apr02a/sketch_apr02a.pde b/projekte/disney-sound-source/sketch_apr02a/sketch_apr02a.pde new file mode 100644 index 0000000..d3d67c6 --- /dev/null +++ b/projekte/disney-sound-source/sketch_apr02a/sketch_apr02a.pde @@ -0,0 +1,73 @@ +/* Disney Sound Source + +From: http://www.awe.com/mark/dev/disney.html +-------------------------------------------------------------- +Turning it on + + 1. Send the value 0x04 to BASE_PORT+2 + +Turning it off + + 1. Send the value 0x0C to BASE_PORT+2 + +Sending a value to the DAC + + 1. Send the unsigned DAC value to the BASE_PORT as normal. + 2. Send the value 0x0C to BASE_PORT+2 + 3. Send the value 0x04 to BASE_PORT+2 +-------------------------------------------------------------- + +BASE_PORT + 2 = control port + 0x04 (bit 2) is INIT + 0x0c (bits 2+3) are INIT + nSELECTIN + +-------------------------------------------------------------- +Arduino Desc DB-25 Pin +======= ==== ========= +GND GND 18-25 +13 BUSY 11 +12 nACK 10 +11 D7 9 +10 D6 8 + 9 D5 7 + 8 D4 6 + 7 D3 5 + 6 D2 4 + 5 D1 3 + 4 D0 2 + 3 nSTROBE 1 + 2 SELECT 17 +-------------------------------------------------------------- + +*/ + +int pin_SELECT = 2; + +void setup() { + digitalWrite(pin_SELECT, HIGH); +} + + +void loop() { + boolean val = 1; + + for (uint8_t i=0; i<8; i++) { + digitalWrite(4+i, val); + } + digitalWrite(pin_SELECT, LOW); + delayMicroseconds(5); + digitalWrite(pin_SELECT, HIGH); + delay(2); + + val = 0; + + for (uint8_t i=0; i<8; i++) { + digitalWrite(4+i, val); + } + digitalWrite(pin_SELECT, LOW); + delayMicroseconds(5); + digitalWrite(pin_SELECT, HIGH); + delay(2); + + +}