Philip

DCC on a budget (DCC, PC, Arduino, L298N)

Recommended Posts

DCC doesn't have to be expensive or complex. The guide below can help you get started with a very simple DCC controller running from your laptop (basic computer control):

  1. Download and Install "Arduino" from: http://arduino.cc/download.php?f=/arduino-1.5.8-windows.exe
  2. Download and Unzip "Processing" from: http://download.processing.org/processing-3.0a5-windows32.zip
  3. Download the code file for "Arduino" and open it in the Arduino program: DCC_Core_for_L298N.ino
  4. Download the code file for "Processing" and open it in the Processing program: processing_pde.pde
  5. Connect any Arduino compatable via USB micro-controller (E.g. Nano or Uno) and upload the program from Step 3
  6. Connect up a L298N and Power Supply (12V-16V DC Supply Depending on layout size) and other connections like so:
    post-162-0-85272000-1419351523_thumb.jpg
    The polarity of the Track output (From Out1 & Out2 does not matter)
     
  7. With the controller connected, run the "Processing" program from step 4. Controls are on screen!
    (Center is no power, left is reverse, right is forward)
    post-162-0-16048100-1419350409_thumb.png

Share this post


Link to post
Share on other sites

Hi Philip

Don't if you have seen this Youtube channel for DCC++

https://www.youtube.com/channel/UCJmvQx-fe0OMAIH-_g-_rZw

Very similar to what you have described.

Would be very interested if either would interface with JMRI

Paul

Hi Paul,

Thanks for the link. Looks like an expanded version of mine!! Will have a play with it.

 

Thanks,

Phil

Share this post


Link to post
Share on other sites

So paul when you gonna build me one :giggle:, then I could make my outer circuit dcc compatable, get a chip in the one engine I think is DCC compatable and try DCC !

Na its ok you got your work cut out already ! but I'll bookmark this and the links for future perusall  :cheers:

Matt

Share this post


Link to post
Share on other sites

Looking at the circuit, you just buy the bits, and bolt them together, debuging the software may take a little time, but should be ready to go, I'd just like to see some compatability with JMRI, means that phone / tablet throttles etc would be available, and all the other goodies that DecoderPro and Panel Pro have to offer.

Paul

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...