Golding Audio DSU500 User manual

G
A
8 Peartree Business
Centre
Stanway
Colchester
Essex
CO3 0JN
)))
Golding Audio Ltd T: +44 (0)1206 762462 F: +44 (0)1206 762633
DSU500
www.goldingaudio.co.uk
Cost effective
Highly efficient 20W Class D amplifier
Compact unit with integral fixing points
Screw terminals for ease of installatio n
Line out for driving external amplifiers
4 direct access trip input s
USB port for drag and drop data transfer
Power Supply included
On board memory
Features
USB powered for programming
adpcm compact audio player
Manual iss1.05 31-03-16

Quick start
1. EncodeyouraudiotoMicrosoftADPCMMONO.wavfilesandsaveas‘001Track1.wav’etc
2. Connect the USB lead to the PC and replace the test files already preloaded on the DSU500
with your new files. Power supply not required to load files.
3. Disconnect USB
4. Connect speaker and any external switches to trip inputs.
5. Connect DSU500 to 12V power source and start playing.
Files
Before operating the DSU500, it has to be loaded with sound files and control files as listed below.
001Track1.wav, 002Track2.wav, 003Track3.wav, 004Track4.wav (audio files)
INIT.txt
DSU500V1_0.hex
Thefirstfourfileslistedabovethatendwith‘.wav’aretheaudiofilesandmustbeencodedasMicrosoft
ADPCM MONO files with a sample rate of either 48KHz, 44.1KHz, 32KHz or 16KHz.
Forsoundswithhighfrequencycomponents,werecommendusingeither44.1KHzor48KHzsample
rates.
Stereofileswillnotplayback,pleaseensureyouconvertstereofilestoMONObeforeencodingtoMicro-
soft ADPCM.
TheINIT.txtfileisacontrolfileandconfigurestheDSU500’svariousfeaturessuchashowthetripinputs
operate.
This file must be edited with a pure text editor such as ‘Notepad’ in Windows.
The INIT.txt file contains the following data:
/Debounce =50; Debounce time in mS
/Invert =0000; Normally closed bits, inverts trips ‘1234’
/Oneshot =0000; One shot bits '1234'
/Interrupt =1;
/SEQTRIP1 =0; Setto1tosequencemessagesontrip1.Nametracks101,102etc
/SEQTRIP2 =0; Setto1tosequencemessagesontrip2.Nametracks201,202etc
/SEQTRIP3 =0; Setto1tosequencemessagesontrip3.Nametracks301,302etc
/SEQTRIP4 =0; Setto1tosequencemessagesontrip4.Nametracks401,402etc
/RNDMIN =10; Random timer minimum time (1 to 36000 seconds)
/RNDMAX =120; Random timer maximum time (1 to 36000 seconds)
/RNDTRIP =0; Random timer triggers sequencer or trip input (set to 0-4)
/TIMER =30; Fixed timer time (set to 1 to 36000 seconds)
/TIMTRIP =0; Fixed timer triggers sequencer or trip input (set to 0-4)
/LCKOUT1 =0; lockouttimer,preventsnewtrigontrip1fornseconds(setto0-3600)
/LCKOUT2 =0; lockouttimer,preventsnewtrigontrip2fornseconds(setto0-3600)
/LCKOUT3 =0; lockouttimer,preventsnewtrigontrip2fornseconds(setto0-3600)
/LCKOUT4 =0; lockouttimer,preventsnewtrigontrip2fornseconds(setto0-3600)
@
Help:
Interrupt values:
0 No interrupts allowed
1 Lower trips interrupt higher ones playing
2 Any trip can interrupt any other one playing
3 Self-interrupting allowed as well as any other interrupt
Page 1

Description of commands
/Debounce =50;
ThiscommandconfiguresthetimethatthetripinputshavetobevalidandstablebeforetheDSU500
willrespond.Avalueof50meansthetriphastobevalidfor50mS.Youmaysetanyvaluefrom10mS
up to 5000mS. (5 seconds)
This can normally be left at 50 but if a particularly electrically noisy environment is causing false
triggers, then raise this value to fix the problem.
/Invert =0000;
Thiscommandallowsyoutoinverttheoperationofanyorallofthetripinputssothatthetripisactive
when the trip line is open circuit or high.
For example:
/Invert =1000; Trip 1 is inverted. Message 1 plays when Trip 1 is open circuit.
TheaboveexamplecouldbeusedwhentheDSU500isconnectedtoastandardPIRsensorwhichhasa
normally closed contact output that opens when the PIR detects movement.
The numbers following the ‘=’sign can only be ‘1’ or ‘0’
Trip 1 is the first digit, Trip 2 is the second digit etc
So for example, to invert trips 3 & 4, set the command as follows:
/Invert = 0011; Trips 3 & 4 inverted
/Oneshot = 0000;
This command configures the trip inputs individually to allow one shot triggering.
OneshottriggeringisusedtopreventatrackplayingcontinuouslyeveniftheTripremainsactiveatthe
end of the sound track.
Tore-triggerthetrack,theTripmustbereleasedandthenre-appliedafterthesoundtrackhasfinished
playing.
Thiswouldnormallybeusedwhentriggeringfromacontactthatremainsclosedforlongerthanthe
sound track such as certain PIR sensors and timer switches.
For example:
/Oneshot =1000; Trip 1 is one shot enabled.
The numbers following the ‘=’sign can only be ‘1’ or ‘0’
Trip 1 is the first digit, Trip 2 is the second digit etc
So for example, to one shot trips 1 & 4, set the command as follows:
/Oneshot = 1001;Trips 1 & 4 one shot enabled
/Interrupt = 0;
This command configures how the DSU500 responds when another trip comes in while playing.
The four options are:
/Interrupt = 0; No interrupt - While a track is playing, all trips are ignored.
/Interrupt = 1; Priority interrupt - While a track is playing, trips of a lower value will be
accepted and the current track will be cancelled.
/Interrupt = 2; Any other interrupt - While a track is playing, any other trip will be accepted and
the current track will be cancelled.If two trips are active at the same time, the
lowest one will take priority.
/Interrupt = 3; Any and self interrupt - While a track is playing, any other trip will be accepted
and the current track will be cancelled.If the same trip is released and then
re-applied, the track will be restarted from the beginning.If two trips are active at
the same time, the lowest one will take priority.
Page 2

/Seqtrip
/Seqtrip1 =0; Enable sequencer on trip 1
/Seqtrip2 =0; Enable sequencer on trip 2
/Seqtrip3 =0; Enable sequencer on trip 3
/Seqtrip4 =0; Enable sequencer on trip 4
Set any of the four items above to ‘1’ to enable a sequencer on that trip input.
The audio files need to be numbered as follows:
Trip 1 sequencer, 101name.wav, 102name.wav, 103name.wav, 104name.wav etc
Trip 2 sequencer, 201name.wav, 202name.wav, 203name.wav, 204name.wav etc
Trip 3 sequencer, 301name.wav, 302name.wav, 303name.wav, 304name.wav etc
Trip 4 sequencer, 401name.wav, 402name.wav, 403name.wav, 404name.wav etc
The sequencer will reset back to the first number when a file is not found in the sequence.
All four sequencers are totally independent and can be used with different quantities of files.
The interrupt priority (/INTERUPT=?;) works on the trip numbers, NOT the audio file numbers.
Ifatrip isheldon aftertheend oftheaudio track,thatsame trackwillLOOP. Toprevent this, setthe
ONE-SHOT bits in the init file.
Note:ThereisalimittothenumberoffilesthattheDSU500willcurrentlyholdbutthislimitisdepend-
entonthelengthofthefilenames.Ifallfilenamesare8charactersorless(excludingtheextension)
thenyoucanhaveupto64filespresentintotalbutthetotalsizeofthefilesmustalsobeunder8MB.
DO NOT USE INTERRUPT MODE 3 IF USING SEQUENCER AS THIS CAUSES
EVERY OTHER FILE TO BE SKIPPED
Random timer.
/RNDMIN =10; Random timer minimum time (1 to 36000 seconds)
/RNDMAX=120; Random timer maximum time (1 to 36000 seconds)
/RNDTRIP=0; Random timer triggers sequencer or trip input (set to 0-4)
Thisrandomtimercanbeusedtotrigger oneofthefourtripinputswhichinturn can alsoactivatea
sequencer on that trip.
The random timer is set up with a minimum time and a maximum time with the commands above.
Thetimerwillthenoperatebetweenthosevalues.Assoonasthetimertimesout,itwillrestartwitha
new random value.
The/RNDTRIPcommandisusedtodefinethetripinputtoactivate.Setitto1toactivatetripinput1or
2 to activate trip input 2 etc. Set to 0 to disable the timer.
The ‘PLAY’ LED (blue) will flash if the timer is timing and no audio is playing.
Fixed Timer
/TIMER=30; Fixed timer time (set to 1 to 36000 seconds)
Thiscommanddefinestherunningtimeofthefixedtimer.Ifenabled,thetimerwillreloadwiththevalue
defined above as soon as it times out.
/TIMTRIP =0; Fixed timer triggers sequencer or trip input (set to 0-4)
Thiscommanddefinesthetripinputtoactivate.Setitto1toactivatetripinput1or2toactivatetrip
input 2 etc. Set to 0 to disable the timer.
The ‘PLAY’ LED (blue) will flash if the timer is timing and no audio is playing.
Page 3

Lockout Timers.
/LCKOUT1=0; Lockouttimer,preventsnewtrigontrip1fornseconds(setto0-3600seconds)
Thiscommandisusedtolockouttheactualhardwaretripinput1fromacceptinganothertriggerwhilst
this timer is running. It starts when the trip input is received from the external input.
The timer will not operate if the command is set to ‘0’.
/LCKOUT2=0; Lockouttimer,preventsnewtrigontrip2fornseconds(setto0-3600seconds)
Thiscommandisusedtolockouttheactualhardwaretripinput2fromacceptinganothertriggerwhilst
this timer is running. It starts when the trip input is received from the external input.
The timer will not operate if the command is set to ‘0’.
/LCKOUT3=0; Lockouttimer,preventsnewtrigontrip3fornseconds(setto0-3600seconds)
Thiscommandisusedtolockouttheactualhardwaretripinput3fromacceptinganothertriggerwhilst
this timer is running. It starts when the trip input is received from the external input.
The timer will not operate if the command is set to ‘0’.
/LCKOUT4=0; Lockouttimer,preventsnewtrigontrip4fornseconds(setto0-3600seconds)
Thiscommandisusedtolockouttheactualhardwaretripinput4fromacceptinganothertriggerwhilst
this timer is running. It starts when the trip input is received from the external input.
The timer will not operate if the command is set to ‘0’.
Ifusingoneshotinputs,thetripinputmustbedeactivatedandreactivatedafterthelockouttimerhas
expired to be able to re-trigger the input.
TheselockouttimersdoNOTlockoutthefixedtimerorrandomtimertriggers,theyonlyworkonthe
hardware (external) trip inputs.
Continuous looping playback
EitherconnecttherelevanttrippermanentlytogroundORsetthe‘invert’digitto‘1’fortherelevantfile.
For example:
Play track 4 looped
/Invert =0001; Normally closed bits, inverts trips ‘1234’
Ifyouwanttheloopingtracktobeinterruptedbyothertrips,thenuseTrack4fortheloopasthistrip
has the lowest priority.
Notes:
1. The DSU500 will default to standard settings if the INIT.txt file is corrupt or missing
2. All commands start with ‘/’ and end with ‘;’
3. Any text allowed after the ‘;’ on the same line only
4. Upper case or lower case characters allowed
5. Tabs and spaces are allowed within the command line for clarity
6. The last command must be followed with the ‘@’ symbol.
7. Any text may be written after the ‘@’ symbol
8. The INIT.txt file should be less than 4k bytes
Page 4

DSU500V1_0.hex
ThisfilecontainstheoperatingfirmwareoftheDSU500andisusedtoperformafirmwareupdatefor
new features or bug fixes. This file will be available from time to time on our website.
The DSU500 does not need this file to be present to operate as it is merely used during firmware
updates.
The file is named DSU500V1_0.hex which describes the following:
DSU500 Product name
V1_0 Version 1.0
.HEX Intel hex format of the data within the file
Internal jumper settings
WARNING.
ENSURE THAT YOU HAVE NO STATIC CHARGE BEFORE REMOVING THE LID BY TOUCHING
SOMETHING EARTHED SUCH AS THE CASE OF YOUR COMPUTER.
Toaccessthejumpers,disconnectthepowerandcarefullyremovethelidbyremovingthe3screws.
The jumper block is labelled ‘JP2’ and jumpers are marked 1 to 5.
1 Future use
2 Future use
3 Future use
4 PERFORM FIRMWARE UPDATE (remove after use)
5 Enable USB port
Jumper link 4
Thisjumpershouldonlybefittedwhenperformingafirmwareupdate,see‘Firmwareupdate’forfurther
information. Note. This link will normally be supplied but fitted on position 1.
Jumper link 5
ThisjumperlinkisfactoryfittedbutcanberemovedtodisabletheUSBporttopreventunauthorised
access to the files within the DSU500.
Connections
Power
The DSU500 operates on 9 to 15V DC only such as from a regulated power supply or battery.
Connect the power supply to the terminals marked +12V and GND observing correct polarity.
TheDSU500hasaninternalself-resettingfuseintheeventofthepolaritybeingincorrectlyconnected.
Trips
The four trips can be connected to external volt free contacts and the common GND.
These trip inputs are used to initiate playback of the four audio files by momentarily grounding the
relevant trip input.
Thetripinputs haveinternalpull-upresistors to3.3Vandare normallyactivatedbygrounding the
relevant trip input.
Warning: Do not apply more than 5V to the trip inputs if driving the DSU500 from non
volt free connections, such as an external logic controller, as damage will occur.
USB port
This mini USB port is only used for loading the files onto the DSU500 and can be disabled after
programming to prevent unauthorised use by removing JP2 link 5 (see above)
Page 5

Audio Outputs
Connectaloudspeakerwithanimpedanceof4to16OhmstotheterminalsmarkedSpkr+andSpkr-.
For maximum output, use a 4 Ohm loudspeaker.
WARNING: DO NOT CONNECT EITHER LOUDSPEAKER OUTPUT TERMINALS TO GROUND
You may alternatively connect an external amplifier to the Line out terminal and GND if required.
Note:The volumecontrol should generallybe setto between25 and 50%to achieve0dB output.
Run out
This output can be used to control an external device such as a relay.
Theoutputwillpulltogroundwhenanaudiotrackisplayingandwillbeopencircuitwhennoaudiois
playing.
If driving a relay, you must fit a diode across the relay coil to suppress back EMF.
Maximum capacity is 30V at 500mA.
Indicator LEDs
Play LED (Blue) This LED will be lit under the following conditions:
Normal operation.
This LED will be lit when audio tracks are playing.
This LED will flash if either the random or fixed timer is running while no audio is
playing.
File loading.
The Play LED will light when the USB port is transferring data to the DSU500.
The USB cable should not be disconnected while this LED is lit and for 5 seconds
after the LED has gone off.
Firmware update.
The Play LED will light while the firmware is being written to the internal flash
memory.
Status LED (Red) Lit when the power is on.
This LED will flash a number of times to indicate an error code under the following
conditions.
Primary error codes.
1. Not used.
2. File not found. (check naming is correct)
3. Incorrect file format. (Not Microsoft ADPCM)
4. File not encoded as MONO
5. No data chunk in file
6. Bits per sample wrong, must be 4
7. Sample rate above 48KHz
Page 6

Loading files
To load the files onto the DSU500, you will need the following:
DSU500
USB to mini USB lead (Golding Audio can provide this)
Computer
ADPCM audio files to put onto the DSU500
TheDSU500willappearasanotherharddiscdrivewhenconnectedtothecomputer.Usestandard
draganddroporcutandpastecommandstomovefilesbetweenthecomputerandtheDSU500.
Backing up the DSU500
TheDSU500willbesuppliedpre-programmedwithfourtestaudiofilesaswellasthe‘INIT.txt’and
‘DSU500.hex’ files.
Please make a backup of these files before loading your own files by following these instructions:
1) Create a folder on your computer named ‘DSU500 backup’.
2)ConnecttheUSBleadtothecomputerandtotheDSU500.TheREDstatusLEDshouldbelitsteady.
3) Your computer will automatically load a mass storage driver for the DSU500.
4) Navigate to the drive named DSU500 V1.0 (version number will vary)
5)Youshouldnowseethesixfileslistedabove.Selectallsixandcopythemtothefoldermadeearlier
as a backup.
Youshouldnowselecttheaudiofiles(.wav)ontheDSU500anddeletethembeforecopyingyourown
files onto the DSU500.
Ensurethattheaudiofilesthatyouwishtoloadarenamedwiththefirstthreecharactersasnumbers
to indicate to the DSU500 which trip input will trigger them.
Example:
Trip input Audio file
1 001 Track1.wav
2 002 Canon.wav
3 003 Fire .wav
4 004 dog.wav
Asyoucansee,thefirstthreecharactersmustalwaysbeathreedigitnumberbuttherestofthefile
name can be whatever you like. The extension must be ‘.wav’
The audio files MUST be encoded as Microsoft ADPCM (4 bit) in mono only and with a sample rate of
either 8KHz, 16KHz, 32KHz, 44.1KHz or 48KHz. No other formats will work.
Either copy and paste or drag and drop your new audio files onto the DSU500.
The play LED (blue) will light while the DSU memory is being programmed.
Wait for the files to copy over to the DSU500 and check that the blue play LED has gone out.
Do not disconnect the DSU500 while the play LED is lit during loading and for 5
seconds after the LED has gone off.
If you need to alter the INIT.txt file to enable one shot trips or normally closed trips etc, it is best to
makeacopyofthe‘init.txt’filelocatedinyourbackupdirectoryandsaveitwithadifferentnamesuch
as: ‘INIT sfx1.txt’ so that you maintain a copy on your PC.
Thefirstfourcharactersmustbe‘INIT’andtheextensionmustbe.txt.Deletethecurrentfileonthe
DSU500 and then copy over the new one with the modified name.
Page 7

Security
Topreventanyone fromaccessingthefiles overtheUSBport, simplyremovethe link fittedtoJP2
position 5 which will disable the USB port.
Re-formatting
IntheunlikelyeventthatthememoryontheDSU500becomescorruptandyoucannolongerseethe
files re-format the flash memory as follows:
DO NOT use a computer format utility, it won’t work.
Unplug the USB lead if connected.
Disconnect power to the DSU500
FitawirelinkfromTrip4toGNDonthemainconnector(orpresstheexternalswitchifthereisone
connected to trip 4)
Whileactivatingtrip4,inserttheUSBplugintotheDSU500.ThiswillpoweruptheDSU500fromthe
PCandwillautomaticallyre-formattheflashmemory.Ifsuccessful,ablankwindowwillappearonthe
PC.YoumaynowdraganddropyourfilesbackontotheDSU500.
Donotforgettoremovethelinkon
trip 4.
Firmware update procedure
Fromtimetotime,GoldingAudiowillreleasenewfirmwarefortheDSU500toaddmorefeaturesorto
fixminorbugswhenfound.ThisnewfirmwarewillbeavailableviaemaildirectlyfromGoldingAudioon
request.
1. Obtain the new ‘DSU500V?_?.hex ‘ from Golding Audio.
2. Remove the lid of the DSU500 and locate the position of header JP2.
3. Fit 2mm jumpers (supplied) across positions 4 & 5 of JP2.
4. Connect to the PC via the USB lead and check the red LED is on and the files are visible on
the PC.
5. Deletetheexisting‘DSU500.hex’filefromtheDSU500andcopyacrossthenew.hexfile.
6. While the DSU500 is still powered, remove the two links on JP2 positions 4 & 5 and wait
for the Play LED (blue) to go off and the Status LED to start flashing ‘code 2’ then disconnect
the USB lead.
7. Refit JP2 link 5 if you wish to enable the USB port.
8. Power up and test.
Secondary error codes
These secondary codes are shown when updating firmware. (JP2 link 4 is fitted)
1. Waiting for USB connection. (When performing firmware update)
2. Firmware update successful, disconnect USB and remove link 4.
3. Existing firmware is corrupt and cannot start.
4. No .HEX file exists in flash memory to update firmware.
5. .HEX file is corrupt.
6. Firmware update failed.
7. Watchdog fired. (Activate trip 1 to skip)
Troubleshooting
1. The audio playback is jumbled up.
This is because the DSU500 cannot play fragmented files correctly. Please delete the
unwanted audio files first before adding your new files to prevent file fragmentation. If your
filesdonotplaycorrectly,re-formattheDSU500andcopyyournewfilesbackontotheunit.
2. Have you tried turning it off and on again!!
Page 8

Exporting audio file from Audacity to Microsoft ADPCM wav
1. Ensure that your audio file is Mono with the correct sample rate that you require.
If not you can find the options in the Tracks menu.
2. Click on File, then Export Audio.
3. In the Save as type option box select Other uncompressed files.
4. Now click on the Options button (This step is not needed with version 2.1.2 and
above).
5. Select the following for the 2 options
Header: WAV (Microsoft)
Encoding: Microsoft ADPCM
6. Now click on the OK button.
7. Give your file a name as per the instructions (ensure the file extension is .wav)
and click on the Save button.
8. Click the OK button if the Edit Metadata screen appears.
Page 9

Electrical specification.
Operating Voltage 12-15V DC
Current 2A peak, 100mA standby
Trips Four active low inputs with programmable de-bounce
Individual normally open or normally closed
Individual one shot options
Priority options Non interruptible
Any other trip interrupt
Lower trip priority
Self interrupt
Run output 1 x open drain, 500mA max at 30V DC
USB input For loading audio and control files only
Audio format Microsoft ADPCM (MONO only)
Sample rates 48KHz, 44.1KHz, 32KHz, 16KHz, 8KHz
Memory On board 8Mbyte flash
Storage time Approx 5 Minutes at 48KHz sample rate ADPCM
Approx 8 minutes at 32KHz sample rate ADPCM
Approx 17 minutes at 16KHz sample rate ADPCM
Number of audio files Up to 64
Digital resolution 16bit
Speaker output Class D amplifier, push pull
20W into 4 Ohms @ 12V input
Line output Variable to +6dB
Volume control On board screwdriver adjustable control
Blue LED for status On when playing
On when loading files
On when updating firmware
Flashing when timer is running
Red LED for power status On when powered
Flashes a code to indicate any errors
Internal jumpers 1 Future use
2 Future use
3 Future use
4 PERFORM FIRMWARE UPDATE
5 Enable USB port
Dimensions 117mm x 75mm x 25mm
www.goldingaudio.co.uk
Table of contents