Railway hobby friend Erik Holewijn came with the idea to add sound to the Arduino Function / Servo decoder. And moreover ... he had already made the Windows PC software to make it possible!
In a joint effort we shared some ideas and worked them out together. We're proud to present here ... the combined Arduino DCC Function / Servo / Sound Decoder with accompanying PC sound software.
The Arduino DCC decoder can: • Control digital outputs (max 16) • Control servo motors (max 12) • Control playback of sounds on a PC that is connected via USB
With every function, one of 3 available modes can be selected: 1. Continu 2. One shot 3. Flasher (with 2 alternnating outputs)
Start and stop of a function can be delayed for a specified time. This makes it easy to create e.g. railway crossing, where the barrier should only start to move down some time after the lights and sound went on.
You do not need to be a software expert to create your own function decoder. All that is needed is to configure the functions, the servos and the sounds. It's all explained in the User Manual.
The software and the User Manual will be available for download on the blog, as soon as it has had it's final touch.
When compiling or uploading your DCC_Decoder software, chances are you may get an error that talks about ‘prog_char’. This happens with the Arduino PC software later than version 1.6. Reason is that the 'prog_char' command has been deprecated, while it was used multiple times in the Mynabay library. In the mean time the library software has been updated. The download links now contain the new version: