Saturday 12 July 2014

DCC Controller

Currently I am using the railstars CmdrArduino Arduino library (available on github), to generate the dcc signal from my arduino. To ensure that is working correctly I need to verify the signal matches the NMRA specifications for DCC (S-9.1 & S-9.2) using:
  • an Oscilloscope - will be sampling out the basic arduino scopes to see if they are okay for this.
  • a Logic Analyser
  • a dcc monitor/decoder
Once verified, only then will I connect it to my booster (RAILbooster) and retest it before operating my dcc locomotive with it.

Shown below is my fritzing project for my test controller. (Updated the diagrams, had dcc out incorrectly connecting to ground when it should be connected to pin 10).



This controller will be updated once the lcd display and keypad arrive in the mail. 


dcc monitor/decoder


I will be using the MynaBay DCC Monitor, there is an alternative library (MRRwA) that The unknown railway has used. Currently I will use the library that comes with the DCC Monitor, as I plan to write some code on my pc to make use of that binary data such as:
  • displaying it in hex
  • verifying that it is valid dcc commands.
  • etc... whatever else comes to mind when I have it operational.


Oscilloscope


I will be testing the basic ones out to see if they are useful enough for my purposes. If I do find one that looks okay, I will mention it sometime this weekend or next week.

The ones I will be looking at are:


Logic Analyser


Logic Analyser by gillham and a youtube video of it in action using a frontend called Logic Sniffer.



Looks like I will start off with the logic analyser and the dcc monitor later today, once done I will start looking into the oscilloscopes.

No comments:

Post a Comment