Results 1 to 12 of 12

Thread: New DCC decoder hardware/software project.

  1. #1
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default New DCC decoder hardware/software project.

    It's not quite fully baked, but I'm ready to announce one of my recent projects:

    https://github.com/bicknell/DCC-Mobile-Decoder

    In there is a DCC decoder development board (Breadboard-1) and DCC decoder software for it creating a development platform for writing DCC decoder software on a PIC18 micro-processor.

    Also inside is an initial take on a N scale decoder, 9mm x 25mm, with all solder connections. No specific software for it yet, but the reference software will work with minimal changes.

    My hopes is to foster a decoder development community where people contribute new hardware designs (e.g. drop in decoders) using a (relatively) common software platform.

    Enjoy!
    --
    Leo Bicknell

  2. The Following 10 Users Say Thank You to bicknell For This Useful Post:


  3. #2
    Join Date
    Feb 2004
    Location
    Delray Beach, Florida, USA - Ex Busselton, Western Australia
    Posts
    7,230
    Blog Entries
    1
    Thanks
    2,327
    Thanked 4,094 Times in 1,383 Posts
    Mentioned
    180 Post(s)
    Tagged
    0 Thread(s)

    Default

    Leo, I’ve moved this to the DIY sub forum with permanent redirect from the DCC sub forum, and made it a sticky thread (for now).
    PM me if you think there’s anything else I can do to help with the project.
    Bryan
    “Simplicity is the ultimate sophistication.” ~ Leonardo da Vinci (1452–1519)

  4. #3
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    What I am hoping for is others to be interested. If even just 2 or 3 people wanted to build on what I have started it would go so much faster and be so much better.

    The most useful thing anyone can do that doesn’t want to directly participate is to share this in different forums, chats, club news letters, etc.
    --
    Leo Bicknell

  5. The Following 3 Users Say Thank You to bicknell For This Useful Post:


  6. #4
    Join Date
    Apr 2022
    Location
    Missouri
    Posts
    345
    Thanks
    248
    Thanked 756 Times in 243 Posts
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)

    Default

    While am not much help, I wish you luck. It is always nice to have more options available.
    Just an old gandy dancer.


  7. #5
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    Want to get started RIGHT NOW? With parts you may have ON HAND?


    https://github.com/bicknell/DCC-Mobi...rence/Manual-1


    There's how to make it work on an 800 tie point breadboard near you. This is in fact how I started, and how I do most of my development.
    --
    Leo Bicknell

  8. #6
    Join Date
    Apr 2019
    Location
    SE Utah
    Posts
    1,042
    Thanks
    1,594
    Thanked 5,776 Times in 885 Posts
    Mentioned
    88 Post(s)
    Tagged
    0 Thread(s)

    Default

    I guess this might be a case of if I have to ask, maybe I shouldn't as I probably can't contribute anything. But is this a mobile decoder I could build to go into an engine and/or a stationary one that I could use to throw something like a turnout or something else?

    In the githup link just above there is reference to a photo ( under 'connecting it all up) but it isn't coming up for me. I'm probably interest on some level, probably couldn't help on development but maybe on building and testing if things are laid out in a manner that I could do that.

    I'll be following so keep going on the project and thanks for doing it,

    Sumner
    Modeling UP from late 40's to early 70's very loosely......

    Under$8.00 Servo turnout Control --- 3D Printed Model RR Objects -- MyHome Page
    http://1fatgmc.com/RailRoad/RR%20Mai...ge%20Menu.html

  9. #7
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    I didn’t take the photo yet. Will add that in a day or two.

    This project is focused on mobile decoders. It’s just getting off the ground, but theoretically the future you could order your own boards from the designs in here, flash them with the software, put them in a loco and go. It’s not quite there yet, but that’s the goal. And since you have the software you could then modify it.

    A stationary decoder is about 97% the same. The biggest difference is they are generally set up with more inputs and outputs that handle higher currents to drive signals, switch motors, block detection, etc. Stationary designs already exist, Google OpenDecoder for example. Perhaps in the future some stationary designs will get added here too.

    Right now the project is probably most interesting to people who like to tinker with electronics and code. As it becomes more mature less of that tinkering and knowledge will be required. If you haven’t built things on bread boards before I wouldn’t recommend starting here just yet….but maybe soon we can have something more novice friendly.
    --
    Leo Bicknell

  10. The Following 3 Users Say Thank You to bicknell For This Useful Post:


  11. #8
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    --
    Leo Bicknell

  12. The Following User Says Thank You to bicknell For This Useful Post:


  13. #9
    Join Date
    Jan 2021
    Location
    Chicago, IL USA
    Posts
    35
    Blog Entries
    14
    Thanks
    17
    Thanked 44 Times in 17 Posts
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Pretty cool. I may be interested in picking up on this sometime this winter/spring. I'm going to do a lot of my model lighting/automation using 5V micros right now, but maybe this is a good other potential choice. At the very least, it will help me with some other stuff if I use it for some practice. I like the breadboard version and will probably put one together in January just to play with it.

    Have you considered something like a Pi 2040 instead of the PIC? I actually started to write a small DCC decoder for the 2040 about 18 months ago when I wanted to try to put a design into a caboose, but never went anywhere with it. While the PIC is cheap and easy, the Pi isn't much more expensive, and gives you a bit more flexibility. Just a thought.
    Technologically adept SW engineer who is starting his third layout, this one might actually get finished one day.

    My Build Blog https://www.nscale.net/forums/entry....to-my-basement
    My Build Album https://www.nscale.net/forums/album.php?albumid=1781

  14. #10
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    A key design consideration is that decoders lose power….a lot. Think of dirty track. It may be on and off 10 times a second.

    That would be bad for a RPi. Or anything with a “real” OS. The advantage of the micro is there is nothing to boot, it just starts the code again in microseconds.

    a 2040 might work for a stationary decoder, but I don’t think it’s good for mobile.
    --
    Leo Bicknell

  15. #11
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    I just committed support for Address, Direct, Register, and Paged programming in Service Mode!

    I also added a resistor to the hardware design so that the board can do CV read back without having to have a real motor attached.
    --
    Leo Bicknell

  16. The Following User Says Thank You to bicknell For This Useful Post:


  17. #12
    Join Date
    Apr 2008
    Location
    Ashburn, VA, USA
    Posts
    1,549
    Thanks
    323
    Thanked 2,920 Times in 850 Posts
    Mentioned
    56 Post(s)
    Tagged
    0 Thread(s)

    Default

    I just added "lighting effects" support, at least basic effects. Strobe, double strobe, blinking headlight. Still need to figure out the patterns and tune things like a MARS or Gyralite -- but the code is there and knows what to do.

    Really the only thing left to have a basic functional decoder that could be used is read back support. It programs fine, but can't read back yet.
    --
    Leo Bicknell

  18. The Following 3 Users Say Thank You to bicknell For This Useful Post:


Similar Threads

  1. Decoder Pro software and other issues with Windows 10
    By mmahoag in forum General Rail Discussion
    Replies: 0
    Last Post: 19th Sep 2015, 01:19 PM
  2. Replies: 14
    Last Post: 15th Jul 2015, 08:00 AM
  3. Over the top hardware store
    By FireHawk in forum Scratchbuilding & Kit Bashing
    Replies: 3
    Last Post: 22nd Feb 2012, 12:31 PM
  4. DPM's Hayes Hardware
    By BryanC (RIP) in forum Urban Modeling
    Replies: 18
    Last Post: 15th Jul 2011, 02:32 PM
  5. Fascia hardware ideas?
    By ScottL in forum Modeling Techniques
    Replies: 9
    Last Post: 21st Feb 2011, 10:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •