Sounds like a low voltage X10?
Here is some info.
http://davehouston.net/
Sounds like a low voltage X10?
Here is some info.
http://davehouston.net/
Dave
Always wear safety glasses while programming.
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
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
Not sure if this is any help
http://www.trainelectronics.com/miniDCC/index.htm
It has some code and the site is about DCC
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 " !!!
*****************************************
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.
Bookmarks