Servos.outputPin = 13 // Arduino pin number for additional accessory output Servos.address = 1 // DCC address for this accessory Click here for a list of posts on the servo decoder. See this post for more info on installation of drives and ATtiny support for the Arduino IDE.Īrduino sketch for DCC control of servos. Configuration is identical to the Arduino version above. Configuration per output:Īccessory.mode = 1 // Continuous: HIGH until DCC switches the address off againĪccessory.outputPin = 10 // Arduino pin to which this function is connectedĪccessory.mode = 2 // Oneshot: HIGH for ontime ms, then LOW and stays LOW.Īccessory.mode = 3 // Flasher: HIGH for ontime ms, LOW for offtime ms, repeats till DCC offĪccessory.outputPin2 = 13 // Flasher can use 2 outputs, they will flash on/off alternativelyĪTtiny sketch for DCC control of accessories. 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. #Rocrail ddx how toUser 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. #Rocrail ddx software downloadArduino + ATtiny DCC Decoder / DCC Sniffer / S88 software download (October 2015)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |