17-Function DCC Decoder
If you’ve been following Geoff Bunza’s Scale Model Animation Blog on the MRH website, you’ll find several projects SMA-10, SMA-12, SMA-13 that use the NmraDcc library.
Geoff ‘s projects needed support for mobile decoder functions 13..28, but that was not supported by the library, so he had to add a work-around. This needed support has now been added to the NmraDcc library and all of Geoff’s decoder variations have been added to the examples folder.
The latest version of the library can be downloaded from here.
Thanks for all the good work Geoff.
While I’ve not had much to post about or new releases to the libraries over this last year, there have been changes going on slowly in the background (when I get a few hours to dedicate to it) from time to time, as I do have a few small projects in the works that need new capabilities. The things I’ve been working on are:
- I’ve got the DCC library working with the AVR Tiny 85 processor to use as a signal decoder. I had a friend design a small Signal Decoder PCB for driving 4 LEDs. I’ve not got the LED PWM dimming all sorted yet, but it should be nice once I do…
- There’s also some work being done to provide support for the LocoNet SV and LocoNet CV protocols. This will let me port my LocoBOD project to the Arduino environment.
Hopefully in a few months I’ll have these projects working, so keep an eye out for another update… 😉
IMPORTANT: I introduced a major bug with the NmraDcc library when I added the Mega 1280/2560 support as it broke the Mega168 support and it took me hours to figure out why my code, that has worked for years, suddenly stopped working on my Mega168 dev board.
To work around the problem of how best to support multiple AVR MPUs, I have refactored the library to add a new pin() method that lets you explicitly define the External Interrupt (INTx), the associated Arduino Pin to use and to enable the Pull-up or not. I’ve updated the example to show the new usage.
If you’re using the NmraDcc library and you sketch has suddenly stopped working after you updated to the 2012-06-10 release, you should download the update from here and not use the 2012-06-10 release.
LocoNet Throttle Terminal example sketch screenshot
A new version of the library is now available to download as a ZIP file in the downloads section: REMOVED due to a major bug.
This version includes:
- Support the Mega1280/2560 in the NmraDcc library
- Support for LocoNet Throttles has been added to the LocoNet library and a new LocoNetThrottle example has been added that demonstrates a simple throttle using a ANSI Serial Terminal Emulator like Putty.
The library has been updated to allow it to be used with Arduino 0022 and Arduino 1.0 and is now available to download as a ZIP file in the downloads section: here.
Enjoy and “Happy New Year!!!”
I decided to move the on-going development of both the EmbeddedLocoNet and OpenDcc Arduino Libraries to the SourceForge MRRWA project associated with this website, so any new work on these libraries and new MRR based Arduino projects and articles are welcome.
Basically as things have become more Arduino centric and I got tired of maintaining these two libraries in separate source code repositories as they pretty much live side-by-side on my PC, so I merged them into this new project.
I’ve recently updated the EmbeddedLocoNet and OpenDCC project website to reflect this change.
The presentation slides for the two Model Railroading with Arduino clinics presented by John Plocher and Dave Falkenburg at the X2011 Convention are available here:
Introduction Clinic Slides
Applications Clinic Slides
There are two Model Railroading with Arduino clinics at the X2011 Convention on Monday. John Plocher and Dave Falkenburg are giving a Model Railroading with Arduino Introduction Clinic and John Plocher is giving a Model Railroading with Arduino Applications Clinic. Come along and hear about how these popular little devices can be used on your layout.
The OpenLCB project is developing a new Layout Control Bus (LCB) and has used a number of Arduino clone devices to prototype the designs. Some of the OpenLCB team will be at the X2011 West NMRA Convention running Clinics on Monday and Friday. If you’re at the convention make sure you call by the clinics and have a chat to Bob, David and the other members of the team at the convention.