DCC in PBP


Closed Thread
Results 1 to 16 of 16

Thread: DCC in PBP

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Sounds like a low voltage X10?

    Here is some info.
    http://davehouston.net/
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default

    Like X-10 in as far as power line comm, but instead of imposing a signal on a carrier, the supply is kind of FSK (freq shift key) of the supply power. Seems very robust. on model trains, remember that the contact is by wheels, often on dirty track. Difficult at best.
    Bo

  3. #3
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default

    BTW,

    Alain:
    MERG is an excellent resource for such things. I'm building a MiniDCC as a base to start testing. (I will have to get back into Model Railroad, so it will have a use after testing). The problem is that it is so well done, no one had needed to write in PBP, they just use it.

    Dave:
    Thanks for the link to your site. Very nice info, I will mine it further. Maybe tune up my X-10 system.

    bo

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by boroko View Post
    Dave:
    Thanks for the link to your site. Very nice info, I will mine it further. Maybe tune up my X-10 system.
    I was meaning your yard light system would be like X10. Modulating a signal over DC like the trains should be pretty easy. But that was only an example... right?

    And the site I linked to is a different Dave.
    Dave
    Always wear safety glasses while programming.

  5. #5
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Not sure if this is any help

    http://www.trainelectronics.com/miniDCC/index.htm

    It has some code and the site is about DCC

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink a nice one

    Hi, Boroko

    I found this tutorial ...

    In French, ... yes, FreeBasic, yes ... but everything needed explained .

    http://www.train35.com/dcc1.html

    And easy to port to pbP !

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default

    Thanks Alain for the suggestion. I will look and see what I can learn from there.

    Current plan is to use DT-Ints to capture and measure the width of the incoming pulses to determine weather they are short (58uS :"1") or long (100uS: "0") or standard AC power (16.7mS) and generate a level of 1 or 0 if it is data. If Std. AC I can jump to a fall-back and pick one of a few basic modes by cycling the power. The data pulses, once decoded, could be simply fed into the USART.

Similar Threads

  1. PBP Book
    By Bruce in forum Off Topic
    Replies: 83
    Last Post: - 4th October 2021, 12:55
  2. Extensions to PBP variables
    By John_Mac in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 23rd October 2009, 05:21
  3. Compiler differences between PBP 2.33 & 2.46
    By nikopolis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd May 2006, 19:01
  4. Newby- PBP wont compile for 18F (MPLAB)
    By jd76duke in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2005, 23:30
  5. PBP / XP Crash
    By pondindustrial in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th November 2005, 03:16

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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