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.