More info, see above.Īrduino sketch for DCC control of accessories. #define F1_pin 0 // Available pin numbers: 3-19ĪTtiny sketch for a one address function decoder with max 5 outputs, controlled via the F0 – F12 buttons on your Command Station or handheld controller. #define F0_pin 13 // Define the output pin for every Function number in use. Int decoderAddress = 1830 // This is the decoder address, change into the number you want. User manual desrcibing the needed hardware and how to configure the software is included.Īrduino sketch for a one address function decoder with max 13 outputs, controlled via the F0 – F12 buttons on your Command Station or handheld controller. All other folders go into your Arduino Sketches folder.Īrduino sketch to control max 6 PWM channels that can control a 12V LED strip via nMOSFET’s. The folders inside need to be moved to the Arduino Sketches/libraries folder on your PC. Unzip the file and you’ll find the following folders: Please visit the Arduino website for download and installation of the Arduino development environment, needed to use Arduino sketches (‘sketch’ is the name for an Arduino software app). To find the various blog posts and video’s on the subject please do a search (upper right, in header) on the words arduino decoder. To convert the DCC track voltage to the Arduino voltage level, an optocoupler circuit is used according to the image on the right. All are available from now on in one overall zip download: Arduino DCC, S88, and more Download link Over time several types of the Arduino DCC decoder software have been made, such as accessory-, servo-, function-decoder, S88 interface, DCC sniffer, Sound software. Arduino + ATtiny DCC Decoder / DCC Sniffer / S88 software download (October 2015)
0 Comments
Leave a Reply. |